/* =====================================================================
   PRIME PLUMBER ELIZABETH NJ — SHARED BRAND SYSTEM + MAIN-SITE PAGES
   Homepage, About, Contact, Legal, Sitemap, 404 + shared header/footer
   Design language derived from S.html / S.css (brand family), recoloured
   to the Prime Plumber logo palette (navy + bright blue) with a copper
   accent drawn from the supplied work photos.
   ===================================================================== */

:root {
    --navy-950: #050E24;
    --navy-900: #071330;
    --navy-800: #0B1D45;
    --navy-700: #13295A;
    --blue-700: #0D4DB8;
    --blue-600: #1462E1;
    --blue-500: #2F7BF0;
    --blue-100: #E6EFFD;
    --cyan-400: #2BB0EA;
    --copper-600: #A2551F;
    --copper-400: #E39A5C;
    --copper-100: #FBEFE5;
    --ink: #18202F;
    --ink-soft: #3A4559;
    --muted: #586379;
    --line: #DCE3EE;
    --line-strong: #C4CFDF;
    --paper: #F4F7FB;
    --paper-warm: #FAF7F2;
    --white: #FFFFFF;

    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    --container: 1200px;
    --container-narrow: 820px;
    --gutter: 24px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(7, 19, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(7, 19, 48, 0.09);
    --shadow-lg: 0 18px 48px rgba(7, 19, 48, 0.16);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-700); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy-900); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
p + p { margin-top: 1em; }
strong { font-weight: 700; color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Shared type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: .8rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--copper-600);
    margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--copper-400); }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }
.inline-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 13px 26px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
    border: 2px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
    text-align: center; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-copper { background: var(--copper-600); color: var(--white); }
.btn-copper:hover { background: #87461A; color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-900); }
.btn-ghost { border-color: var(--navy-900); color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* =====================================================================
   TOP BAR + HEADER + NAV
   ===================================================================== */
.top-bar { background: var(--navy-950); color: rgba(255,255,255,.78); font-size: .84rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: var(--white); }
.top-bar-item { display: inline-flex; align-items: center; gap: 8px; }
.top-bar-item svg { width: 13px; height: 13px; fill: var(--cyan-400); }
.top-bar-group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { width: 200px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-dropdown > button {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--navy-900);
}
.main-nav > a:hover, .nav-dropdown > button:hover { color: var(--blue-600); background: var(--blue-100); }
.main-nav a[aria-current="page"], .nav-dropdown > button.is-current { color: var(--blue-600); box-shadow: inset 0 -2px 0 var(--blue-600); border-radius: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown > button svg { width: 14px; height: 14px; fill: currentColor; transition: transform .2s var(--ease); }
.nav-dropdown > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px;
    background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue-600);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease);
}
.nav-dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) and (min-width: 1025px) {
    .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: .96rem; }
.dropdown-menu a:hover { background: var(--paper); color: var(--blue-600); }
.dropdown-menu a[aria-current="page"] { color: var(--blue-600); background: var(--blue-100); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; fill: var(--blue-600); }
.header-cta .btn { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

.mobile-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); }
.mobile-nav-head, .mobile-nav-foot { display: none; }
.nav-overlay { display: none; }

@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 1024px) {
    :root { --header-h: 68px; }
    .site-logo img { width: 170px; }
    .mobile-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1100;
        flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px;
        background: var(--white); box-shadow: var(--shadow-lg); overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    }
    .main-nav.is-open { transform: translateX(0); visibility: visible; }
    .mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
    .mobile-nav-head img { width: 150px; }
    .mobile-nav-close { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--navy-900); border-radius: var(--radius-sm); }
    .main-nav > a, .nav-dropdown > button { width: 100%; justify-content: space-between; padding: 15px 22px; border-radius: 0; border-bottom: 1px solid var(--line); }
    .main-nav a[aria-current="page"], .nav-dropdown > button.is-current { box-shadow: inset 3px 0 0 var(--blue-600); }
    .dropdown-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px; display: none; background: var(--paper); }
    .nav-dropdown.is-open .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 12px 22px 12px 36px; border-radius: 0; }
    .mobile-nav-foot { display: grid; gap: 10px; padding: 22px; }
    .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(5,14,36,.55); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .nav-overlay.is-open { opacity: 1; visibility: visible; }
    body.nav-locked { overflow: hidden; }
}
@media (max-width: 640px) { .top-bar .top-bar-group:last-child { display: none; } .top-bar .container { justify-content: center; } }

