/* ==========================================================================
   CEDS Estimating — style.css
   Design system: tokens, layout, components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Royal blue single colour + yellow accent scheme */
    --primary: #0F52BA;
    --primary-600: #1B61C9;
    --primary-700: #0C47A0;
    --primary-800: #0A3C88;
    --primary-rgb: 15, 82, 186;

    --accent: #FFC107;
    --accent-dark: #E6A800;
    --accent-rgb: 255, 193, 7;
    --on-accent: #0B1F33;

    --dark: #0B1F33;
    --dark-2: #10283f;
    --ink: #16283a;
    --muted: #5f7183;
    --light: #F5F8FC;
    --light-2: #eef3fa;
    --white: #ffffff;
    --line: #dfe8f2;
    --line-soft: #eaf0f7;

    --blueprint: rgba(var(--primary-rgb), 0.06);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 9px;

    --shadow-sm: 0 2px 8px rgba(11, 31, 51, .07);
    --shadow-md: 0 10px 30px rgba(11, 31, 51, .10);
    --shadow-lg: 0 24px 60px rgba(11, 31, 51, .16);
    --shadow-accent: 0 12px 26px rgba(var(--accent-rgb), .35);

    --font: "Roboto Condensed", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
    --gutter: clamp(18px, 4vw, 36px);
    --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
p { margin: 0 0 14px; }
h1, h2, h3, h4, h5 {
    margin: 0 0 12px;
    color: var(--dark);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
fieldset { border: 0; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }
abbr[title] { text-decoration: none; }

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--primary); color: #fff; padding: 10px 16px;
    border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.section, .section-light, .section-dark, .upload-section { padding: 80px 0; }
