/* ═══════════════════════════════════════════════════════
   KEELEY ELECTRICAL CONTRACTORS — Design System
   ═══════════════════════════════════════════════════════ */

:root {
  --ink: #141414;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --rule: #d8d5cf;
  --surface: #f7f6f3;
  --white: #ffffff;
  --bg: #eeece7;
  --accent: #2FAD65;
  --accent-2: #1D61AE;
  --emergency: #c0392b;
  --ff-head: 'Barlow Condensed', sans-serif;
  --ff-body: 'Barlow', sans-serif;
  --nav-h: 68px;
  --emergency-h: 38px;
  --max-w: 1200px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  /* Typography tokens */
  --lh-tight: 1.15;
  --lh-body: 1.55;
  --track-label: .06em;
  --track-button: .08em;
  --track-eyebrow: .14em;
  --space-title-gap: .5rem;
  --space-block-gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff-body); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 1s linear infinite; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--ff-body); font-size: 15px; }

.h2 { font-family: var(--ff-head); font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.h2--light { color: var(--white); }
.h2 em { color: var(--accent); font-style: normal; }
.eyebrow { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .5rem; }
.eyebrow--light { color: rgba(255,255,255,.6); }
.text-muted { color: var(--ink-3); }
.prose p { margin-bottom: 1rem; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .5rem; color: var(--ink-2); }
.prose h2 { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; line-height: var(--lh-tight); color: var(--ink); margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.required { color: var(--emergency); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--surface { background: var(--surface); }
.section__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; flex-wrap: wrap; gap: .5rem; }
.section__view-all { font-family: var(--ff-head); font-size: .85rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent); }
.section__view-all i { margin-left: .25rem; transition: transform .2s; }
.section__view-all:hover i { transform: translateX(4px); }

.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ff-head); font-size: .85rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; padding: .75rem 1.5rem; border-radius: 3px; transition: all .2s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #28964a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,173,101,.3); }
.btn--secondary { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.4); color: rgba(255,255,255,.9); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }
.btn--lg { padding: 1rem 2rem; font-size: .9rem; }
.pill { display: inline-block; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: .2rem .75rem; font-size: .8rem; color: var(--ink-2); }
.pill--outline { background: transparent; }

/* Emergency Bar */
.emergency-bar { background: var(--emergency); padding: .5rem 0; }
.emergency-bar__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.emergency-bar__left { display: flex; align-items: center; gap: .75rem; }
.emergency-bar__dot { width: 8px; height: 8px; background: #ff6b6b; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.emergency-bar__text { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--white); }
.emergency-bar__phone { font-family: var(--ff-head); font-size: .9rem; font-weight: 800; color: var(--white); letter-spacing: var(--track-label); }

/* Navigation */
.nav { background: var(--ink); position: sticky; top: 0; z-index: 100; height: var(--nav-h); border-bottom: 2px solid var(--accent); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 48px; width: auto; display: block; }
.nav__links { display: flex; gap: 1.5rem; align-items: center; }
.nav__link { font-family: var(--ff-head); font-size: .85rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: #aaa; transition: color .2s; padding: .25rem 0; }
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-family: var(--ff-head); font-size: .85rem; font-weight: 700; color: #aaa; letter-spacing: var(--track-label); }
.nav__phone i { color: var(--accent-2); margin-right: .25rem; }
.nav__phone:hover { color: var(--white); }
.nav__cta { background: var(--accent); color: var(--white); font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; padding: .5rem 1rem; border-radius: 3px; transition: background .2s; }
.nav__cta:hover { background: #28964a; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav__hamburger span { width: 24px; height: 2px; background: #aaa; border-radius: 1px; transition: all .3s; }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Desktop Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown > .nav__link { display: flex; align-items: center; gap: .3rem; }
.nav__chevron { transition: transform .2s; flex-shrink: 0; }
.nav__dropdown:hover .nav__chevron { transform: rotate(180deg); color: var(--accent); }
.nav__dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 180px; background: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2); padding: .4rem 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; z-index: 200; border-top: 3px solid var(--accent); }
.nav__dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__dropdown:hover .nav__dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__dropdown-item { display: block; padding: .5rem 1rem; font-family: var(--ff-head); font-size: .85rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255,255,255,.8); transition: background .15s, color .15s, padding-left .15s; white-space: nowrap; }
.nav__dropdown-item:hover { background: rgba(255,255,255,.07); color: var(--accent); padding-left: 1.2rem; }