/* =====================================================================
   HOMEPAGE
   ===================================================================== */
/* ---- Hero ---- */
.home-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.home-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
}
.home-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 88px; }
.home-hero .eyebrow { color: var(--copper-400); }
.home-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.05; margin-bottom: 22px; }
.home-hero h1 .accent { color: var(--cyan-400); display: block; }
.home-hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.home-hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; justify-content: start; }
.home-hero-facts div { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.14); }
.home-hero-facts div:last-child { border-right: 0; margin-right: 0; }
.home-hero-facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.home-hero-facts dd { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--white); margin-top: 4px; }
.home-hero-facts dd a { color: var(--white); }
.home-hero-media { position: relative; }
.home-hero-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--copper-400); border-radius: var(--radius); opacity: .7; }
.home-hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 60% center; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.home-hero-caption { position: absolute; left: -18px; bottom: 26px; background: var(--white); color: var(--navy-900); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: .88rem; font-weight: 600; max-width: 250px; border-left: 4px solid var(--blue-600); }

/* ---- Symptom router strip ---- */
.symptom-router { background: var(--white); border-bottom: 1px solid var(--line); }
.symptom-router .container { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.symptom-router p { font-family: var(--font-heading); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.symptom-router ul { display: flex; flex-wrap: wrap; gap: 10px; }
.symptom-router a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 40px; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.symptom-router a:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-100); }

/* ---- Section rhythm ---- */
.home-section { padding: 96px 0; }
.home-section--paper { background: var(--paper); }
.home-section--warm { background: var(--paper-warm); }
.home-section--navy { background: var(--navy-900); color: rgba(255,255,255,.82); }
.home-section--navy h2, .home-section--navy h3 { color: var(--white); }
.home-section--navy .section-intro { color: rgba(255,255,255,.72); }
.section-head { margin-bottom: 52px; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }

/* ---- Services index (homepage only) ---- */
.service-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service-index-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.service-index-item:nth-child(odd) { border-right: 1px solid var(--line); }
.service-index-item:nth-child(even) { padding-left: 32px; padding-right: 0; }
.service-index-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--copper-600); }
.service-index-item h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-index-item h3 a { color: var(--navy-900); }
.service-index-item h3 a:hover { color: var(--blue-600); }
.service-index-item p { color: var(--muted); font-size: 1rem; }
.service-index-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-family: var(--font-heading); }
.service-index-link::after { content: '→'; transition: transform .2s var(--ease); }
.service-index-link:hover::after { transform: translateX(4px); }

/* ---- Problems (report checklist columns) ---- */
.problem-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.problem-col { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue-600); padding: 30px 28px; border-radius: 0 0 var(--radius) var(--radius); }
.problem-col h3 { font-size: 1.25rem; margin-bottom: 12px; }
.problem-col > p { color: var(--ink-soft); font-size: .99rem; }
.report-list { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.report-list-title { font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 10px; }
.report-list li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--ink-soft); margin-bottom: 8px; }
.report-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 2px solid var(--blue-600); border-radius: 2px; }

/* ---- Assessment pipeline ---- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.pipeline::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 4px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); border-radius: 4px; }
.pipeline-step { position: relative; }
.pipeline-node { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: var(--navy-900); border: 4px solid var(--cyan-400); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--white); margin-bottom: 22px; }
.pipeline-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pipeline-step p { font-size: .98rem; color: rgba(255,255,255,.76); }

/* ---- System overview ---- */
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.system-col { padding: 34px 30px; }
.system-col + .system-col { border-left: 1px solid var(--line); }
.system-tag { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--navy-800); padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.system-col:nth-child(2) .system-tag { background: var(--blue-600); }
.system-col:nth-child(3) .system-tag { background: var(--copper-600); }
.system-col h3 { font-size: 1.25rem; margin-bottom: 10px; }
.system-col p:not(.system-tag) { color: var(--ink-soft); font-size: .99rem; }