.section-tight { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark {
    background: var(--dark);
    color: #c7d4e2;
    position: relative;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
    padding: 7px 14px; border-radius: 999px;
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section-dark .eyebrow { color: #9fc2ec; background: rgba(255, 255, 255, .08); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: #a7b9ca; }

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Icons ---------- */
.ico {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-weight: 700; font-size: .9rem; letter-spacing: .01em;
    padding: 9px 18px; border-radius: 8px; border: 2px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
    text-align: center; white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--on-accent); box-shadow: 0 16px 30px rgba(var(--accent-rgb), .42); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-700); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }

.btn-light { background: #fff; color: var(--dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--light-2); }

.btn-ghost { border-color: transparent; color: var(--primary); background: rgba(var(--primary-rgb),.08); }
.btn-ghost:hover { background: rgba(var(--primary-rgb),.16); }

.btn-lg { padding: 11px 22px; font-size: .95rem; border-radius: 9px; }
.btn-sm { padding: 7px 14px; font-size: .84rem; border-radius: 7px; }
.btn-block { width: 100%; }

.btn-phone { background: rgba(var(--primary-rgb), .08); color: var(--primary); border-color: transparent; }
.btn-phone:hover { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: relative; /* not sticky */
    z-index: 900;
    background: #fff;
    box-shadow: 0 2px 14px rgba(11, 31, 51, .06);
}
.site-header.is-scrolled .header-main { background: #fff; }
@media (min-width: 1101px) {
    .site-header.is-scrolled .header-main { box-shadow: 0 8px 24px rgba(11,31,51,.08); }
    .site-header.is-scrolled .header-main { padding: 8px 0; }
}

.topbar { background: var(--primary); color: #e6edf7; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; gap: 26px; padding: 7px 0; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #dbe6f5; }
a.topbar-item:hover { color: #fff; }
.auth-top { margin-left: auto; display: inline-flex; align-items: center; gap: 18px; }
.auth-top a { color: #fff; }
@media (max-width: 900px) { .topbar-hide { display: none; } }

.header-main { background: rgba(255,255,255,.96); transition: padding .2s ease; }
@media (min-width: 1101px) { .header-main { backdrop-filter: blur(6px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 1.28rem; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.logo-accent { color: var(--primary); }
.logo-sub { font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: #9db4cc; }

.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
    display: block; padding: 8px 12px; font-size: .93rem; font-weight: 600;
    color: var(--ink); border-radius: 8px; transition: color .15s, background .15s;
}
.nav-list a:hover { color: var(--primary); background: var(--light-2); }
.nav-list a[aria-current="page"] { color: var(--primary); }
.nav-ctas { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* ---------- Nav dropdowns (Services / Our Trades) ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0; padding: 8px 12px;
    font-size: .93rem; font-weight: 600; color: var(--ink); border-radius: 8px;
    font-family: inherit; cursor: pointer;
    transition: color .15s, background .15s;
}
.nav-drop-btn:hover { color: var(--primary); background: var(--light-2); }
.nav-drop-btn .caret { transition: transform .18s ease; color: var(--muted); }
.nav-drop:hover .nav-drop-btn { color: var(--primary); background: var(--light-2); }
.nav-drop:hover .caret, .nav-drop.open .caret { transform: rotate(180deg); }

.nav-drop-menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 14px;
    display: grid; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.nav-drop-menu .nd-head {
    font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); padding: 6px 10px 4px;
}
.nav-drop-menu .nd-head:not(:first-child) { margin-top: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.nav-drop-menu a {
    display: flex; align-items: center; gap: 9px;
    font-size: .88rem; font-weight: 600; color: var(--ink);
    border-radius: 8px; padding: 8px 10px;
    text-decoration: none;
}
.nav-drop-menu a svg { color: var(--primary); flex: none; }
.nav-drop-menu a:hover { color: var(--primary); background: var(--light-2); }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-menu::before {
    content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-drop.wide .nav-drop-menu { min-width: 640px; max-width: 86vw; grid-template-columns: auto auto auto; gap: 0 22px; }
.nav-drop.wide .nav-drop-menu a { white-space: nowrap; }
.nav-drop.wide .nav-drop-menu .nd-col { display: flex; flex-direction: column; }

@media (max-width: 1100px) {
    .nav-drop-menu {
        position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; background: var(--light); border-radius: 12px;
        padding: 6px; margin: 4px 0 10px;
        display: none;
    }
    .nav-drop.open .nav-drop-menu { display: grid; }
    .nav-drop.wide .nav-drop-menu { grid-template-columns: 1fr; min-width: 0; }
    .nav-drop.wide.open .nav-drop-menu { display: grid; }
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-drop-btn { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1.02rem; }
    .nav-drop-menu .nd-head { padding-left: 10px; }
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: var(--light-2); flex-direction: column; align-items: center;
    justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 21px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

html.no-scroll { overflow: hidden; }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; position: relative; z-index: 1001; }
    .site-nav {
        position: fixed; inset: 0; z-index: 950;
        width: 100%;
        transform: translateY(-100%);
        background: #fff;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 116px var(--gutter) 56px; gap: 0;
        transition: transform .32s ease;
        overflow-y: auto;
    }
    .site-nav.open { transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: min(100%, 560px); margin: 0 auto; }
    .nav-list a { font-size: 1.15rem; padding: 14px 16px; }
    .nav-list a[aria-current="page"] { background: var(--light-2); }
    .nav-ctas { flex-direction: column; margin: 24px auto 0; gap: 12px; width: min(100%, 560px); }
    .nav-ctas .btn { width: 100%; }
    .nav-drop { width: 100%; }
    .nav-drop-menu { max-height: 52vh; overflow-y: auto; }
}
@media (min-width: 1101px) { .nav-ctas .btn-phone { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--light);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(560px 360px at 88% 6%, rgba(var(--primary-rgb),.08), transparent 70%),
                radial-gradient(460px 300px at 4% 96%, rgba(var(--accent-rgb),.05), transparent 70%);
}
.hero-inner {
    position: relative; display: grid; gap: 56px;
    grid-template-columns: 1.05fr .95fr; align-items: center;
    padding: clamp(56px, 7vw, 104px) var(--gutter);
}
.hero h1, .hero h2.slide-h { margin-bottom: 20px; }
.hero h2.slide-h { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; color: var(--dark); text-wrap: balance; margin: 0 0 20px; }
.hero h1 .hl, .hero h2.slide-h .hl { color: var(--primary); }
.hero .hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 620px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; }
.trust-chips span {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .84rem; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 14px; box-shadow: var(--shadow-sm);
}
.trust-chips svg { color: var(--primary); }
.hero-note { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

/* Hero visual (minimal) */
.hero-visual { position: relative; }
.hero-frame {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md);
    border: 1px solid var(--line); background: #eef3f8;
}
.hero-frame img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; display: block; }
.hero-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 80%, rgba(11,31,51,.22));
    pointer-events: none;
}

/* ---------- Hero Slider (minimal) ---------- */
.hero-slider { position: relative; z-index: 1; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: heroSlideIn .5s ease; }
@keyframes heroSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-slider-dots {
    position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5;
    display: flex; justify-content: center; align-items: center; gap: 9px;
}
.hero-slider-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(var(--primary-rgb), .28); cursor: pointer;
    transition: width .22s ease, background .22s ease;
}
.hero-slider-dots button:hover { background: rgba(var(--primary-rgb), .5); }
.hero-slider-dots button.is-active { width: 26px; background: var(--primary); }

.hero-slider-progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(var(--primary-rgb), .12); z-index: 5;
}
.hero-slider-progress i {
    display: block; width: 100%; height: 100%; background: var(--primary);
    transform: scaleX(0); transform-origin: left center;
}
.hero-slider-progress i.run { animation: heroProgress 6.5s linear forwards; }
.hero:hover .hero-slider-progress i.run, .hero:focus-within .hero-slider-progress i.run { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .hero-slider-dots { bottom: 14px; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--dark); margin-bottom: 7px; }
.field label abbr { color: var(--accent); }
.field input, .field select, .field textarea {
    width: 100%; background: #fff; border: 1.5px solid var(--line);
    border-radius: 11px; padding: 12px 14px; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.12);
}
.field .error-hint { display: none; color: var(--accent-dark); font-size: .8rem; margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field.has-error .error-hint { display: block; }
.field textarea { min-height: 118px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .grid-2 { grid-template-columns: 1fr; } }

.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-note svg { vertical-align: -2px; }

.card-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(22px, 3vw, 34px);
}
.quote-form-wrap {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(22px, 3vw, 34px);
}
.quote-form-wrap h3 { margin-bottom: 6px; }
.quote-form-wrap .qsub { color: var(--muted); margin-bottom: 22px; font-size: .96rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; color: var(--ink); }
.check-list svg { color: var(--primary); margin-top: 4px; }

.visual-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--dark); box-shadow: var(--shadow-lg);
}
.visual-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.visual-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 6px rgba(255,255,255,.14); pointer-events: none; }
.visual-tag {
    position: absolute; top: 16px; left: 16px;
    background: rgba(11,31,51,.82); color: #fff; font-size: .74rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.service-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
    background: var(--primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d2e0f0; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .sc-ico {
    width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
    display: grid; place-items: center;
    background: rgba(var(--primary-rgb),.09); color: var(--primary);
}
.service-card .sc-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: var(--muted); flex-grow: 1; margin-bottom: 14px; }
.service-card .learn-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; font-weight: 700; color: var(--primary);
}
.service-card .learn-more svg { transition: transform .15s ease; }
.service-card:hover .learn-more svg { transform: translateX(4px); }

