/* ===================================================================
   J&D Heating, Cooling & Water — Nampa, ID — Family-owned since 1961
   Theme: "Treasure Valley trust" — deep navy + water-blue,
   warm amber = CTAs ONLY.  Self-contained: system fonts, inline SVG.
   =================================================================== */
:root {
  --navy:       #10314F;   /* brand primary */
  --navy-800:   #163E63;   /* raised navy */
  --navy-deep:  #0A2036;   /* footer base */
  --steel:      #45566B;   /* steel gray */
  --steel-ic:   #33465C;   /* icon ink */
  --ink:        #142338;   /* body headings */
  --muted:      #5B6675;   /* secondary text */
  --paper:      #ffffff;
  --paper-alt:  #F3F7FA;   /* section tint */
  --line:       #E1E7EE;   /* hairlines */
  --tint-navy:  #E7EEF5;   /* navy icon chip bg */
  --tint-water: #E1F1F6;   /* water icon chip bg */
  --water:      #12849F;   /* water-blue accent (decorative) */
  --water-ink:  #0E6E86;
  --accent:     #E4692F;   /* WARM CTA accent — CTAs only */
  --accent-600: #C7551F;   /* CTA hover */

  --serif: 'Georgia', 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Inline SVG icon sizing — driven by font-size of parent */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* NAV */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 74px; background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; display: block; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-top: 1px; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 13.5px; color: var(--steel); text-decoration: none; font-weight: 400; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 20px;
  border-radius: 6px; font-weight: 600 !important; font-size: 13.5px !important;
  display: flex; align-items: center; gap: 7px;
}
.nav-cta:hover { background: var(--accent-600) !important; }
.nav-cta .ic { font-size: 15px; }