/* ---- Repair vs replacement ---- */
.decision-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.decision-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.decision-table { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.decision-row { display: grid; grid-template-columns: 1fr 1fr; }
.decision-row + .decision-row { border-top: 1px solid var(--line); }
.decision-row > div { padding: 16px 20px; font-size: .97rem; color: var(--ink-soft); }
.decision-row > div + div { border-left: 1px solid var(--line); }
.decision-row--head > div { background: var(--navy-900); color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.decision-note { margin-top: 22px; }

/* ---- Cost factors ---- */
.factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.factor { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factor:nth-child(3n) { border-right: 0; }
.factor:nth-last-child(-n+3) { border-bottom: 0; }
.factor-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--blue-100); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.factor-icon svg { width: 22px; height: 22px; fill: var(--blue-600); }
.factor h3 { font-size: 1.1rem; margin-bottom: 8px; }
.factor p { font-size: .96rem; color: var(--muted); }
.cost-note { margin-top: 24px; font-size: .95rem; color: var(--muted); padding-left: 16px; border-left: 3px solid var(--copper-600); }

/* ---- Local considerations ---- */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.local-media { position: sticky; top: calc(var(--header-h) + 24px); }
.local-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.local-media figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.local-points { margin-top: 26px; display: grid; gap: 20px; }
.local-point { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.local-point-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--copper-100); color: var(--copper-600); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; }
.local-point h3 { font-size: 1.12rem; margin-bottom: 6px; }
.local-point p { font-size: .98rem; color: var(--ink-soft); }

/* ---- Areas ---- */
.areas-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area-chips li { padding: 9px 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 40px; font-weight: 600; font-size: .95rem; color: var(--navy-900); }
.areas-card { background: var(--navy-900); color: rgba(255,255,255,.82); padding: 34px; border-radius: var(--radius); }
.areas-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.areas-card address { font-style: normal; margin: 16px 0; color: var(--white); }
.areas-card a { color: var(--cyan-400); font-weight: 600; }

/* ---- FAQ (homepage) ---- */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: start; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 22px; font-family: var(--font-heading); font-weight: 700; font-size: 1.07rem; color: var(--navy-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; background: var(--blue-600); color: var(--white); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: .99rem; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper); margin: 0; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item button { display: block; width: 100%; height: 100%; padding: 0; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(5,14,36,.85)); color: var(--white); font-size: .86rem; font-weight: 600; text-align: left; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .gallery-item button:hover img { transform: scale(1.04); } }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5,14,36,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--white); margin-top: 12px; text-align: center; font-size: .95rem; }
.lightbox-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---- Closing CTA (homepage + main pages) ---- */
.closing-cta { background: linear-gradient(120deg, var(--blue-700), var(--blue-600) 55%, #1C74EA); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.closing-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid rgba(255,255,255,.06); border-radius: 50%; }
.closing-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.closing-cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.closing-cta p { color: rgba(255,255,255,.88); max-width: 620px; }
.closing-cta-actions { display: grid; gap: 12px; }
.closing-cta .btn-white { background: var(--white); color: var(--navy-900); }
.closing-cta .btn-white:hover { background: var(--navy-900); color: var(--white); }
.closing-cta-mail { color: var(--white); font-weight: 600; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.closing-cta-mail:hover { color: var(--white); opacity: .85; }

/* =====================================================================
   INNER PAGE HEADER (About, Contact, Legal, Sitemap)
   ===================================================================== */
.page-banner { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs [aria-current] { color: var(--navy-900); font-weight: 600; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-banner p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }

/* =====================================================================
   ABOUT — editorial layout
   ===================================================================== */
.about-hero { padding: 72px 0 40px; }
.about-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.about-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; }
.about-hero-lead { font-size: 1.2rem; color: var(--ink-soft); border-left: 4px solid var(--copper-600); padding-left: 22px; }
.about-feature { margin: 24px 0 0; }
.about-feature img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 60%; border-radius: var(--radius); }
.about-feature figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.about-body { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 72px 0 88px; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.about-aside nav p { font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 12px; }
.about-aside nav a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.about-aside nav a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.about-article { max-width: 760px; }
.about-article > section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.about-article h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 18px; }
.about-article h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.about-article p { color: var(--ink-soft); }
.about-article .dropcap::first-letter { float: left; font-family: var(--font-heading); font-weight: 800; font-size: 4.2rem; line-height: .85; padding: 6px 12px 0 0; color: var(--blue-600); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.principle { padding: 22px; background: var(--paper); border-radius: var(--radius); }
.principle h3 { margin: 0 0 6px; font-size: 1.08rem; }
.principle p { font-size: .96rem; }
.about-inline-figure { margin: 28px 0; display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.about-inline-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about-inline-figure figcaption { font-size: .95rem; color: var(--muted); }
.fact-sheet { border: 1px solid var(--line); border-radius: var(--radius); }
.fact-sheet div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 20px; }
.fact-sheet div + div { border-top: 1px solid var(--line); }
.fact-sheet dt { font-weight: 700; color: var(--navy-900); }
.fact-sheet dd { color: var(--ink-soft); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-wrap { padding: 64px 0 96px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-panel { background: var(--navy-900); color: rgba(255,255,255,.8); border-radius: var(--radius); overflow: hidden; }
.contact-panel-body { padding: 34px; }
.contact-panel h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; }
.contact-call { display: flex; align-items: center; gap: 14px; margin: 22px 0; padding: 18px; background: var(--blue-600); color: var(--white); border-radius: var(--radius); font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; }
.contact-call:hover { background: var(--blue-700); color: var(--white); }
.contact-call svg { width: 26px; height: 26px; fill: currentColor; }
.contact-call small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.contact-details { display: grid; gap: 0; }
.contact-details div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-details dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact-details dd { color: var(--white); font-weight: 600; }
.contact-details a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.contact-details a:hover { color: var(--cyan-400); }
.contact-details address { font-style: normal; }
.helpful-title { margin-top: 64px; }
.contact-panel-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.contact-form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.contact-form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .93rem; color: var(--navy-900); }
.form-field .req { color: var(--copper-600); }
.form-field input, .form-field select, .form-field textarea {
    font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(20,98,225,.18); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #B42318; }
.field-hint { font-size: .85rem; color: var(--muted); }
.field-error { font-size: .85rem; color: #B42318; font-weight: 600; min-height: 0; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #E7F6EC; color: #14532D; }
.form-status--err { background: #FDECEA; color: #8A1C12; }
.form-privacy { font-size: .86rem; color: var(--muted); margin-top: 14px; }
.helpful-details { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.helpful-details li { padding: 22px; border-radius: var(--radius); background: var(--paper); }
.helpful-details h3 { font-size: 1.05rem; margin-bottom: 6px; }
.helpful-details p { font-size: .95rem; color: var(--muted); }

/* =====================================================================
   LEGAL DOCUMENTS
   ===================================================================== */
.legal-wrap { padding: 56px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 1fr 260px; gap: 64px; align-items: start; }
.legal-doc { max-width: 760px; }
.legal-meta { font-size: .92rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-doc h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 8px; }
.legal-doc h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: 1.01rem; }
.legal-doc ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal-doc li + li { margin-top: 6px; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.legal-toc p { font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 10px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; }
.legal-toc li { font-size: .92rem; margin: 6px 0; color: var(--muted); }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--blue-600); }
.legal-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.legal-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* =====================================================================
   SITEMAP
   ===================================================================== */
.sitemap-wrap { padding: 56px 0 96px; }
.sitemap-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.sitemap-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.sitemap-group h2 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-600); }
.sitemap-group li { border-bottom: 1px solid var(--line); }
.sitemap-group li:last-child { border-bottom: 0; }
.sitemap-group a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: var(--navy-900); font-weight: 600; }
.sitemap-group a::after { content: '→'; color: var(--blue-600); }
.sitemap-group a:hover { color: var(--blue-600); }
.sitemap-group span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.sitemap-foot { margin-top: 36px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 22px; background: var(--paper); border-radius: var(--radius); }
.sitemap-foot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.sitemap-foot p { color: var(--ink-soft); }

/* =====================================================================
   404
   ===================================================================== */
.error-wrap { padding: 80px 0 100px; }
.error-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.error-code { font-family: var(--font-heading); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--blue-600); letter-spacing: -0.04em; }
.error-code span { color: var(--copper-600); }
.error-grid h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 18px 0 14px; }
.error-grid p { color: var(--ink-soft); max-width: 540px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.error-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.error-links a { font-weight: 600; }
.error-photo img { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-left: auto; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding-top: 64px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; background: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.footer-logo img { width: 180px; }
.footer-heading { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; font-weight: 700; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--cyan-400); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-bottom: 12px; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--cyan-400); margin-top: 5px; }
.footer-contact a { color: rgba(255,255,255,.88); }
.footer-contact a:hover { color: var(--cyan-400); }
.footer-contact address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px; }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom-links a { color: rgba(255,255,255,.7); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-disclaimer { margin-top: 16px; font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.55); }

