/* ═══════════════════════════════════════════════════
   Ward & Sons Plumbing Co. — Stylesheet
   Modern, warm, mobile-first
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --brand:       #0f4c75;
  --brand-dark:  #0b3954;
  --brand-light: #e8f0f7;
  --accent:      #1b9aaa;
  --accent-dark: #147a87;
  --text:        #1f2937;
  --text-light:  #6b7280;
  --bg:          #f8fafb;
  --white:       #ffffff;
  --card:        #ffffff;
  --card-shadow: 0 2px 12px rgba(15, 76, 117, 0.08);
  --card-hover:  0 8px 32px rgba(15, 76, 117, 0.13);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.3s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width:   1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul  { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-family: var(--font);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--sm  { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn--lg  { font-size: 1.05rem;  padding: 0.85rem 1.75rem; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 154, 170, 0.35);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  border-radius: 50px;
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: var(--brand-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.nav__brand:hover { color: var(--white); }
.nav__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(27,154,170,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero__kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero__trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.hero__trust span { white-space: nowrap; }

/* ── Sections ── */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--brand-light);
}
.section__kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--brand-dark);
}
.section__sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Service Cards ── */
.cards--services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}
.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}
.card__icon svg {
  width: 100%;
  height: 100%;
}
.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}
.card__text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Problems Grid (SEO Section) ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.problem {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--accent);
}
.problem:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover);
}
.problem__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.problem h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}
.problem p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.problems-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.problems-cta p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ── Service Areas ── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.area-badge {
  background: var(--white);
  border: 2px solid var(--brand-light);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-dark);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  white-space: nowrap;
}
.area-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-hover);
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.02rem;
}
.about__text .section__kicker,
.about__text .section__title {
  text-align: left;
}
.about__text .btn { margin-top: 0.5rem; }
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform var(--transition);
}
.value:hover { transform: translateY(-3px); }
.value__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.value h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}
.value p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.75rem;
}
.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer__mission {
  font-size: 0.925rem;
  line-height: 1.7;
  max-width: 340px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__contact p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.footer__contact a {
  color: rgba(255,255,255,0.8);
}
.footer__contact a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.825rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

/* ── Fade-in Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__text .section__kicker,
  .about__text .section__title {
    text-align: center;
  }
  .about__text { text-align: center; }
  .about__values {
    max-width: 400px;
    margin: 0 auto;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__mission { max-width: 100%; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--brand-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }
  .nav__links--open { right: 0; }
  .nav__links a {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
  }

  .hero { padding: 7rem 0 4rem; }
  .hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  .section { padding: 3.5rem 0; }

  .cards--services {
    grid-template-columns: 1fr;
  }
  .problems-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .hero__trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
  .about__values {
    grid-template-columns: 1fr;
  }
}