/* HERO (CSS-only, no images) */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 74px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3rem;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(18,132,159,0.30), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(228,105,47,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-800) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(1000px 600px at 70% 20%, #000, transparent 75%);
          mask-image: radial-gradient(1000px 600px at 70% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 500; color: rgba(255,255,255,0.9); letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 14px; border-radius: 100px;
}
.tag .ic { font-size: 14px; color: #7FD3E6; }
.h1 {
  font-family: var(--serif); font-weight: 700; font-size: 56px; line-height: 1.05;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 1.25rem;
  text-shadow: 0 1px 20px rgba(0,0,0,0.35);
}
.h1 .cool  { color: #8FCFE0; }   /* water/cool accent */
.h1 .warm  { color: #F2A15A; }   /* heat accent */
.hero-p { font-size: 17px; color: rgba(255,255,255,0.9); line-height: 1.7; max-width: 500px; margin-bottom: 2rem; font-weight: 400; }
.btns { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-badges { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-badge { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 8px; }
.hero-badge .ic { font-size: 17px; color: #7FD3E6; }

/* BUTTONS */
.btn-primary {
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 7px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-600); }
.btn-lg { font-size: 16px; padding: 16px 30px; border-radius: 8px; box-shadow: 0 10px 28px rgba(228,105,47,0.34); }
.btn-lg:hover { transform: translateY(-1px); }
.btn-lg .ic { font-size: 18px; }
.btn-ghost {
  font-size: 14px; color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 24px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.15s, border-color 0.15s;
}
.btn-lg.btn-ghost { padding: 15px 26px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* TRUST BAR */
.trust-bar { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.trust-item { padding: 1.35rem 1.5rem; display: flex; align-items: center; gap: 0.9rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ic-navy  { background: var(--tint-navy);  color: var(--navy); }
.ic-water { background: var(--tint-water); color: var(--water-ink); }
.ic-gray  { background: #F1F3F6; color: var(--steel); }
.trust-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* REQUEST SERVICE — the pitch moment */
.request { background: var(--navy); padding: 3.75rem 3rem; }
.request-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; max-width: 1080px; margin: 0 auto; }
.sec-tag.light { color: #8FCFE0; }
.request-h { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; }
.request-p { font-size: 15.5px; color: rgba(255,255,255,0.85); line-height: 1.7; font-weight: 400; max-width: 440px; margin-bottom: 1.5rem; }
.request-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 28px; color: #fff; text-decoration: none; }
.request-phone .ic { font-size: 24px; color: var(--accent); }
.request-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.request-badges span { font-size: 12.5px; color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 7px; }
.request-badges .ic { font-size: 16px; color: #8FCFE0; }

.request-card { background: #fff; border-radius: 14px; padding: 1.85rem; box-shadow: 0 22px 55px rgba(0,0,0,0.3); }
.rq-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; }
.rq-field { display: block; margin-bottom: 0.9rem; }
.rq-field span { display: block; font-size: 12px; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.rq-field input, .rq-field textarea, .rq-field select {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s; resize: vertical;
}
.rq-field input:focus, .rq-field textarea:focus, .rq-field select:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(18,132,159,0.14); }
.btn-request {
  width: 100%; justify-content: center; margin-top: 0.35rem;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  padding: 14px 20px; border: none; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s;
}
.btn-request:hover { background: var(--accent-600); }
.btn-request .ic { font-size: 17px; }
.rq-note { margin-top: 0.9rem; font-size: 11.5px; color: var(--muted); line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; }

/* SERVICES */
.services { padding: 3.5rem 3rem; background: var(--paper); }
.sec-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.sec-h { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.sec-intro { font-size: 15px; color: var(--steel); line-height: 1.8; font-weight: 400; max-width: 640px; margin-bottom: 2rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.svc { background: #fff; padding: 1.6rem 1.6rem; transition: background 0.15s; text-decoration: none; display: block; }
.svc:hover { background: #FAFCFD; }
.svc-icon { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem; font-size: 20px; }
.svc-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 8px; }
.svc-name .arrow { font-size: 15px; color: var(--accent); margin-left: auto; }
.svc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; font-weight: 400; }

/* SPLIT STRIP (heat / cool / water triad) */
.triad { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.triad-cell { padding: 2rem 2.25rem; display: flex; align-items: flex-start; gap: 1.15rem; border-right: 1px solid var(--line); background: var(--paper-alt); }
.triad-cell:last-child { border-right: none; }
.triad-icon { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0; }
.triad-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.triad-sub { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.55; }

/* ABOUT / LEGACY */
.about { padding: 4.25rem 3rem; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.about-p { font-size: 15px; color: var(--steel); line-height: 1.8; font-weight: 400; margin-bottom: 1rem; max-width: 560px; }
.about-card { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 14px; padding: 0.5rem 2rem; }
.about-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.about-row:last-child { border-bottom: none; }
.about-row .ic { font-size: 22px; color: var(--water-ink); margin-top: 2px; }
.about-row .ic.navy { color: var(--navy); }
.about-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.about-role { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* STAT BAND */
.stats { display: grid; grid-template-columns: repeat(4,1fr); background: var(--navy); }
.stat { padding: 2.5rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: 44px; color: #fff; line-height: 1; }
.stat-num .u { color: #8FCFE0; }
.stat-label { font-size: 12.5px; color: rgba(255,255,255,0.62); margin-top: 0.6rem; letter-spacing: 0.03em; }

/* BENEFITS GRID */
.benefits { padding: 4.25rem 3rem; background: var(--paper-alt); border-top: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.benefit { display: flex; gap: 0.85rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.15rem 1.3rem; font-size: 13.5px; color: var(--steel); line-height: 1.55; font-weight: 400; }
.benefit .ic { color: var(--water-ink); font-size: 18px; margin-top: 1px; }

/* OFFERS */
.offers { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-alt); border-top: 1px solid var(--line); }
.offer { padding: 2.5rem 3rem; display: flex; align-items: flex-start; gap: 1.25rem; border-right: 1px solid var(--line); }
.offer:last-child { border-right: none; }
.offer .ic { font-size: 40px; color: var(--water-ink); flex-shrink: 0; }
.offer-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.offer-note { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.55; }

/* FOOTER */
.footer { background: var(--navy); padding: 3.25rem 3rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.ft-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; text-decoration: none; }
.ft-name { font-size: 14.5px; font-weight: 600; color: #fff; }
.ft-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.65; font-weight: 400; max-width: 320px; }
.ft-heading { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 0.85rem; }
.ft-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.72); margin-bottom: 0.55rem; font-weight: 400; line-height: 1.5; }
.ft-row .ic { font-size: 15px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ft-row strong { color: #fff; font-weight: 600; }
.ft-row a { color: inherit; text-decoration: none; }
.ft-row a:hover { color: #fff; }
.ft-bottom { background: var(--navy-deep); padding: 1rem 3rem; display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* PAGE HERO (subpages) — CSS gradient */
.page-hero {
  position: relative; overflow: hidden; padding: 4.75rem 3rem;
  display: flex; flex-direction: column; justify-content: center; min-height: 340px;
  background:
    radial-gradient(900px 500px at 82% -20%, rgba(18,132,159,0.32), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-800) 100%);
}
.page-hero.warm {
  background:
    radial-gradient(900px 500px at 82% -20%, rgba(228,105,47,0.30), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-800) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(800px 500px at 75% 20%, #000, transparent 75%);
          mask-image: radial-gradient(800px 500px at 75% 20%, #000, transparent 75%);
}
.ph-inner { position: relative; z-index: 2; max-width: 720px; }
.page-h1 { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.08; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.page-hero-p { font-size: 16px; color: rgba(255,255,255,0.9); line-height: 1.7; font-weight: 400; max-width: 560px; }

/* CONTENT PAGES */
.page-section { padding: 4.25rem 3rem; }
.page-section.alt { background: var(--paper-alt); border-top: 1px solid var(--line); }
.list-check { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; margin-top: 1.75rem; max-width: 760px; }
.list-check li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 14px; color: var(--steel); line-height: 1.55; }
.list-check .ic { color: var(--water-ink); font-size: 18px; margin-top: 1px; }

/* FEATURE CARDS */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 1rem; }
.feature-name { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.feature-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; font-weight: 400; }

/* CTA STRIP */
.cta-strip { background: var(--navy); padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-title { font-family: var(--serif); font-weight: 700; font-size: 30px; color: #fff; margin-bottom: 5px; }
.cta-sub { font-size: 14px; color: rgba(255,255,255,0.62); font-weight: 400; }

/* DEMO NOTES */
.demo-note { display: flex; align-items: flex-start; gap: 12px; border: 1.5px dashed #7C3AED; background: rgba(124, 58, 237, 0.06); border-radius: 10px; padding: 0.9rem 1.25rem; font-size: 13px; color: #5B21B6; line-height: 1.6; font-weight: 400; }
.demo-note-badge { flex-shrink: 0; background: #7C3AED; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-top: 2px; }
.demo-note-strip { padding: 1.25rem 3rem; background: var(--paper); }
.demo-note-strip.gray { background: var(--paper-alt); }

/* LOGO MARK (placeholder monogram — swap for real logo) */
.logo-mark {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff;
  letter-spacing: 0.01em; position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--water) 130%);
}
.ft-logo-mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px; color: #fff;
  letter-spacing: 0.01em;
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--water) 150%);
}

/* IMAGE PLACEHOLDER BLOCKS */
.img-ph {
  position: relative; border-radius: 14px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(18,132,159,0.05) 0 14px, rgba(18,132,159,0.09) 14px 28px),
    linear-gradient(160deg, var(--tint-navy), var(--tint-water));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px; color: var(--water-ink);
}
.img-ph .img-ph-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  color: var(--steel); letter-spacing: 0.02em;
}
.img-ph .img-ph-label .ic { font-size: 16px; color: var(--water-ink); }

/* ===================================================================
   POLISH PASS — motion, micro-interactions & new components
   =================================================================== */

/* --- MICRO-INTERACTIONS (enhance existing cards) --- */
.svc { position: relative; }
.svc::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--water), var(--navy));
  transform: scaleY(0); transform-origin: top; transition: transform 0.28s ease;
}
.svc:hover::after { transform: scaleY(1); }
.svc:hover .svc-icon { transform: translateY(-2px) scale(1.04); }
.svc-icon { transition: transform 0.25s ease; }
.svc-name .arrow { transition: transform 0.25s ease; }
.svc:hover .svc-name .arrow { transform: translateX(4px); }

.feature { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,49,79,0.10); border-color: #CFDCE7; }
.feature-icon { transition: transform 0.25s ease; }
.feature:hover .feature-icon { transform: scale(1.06); }

.benefit { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,49,79,0.08); border-color: #CFDCE7; }

.trust-item { transition: background 0.2s ease; }
.trust-item:hover { background: #FAFCFD; }
.trust-icon { transition: transform 0.25s ease; }
.trust-item:hover .trust-icon { transform: scale(1.07); }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
}
.btn-primary:hover::before { animation: sheen 0.7s ease; }
@keyframes sheen { to { left: 130%; } }

/* --- ENTRANCE / SCROLL-REVEAL (motion-safe) --- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-inner > .tag       { animation-delay: 0.05s; }
  .hero-inner > .h1        { animation-delay: 0.15s; }
  .hero-inner > .hero-p    { animation-delay: 0.28s; }
  .hero-inner > .btns      { animation-delay: 0.40s; }
  .hero-inner > .hero-badges { animation-delay: 0.52s; }
  .ph-inner > * { opacity: 0; animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) forwards; }
  .ph-inner > *:nth-child(2) { animation-delay: 0.12s; }
  .ph-inner > *:nth-child(3) { animation-delay: 0.24s; }

  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* --- ANIMATED HERO ATMOSPHERE (motion-safe) --- */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(30px); z-index: 1; pointer-events: none; }
.hero-orb.a { width: 340px; height: 340px; right: 8%; top: 14%; background: radial-gradient(circle, rgba(18,132,159,0.34), transparent 68%); }
.hero-orb.b { width: 260px; height: 260px; left: 6%; bottom: 8%; background: radial-gradient(circle, rgba(228,105,47,0.22), transparent 68%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-orb.a { animation: drift 16s ease-in-out infinite; }
  .hero-orb.b { animation: drift 20s ease-in-out infinite reverse; }
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-26px, 22px) scale(1.08); }
}

/* --- STICKY MOBILE CALL BAR (top mobile conversion element) --- */
.callbar { display: none; }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  padding: 15px; text-decoration: none; letter-spacing: 0.01em;
}
.callbar a .ic { font-size: 19px; }
.callbar .cb-sub { font-size: 11px; font-weight: 500; opacity: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }

/* --- HARD-WATER HARDNESS METER --- */
.hardness {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 2.25rem; max-width: 760px; margin-top: 2rem;
}
.hardness-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hardness-label { font-size: 13px; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
.hardness-val { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 24px; }
.hardness-val span { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.hardness-track { position: relative; height: 12px; border-radius: 100px; overflow: hidden;
  background: linear-gradient(90deg, #BFE6C9 0%, #F3E2A6 42%, #F2B98C 66%, #E4692F 100%); }
.hardness-track::before {
  content: ""; position: absolute; top: -6px; height: 24px; width: 3px; border-radius: 3px;
  left: 82%; background: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.9);
}
.hardness-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.hardness-note { margin-top: 1.1rem; font-size: 13.5px; color: var(--steel); line-height: 1.6; }
.hardness-note strong { color: var(--ink); }

/* --- REVIEWS / SOCIAL PROOF --- */
.reviews { padding: 4.25rem 3rem; background: var(--paper); border-top: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2rem; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem;
  display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,49,79,0.10); }
.stars { display: inline-flex; gap: 2px; margin-bottom: 0.9rem; color: #E8A93B; font-size: 15px; }
.review-text { font-size: 14px; color: var(--steel); line-height: 1.65; font-weight: 400; flex-grow: 1; }
.review-who { display: flex; align-items: center; gap: 11px; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.review-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(150deg, var(--navy), var(--water)); }
.review-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.review-loc { font-size: 12px; color: var(--muted); }
.reviews-rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 0.4rem; flex-wrap: wrap; }
.reviews-rating .big { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--navy); line-height: 1; }
.reviews-rating .rr-stars { color: #E8A93B; font-size: 18px; letter-spacing: 1px; }
.reviews-rating .rr-sub { font-size: 13px; color: var(--muted); }

/* --- MAINTENANCE PLAN CARDS --- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2rem; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.85rem 1.6rem;
  display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,49,79,0.10); }
.plan.featured { border-color: var(--navy); box-shadow: 0 20px 50px rgba(16,49,79,0.16); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px; white-space: nowrap; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.plan-price { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--navy); line-height: 1; margin: 0.6rem 0 0.2rem; }
.plan-price .per { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-price .demo-price { color: var(--water-ink); }
.plan-tag { font-size: 12.5px; color: var(--muted); margin-bottom: 1.15rem; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin: 0 0 1.4rem; }
.plan-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 13.5px; color: var(--steel); line-height: 1.5; }
.plan-list .ic { color: var(--water-ink); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.plan .btn-plan { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--navy); transition: all 0.2s ease; }
.plan .btn-plan:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.plan.featured .btn-plan { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan.featured .btn-plan:hover { background: var(--accent-600); border-color: var(--accent-600); }

/* --- FINANCING CALLOUT --- */
.finance { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-800));
  border-radius: 16px; padding: 2rem 2.25rem; margin-top: 2rem; position: relative; overflow: hidden; }
.finance::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,132,159,0.35), transparent 70%); pointer-events: none; }
.finance-icon { width: 54px; height: 54px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); position: relative; z-index: 1; }
.finance-body { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.finance-title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 4px; }
.finance-sub { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.6; }
.finance .btn-primary { position: relative; z-index: 1; flex-shrink: 0; }

/* --- BRAND STRIP --- */
.brands { padding: 2.5rem 3rem; background: var(--paper-alt); border-top: 1px solid var(--line); text-align: center; }
.brands-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.brands-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem 1.75rem; flex-wrap: wrap; }
.brand-chip { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--steel); letter-spacing: 0.01em;
  opacity: 0.72; transition: opacity 0.2s ease, color 0.2s ease; }
.brand-chip:hover { opacity: 1; color: var(--navy); }

/* --- SECTION CENTERING HELPER --- */
.sec-center { text-align: center; }
.sec-center .sec-intro { margin-left: auto; margin-right: auto; }

/* ===================================================================
   J&D "DUAL-TRACK, TWO-TONE" LAYOUT VARIANT
   Two-tone diagonal split hero + parallel HVAC/Water tracks.
   The two-business differentiator is the immediate visual story.
   =================================================================== */

/* --- TWO-TONE SPLIT HERO --- */
.split-hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 74px);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3rem;
}
/* the two diagonal halves (background layer) */
.sh-bg { position: absolute; inset: 0; z-index: 0; }
.sh-side { position: absolute; inset: 0; }
.sh-side.warm {
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
  background:
    radial-gradient(700px 500px at 18% 20%, rgba(242,161,90,0.35), transparent 62%),
    linear-gradient(155deg, #7A2F12 0%, #B84D1C 52%, #E4692F 120%);
}
.sh-side.cool {
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
  background:
    radial-gradient(700px 500px at 84% 22%, rgba(18,132,159,0.42), transparent 62%),
    linear-gradient(155deg, #0A2036 0%, #10314F 50%, #12849F 132%);
}
/* faint engineering grid over both halves */
.sh-side::after {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* the bright diagonal seam where the two businesses meet */
.sh-seam {
  position: absolute; z-index: 1; top: -12%; bottom: -12%; left: 50%;
  width: 3px; transform: translateX(-50%) rotate(10.2deg); transform-origin: center;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.85), rgba(255,255,255,0.55), transparent);
  box-shadow: 0 0 24px rgba(255,255,255,0.4); pointer-events: none;
}
/* corner labels — name each side of the business */
.sh-label { position: absolute; z-index: 2; color: #fff; max-width: 230px; }
.sh-label.warm { top: 2.2rem; left: 2.6rem; }
.sh-label.cool { bottom: 2.2rem; right: 2.6rem; text-align: right; }
.sh-label .sh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); margin-bottom: 6px;
}
.sh-label.cool .sh-eyebrow { flex-direction: row-reverse; }
.sh-label .sh-eyebrow .ic { font-size: 16px; }
.sh-label.warm .sh-eyebrow .ic { color: #F7C79A; }
.sh-label.cool .sh-eyebrow .ic { color: #8FCFE0; }
.sh-label .sh-side-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.sh-label .sh-side-sub { font-size: 12.5px; color: rgba(255,255,255,0.78); line-height: 1.5; margin-top: 5px; }

/* center content plate — the brand promise, bridging both sides */
.sh-content {
  position: relative; z-index: 3; max-width: 660px; text-align: center;
  background: rgba(9, 26, 43, 0.68);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 20px;
  padding: 2.5rem 2.75rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.sh-content .tag { margin-bottom: 1.25rem; }
.sh-content .h1 { font-size: 46px; margin-bottom: 1rem; }
.sh-content .hero-p { font-size: 16px; max-width: 520px; margin: 0 auto 1.75rem; color: rgba(255,255,255,0.9); }
.sh-content .btns { justify-content: center; }
.sh-content .hero-badges { justify-content: center; margin-top: 2rem; gap: 1.25rem 1.5rem; }

/* --- PARALLEL HVAC / WATER TRACKS --- */
.tracks {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.track { position: relative; padding: 3rem 2.5rem 2.75rem; }
.track.hvac  { background: linear-gradient(180deg, #FBF3EC 0%, var(--paper) 78%); border-right: 1px solid var(--line); }
.track.water { background: linear-gradient(180deg, #E9F5F8 0%, var(--paper) 78%); }
.track::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.track.hvac::before  { background: linear-gradient(90deg, var(--accent), #F2A15A); }
.track.water::before { background: linear-gradient(90deg, var(--water), #7FD3E6); }
.track-head { display: flex; align-items: center; gap: 0.95rem; margin-bottom: 0.4rem; }
.track-badge {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.track.hvac  .track-badge { background: #FBE3D2; color: var(--accent-600); }
.track.water .track-badge { background: var(--tint-water); color: var(--water-ink); }
.track-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.track.hvac  .track-kicker { color: var(--accent-600); }
.track.water .track-kicker { color: var(--water-ink); }
.track-title { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }
.track-intro { font-size: 14px; color: var(--steel); line-height: 1.65; margin: 0.75rem 0 1.4rem; }
.track-list { list-style: none; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.track-item { background: #fff; padding: 1.05rem 1.15rem; display: flex; gap: 0.9rem; align-items: flex-start; text-decoration: none; transition: background 0.15s; }
.track-item:hover { background: #FAFCFD; }
.track-ic { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.track.hvac  .track-ic { background: #FBE3D2; color: var(--accent-600); }
.track.water .track-ic { background: var(--tint-water); color: var(--water-ink); }
.track-item .ti-name { font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.track-item .ti-name .arrow { color: var(--accent); font-size: 14px; margin-left: auto; transition: transform 0.2s ease; }
.track.water .track-item .ti-name .arrow { color: var(--water-ink); }
.track-item:hover .ti-name .arrow { transform: translateX(4px); }
.track-item .ti-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.track-cta { margin-top: 1.35rem; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.track.hvac  .track-cta { color: var(--accent-600); }
.track.water .track-cta { color: var(--water-ink); }
.track-cta .ic { font-size: 15px; transition: transform 0.2s ease; }
.track-cta:hover .ic { transform: translateX(4px); }

/* --- PLANS SECTION ON HOME --- */
.plans-section { padding: 4.25rem 3rem; background: var(--paper); border-top: 1px solid var(--line); }

/* RESPONSIVE — split hero + tracks */
@media (max-width: 900px) {
  .split-hero { flex-direction: column; padding: 0 0 2.5rem; min-height: auto; }
  /* two-tone banner: horizontal diagonal, warm on top, cool below */
  .sh-bg { position: relative; height: 300px; width: 100%; }
  .sh-side.warm { clip-path: polygon(0 0, 100% 0, 100% 58%, 0 42%); }
  .sh-side.cool { clip-path: polygon(0 42%, 100% 58%, 100% 100%, 0 100%); }
  .sh-seam { top: 50%; bottom: auto; left: -12%; right: -12%; width: auto; height: 3px;
    transform: translateY(-50%) rotate(9deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent); }
  .sh-label { position: absolute; max-width: 60%; }
  .sh-label.warm { top: 1.4rem; left: 1.5rem; }
  .sh-label.cool { bottom: 1.4rem; right: 1.5rem; }
  .sh-label .sh-side-title { font-size: 18px; }
  .sh-content {
    max-width: none; margin: -1.75rem 1.25rem 0; border-radius: 16px;
    padding: 1.9rem 1.5rem; background: rgba(9,26,43,0.94);
  }
  .sh-content .h1 { font-size: 32px; }
  .tracks { grid-template-columns: 1fr; }
  .track.hvac { border-right: none; border-bottom: 1px solid var(--line); }
  .plans-section { padding: 3rem 1.5rem; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { gap: 0; }
  .nav-links li { display: none; }
  .nav-links li:last-child { display: block; }
  .hero { padding: 3.25rem 1.5rem; min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
  .h1 { font-size: 40px; }
  .request { padding: 3rem 1.5rem; }
  .request-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .triad { grid-template-columns: 1fr; }
  .triad-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .offer { border-right: none; border-bottom: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .services { padding: 3rem 1.5rem; }
  .about { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .benefits { padding: 3rem 1.5rem; }
  .page-hero { padding: 3.5rem 1.5rem; }
  .page-h1 { font-size: 34px; }
  .page-section { padding: 3rem 1.5rem; }
  .cta-strip { padding: 2.5rem 1.5rem; }
  .list-check { grid-template-columns: 1fr; }
  .demo-note-strip { padding: 1rem 1.5rem; }
  .ft-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 4px; text-align: center; }
  .reviews { padding: 3rem 1.5rem; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .brands { padding: 2rem 1.5rem; }
  .finance { padding: 1.75rem 1.5rem; }
  .hardness { padding: 1.5rem 1.5rem; }
  /* Sticky call bar appears on mobile; pad body so it never covers content */
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    box-shadow: 0 -6px 24px rgba(10,32,54,0.22); }
  body { padding-bottom: 60px; }
}
@media (max-width: 600px) {
  .review-grid { grid-template-columns: 1fr; }
  .finance { flex-direction: column; align-items: flex-start; }
  .finance .btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .nav { padding: 0 1rem; }
  .logo-sub { display: none; }
  .nav-cta { padding: 9px 14px; }
  .svc-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .benefit-grid { grid-template-columns: 1fr; }
  .h1 { font-size: 33px; }
  .btns { gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .request-h { font-size: 30px; }
  .cta-strip .btn-primary { width: 100%; justify-content: center; }
}