/* ---------- Why CEDS ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius); padding: 28px 24px;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.why-card .wc-ico { color: #9fc2ec; margin-bottom: 16px; }
.why-card .wc-ico svg { width: 30px; height: 30px; }
.why-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: #a7b9ca; font-size: .92rem; margin: 0; }

/* why-card light-context variant (used inside .section-light) */
.section-light .why-card, .why-card.light {
    background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm);
}
.section-light .why-card:hover, .why-card.light:hover { background: #fff; border-color: rgba(var(--primary-rgb),.35); box-shadow: var(--shadow-md); }
.section-light .why-card .wc-ico, .why-card.light .wc-ico { color: var(--primary); }
.section-light .why-card h3, .why-card.light h3 { color: var(--dark); }
.section-light .why-card p, .why-card.light p { color: var(--muted); }

/* ---------- Who we serve ---------- */
.who-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .who-layout { grid-template-columns: 1fr; } }

.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .who-grid { grid-template-columns: 1fr; } }

.who-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    padding: 14px 16px; font-size: .92rem; font-weight: 700; color: var(--ink);
    text-align: left; transition: border-color .15s, background .15s, transform .15s;
}
.who-card svg { color: var(--primary); }
.who-card:hover, .who-card.active { border-color: var(--primary); background: var(--light); transform: translateY(-2px); }
.who-card.active { background: var(--primary); color: #fff; }
.who-card.active svg { color: #fff; }

.who-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 36px);
    min-height: 300px;
}
.who-panel .wp-eyebrow {
    font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}
.who-panel h3 { font-size: 1.45rem; margin-bottom: 12px; }
.who-panel p { color: var(--muted); }
.who-panel .wp-list { margin-top: 18px; }
.who-panel .wp-list li { display: flex; gap: 9px; align-items: center; font-size: .9rem; margin-bottom: 9px; color: var(--ink); }
.who-panel .wp-list svg { color: var(--primary); }
.who-panel .wp-cta { margin-top: 22px; }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.steps-track {
    display: none; position: absolute; top: 34px; left: 8%; right: 8%;
    height: 2px; background: var(--line); overflow: hidden;
}
.steps-track::after {
    content: ""; display: block; height: 100%; width: 40%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: trackMove 3.2s ease-in-out infinite;
}
@keyframes trackMove { 0%,100% { transform: translateX(-60%);} 50% { transform: translateX(220%);} }
@media (min-width: 981px) { .steps-track { display: block; } }

.step { position: relative; text-align: center; padding: 0 6px; }
.step .step-num {
    width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--line);
    display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 1.15rem;
    box-shadow: var(--shadow-sm); position: relative; z-index: 2;
    transition: background .2s, color .2s, border-color .2s;
}
.step:hover .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Project types ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pt-grid { grid-template-columns: 1fr; } }

.pt-card {
    border-radius: var(--radius); overflow: hidden; position: relative;
    background-color: var(--dark-2);
    background-repeat: no-repeat; background-position: center; background-size: cover;
    min-height: 168px;
    display: flex; align-items: flex-end;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.pt-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,31,51,.14) 0%, rgba(11,31,51,.14) 38%, rgba(11,31,51,.84) 100%);
}
.pt-card span { position: relative; z-index: 2; width: 100%; padding: 52px 16px 16px; color: #fff; font-weight: 700; font-size: .95rem; }
.pt-card .pt-ico { position: absolute; top: 14px; left: 16px; z-index: 2; color: rgba(255,255,255,.9); }
.pt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pt-card.pt-accent::before { background: linear-gradient(180deg, rgba(122,15,20,.14) 0%, rgba(122,15,20,.14) 38%, rgba(122,15,20,.84) 100%); }

/* ---------- Areas we serve ---------- */
.usa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 46px; }
@media (max-width: 900px) { .usa-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .usa-stats { grid-template-columns: 1fr; } }