/* Mobile Drawer */
.mobile-drawer { display: none; position: fixed; top: calc(var(--nav-h) + var(--emergency-h)); left: 0; right: 0; bottom: 0; background: var(--ink); z-index: 99; padding: 2rem 1.5rem; flex-direction: column; gap: 1rem; overflow-y: auto; }
.mobile-drawer.active { display: flex; }
.mobile-drawer__links { display: flex; flex-direction: column; }
.mobile-drawer__links a { padding: 1rem 0; border-bottom: 1px solid #1e1e1e; font-family: var(--ff-head); font-size: 1.1rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: #ccc; }
.mobile-drawer__links a:hover { color: var(--white); }
.mobile-drawer__group { border-bottom: 1px solid #1e1e1e; }
.mobile-drawer__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1rem 0; background: none; border: none; font-family: var(--ff-head); font-size: 1.1rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: #ccc; cursor: pointer; }
.mobile-drawer__toggle:hover { color: var(--white); }
.mobile-drawer__chevron { transition: transform .25s; }
.mobile-drawer__group.open .mobile-drawer__chevron { transform: rotate(180deg); }
.mobile-drawer__sub { display: none; padding: 0 0 .75rem 1rem; flex-direction: column; }
.mobile-drawer__group.open .mobile-drawer__sub { display: flex; }
.mobile-drawer__sub a { padding: .6rem 0; border-bottom: none; font-size: .95rem; font-weight: 500; color: #999; text-transform: none; }
.mobile-drawer__sub a:hover { color: var(--white); }
.mobile-drawer__phone { display: flex; align-items: center; gap: .75rem; background: rgba(255,255,255,.06); border-radius: 4px; padding: 1rem; margin-top: 1rem; font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.mobile-drawer__phone i { color: var(--accent-2); }
.mobile-drawer__cta { background: var(--accent); color: var(--white); text-align: center; padding: 1rem; border-radius: 4px; font-family: var(--ff-head); font-size: 1rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; }

/* Hero */
.hero { background: var(--ink); padding: 5rem 1.5rem 4rem; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #1e1e1e 0px, #1e1e1e 2px, #181818 2px, #181818 12px); opacity: .5; }

/* Hero Video Background */
.hero--video { padding: 6rem 1.5rem 4rem; background: var(--ink) url('/static/hero-poster.jpg') center/cover no-repeat; }
.hero--video .hero__bg { display: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.60) 40%, rgba(20,20,20,.78) 100%); z-index: 0; }
.hero__content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }
.hero__title { font-family: var(--ff-head); font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1; color: var(--white); letter-spacing: -0.01em; margin-bottom: 1.25rem; max-width: 700px; }
.hero__title em { color: var(--white); font-style: normal; }
.hero__sub { color: var(--white); font-size: 1.1rem; max-width: 580px; margin-bottom: 2rem; line-height: 1.6; }
.hero__btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__trust { position: relative; z-index: 1; display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #2e2e2e; max-width: var(--max-w); margin-left: auto; margin-right: auto; flex-wrap: wrap; }
.hero__trust-item { display: flex; flex-direction: column; gap: .25rem; }
.hero__trust-num { font-family: var(--ff-head); font-size: 1.75rem; font-weight: 800; color: var(--white); }
.hero__trust-label { font-size: .8rem; color: #777; }

/* Trust Strip */
.trust-strip { background: var(--ink); border-top: 1px solid #2a2a2a; padding: 1rem 0; }
.trust-strip__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.trust-strip__pill { font-family: var(--ff-head); font-size: .75rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: #999; display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip__pill i { color: var(--accent); font-size: .7rem; }

/* Service Cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon { width: 48px; height: 48px; background: rgba(47,173,101,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.service-card__icon i { color: var(--accent); font-size: 1.25rem; }
.service-card__title { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.service-card__desc { color: var(--ink-2); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.service-card__link { font-family: var(--ff-head); font-size: .8rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent); }
.service-card__link i { margin-left: .25rem; transition: transform .2s; }
.service-card:hover .service-card__link i { transform: translateX(4px); }

/* Two Column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col__text .h2 { margin-bottom: var(--space-block-gap); }
.two-col__text p { color: var(--ink-2); margin-bottom: .75rem; }
.two-col__text .btn { margin-top: .5rem; }
.image-placeholder { background: var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 280px; color: var(--ink-3); font-size: .85rem; }
.image-placeholder i { font-size: 2rem; opacity: .5; }
.image-placeholder--lg { min-height: 360px; }

/* Stats Bar */
.stats-bar { background: var(--accent-2); }
.stats-bar__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stats-bar__item { padding: 2rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.stats-bar__item:last-child { border-right: none; }
.stats-bar__num { font-family: var(--ff-head); font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stats-bar__label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* Cert Grid */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.cert-grid--center { justify-items: center; grid-template-columns: repeat(4, auto); justify-content: center; gap: 2rem; }
.cert-badge { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.cert-badge strong { font-size: .9rem; }
.cert-badge__icon { width: 40px; height: 40px; min-width: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.cert-badge__icon--gold { background: #fff3cd; border: 1px solid #e6c84a; color: #b8860b; }
.cert-badge__icon--blue { background: #dbeafe; border: 1px solid #93c5fd; color: #1d4ed8; }
.cert-badge__icon--green { background: #dcfce7; border: 1px solid #86efac; color: #16a34a; }

/* Process */
.process-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.process-step { padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--rule); position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.process-step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: var(--accent); }
.process-step:hover .process-step__num { color: var(--accent); }
.process-step__num { font-family: var(--ff-head); font-size: 2.5rem; font-weight: 800; color: var(--rule); line-height: 1; margin-bottom: .5rem; transition: color .25s; }
.process-step__title { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.process-step p { color: var(--ink-2); font-size: .9rem; }
/* Arrow connectors between steps */
.process-step::after { content: ''; position: absolute; top: 50%; right: -0.85rem; transform: translateY(-50%); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid var(--accent); opacity: .6; transition: opacity .25s; }
.process-step:nth-child(3n)::after, .process-step:last-child::after { display: none; }
.process-step:hover::after { opacity: 1; }

/* CTA Band */
.cta-band { background: var(--ink); padding: 4rem 0; }
.cta-band__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-band__desc { color: #999; max-width: 520px; margin-top: .75rem; }
.cta-band__phone a { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: .5rem; margin-top: 1rem; background: rgba(255,255,255,.08); padding: .75rem 1rem; border-radius: 4px; width: fit-content; }
.cta-band__phone a i { color: var(--accent-2); }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page Header */
.page-header { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--surface); border-bottom: 1px solid var(--rule); }
.page-header--blue { background: var(--accent-2); border-bottom: none; min-height: 500px; display: flex; align-items: center; justify-content: flex-start; padding: clamp(4rem, 10vw, 7rem) 0; }
.page-header--blue .page-header__title { color: var(--white); }
.page-header--blue .page-header__desc { color: rgba(255,255,255,.7); }
.page-header__title { font-family: var(--ff-head); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; max-width: 50ch; margin-bottom: .5rem; }
.page-header__desc { color: var(--ink-2); max-width: 600px; }
.page-header__tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.page-header--blue .pill { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.9); }
.page-header--has-hero { position: relative; overflow: hidden; align-items: flex-end; padding-top: 0; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-header--blue .container { position: relative; z-index: 2; width: 100%; }
.page-header__hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-header--has-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.15) 100%); z-index: 1; }


/* Services Detail */
.service-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-detail-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.service-detail-card > .btn { margin-top: auto; }
.service-detail-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.service-detail-card__icon { width: 48px; height: 48px; background: rgba(47,173,101,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.service-detail-card__icon i { color: var(--accent); font-size: 1.25rem; }
.service-detail-card__num { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-button); color: var(--ink-3); }
.service-detail-card__title { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 800; line-height: var(--lh-tight); margin-bottom: .5rem; }
.service-detail-card__desc { color: var(--ink-2); font-size: .9rem; margin-bottom: 1rem; }
.service-detail-card__list { list-style: none; margin-bottom: 1.5rem; }
.service-detail-card__list li { padding: .4rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2); }
.service-detail-card__list li:last-child { border-bottom: none; }

/* Content + Sidebar */
.content-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.content-main { min-width: 0; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.scope-item { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: var(--surface); border-radius: 4px; font-size: .9rem; }
.scope-item i { color: var(--accent); font-size: .8rem; }
.client-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.project-list { list-style: disc; padding-left: 1.5rem; margin-top: 1rem; }
.project-list li { margin-bottom: .5rem; color: var(--ink-2); }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-card.sidebar-card--accent { background: var(--accent-2); border-color: var(--accent-2); color: rgba(255,255,255,.9); }
.sidebar-card--emergency { background: var(--accent-2); border-color: var(--accent-2); }
.sidebar-card__title { font-family: var(--ff-head); font-size: .85rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); margin-bottom: .75rem; }
.sidebar-phone { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: var(--surface); border-radius: 4px; font-family: var(--ff-head); font-size: 1rem; font-weight: 700; }
.sidebar-phone__icon { width: 32px; height: 32px; background: var(--accent-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .75rem; }
.sidebar-email { display: flex; align-items: center; gap: .5rem; color: var(--accent-2); font-weight: 500; }
.sidebar-trust-list { list-style: none; }
.sidebar-trust-list li { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .9rem; color: rgba(255,255,255,.9); }
.sidebar-trust-list li i { color: var(--accent); font-size: .8rem; }
.sidebar-trust-list--dark li { color: var(--ink-2); }
.sidebar-trust-list--dark li i { color: var(--accent); }

/* Capabilities */
.license-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.license-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.license-card__state { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; color: var(--accent-2); margin-bottom: .5rem; }
.license-card__state i { margin-right: .25rem; }
.license-card h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: var(--space-title-gap); }
.license-card__status { display: inline-flex; align-items: center; gap: .25rem; margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--accent); }
.cert-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.cert-detail-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.cert-detail-card__icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.cert-detail-card h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.cert-detail-card p { color: var(--ink-2); font-size: .9rem; margin-bottom: .75rem; }
.cert-detail-card__status { font-size: .85rem; font-weight: 600; color: var(--accent); }
.cert-detail-card__status i { margin-right: .25rem; }
.two-col-cap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.two-col-cap .h2 { margin-bottom: 1rem; }
.info-block { margin-bottom: .75rem; padding: 1.15rem 1.25rem; background: var(--surface); border-radius: var(--radius); }
.info-block:last-child { margin-bottom: 0; }
.info-block h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .35rem; }
.info-block h3 i { margin-right: .5rem; color: var(--accent-2); }
.info-block p { color: var(--ink-2); font-size: .85rem; line-height: var(--lh-body); margin: 0; }
.cap-list__item { display: flex; gap: .75rem; padding: .85rem 1rem; background: var(--surface); border-radius: var(--radius); margin-bottom: .65rem; }
.cap-list__item:last-child { margin-bottom: 0; }
.cap-list__item i { font-size: 1.1rem; color: var(--accent-2); margin-top: .15rem; flex-shrink: 0; }
.cap-list__item strong { display: block; margin-bottom: .15rem; }
.cap-list__item div { font-size: .85rem; color: var(--ink-2); line-height: var(--lh-body); }
.territory-map__states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 700px; margin: 0 auto; }
.territory-map__state { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.territory-map__state--active { border-color: var(--accent); border-width: 2px; }
.territory-map__state i { color: var(--accent); font-size: 1.25rem; display: block; margin-bottom: .5rem; }
.territory-map__state strong { display: block; font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; }
.territory-map__state span { font-size: .85rem; color: var(--ink-3); }

/* About */
.about-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.about-service { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.about-service__icon { width: 48px; height: 48px; background: rgba(47,173,101,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.about-service__icon i { color: var(--accent); font-size: 1.25rem; }
.about-service h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.about-service p { color: var(--ink-2); font-size: .9rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.value-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.value-card__icon { width: 56px; height: 56px; background: rgba(47,173,101,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.value-card__icon i { color: var(--accent); font-size: 1.5rem; }
.value-card h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.value-card p { color: var(--ink-2); font-size: .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.team-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; text-align: center; }
.team-card__photo { background: var(--rule); height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--ink-3); opacity: .5; }
.team-card__name { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; padding: 1rem 1rem 0; }
.team-card__title { color: var(--accent); font-size: .85rem; padding: .25rem 1rem 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.photo-grid__item { border-radius: var(--radius); overflow: hidden; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact Form */
/* ═══ Contact Page — Single-Page Scrolling Form ═══ */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.contact-sidebar { position: sticky; top: calc(var(--nav-h) + var(--emergency-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; }

/* Progress bar */
.form-progress { position: sticky; top: var(--nav-h); z-index: 99; padding: .875rem 2rem; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 2px 8px rgba(0,0,0,.06); border-radius: var(--radius) var(--radius) 0 0; }
.form-progress__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.form-progress__label { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; color: var(--ink-3); }
.form-progress__pct { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-label); color: var(--accent); }
.form-progress__bar { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.form-progress__fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width .4s ease; position: relative; overflow: hidden; }
.form-progress__fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Form body */
.contact-form { padding: 1.75rem 2rem 2rem; }

/* Section heads */
.form-section { margin-bottom: 1.75rem; animation: sectionIn .5s ease-out backwards; }
.form-section:nth-of-type(1) { animation-delay: 0.05s; }
.form-section:nth-of-type(2) { animation-delay: 0.10s; }
.form-section:nth-of-type(3) { animation-delay: 0.15s; }
.form-section:nth-of-type(4) { animation-delay: 0.20s; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.section-head__num { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-size: .7rem; font-weight: 700; color: var(--white); flex-shrink: 0; transition: box-shadow .3s; }
.section-head__num.active-section { animation: stepPulse 1.8s ease-out infinite; }
@keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,173,101,.35); } 50% { box-shadow: 0 0 0 6px rgba(47,173,101,0); } }
.section-head__title { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; color: var(--ink-2); }

.form-divider { border: none; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

/* Service Cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .75rem; }
.service-card { border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 1rem .9rem; cursor: pointer; background: var(--white); text-align: left; transition: all .15s; position: relative; overflow: hidden; user-select: none; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.service-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,97,174,.10), 0 2px 6px rgba(29,97,174,.06); }
.service-card:hover .svc-icon { color: var(--accent-2); }
.service-card:hover .svc-name { color: var(--accent-2); }
.service-card.active { border-color: var(--accent); background: rgba(47,173,101,.04); animation: selectConfirm .3s ease-out; }
.service-card.active::after { transform: scaleX(1); }
.service-card.active .svc-icon { color: var(--accent); }
.service-card.active .svc-name { color: #228a50; }
@keyframes selectConfirm { 0% { transform: scale(1); } 50% { transform: scale(1.015); } 100% { transform: scale(1); } }

.svc-check { position: absolute; top: .5rem; right: .5rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .7rem; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s; }
.service-card.active .svc-check { opacity: 1; transform: scale(1); }
.svc-icon { font-size: 1.25rem; color: var(--ink-3); margin-bottom: .5rem; transition: color .15s; }
.svc-name { font-family: var(--ff-head); font-size: .9rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); display: block; margin-bottom: .25rem; transition: color .15s; }
.svc-desc { font-size: .75rem; color: var(--ink-3); line-height: var(--lh-body); }
.svc-summary { font-size: .8rem; color: var(--accent); font-weight: 600; min-height: 1.2em; margin-top: .5rem; transition: opacity .15s; }
.svc-summary:empty { margin-top: 0; }
.svc-summary--empty { color: var(--ink-3); font-weight: 400; font-style: italic; }

/* Project Type Cards (commercial / residential) */
.project-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-type-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem 1.25rem; border: 2px solid var(--rule); border-radius: var(--radius); background: var(--white); cursor: pointer; transition: all .2s ease; user-select: none; }
.project-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.project-type-card__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ink-2); margin-bottom: .75rem; transition: all .2s; }
.project-type-card__title { font-family: var(--ff-head); font-size: .9rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); margin-bottom: var(--space-title-gap); transition: color .2s; }
.project-type-card__desc { font-size: .75rem; color: var(--ink-3); line-height: var(--lh-body); }
.project-type-card__check { position: absolute; top: .6rem; right: .6rem; width: 24px; height: 24px; border-radius: 50%; background: var(--rule); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: all .2s; }
.project-type-card__check svg { stroke: var(--white); }
.project-type-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(29,97,174,.10); }
.project-type-card:hover .project-type-card__icon { background: rgba(29,97,174,.08); color: var(--accent-2); }
.project-type-card--active,
.project-type-card:has(input:checked) { border-color: var(--accent-2); background: rgba(29,97,174,.04); box-shadow: 0 4px 12px rgba(29,97,174,.12), inset 0 0 0 1px var(--accent-2); }
.project-type-card--active .project-type-card__icon,
.project-type-card:has(input:checked) .project-type-card__icon { background: var(--accent-2); color: var(--white); }
.project-type-card--active .project-type-card__title,
.project-type-card:has(input:checked) .project-type-card__title { color: var(--accent-2); }
.project-type-card--active .project-type-card__check,
.project-type-card:has(input:checked) .project-type-card__check { opacity: 1; transform: scale(1); background: var(--accent-2); }
@media (max-width: 480px) { .project-type-grid { grid-template-columns: 1fr; gap: .75rem; } }

/* Attachment preview */
.attachment-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.attachment-preview__thumb { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; border: 1px solid var(--rule); }
.attachment-preview__item { position: relative; }
.attachment-preview__remove { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); border: none; font-size: .65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Dropzone */
.dropzone { position: relative; border: 2px dashed var(--rule); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface); }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent-2); background: rgba(29,97,174,.03); }
.dropzone--active { border-color: var(--accent); background: rgba(47,173,101,.05); border-style: solid; }
.dropzone--error { border-color: #c0392b; background: rgba(192,57,43,.04); animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-4px)} 40%,80%{transform:translateX(4px)} }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__content { pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.dropzone__icon { font-size: 2rem; color: var(--ink-3); opacity: .5; margin-bottom: .25rem; }
.dropzone--active .dropzone__icon { color: var(--accent); opacity: 1; }
.dropzone__label { font-family: var(--ff-head); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.dropzone__browse { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.dropzone__hint { font-size: .75rem; color: var(--ink-3); }

/* Attachment List (cards with notes) */
.attachment-list { display: flex; flex-direction: column; gap: .65rem; margin-top: .75rem; }
.attachment-card { display: grid; grid-template-columns: 72px 1fr auto; gap: .75rem; align-items: start; padding: .75rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); animation: slideIn .2s ease; }
.attachment-card__thumb { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; display: block; background: var(--surface); }
.attachment-card__thumb--pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--accent-2); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-label); object-fit: unset; }
.attachment-card__body { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.attachment-card__name { font-size: .8rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card__size { font-size: .7rem; color: var(--ink-3); }
.attachment-card__note { font-family: var(--ff-body); font-size: .8rem; padding: .4rem .6rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink); outline: none; width: 100%; resize: none; min-height: 2.2em; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.attachment-card__note::placeholder { color: #b8b0a8; font-weight: 300; }
.attachment-card__note:focus { border-color: var(--accent-2); background: var(--white); box-shadow: 0 0 0 3px rgba(29,97,174,.1); }
.attachment-card__remove { width: 24px; height: 24px; border-radius: 50%; background: transparent; border: 1px solid var(--rule); color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .7rem; line-height: 1; transition: all .15s; flex-shrink: 0; margin-top: .25rem; }
.attachment-card__remove:hover { background: var(--emergency); border-color: var(--emergency); color: var(--white); }

/* Field error */
.field-error { font-size: .8rem; color: #c0392b; margin-top: .35rem; font-weight: 600; }

/* Size Cards */
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .5rem; }
.size-card { border: 1.5px solid var(--rule); border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; background: var(--white); text-align: left; transition: all .15s; user-select: none; }
.size-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,97,174,.10), 0 2px 6px rgba(29,97,174,.06); }
.size-card:hover .sz-name { color: var(--accent-2); }
.size-card.active { border-color: var(--accent-2); background: rgba(29,97,174,.04); animation: selectConfirm .3s ease-out; }
.size-card.active .sz-name { color: var(--accent-2); }
.sz-name { font-family: var(--ff-head); font-size: .85rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); margin-bottom: .2rem; transition: color .15s; }
.sz-sub { font-size: .8rem; color: var(--ink-3); }
.size-note { font-size: .75rem; color: var(--ink-3); font-style: italic; margin-top: .4rem; }

/* Conditional panels */
.conditional { display: none; border-left: 2px solid var(--accent); padding-left: 1.1rem; margin-top: .75rem; margin-bottom: .5rem; animation: slideIn .18s ease; }
.conditional.visible { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.cond-label { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: #228a50; margin-bottom: .9rem; }

/* Field labels & layout */
.field-label { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; display: flex; align-items: center; gap: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: .9rem; }
.field-row--full { grid-template-columns: 1fr; }
.field-group { display: flex; flex-direction: column; gap: .3rem; }
.field-hint { font-size: .75rem; color: var(--ink-3); line-height: 1.5; margin-top: .15rem; }

/* Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--ff-body); font-size: .88rem; font-weight: 400;
  padding: .65rem .75rem;
  border: 1.5px solid var(--rule); border-radius: 4px;
  background: var(--surface); color: var(--ink);
  outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #b0ab9f; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent-2); background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,97,174,.12), 0 1px 2px rgba(29,97,174,.08);
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}
.contact-form textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b8b0a8; font-weight: 300; }

/* Validated fields */
.contact-form input.valid, .contact-form select.valid {
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232FAD65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.contact-form select.valid {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232FAD65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 32px center, right 12px center;
  padding-right: 52px;
}

/* Radio groups and check groups */
.radio-group, .check-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.radio-row, .check-row {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .85rem; font-weight: 400; color: var(--ink);
  cursor: pointer; line-height: 1.45; padding: .2rem .5rem .2rem .25rem;
  border-radius: 4px; transition: color .15s, background .15s;
}
.radio-row:hover, .check-row:hover { background: rgba(29,97,174,.04); color: var(--accent-2); }
.radio-row input[type="radio"],
.check-row input[type="checkbox"] {
  width: 15px; height: 15px; margin: 0; flex-shrink: 0;
  cursor: pointer; accent-color: var(--accent-2); margin-top: 2px;
}

/* Referral Grid */
.referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px .75rem; }
.referral-option { padding: .35rem .5rem .35rem .25rem; }

/* Utility Alert / Education Blocks */
.utility-alert { display: none; background: #fffbeb; border: 1px solid #e6c456; border-radius: var(--radius); padding: .9rem 1rem; margin-top: .75rem; animation: slideIn .2s ease; }
.utility-alert.visible { display: block; }
.utility-alert__head { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.utility-alert__icon { color: #b88a00; font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.utility-alert__title { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: #7a5500; line-height: var(--lh-body); }
.utility-alert__body { font-size: .8rem; color: #7a5500; line-height: var(--lh-body); }
.utility-alert__body p { margin-bottom: .5rem; }
.utility-alert__body a { color: #7a5500; font-weight: 600; text-decoration: underline; }
.utility-alert__note { margin-top: .5rem; font-style: italic; }

.edu-block { background: rgba(255,255,255,.55); border: 1px solid #e6c456; border-radius: 5px; padding: .75rem .9rem; margin-bottom: .6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.edu-block:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(184,138,0,.15); border-color: #b88a00; }
.edu-block__title { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: #7a5500; display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.edu-block__title i { color: #b88a00; font-size: .75rem; }
.edu-block p { font-size: .75rem; color: #7a5500; line-height: var(--lh-body); margin-bottom: .35rem; }
.edu-block p:last-of-type { margin-bottom: .5rem; }
.edu-link { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: #7a5500; text-decoration: none; border-bottom: 1px solid #e6c456; padding-bottom: 1px; transition: color .15s, gap .2s; }
.edu-link:hover { border-color: #b88a00; color: #5a3e00; gap: .5rem; }
.edu-link i { font-size: .6rem; }

/* Submit button */
.form-submit-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin-top: 1.5rem; padding: 1rem 2rem; font-size: .95rem; position: relative; overflow: hidden; box-shadow: 0 2px 10px rgba(47,173,101,.28); }
.form-submit-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transition: left .6s ease; }
.form-submit-btn:hover::before { left: 100%; }
.form-disclaimer { font-size: .75rem; color: var(--ink-3); text-align: center; margin-top: .65rem; line-height: 1.6; }

/* Sidebar Cards (new design) */
.sidebar-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.sidebar-card:hover { border-color: rgba(29,97,174,.3); box-shadow: 0 4px 16px rgba(29,97,174,.08); }
.sidebar-card__head { background: var(--ink); padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem; }
.sidebar-card__head i { color: var(--accent-2); font-size: .75rem; }
.sidebar-card__head-title { font-family: var(--ff-head); font-size: .75rem; font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.7); }
.sidebar-card__body { padding: 1rem; }

.trust-item { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); transition: background .2s; margin: 0 -.35rem; padding-left: .35rem; padding-right: .35rem; border-radius: 4px; }
.trust-item:last-child { border-bottom: none; padding-bottom: 0; }
.trust-item:first-child { padding-top: 0; }
.trust-item:hover { background: rgba(29,97,174,.04); }
.trust-item:hover .trust-icon-wrap { background: rgba(29,97,174,.18); transform: scale(1.05); }
.trust-icon-wrap { width: 28px; height: 28px; background: rgba(29,97,174,.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, transform .2s; }
.trust-icon-wrap i { color: var(--accent-2); font-size: .7rem; }
.trust-label { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-label); color: var(--ink); text-transform: uppercase; display: block; margin-bottom: .1rem; }
.trust-detail { font-size: .75rem; color: var(--ink-3); line-height: var(--lh-body); }

.contact-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .85rem; color: var(--ink); padding: .2rem .35rem; margin: 0 -.35rem .3rem; border-radius: 4px; transition: background .15s; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row:hover { background: rgba(29,97,174,.05); }
.contact-row:hover a { color: var(--accent-2); }
.contact-row i { color: var(--accent-2); font-size: .75rem; flex-shrink: 0; }
.contact-row a { color: var(--ink); text-decoration: none; font-weight: 500; transition: color .15s; }

.territory-states { display: flex; gap: .5rem; margin-bottom: .5rem; }
.state-pill { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-button); padding: .2rem .75rem; border-radius: 3px; background: rgba(29,97,174,.08); border: 1px solid rgba(29,97,174,.2); color: var(--accent-2); transition: all .2s; cursor: default; }
.state-pill:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--white); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(29,97,174,.25); }
.territory-note { font-size: .75rem; color: var(--ink-3); line-height: 1.5; }

/* Thank You */
.thank-you { text-align: center; padding: 2.5rem 2rem; }
.thank-you__icon { font-size: 3.5rem; color: var(--accent-2); margin-bottom: 1rem; }
.thank-you__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 2rem; text-align: left; }
.thank-you__step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; }
.thank-you__step-num { width: 26px; height: 26px; min-width: 26px; background: var(--accent-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-size: .8rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.thank-you__step strong { display: block; font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; }
.thank-you__step p { font-size: .75rem; color: var(--ink-3); line-height: var(--lh-body); }

/* Legal Pages */
.legal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.legal-content { min-width: 0; }
.legal-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.legal-toc { display: flex; flex-direction: column; gap: .5rem; }
.legal-toc a { font-size: .85rem; color: var(--ink-2); padding: .25rem 0; border-bottom: 1px solid var(--rule); transition: color .2s; }
.legal-toc a:hover { color: var(--accent); }
.callout-box { display: flex; gap: 1rem; background: rgba(47,173,101,.08); border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.callout-box__icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: .25rem; }
.callout-box h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.callout-box p { color: var(--ink-2); font-size: .9rem; margin-bottom: .5rem; }
.callout-box p:last-child { margin-bottom: 0; }

/* Featured Project */
.featured-project { display: grid; grid-template-columns: 2fr 3fr; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.featured-project__image { min-width: 0; }
.featured-project__image img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08); }
.featured-project__info .pill { margin-bottom: 1rem; }
.featured-project__title { font-family: var(--ff-head); font-size: 1.75rem; font-weight: 800; line-height: var(--lh-tight); margin-bottom: var(--space-title-gap); }
.featured-project__desc { color: var(--ink-2); margin-bottom: 1.5rem; }
.featured-project__stats { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.featured-project__stat { display: flex; flex-direction: column; }
.featured-project__stat-num { font-family: var(--ff-head); font-size: 1.75rem; font-weight: 800; color: var(--accent-2); line-height: 1; }
.featured-project__stat-label { font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }

/* Careers Page */
.careers-list { display: flex; flex-direction: column; gap: 1rem; }
.career-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: box-shadow .2s; }
.career-card:hover { box-shadow: var(--shadow); }
.career-card__info { flex: 1; min-width: 0; }
.career-card__title { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; line-height: var(--lh-tight); margin-bottom: .5rem; }
.career-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.career-card__meta .pill i { margin-right: .25rem; }
.career-card__desc { color: var(--ink-2); font-size: .9rem; }
.careers-group__title { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--ink); margin: 3rem 0 1.25rem; }
.careers-group__title:first-of-type { margin-top: 0; }

/* 404 */
.not-found__num { font-family: var(--ff-head); font-size: 10rem; font-weight: 800; color: var(--rule); line-height: 1; margin-bottom: 1rem; }

/* Footer */
.footer { background: var(--ink); padding: 4rem 0 1.5rem; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__logo { display: block; margin-bottom: 1rem; }
.footer__logo-img { height: 36px; width: auto; display: block; }
.footer__tagline { color: #777; font-size: .9rem; margin-bottom: 1rem; }
.footer__nap { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1rem; }
.footer__nap-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; font-size: .85rem; color: #999; }
.footer__nap-row:last-child { margin-bottom: 0; }
.footer__nap-row i { color: #555; width: 16px; text-align: center; }
.footer__nap-row a { color: #999; }
.footer__nap-row a:hover { color: var(--accent); }
.footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #999; font-size: .95rem; transition: all .2s; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47,173,101,.3); }
.footer__col { display: flex; flex-direction: column; gap: .5rem; }
.footer__col-title { font-family: var(--ff-head); font-size: .8rem; font-weight: 700; letter-spacing: var(--track-button); text-transform: uppercase; color: #777; margin-bottom: .5rem; }
.footer__col a { color: #999; font-size: .9rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__hours { color: #777; font-size: .85rem; }
.footer__territory { display: flex; gap: .5rem; margin-top: .5rem; }
.footer__territory .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #999; font-size: .75rem; }
.footer__bottom { border-top: 1px solid #252525; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.footer__bottom p { color: #555; font-size: .8rem; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: #555; font-size: .8rem; transition: color .2s; }
.footer__bottom-links a:hover { color: #999; }

/* Scroll to Top */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 50; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #28964a; transform: translateY(-2px); }

/* Logo mark */
.footer__logo-img { border-radius: 0; }

/* Scroll Reveal Animations — applied via JS class .reveal-init */
.reveal-init { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal-init.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
/* Fallback: if JS doesn't load, no hiding */
@media print { .reveal-init { opacity: 1 !important; transform: none !important; } }
noscript ~ * .reveal-init, .no-js .reveal-init { opacity: 1 !important; transform: none !important; }

/* Hover lift for interactive cards */
.service-detail-card { transition: transform .25s, box-shadow .25s; }
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.license-card { transition: transform .25s, box-shadow .25s; }
.license-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cert-detail-card { transition: transform .25s, box-shadow .25s; }
.cert-detail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.value-card { transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-service { transition: transform .25s, box-shadow .25s; }
.about-service:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Nav link hover underline */
.nav__link { position: relative; }
.nav__link::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; border-radius: 1px; }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__dropdown > .nav__link::after { display: none; }
.nav__link.active { color: var(--white); }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1024px) {
  .service-cards, .service-detail-grid, .about-services, .values-grid, .cert-detail-grid, .license-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .two-col-cap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cert-grid--center { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .featured-project { grid-template-columns: 1fr; }
  .featured-project__image { max-width: 70vw; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero--video { padding: 4rem 1.5rem 3rem; }
  .hero__overlay { background: linear-gradient(180deg, rgba(20,20,20,.78) 0%, rgba(20,20,20,.65) 40%, rgba(20,20,20,.82) 100%); }
  .nav__links, .nav__phone { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-img { height: 36px; }
  .page-header__title { font-size: clamp(2rem, 5vw, 2.5rem); }
  .page-header--blue { min-height: 360px; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .career-card { flex-direction: column; align-items: flex-start; }
  .service-cards, .service-detail-grid, .about-services, .values-grid, .cert-detail-grid, .license-grid, .territory-map__states { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-strip { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .process-step { border-right: none; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-band__actions { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { grid-template-columns: 1fr; }
  .contact-form { padding: 1.25rem; }
  .form-progress { padding: .875rem 1.25rem; }
  .sidebar { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .referral-grid { grid-template-columns: 1fr; }
  .thank-you__steps { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .thank-you__steps { flex-direction: column; }
  .cert-grid--center { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.5rem; }

  .trust-strip__inner { gap: 1rem; }
  .trust-strip__pill { font-size: .65rem; }
  .section__header { flex-direction: column; align-items: flex-start; }
  .callout-box { flex-direction: column; }
  .emergency-bar__text { font-size: .7rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero--video { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .stats-bar__inner { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .not-found__num { font-size: 6rem; }
}

/* Accessibility: pause video for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero--video .hero__bg { display: block; }
  .hero__overlay { background: transparent; }
}