/* =====================================================================
   BACK TO TOP + MOBILE CALL BAR
   ===================================================================== */
.back-to-top {
    position: fixed; right: 20px; bottom: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy-900); color: var(--white); border: 2px solid var(--cyan-400); box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .2s;
}
.back-to-top svg { width: 22px; height: 22px; fill: currentColor; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-600); }
.back-to-top:focus-visible { outline: 3px solid var(--copper-400); outline-offset: 3px; }

.mobile-callbar { display: none; }
@media (max-width: 1024px) {
    .mobile-callbar { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--navy-950); box-shadow: 0 -8px 24px rgba(5,14,36,.25); }
    .mobile-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 700; font-size: .98rem; }
    .mobile-callbar svg { width: 17px; height: 17px; fill: currentColor; }
    .mobile-callbar .callbar-call { background: var(--blue-600); color: var(--white); }
    .mobile-callbar .callbar-request { background: var(--white); color: var(--navy-900); }
    body { padding-bottom: 72px; }
    .back-to-top { bottom: 88px; right: 14px; }
}

/* =====================================================================
   RESPONSIVE — main-site pages
   ===================================================================== */
@media (max-width: 1024px) {
    .home-section { padding: 76px 0; }
    .home-hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 72px; }
    .home-hero-media { max-width: 640px; }
    .section-head--split { grid-template-columns: 1fr; gap: 12px; }
    .problem-cols { grid-template-columns: 1fr; }
    .system-grid { grid-template-columns: 1fr; }
    .system-col + .system-col { border-left: 0; border-top: 1px solid var(--line); }
    .pipeline { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .pipeline::before { display: none; }
    .decision-grid, .local-grid, .areas-wrap, .closing-cta-grid { grid-template-columns: 1fr; gap: 36px; }
    .local-media { position: static; max-width: 520px; }
    .factor-grid { grid-template-columns: 1fr 1fr; }
    .factor:nth-child(3n) { border-right: 1px solid var(--line); }
    .factor:nth-child(2n) { border-right: 0; }
    .factor:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .factor:nth-last-child(-n+2) { border-bottom: 0; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-hero-grid, .contact-grid, .error-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-body { grid-template-columns: 1fr; gap: 32px; }
    .about-aside { position: static; }
    .about-aside nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
    .about-aside nav p { width: 100%; }
    .about-aside nav a { border-left: 0; padding: 4px 0; }
    .legal-grid { grid-template-columns: 1fr; gap: 32px; }
    .legal-aside { position: static; grid-template-columns: 1fr 200px; order: -1; }
    .sitemap-grid { grid-template-columns: 1fr 1fr; }
    .helpful-details { grid-template-columns: 1fr; }
    .error-photo img { margin-left: 0; }
}
@media (max-width: 760px) {
    body { font-size: 1rem; }
    .home-section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
    .symptom-router .container { grid-template-columns: 1fr; gap: 12px; }
    .home-hero-facts { grid-template-columns: 1fr; gap: 14px; }
    .home-hero-facts div { border-right: 0; margin-right: 0; padding-right: 0; }
    .home-hero-media::before { inset: 14px -10px -14px 14px; }
    .home-hero-caption { position: static; margin-top: 12px; max-width: none; }
    .service-index { grid-template-columns: 1fr; }
    .service-index-item, .service-index-item:nth-child(even) { padding: 26px 0; border-right: 0; grid-template-columns: 48px 1fr; gap: 14px; }
    .service-index-num { font-size: 1.6rem; }
    .pipeline { grid-template-columns: 1fr; }
    .decision-row { grid-template-columns: 1fr; }
    .decision-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .decision-row--head { display: none; }
    .decision-row > div::before { content: attr(data-label); display: block; font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 4px; }
    .factor-grid { grid-template-columns: 1fr; }
    .factor, .factor:nth-child(3n), .factor:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .factor:last-child { border-bottom: 0; }
    .faq-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
    .gallery-item--wide { grid-column: span 2; }
    .gallery-item--tall { grid-row: span 1; }
    .closing-cta { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-row { flex-direction: column; align-items: flex-start; }
    .principles { grid-template-columns: 1fr; }
    .about-inline-figure { grid-template-columns: 1fr; }
    .fact-sheet div { grid-template-columns: 1fr; gap: 2px; }
    .contact-form-card { padding: 26px 20px; }
    .contact-panel-body { padding: 26px 22px; }
    .contact-call { font-size: 1.3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .legal-aside { grid-template-columns: 1fr; }
    .legal-photo { max-width: 260px; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .sitemap-foot { grid-template-columns: 1fr; }
    .sitemap-foot img { max-width: 220px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 400px) {
    :root { --gutter: 18px; }
    .site-logo img { width: 150px; }
    .btn { padding: 12px 18px; }
    .home-hero-actions .btn { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery-item--wide { grid-column: span 1; }
}

@media print {
    .top-bar, .site-header, .mobile-callbar, .back-to-top, .closing-cta, .site-footer, .lightbox { display: none !important; }
    body { padding: 0; color: #000; }
}