.usa-stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    border-top: 3px solid var(--primary);
    padding: 24px 22px 20px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.usa-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usa-stat strong {
    display: block; font-family: 'Roboto Condensed', system-ui, sans-serif;
    font-size: 2.3rem; line-height: 1; color: var(--dark);
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.usa-stat span { display: block; margin-top: 8px; font-weight: 800; color: var(--ink); font-size: .92rem; }
.usa-stat em { display: block; margin-top: 4px; font-style: normal; font-size: .78rem; color: var(--muted); }

.as-regions { max-width: 900px; margin: 0 auto; }
.as-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.as-tab {
    border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
    padding: 10px 22px; font-weight: 700; font-size: .92rem; color: var(--ink);
    transition: all .15s ease;
}
.as-tab:hover { border-color: var(--primary); color: var(--primary); }
.as-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-md); }

.as-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 36px);
}
.as-panel[hidden] { display: none; }
.as-eyebrow {
    font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}
.as-panel h3 { font-size: 1.45rem; margin-bottom: 12px; }
.as-intro { color: var(--muted); margin-bottom: 18px; }
.as-states {
    list-style: none; padding: 0; margin: 0 0 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px;
}
@media (max-width: 640px) { .as-states { grid-template-columns: repeat(2, 1fr); } }
.as-states li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); }
.as-states svg { color: var(--primary); flex: none; }
.as-fact {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--light); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--ink);
}
.as-fact svg { color: var(--accent); flex: none; margin-top: 2px; }
.as-cta { margin-top: 22px; }

