/* ==========================================================================
   AquaFix Plumbing — global stylesheet
   Palette taken from the site.jpg template
   ========================================================================== */

:root {
  --blue-900: #0d2a4a;
  --blue-700: #14416e;
  --blue-600: #2c71b2;
  --blue-500: #3b8ad9;
  --blue-100: #d9edf8;
  --blue-050: #e2f3fb;
  --coral: #fb8b77;
  --coral-dark: #ef6b53;
  --ink: #16202b;
  --muted: #5d7183;
  --line: #e3eaf1;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 65, 110, .06);
  --shadow-md: 0 14px 40px rgba(20, 65, 110, .12);
  --wrap: 1180px;
  --header-h: 82px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; }

p { margin: 0 0 1.1em; color: var(--muted); }

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

.center { text-align: center; }
.lead { font-size: 1.02rem; max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(239, 107, 83, .35); }
.btn-primary:hover { background: var(--coral-dark); }

.btn-blue { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(44, 113, 178, .32); }
.btn-blue:hover { background: var(--blue-700); }

.btn-ghost {
  background: rgba(255, 255, 255, .55);
  color: var(--blue-900);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; }

.btn-pill {
  display: inline-block;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  background: #dbe9f7;
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.btn-pill:hover { background: var(--blue-600); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-solid,
.site-header.is-inner {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.18rem; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2604a, #fb8b77);
  color: #fff; font-size: 1.05rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--blue-900);
  position: relative;
  padding: .2rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width .22s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* over the video hero the header sits on dark footage until it turns solid */
.site-header:not(.is-solid):not(.is-inner) .brand { color: #fff; }
.site-header:not(.is-solid):not(.is-inner) .nav > a:not(.btn) { color: #fff; }
.site-header:not(.is-solid):not(.is-inner) .nav-toggle { background: rgba(255, 255, 255, .18); }
.site-header:not(.is-solid):not(.is-inner) .nav-toggle span,
.site-header:not(.is-solid):not(.is-inner) .nav-toggle span::before,
.site-header:not(.is-solid):not(.is-inner) .nav-toggle span::after { background: #fff; }
@media (max-width: 780px) {
  /* the open dropdown is a white panel, so links go dark again */
  .site-header:not(.is-solid) .nav.open > a:not(.btn) { color: var(--blue-900); }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--blue-900);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (video background) ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: linear-gradient(160deg, #0d2a4a 0%, #14416e 55%, #2c71b2 100%);
  overflow: hidden;
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 28, 50, .93) 0%, rgba(11, 38, 66, .82) 42%, rgba(13, 52, 92, .48) 100%),
    linear-gradient(180deg, rgba(9, 28, 50, .55) 0%, rgba(9, 28, 50, 0) 34%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-content {
  max-width: 620px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 7rem;
}
.hero .eyebrow { color: #9fd0f5; }
.hero h1 { color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero p { color: rgba(255, 255, 255, .88); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 2.75rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-trust strong { display: block; font-size: 1.15rem; color: #fff; }
.hero-trust span { font-size: .82rem; color: rgba(255, 255, 255, .7); }

/* wave divider */
.wave { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.wave-top { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, #f4fafd 100%); }
.section-blue { background: var(--blue-050); position: relative; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: .7rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.card {
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.8rem;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-600);
  color: #fff;
  font-size: 1.15rem;
}
.card-num { font-size: .78rem; color: #9fb0bf; font-weight: 600; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .9rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--blue-100);
}
.split-media--portrait img { aspect-ratio: 3 / 4; max-height: 620px; margin-inline: auto; }
.tick-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
  color: var(--muted);
  font-size: .95rem;
}
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: .7rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.03em;
}
.stat-label { font-size: .84rem; color: var(--muted); }

/* ---------- Contact strip ---------- */
.contact-strip { padding: 5.5rem 0; background: #fff; }
.contact-strip .split { gap: 3rem; }
.contact-strip img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.phone {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue-900);
  display: inline-block;
  margin-bottom: .6rem;
}
.contact-meta { display: grid; gap: .35rem; font-size: .93rem; color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .93rem;
  background: #fbfdfe;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 138, 217, .16);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }
.form-status { font-size: .9rem; font-weight: 600; color: var(--blue-600); margin-top: .9rem; min-height: 1.2em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: .93rem; color: var(--ink); }
.quote-by { display: flex; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 700;
  font-size: .9rem;
}
.quote-by strong { display: block; font-size: .9rem; }
.quote-by span { font-size: .8rem; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: .12em; font-size: .85rem; }

/* ---------- Accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none; border: 0;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font: inherit; font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}
.faq-q::after {
  content: "+";
  position: absolute; right: .4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--blue-600);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { font-size: .93rem; padding-bottom: .3rem; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(160deg, #eaf5fc 0%, #cde6f6 100%);
  padding: 3.5rem 0 4.5rem;
  position: relative;
  text-align: center;
}
.page-banner h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--blue-900); margin-bottom: .4rem; }
.crumbs { font-size: .85rem; color: #4d6a83; }
.crumbs a:hover { color: var(--coral-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  color: #fff;
  padding: 3.5rem 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: .35rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cbdc; padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #b9cbdc; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split-reverse .split-media { order: -1; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 1.5rem 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .hero-content { min-height: 0; padding: 3.5rem 0 5.5rem; }
  .hero-trust { gap: 1.5rem; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.75rem 0; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .footer-grid, .stats { grid-template-columns: 1fr; }
}
