/* Prestige Plumbing — navy/gold premium design system */
:root {
  --navy-900: #081729;
  --navy-800: #0B1F3A;
  --navy-700: #122B4E;
  --navy-600: #1A3458;
  --navy-line: #2A4368;
  --gold: #C9A24B;
  --gold-dark: #A8842F;
  --gold-light: #E3C879;
  --blue: #1D5FAE;
  --blue-light: #4D8FD6;
  --cream: #F6F4EF;
  --white: #FFFFFF;
  --ink: #1A2433;
  --gray: #5B6677;
  --line: #E3DFD5;
  --on-navy: #E9EDF4;
  --on-navy-muted: #ADBCD2;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(8, 23, 41, 0.10);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--navy-800); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}
.on-dark .eyebrow { color: var(--gold-light); }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 8px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer; border: 0;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35); }
.btn-outline-light { background: transparent; color: var(--on-navy); border: 1.5px solid var(--navy-line); }
.btn-outline-light:hover { border-color: var(--blue-light); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy-800); border: 1.5px solid var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn svg { flex: 0 0 auto; }

/* ───── Top bar ───── */
.topbar { background-color: #081729; color: #ADBCD2; font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; }
.topbar .gold { color: var(--gold-light); font-weight: 500; }
@media (max-width: 700px) { .topbar .areas { display: none; } .topbar .wrap { justify-content: center; } }

/* ───── Header ───── */
.site-header {
  background: var(--navy-800);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--navy-600);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { height: 64px; width: auto; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { white-space: nowrap; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-item > a svg { transition: transform 0.15s ease; }
.nav-item:hover > a svg, .nav-item:focus-within > a svg { transform: rotate(180deg); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: -10px; z-index: 70;
  background: var(--navy-900); border: 1px solid var(--navy-600); border-radius: 10px;
  padding: 8px; min-width: 240px; box-shadow: 0 14px 34px rgba(4, 12, 24, 0.5);
}
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { display: block; }
.sub-menu a {
  display: block; padding: 10px 12px; border-radius: 7px;
  color: #C7D2E2; font-size: 0.92rem; text-decoration: none;
}
.sub-menu a:hover { background: var(--navy-700); color: var(--gold-light); }
.sub-menu a.sub-all { border-top: 1px solid var(--navy-700); margin-top: 4px; padding-top: 12px; color: var(--gold-light); }
.main-nav a {
  color: #C7D2E2; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.12s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); }
.main-nav a.btn-gold, .main-nav a.btn-gold:hover { color: var(--navy-900); font-weight: 600; }
.header-phone { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--on-navy);
  width: 44px; height: 44px; cursor: pointer;
}
@media (max-width: 1024px) {
  .logo-link img { height: 50px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; gap: 0; border-bottom: 1px solid var(--navy-600);
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--navy-700); }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .nav-item { position: static; }
  .nav-item > a svg { display: none; }
  .sub-menu {
    display: block; position: static; background: transparent; border: 0;
    box-shadow: none; padding: 0 0 4px 16px; min-width: 0;
  }
  .sub-menu a { border-bottom: 0; font-size: 0.95rem; padding: 9px 4px; color: #9FB0C8; }
  .sub-menu a.sub-all { border-top: 0; margin-top: 0; padding-top: 9px; }
}

/* ───── Hero ───── */
.hero { background: var(--navy-800); color: var(--on-navy); position: relative; overflow: hidden; }
.hero.has-img::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center / cover no-repeat;
  opacity: 0.38;
}
.hero.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,23,41,0.55) 0%, rgba(11,31,58,0.82) 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; opacity: 0.42; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
/* While a video is playing, hide the static background image underneath it.
   Both layers showing at once reads as a ghosting double-exposure. */
.hero.video-on::before { opacity: 0; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { color: var(--white); max-width: 26ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--on-navy-muted); max-width: 66ch; margin: 1.1rem 0 1.8rem; }
.hero-center { text-align: center; }
.hero-center h1, .hero-center .lead { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-center .cta-row { justify-content: center; }

/* trust chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.hero-center .chips { justify-content: center; }
.chip {
  font-size: 0.82rem; color: #C7D2E2; border: 1px solid var(--navy-line);
  border-radius: 99px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8, 23, 41, 0.45);
}
.chip svg { color: var(--gold); }

/* ───── Brand strip ───── */
.brand-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.brand-strip .wrap {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 38px;
  padding-top: 16px; padding-bottom: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.13em; color: #8A8478;
}

/* ───── Sections ───── */
.section { padding: clamp(52px, 8vw, 92px) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-800); color: var(--on-navy); }
.section-navy h2 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--gray); margin-top: 0.7rem; }
.section-navy .section-head p { color: var(--on-navy-muted); }

/* ───── Cards ───── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; color: var(--ink); display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card .icon { color: var(--gold-dark); margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: var(--gray); }
.card .card-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--blue); }

/* ───── Blog cards ───── */
.blog-card { padding: 0; overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-meta { font-size: 0.82rem; color: var(--gray); margin-bottom: 8px; }
.prose ul { margin: 0 0 1.1rem 1.3rem; color: var(--gray); }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--ink); }
@media (max-width: 700px) {
  .post-scroller {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .post-scroller .blog-card { min-width: 82%; scroll-snap-align: start; }
}

/* ───── Steps ───── */
.step { text-align: center; padding: 0 12px; }
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--gold); margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.95rem; }

/* ───── Two-column feature ───── */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature h2 { margin-bottom: 1rem; }
.feature p { color: var(--gray); margin-bottom: 1rem; }
.feature ul { list-style: none; margin: 1.2rem 0 1.6rem; }
.feature li { padding: 7px 0 7px 32px; position: relative; color: var(--ink); }
.feature li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--gold-dark); font-weight: 700;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ───── Price table ───── */
.price-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.price-table th {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em;
  text-align: left; background: var(--navy-800); color: var(--white); padding: 14px 20px;
}
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table td { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.price-table tr:nth-child(even) td { background: var(--cream); }
.price-table td:last-child { font-weight: 600; color: var(--navy-800); }
.price-note { font-size: 0.85rem; color: var(--gray); margin-top: 12px; }

/* ───── FAQ ───── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--white); }
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 1rem; color: var(--navy-800);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--gray); font-size: 0.95rem; }

/* ───── CTA band ───── */
.cta-band { background: var(--navy-800); border-top: 3px solid var(--gold); color: var(--on-navy); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px);
}
.cta-band h2 { color: var(--white); margin-bottom: 4px; }
.cta-band p { color: var(--on-navy-muted); font-size: 0.95rem; }

/* ───── Breadcrumbs ───── */
.crumbs { font-size: 0.82rem; color: var(--on-navy-muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }

/* ───── Prose (service/city body) ───── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin: 2.4rem 0 0.9rem; }
.prose p { color: var(--gray); margin-bottom: 1.1rem; }
.prose a { font-weight: 500; }

/* ───── Footer ───── */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-logo img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-style: italic; color: var(--on-navy-muted); }
.footer-bottom {
  border-top: 1px solid var(--navy-700); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem;
}

/* ───── Mobile sticky call bar ───── */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--navy-900); border-top: 1px solid var(--navy-600);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: 0.95rem; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

/* ───── Utility ───── */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.gold-text { color: var(--gold-dark); }