/* ---------- Workflow selector ---------- */
.workflow { max-width: 820px; margin: 0 auto; text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.pill {
    border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
    padding: 10px 20px; font-weight: 700; font-size: .92rem; color: var(--ink);
    transition: all .15s ease;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.workflow-out {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(26px, 4vw, 44px); min-height: 150px;
    display: flex; align-items: center; justify-content: center;
}
.workflow-out .wf-inner { max-width: 620px; }
.workflow-out .wf-role { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.workflow-out p { font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.workflow-out .wf-next { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }

.test-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.test-card::before { content: "“"; position: absolute; top: 6px; right: 22px; font-size: 70px; color: rgba(var(--primary-rgb),.12); font-family: Georgia, serif; line-height: 1; }
.test-card .test-quote { font-size: .96rem; color: var(--ink); margin-bottom: 16px; }
.test-stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--accent); }
.test-stars svg { flex: none; }
.test-card .test-replace {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #b45309;
    background: #fff7ed; border: 1px dashed #f6c98a; border-radius: 999px; padding: 5px 11px; margin-bottom: 14px;
}
.test-card .test-who { display: flex; align-items: center; gap: 12px; }
.test-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--light-2); color: var(--primary);
    display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.test-who strong { display: block; font-size: .95rem; color: var(--dark); }
.test-who span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: #cfe0f3; box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 22px; background: transparent; border: 0; text-align: left;
    font-size: 1rem; font-weight: 700; color: var(--dark);
}
.faq-q:hover { color: var(--primary); }
.faq-ico { flex: none; color: var(--primary); transition: transform .25s ease; }
.faq-item.open .faq-ico { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; }
.faq-a p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Upload plans (the big one) ---------- */
.upload-section {
    position: relative; overflow: hidden;
    background:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.03) 46px 47px),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.03) 46px 47px),
        var(--dark);
    color: #c7d4e2;
}
.upload-section h2, .upload-section h3 { color: #fff; }
.upload-section .section-head p { color: #a7b9ca; }

.dropzone {
    border: 2px dashed var(--line); border-radius: var(--radius);
    background: var(--light);
    height: 200px; margin-bottom: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
    position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #fff; }
.dz-ico { width: 40px; height: 40px; color: var(--primary); flex: none; }
.dropzone h3 { font-size: 1.15rem; color: var(--dark); margin: 0; }
.dropzone p { color: var(--muted); margin: 0; font-size: .92rem; }

.dz-feedback {
    max-width: 640px; margin: 16px auto 0; text-align: left;
    font-size: .85rem; color: #92400e;
    background: #fff7ed; border: 1px dashed #f1a545;
    border-radius: 10px; padding: 10px 14px;
}
.dz-feedback strong { color: #78350f; }

.file-list { margin: 20px 0 20px 0; text-align: left; }
.file-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--light); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.file-item .fi-ico { color: var(--primary); flex: none; }
.file-item .fi-info { flex: 1; min-width: 0; }
.file-item .fi-name { font-size: .9rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-meta { font-size: .76rem; color: #64748b; }
.file-item .fi-state { font-size: .76rem; font-weight: 700; color: #16a34a; flex: none; }
.file-item .fi-remove { background: transparent; border: 0; color: #dc2626; }
.file-item.bad .fi-state { color: #dc2626; }
.file-progress { height: 5px; border-radius: 5px; background: #e2e8f0; border: 1px solid #cbd5e1; margin-top: 8px; overflow: hidden; }
.file-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s ease; }

.upload-panel {
    background: #fff; color: var(--ink); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: clamp(20px, 3.5vw, 40px);
    max-width: 760px; margin: 30px auto 0;
}
.upload-panel h3 { color: var(--dark); }
.upload-panel .field label { color: var(--dark); }
.upload-panel .field input, .upload-panel .field select, .upload-panel .field textarea { background: var(--light); border-color: var(--line); }
.upload-panel .field input:focus, .upload-panel .field select:focus, .upload-panel .field textarea:focus { background: #fff; }

.step-bar { display: none; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 24px; font-size: .84rem; color: #8fa5ba; }
.step-bar .sb-step { display: inline-flex; align-items: center; gap: 8px; }
.step-bar .sb-num { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #fff; }
.step-bar .sb-step.done .sb-num, .step-bar .sb-step.active .sb-num { background: var(--primary-600); }
.step-bar .sb-line { flex: 1; height: 2px; background: rgba(255,255,255,.15); }
.step-bar .sb-line.done { background: var(--primary-600); }

/* Success screen */
.success-screen { text-align: center; padding: 46px 10px; max-width: 540px; margin: 0 auto; }
.success-mark {
    width: 86px; height: 86px; margin: 0 auto 22px; border-radius: 50%;
    background: #e8f7ef; color: #16a34a; display: grid; place-items: center;
    animation: successPop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.success-screen h3 { font-size: 1.6rem; }
.success-screen p { color: var(--muted); }

@keyframes successPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Final CTA ---------- */
.final-cta {
    position: relative; overflow: hidden; color: #fff;
    background:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.03) 46px 47px),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.03) 46px 47px),
        linear-gradient(120deg, var(--primary-800), var(--dark));
}
.final-cta-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.final-cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.final-cta p { color: #c7d4e2; font-size: 1.08rem; margin-bottom: 30px; }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.final-cta .cta-phone-link {
    display: inline-flex; align-items: center; gap: 10px; color: #fff;
    font-weight: 700; font-size: 1.05rem;
}
.final-cta .cta-phone-link:hover { color: #9fc2ec; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    background:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(var(--primary-rgb),.05) 46px 47px),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(var(--primary-rgb),.05) 46px 47px),
        var(--light);
    padding: clamp(48px, 7vw, 84px) 0;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.page-hero .breadcrumb a { font-weight: 600; }
.page-hero .breadcrumb span { margin: 0 6px; color: #b6c4d2; }

/* ---------- Contact ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .contact-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .contact-info-grid { grid-template-columns: 1fr; } }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-card .cc-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--primary-rgb),.09); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: .9rem; color: var(--muted); margin: 0; display: block; }
.contact-card a { color: var(--primary); font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-upload-hint {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px;
    background: var(--light); cursor: pointer;
}
.contact-upload-hint svg { color: var(--primary); flex: none; }
.contact-upload-hint span { font-size: .86rem; color: var(--muted); }

.map-stub {
    border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 260px;
    background:
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.05) 30px 31px),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.05) 30px 31px),
        var(--dark-2);
    display: grid; place-items: center; color: #c7d4e2;
}
.map-stub .ms-inner { text-align: center; padding: 30px; }
.map-stub strong { color: #fff; display: block; margin-bottom: 4px; }
.map-stub span { font-size: .9rem; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; }
.flash {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
    border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-md);
    font-size: .94rem;
}
.flash-success { border-left-color: #16a34a; }
.flash-error { border-left-color: var(--accent); }
.flash-close { margin-left: auto; background: transparent; border: 0; font-size: 1.3rem; color: var(--muted); line-height: 1; }

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(11,31,51,.6); backdrop-filter: blur(3px);
    display: grid; place-items: center; padding: 20px;
    opacity: 0; transition: opacity .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.show { opacity: 1; }
.modal {
    width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: var(--radius-lg); padding: 30px;
    box-shadow: var(--shadow-lg); position: relative;
    transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
    border-radius: 50%; border: 0; background: var(--light-2); color: var(--muted);
    font-size: 1.3rem; line-height: 1;
}
.modal h3 { font-size: 1.35rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.float-success { text-align: center; padding: 24px 6px; }
.float-success p { color: var(--muted); }

.upload-row {
    display: flex; align-items: center; gap: 11px;
    border: 1.5px dashed var(--line); border-radius: 11px;
    padding: 13px 16px; margin-bottom: 16px; cursor: pointer;
    font-size: .88rem; font-weight: 600; color: var(--primary);
    background: var(--light);
    transition: border-color .15s, background .15s;
}
.upload-row:hover { border-color: var(--primary); background: #fff; }
.upload-row svg { flex: none; }
.mini-file-list { margin-bottom: 14px; }
.mini-file-list .mfi { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink); background: var(--light-2); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.mini-file-list .mfi button { background: transparent; border: 0; margin-left: auto; color: var(--accent); }

/* ---------- Floating CTA ---------- */
.float-est-btn {
    position: fixed; right: 22px; bottom: 84px; z-index: 800;
    display: none; align-items: center; gap: 9px;
    background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px;
    padding: 14px 22px; font-weight: 800; font-size: .95rem;
    box-shadow: var(--shadow-accent);
    transition: transform .16s ease;
}
.float-est-btn:hover { transform: translateY(-3px); color: var(--on-accent); }
@media (min-width: 769px) { .float-est-btn { display: inline-flex; } }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
    display: none;
    grid-template-columns: 1fr 1fr; gap: 8px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
    padding: 10px var(--gutter);
    box-shadow: 0 -8px 24px rgba(11,31,51,.08);
}
.mobile-bar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 10px; border-radius: 11px; font-weight: 800; font-size: .92rem;
    background: var(--primary); color: #fff;
}
.mobile-bar-btn:hover { color: #fff; background: var(--primary-700); }
.mobile-bar-btn.btn-accent { background: var(--accent); color: var(--on-accent); }
@media (max-width: 768px) { .mobile-bar { display: grid; } body { padding-bottom: 78px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a7b9ca; }
.footer-cta {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: clamp(40px, 6vw, 64px) 0;
}
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.footer-cta p { color: #a7b9ca; margin: 0; max-width: 620px; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px;
    padding: clamp(42px, 6vw, 64px) 0 34px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-blurb { font-size: .9rem; margin-top: 16px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.07); color: #c7d4e2;
    transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #a7b9ca; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; color: #a7b9ca; }
.footer-contact svg { color: #9fc2ec; margin-top: 4px; flex: none; }
.footer-contact a { color: #a7b9ca; }
.footer-contact a:hover { color: #fff; }
.footer-legal {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0; font-size: .82rem; color: #8397ab;
}
.footer-legal a { color: #a7b9ca; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="left"].revealed, [data-reveal="right"].revealed { transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

.banner-line { text-align: center; font-size: 1.02rem; color: var(--muted); max-width: 760px; margin: 0 auto 30px; }

.page-body { padding-bottom: 0; }

/* ---------- Anchor scroll offset ---------- */
[id] { scroll-margin-top: 24px; }

.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ==========================================================================
   Service page design system (component toolkit for dedicated service pages)
   ========================================================================== */

/* CSS-only pattern motifs — replace image visuals with blueprint/grid line art */
.motif-blueprint {
    background-image:
        repeating-linear-gradient(0deg, transparent 0 42px, rgba(var(--primary-rgb), .07) 42px 43px),
        repeating-linear-gradient(90deg, transparent 0 42px, rgba(var(--primary-rgb), .07) 42px 43px);
}
.motif-grid { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.motif-lines { background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(var(--primary-rgb), .08) 14px 15px); }

/* Hero treatments for service pages */
.page-hero.hero-dark { background: linear-gradient(120deg, var(--primary-800), var(--dark)); color: #fff; }
.page-hero.hero-dark h1, .page-hero.hero-dark .breadcrumb, .page-hero.hero-dark .breadcrumb a { color: #fff; }
.page-hero.hero-dark .lead { color: #c7d4e2; }
.page-hero.hero-center { text-align: center; }
.page-hero.hero-center .breadcrumb { justify-content: center; display: flex; }
.page-hero.hero-center .lead { margin-left: auto; margin-right: auto; }
.page-hero.compact { padding: clamp(34px, 5vw, 58px) 0; }

/* ===========================================================================
 * Leads dashboard (private /leads page)
 * ========================================================================= */

/* Login screen */
.lead-login-sec { min-height: 62vh; display: flex; align-items: center; }
.lead-login { max-width: 430px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); padding: 38px 34px; text-align: center; }
.lead-login-ico { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; background: rgba(var(--primary-rgb),.1); color: var(--primary); display: grid; place-items: center; }
.lead-login h1 { margin: 0 0 8px; }
.lead-login p { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.lead-login form { text-align: left; }
.lead-login-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }
.lead-login-note { margin: 20px 0 0 !important; font-size: .76rem !important; color: var(--muted); word-break: break-word; }
.lead-login-note code { font-size: .7rem; background: var(--light); padding: 2px 5px; border-radius: 4px; }

/* Hero row + actions */
.lead-hero .lead-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lead-hero .lead-hero-row h1 { margin-bottom: 6px; }
.lead-hero .lead-hero-row .lead { margin-bottom: 0; }
.lead-actions { display: flex; gap: 10px; }

/* Shell width */
.lead-shell { max-width: 1080px; }

/* Stat cards */
.lead-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.lead-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.lead-stat strong { font-size: 1.6rem; font-family: 'Roboto Condensed', system-ui, sans-serif; color: var(--dark); line-height: 1; }
.lead-stat span:last-child { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lead-stat .ls-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(var(--primary-rgb),.1); color: var(--primary); display: grid; place-items: center; margin-bottom: 8px; }
.lead-stat .ls-badge { font-family: 'Roboto Condensed', system-ui, sans-serif; font-weight: 700; font-size: .72rem; color: var(--accent); background: rgba(255, 193, 7, .14); }

/* Toolbar */
.lead-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.lead-toolbar .lt-field { display: flex; flex-direction: column; gap: 5px; }
.lead-toolbar .lt-grow { flex: 1; min-width: 220px; }
.lead-toolbar label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lead-toolbar select, .lead-toolbar input[type="text"] { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: .93rem; background: #fff; color: var(--ink); min-width: 150px; }
.lead-toolbar input { width: 100%; }

/* Empty state */
.lead-empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 48px 24px; text-align: center; color: var(--muted); }
.lead-empty svg { color: var(--primary); margin-bottom: 12px; }
.lead-empty h3 { margin: 0 0 6px; color: var(--dark); }
.lead-empty p { margin: 0; font-size: .92rem; }

/* Lead cards */
.lead-list { display: grid; gap: 14px; }
.lead-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lead-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.lead-badge { flex: none; font-family: 'Roboto Condensed', system-ui, sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; border-radius: 999px; padding: 4px 11px; }
.ls-upload_plan { background: var(--primary); }
.ls-quick_quote { background: #b45309; }
.ls-contact { background: #047857; }
.ls-other { background: var(--muted); }
.lead-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 1rem; }
.lead-who strong { color: var(--dark); }
.lead-time { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.lead-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; font-size: .86rem; background: var(--light); }
.lead-contact a { color: var(--primary); font-weight: 600; }
.lead-contact span { color: var(--ink); }

/* Expandable details */
.lead-details summary { cursor: pointer; padding: 11px 18px; font-size: .84rem; font-weight: 700; color: var(--primary); list-style: none; display: flex; align-items: center; gap: 8px; }
.lead-details summary::-webkit-details-marker { display: none; }
.lead-details summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.lead-details[open] summary::after { transform: rotate(-135deg); }
.lead-dl { display: grid; grid-template-columns: 130px 1fr; margin: 0; padding: 6px 18px 16px; border-top: 1px solid var(--line); }
.lead-dl dt { padding: 7px 0; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lead-dl dd { padding: 7px 0; margin: 0; font-size: .92rem; color: var(--ink); }
.lead-msg { white-space: pre-wrap; line-height: 1.55; }
.lead-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lead-files li { display: flex; flex-direction: column; gap: 1px; background: var(--light); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.lead-files li span { font-weight: 600; color: var(--dark); font-size: .9rem; }
.lead-files .lf-dl { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; }
.lead-files .lf-dl:hover span { text-decoration: underline; color: var(--primary-700); }
.lead-files li em { font-style: normal; font-size: .76rem; color: var(--muted); }

/* Pager */
.lead-pager { display: flex; gap: 7px; justify-content: center; margin-top: 24px; }
.lead-pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--dark); font-weight: 700; font-size: .86rem; text-decoration: none; }
.lead-pager a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.lead-pager a:hover { border-color: var(--primary); }

@media (max-width: 760px) {
    .lead-stats { grid-template-columns: repeat(2, 1fr); }
    .lead-hero .lead-hero-row { align-items: flex-start; flex-direction: column; }
    .lead-dl { grid-template-columns: 1fr; }
    .lead-dl dt { padding-bottom: 0; }
}
@media (max-width: 480px) {
    .lead-stats { grid-template-columns: 1fr; }
    .lead-time { margin-left: 0; width: 100%; }
}
.page-hero.wide { padding: clamp(64px, 9vw, 108px) 0; }
.page-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.page-hero.hero-center .hero-tags { justify-content: center; }
.page-hero .hero-tags span { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(var(--primary-rgb),.08); color: var(--primary); border: 1px solid rgba(var(--primary-rgb),.18); }
.page-hero.hero-dark .hero-tags span { background: rgba(255,255,255,.1); color: #c7d4e2; border-color: transparent; }

/* Motif patterns must layer OVER the dark-hero gradient (higher specificity than .motif-* alone) */
.page-hero.hero-dark.motif-grid { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(120deg, var(--primary-800), var(--dark)); background-size: 26px 26px, 26px 26px, auto; }
.page-hero.hero-dark.motif-blueprint { background-image: repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,.06) 42px 43px), repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.06) 42px 43px), linear-gradient(120deg, var(--primary-800), var(--dark)); }
.page-hero.hero-dark.motif-lines { background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.07) 14px 15px), linear-gradient(120deg, var(--primary-800), var(--dark)); }

/* In-page table of contents (left-aligned jump nav for long pages) */
.toc-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; padding: 0; list-style: none; }
.toc-nav li a { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; transition: .16s ease; }
.toc-nav li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Numbered section heading with connector */
.num-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.num-head .nh-num { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; }
.num-head .nh-line { flex: 1; height: 2px; background: var(--line); }
.num-head h2 { margin: 0; }

/* Stats band — dark or light, grouped snapshot metrics */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stat-band.dark { background: linear-gradient(120deg, var(--primary-800), var(--dark)); border-color: transparent; }
.stat-band .stat { padding: 26px 20px; border-right: 1px solid var(--line); }
.stat-band .stat:last-child { border-right: 0; }
.stat-band .stat .st-num { font-family: 'Roboto Condensed', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--primary); line-height: 1; }
.stat-band.dark .stat { border-right-color: rgba(255,255,255,.12); }
.stat-band.dark .stat .st-num { color: var(--accent); }
.stat-band.dark .stat .st-lbl { color: #c7d4e2; }
.stat-band .stat .st-lbl { margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } .stat-band .stat:nth-child(2) { border-right: 0; } .stat-band .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stat-band.dark .stat:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.12); } }

/* System / component card grid (light cards with big index numbers) */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sys-grid .sys-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 24px; }
.sys-grid .sys-card .sys-idx { font-family: 'Roboto Condensed', system-ui, sans-serif; font-weight: 700; font-size: .9rem; color: var(--primary); letter-spacing: .06em; }
.sys-grid .sys-card h3 { margin: 10px 0 8px; }
.sys-grid .sys-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .sys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sys-grid { grid-template-columns: 1fr; } }
.sys-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .sys-grid.cols2 { grid-template-columns: 1fr; } }

/* Definition list grid — "what you receive" / "what's included" */
.dl-grid { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.dl-grid > dt { background: var(--light); font-weight: 700; color: var(--dark); padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.dl-grid > dd { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.dl-grid > dt:last-of-type, .dl-grid > dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid > dt { border-bottom: 0; } }

/* Styled data table (sample takeoff, spec comparison) */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-box table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.table-box th { background: var(--dark); color: #fff; text-align: left; padding: 12px 14px; font-family: 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .03em; font-weight: 700; }
.table-box td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); }
.table-box tbody tr:nth-child(even) td { background: var(--light); }
.table-box tfoot td { font-weight: 700; background: #fff8e1; border-top: 2px solid var(--accent); }

/* Vertical timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 58px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-family: 'Roboto Condensed', system-ui, sans-serif; display: grid; place-items: center; }
.timeline h3 { margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline.dark::before { background: rgba(255,255,255,.14); }
.timeline.dark h3 { color: #fff; }
.timeline.dark p { color: #c7d4e2; }

/* Two-column checklist */
.cbs-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
@media (max-width: 640px) { .cbs-2col { grid-template-columns: 1fr; } }

/* Quote / testimonial style card */
.quote-card { border-left: 4px solid var(--primary); background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); position: relative; }
.quote-card p { margin: 0; color: var(--ink); font-size: 1rem; }
.quote-card .qt-who { margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--muted); }

/* Note / assumption callout */
.note-box { border: 1px dashed #f1a545; background: #fff7ed; color: #78350f; border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; }
.note-box strong { color: #78350f; }

/* Related services pills */
.svc-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.svc-pills a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--dark); font-weight: 600; font-size: .86rem; border-radius: 999px; padding: 9px 17px; transition: .16s ease; }
.svc-pills a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Alternate light card panel grid */
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.panel-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel-grid h3 { margin: 0 0 8px; }
.panel-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; } }

/* Accent kicker for section headings (larger version of eyebrow) */
.accent-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: 'Roboto Condensed', system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--primary); margin-bottom: 10px; }
.accent-kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); }

/* Divider band with centered label */
.divider-band { display: flex; align-items: center; gap: 16px; margin: 34px 0; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.divider-band::before, .divider-band::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.divider-band::before { background: linear-gradient(90deg, transparent, var(--line)); }
.divider-band::after { background: linear-gradient(90deg, var(--line), transparent); }

/* Wide "process ladder" variant used on several service pages */
.ladder { counter-reset: ladder; display: grid; gap: 14px; }
.ladder .ladder-step { counter-increment: ladder; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.ladder .ladder-step::before { content: counter(ladder, decimal-leading-zero); font-family: 'Roboto Condensed', system-ui, sans-serif; width: 56px; height: 56px; border-radius: 14px; background: var(--light); color: var(--primary); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }
.ladder .ladder-step h3 { margin: 0 0 6px; }
.ladder .ladder-step p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .ladder.two { grid-template-columns: 1fr 1fr; } }