/* =========================================================================
   Gold Seal Plumbing — Design System
   Theme: ink navy + metallic gold + warm off-white
   Conversion-first, mobile-first, no-JS-safe.
   ========================================================================= */

:root {
  /* Brand palette */
  --navy-900: #07111f;
  --navy-800: #0a1a2f;
  --navy-700: #0e2240;
  --navy-600: #14305a;
  --navy-500: #1d3f73;

  --gold-100: #f7e7a3;
  --gold-300: #e2c45e;
  --gold-500: #c9a227;
  --gold-700: #9a7b1a;
  --gold-grad: linear-gradient(135deg, #f7e7a3 0%, #e2c45e 28%, #c9a227 62%, #9a7b1a 100%);

  --cream: #f7f5f0;
  --cream-2: #efeadf;
  --white: #ffffff;
  --ink: #0a1a2f;
  --muted: #5b6878;
  --line: #e3e0d6;

  --success: #1f9d5b;
  --danger: #d23b3b;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 14px 40px rgba(7, 17, 31, 0.14);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.35);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 76px;
  --callbar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-700); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--navy { background: var(--navy-800); color: #d8e0ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream2 { background: var(--cream-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold-300); }

.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #aab8cc; }

.text-center { text-align: center; }
.measure { max-width: 720px; }
.measure-center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold-grad);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { color: var(--navy-900); }

.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-100); }

.btn--lg { padding: 19px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__seal { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: .02em;
  color: var(--white);
}
.brand__name b { color: var(--gold-300); font-weight: 800; }
.brand__tag {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #cdd7e5;
  font-weight: 600;
  font-size: .96rem;
  padding: 9px 13px;
  border-radius: 7px;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.header-phone:hover { color: var(--gold-100); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--gold-300);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: var(--white);
  padding: clamp(54px, 8vw, 100px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold-300); }
.hero__sub { font-size: 1.18rem; color: #c2cee0; max-width: 560px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .96rem;
  color: #d8e0ec;
}
.hero-badges svg { color: var(--gold-300); flex: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: .95rem;
  color: #c2cee0;
}
.stars { color: var(--gold-300); letter-spacing: 2px; font-size: 1.1rem; }

/* ---------- Lead form card ---------- */
.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-md);
  border-top: 5px solid transparent;
  border-image: var(--gold-grad) 1;
}
.lead-card__head { text-align: center; margin-bottom: 18px; }
.lead-card__head h3 { margin-bottom: 4px; }
.lead-card__offer {
  display: inline-block;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
  background: var(--white);
}
.form-note {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.form-error {
  display: none;
  background: #fdeaea;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .88rem;
  margin-bottom: 12px;
}
.form-error.is-visible { display: block; }

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--navy-900);
  color: #b9c4d4;
  border-bottom: 1px solid rgba(201,162,39,.18);
}
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  padding: 14px 0;
  font-size: .9rem;
  font-weight: 600;
}
.trustbar__inner span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar svg { color: var(--gold-300); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }

.svc-card { display: flex; flex-direction: column; }
.svc-card__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--gold-300);
  margin-bottom: 16px;
}
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.svc-card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-card__link:hover { gap: 10px; }

/* feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { color: var(--gold-500); flex: none; margin-top: 3px; }
.section--navy .checks svg { color: var(--gold-300); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: .9rem; color: #aab8cc; font-weight: 600; }

/* reviews */
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.review__stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.review__text { font-size: 1.02rem; color: var(--ink); margin-bottom: 14px; }
.review__name { font-weight: 700; font-family: var(--font-display); color: var(--navy-700); }
.review__meta { font-size: .85rem; color: var(--muted); }

/* offer band */
.offer-band {
  background: var(--gold-grad);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.offer-band h2 { color: var(--navy-900); }
.offer-band p { color: #1c1402; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold-700);
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* breadcrumb */
.breadcrumb {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 14px 0; color: var(--muted);
}
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--navy-600); font-weight: 600; }

/* service detail layout */
.svc-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 40px; align-items: start; }
.svc-body h2 { margin-top: 1.6em; }
.svc-body h2:first-child { margin-top: 0; }
.svc-body ol { padding-left: 22px; margin: 0 0 1rem; }
.svc-body ol li { margin-bottom: 10px; padding-left: 4px; }
.svc-body ol li::marker { color: var(--gold-700); font-family: var(--font-display); font-weight: 800; }
.svc-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: var(--navy-800);
  color: #d8e0ec;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.svc-aside h3 { color: var(--white); }
.svc-aside .btn { margin-top: 6px; }
.svc-aside .phone-xl {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold-300);
  margin: 10px 0 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9fadc0;
  padding: 56px 0 30px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #9fadc0; }
.site-footer a:hover { color: var(--gold-300); }
.footer-brand .brand__name { font-size: 1.3rem; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a { display: inline-flex; gap: 8px; align-items: center; color: #cdd7e5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: #6f7e93;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  height: var(--callbar-h);
  background: var(--navy-900);
  border-top: 1px solid rgba(201,162,39,.3);
  box-shadow: 0 -6px 20px rgba(0,0,0,.3);
}
.call-bar__inner { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
}
.call-bar__call { background: var(--gold-grad); color: var(--navy-900); }
.call-bar__quote { color: var(--gold-300); }

/* ---------- Reveal animation (JS-enhanced, no-JS safe) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: var(--callbar-h); }
  .call-bar { display: block; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(201,162,39,.25);
    transform: translateY(-130%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 13px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav .btn { margin-top: 12px; }
}

@media (max-width: 560px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Anchor offset for sticky header ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Answer-first / AI-citation block ---------- */
.answer-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin: 0 0 28px;
}
.answer-box__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 8px;
}
.answer-box p { margin: 0; font-size: 1.06rem; color: var(--ink); }
.answer-box p + p { margin-top: 10px; }
.answer-box strong { color: var(--navy-700); }

/* ---------- Key facts strip ---------- */
.keyfacts {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.keyfacts li {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.keyfacts b { display: block; font-family: var(--font-display); color: var(--navy-700); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.keyfacts span { font-size: 1.02rem; font-weight: 600; color: var(--ink); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 28px; border-radius: var(--radius-sm); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .98rem;
  min-width: 460px;
}
table.compare caption { text-align: left; font-size: .86rem; color: var(--muted); padding: 0 0 10px; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th {
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}
table.compare tbody th { font-family: var(--font-display); color: var(--navy-700); font-weight: 700; background: var(--cream); width: 32%; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td svg { color: var(--success); vertical-align: -2px; }

@media (max-width: 560px) {
  .keyfacts { grid-template-columns: 1fr; }
}

/* ---------- Mobile content & FAQ polish ---------- */
.svc-body p, .measure-center p, .measure p { overflow-wrap: break-word; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .svc-body h2 { margin-top: 1.3em; }
  /* Larger, easier-to-tap FAQ rows with comfortable spacing */
  .faq details { padding: 2px 16px; }
  .faq summary { font-size: 1rem; padding: 15px 0; gap: 12px; }
  .faq summary::after { font-size: 1.4rem; }
  .faq details p { font-size: .96rem; }
  /* Keep dense reviews/cards readable */
  .review__text { font-size: .98rem; }
  .lead { font-size: 1.04rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .hero__sub { font-size: 1.04rem; }
  .lead-card { padding: 22px 18px; }
  .faq summary { font-size: .96rem; }
}
