/* components/components.css — consumes tokens.css only.
   Base + component structure. States live in states.css. */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  margin: 0 0 var(--space-4);
  color: inherit;
}
h1 { font-size: var(--text-h1); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: var(--track-h3); }
h1, h2, h3, p, dt, dd { overflow-wrap: break-word; }
p, ul, ol, dl { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: var(--color-navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  z-index: var(--z-skip);
  background: var(--color-navy-800); color: var(--text-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-control) var(--radius-control);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--space-16); }
.section--tint {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--bg-tint) 18%, var(--bg-tint) 82%, var(--color-white) 100%);
}
.section--band {
  background:
    radial-gradient(90rem 40rem at 85% -20%, rgba(245, 179, 1, 0.10), transparent 60%),
    linear-gradient(160deg, var(--color-navy-700) 0%, var(--color-navy-800) 45%, var(--color-navy-900) 100%);
  color: var(--text-on-dark);
}
.section--band .muted, .section--band p { color: var(--text-on-dark-muted); }
.section--band h2, .section--band h3, .section--band dt, .section--band strong { color: var(--text-on-dark); }
.lead { font-size: var(--text-lead); color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--nav-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: 4.25rem;
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; color: var(--color-navy-800);
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.brand .brand__mark { color: var(--accent-text); }
.brand__logo { width: 2.25rem; height: 2.25rem; flex: none; }
.site-footer .brand { color: var(--text-on-dark); margin-bottom: var(--space-3); }
.site-footer .brand .brand__mark { color: var(--accent); }
.nav-primary { margin-left: auto; }
.nav-primary ul {
  list-style: none; display: flex; gap: var(--space-5);
  margin: 0; padding: 0;
}
.nav-primary a {
  text-decoration: none; color: var(--color-gray-700);
  font-size: var(--text-sm); font-weight: 600;
  padding: var(--space-2) 0; border-bottom: 2px solid transparent;
  display: inline-block; min-height: 24px;
}
.nav-primary a[aria-current="page"] {
  color: var(--color-navy-800);
  border-bottom-color: var(--accent);
}
.header-utility { display: flex; align-items: center; gap: var(--space-4); }
.header-phone {
  font-weight: 600; font-size: var(--text-sm);
  color: var(--color-navy-800); text-decoration: none; white-space: nowrap;
}
.nav-disclosure { display: none; }

/* Mobile header: disclosure nav, hide inline nav/utility */
@media (max-width: 63.9375rem) {
  .nav-primary, .header-utility { display: none; }
  .brand { font-size: 1rem; }
  .nav-disclosure { display: block; margin-left: auto; position: relative; }
  .nav-disclosure summary {
    list-style: none; cursor: pointer;
    font-weight: 600; font-size: var(--text-sm);
    color: var(--color-navy-800);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--hairline); border-radius: var(--radius-control);
    min-height: 44px; display: flex; align-items: center;
  }
  .nav-disclosure summary::-webkit-details-marker { display: none; }
  .nav-disclosure ul {
    list-style: none; margin: var(--space-2) 0 0; padding: var(--space-2);
    position: absolute; right: 0; min-width: 14rem;
    background: var(--color-white);
    border: 1px solid var(--hairline); border-radius: var(--radius-card);
    box-shadow: var(--shadow-hover);
  }
  .nav-disclosure li a {
    display: block; padding: var(--space-3) var(--space-4);
    text-decoration: none; color: var(--color-gray-700);
    font-weight: 600; border-radius: var(--radius-control);
    min-height: 44px;
  }
  .nav-disclosure li a[aria-current="page"] { color: var(--color-navy-800); background: var(--bg-tint); }
}

/* ---------- Kicker (Gold Meridian carrier) ---------- */
.kicker {
  display: block;
  font-size: var(--text-caption);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.kicker::after {
  content: ""; display: block;
  width: var(--meridian-width); height: var(--meridian-height);
  background: var(--accent); margin-top: var(--space-2);
}
.kicker--on-dark { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 44px; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-control);
  font-family: var(--font-text); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--color-navy-900); }
.btn--ghost { border-color: var(--color-navy-800); color: var(--color-navy-800); background: transparent; }
.btn--ghost-dark { border-color: var(--text-on-dark); color: var(--text-on-dark); background: transparent; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
.card-grid > * { min-width: 0; }
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: linear-gradient(180deg, var(--color-white) 0%, #fdfefe 60%, #f8fafc 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-rest);
  padding: var(--space-6);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  position: relative; overflow: clip;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(245, 179, 1, 0.25) 55%, transparent 100%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.card--link:hover::before, .card--person:hover::before { opacity: 1; }
.card h3 a { text-decoration: none; color: var(--color-navy-800); }
.card--person figure { margin: 0 0 var(--space-4); }
.card--person img { border-radius: var(--radius-card); aspect-ratio: 1; object-fit: cover; background: var(--color-navy-100); }
.card--person .role {
  font-size: var(--text-caption); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: var(--space-2);
}

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: var(--space-6); margin: 0; max-width: none;
  grid-template-columns: 1fr;
}
.stats > * { min-width: 0; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat dt { font-size: var(--text-sm); color: var(--text-on-dark-muted); order: 2; }
.stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h1); letter-spacing: var(--track-display);
  background: linear-gradient(120deg, #ffd97a 0%, var(--accent) 55%, #e09b00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat {
  display: flex; flex-direction: column;
  padding-left: var(--space-4);
  border-left: 3px solid rgba(245, 179, 1, 0.55);
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; max-width: none;
  display: grid; gap: var(--space-5); }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h2); color: var(--accent-text);
  margin-bottom: var(--space-2);
}
.steps h3 { margin-bottom: var(--space-2); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3);
  letter-spacing: var(--track-h3);
  padding: var(--space-4) var(--space-6) var(--space-4) 0;
  position: relative; min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: var(--space-4);
  color: var(--accent-text); font-size: 1.5rem; line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding-bottom: var(--space-4); color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--space-3); font-size: var(--text-lead); }
.quote blockquote p::before { content: "\201C"; color: var(--accent-text); }
.quote blockquote p::after { content: "\201D"; color: var(--accent-text); }
.quote figcaption { font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.quote--standalone { margin-top: var(--space-8); }

/* ---------- CTA band (meridian at full scale) ---------- */
.cta-band {
  background:
    radial-gradient(60rem 30rem at 15% 120%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #ffd23f 0%, var(--accent) 55%, #e0a400 100%);
  color: var(--color-navy-900); padding-block: var(--space-12);
}
.cta-band h2 { color: var(--color-navy-900); }
.cta-band p { color: var(--color-navy-900); }
.cta-band .btn--primary { background: var(--color-navy-800); color: var(--text-on-dark); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.cta-band .header-phone { color: var(--color-navy-900); font-size: var(--text-base); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol {
  list-style: none; display: flex; gap: var(--space-2);
  margin: 0 0 var(--space-4); padding: 0;
  font-size: var(--text-caption);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-on-dark-muted); }
.breadcrumb a { color: var(--text-on-dark-muted); }
.breadcrumb [aria-current="page"] { color: var(--text-on-dark); }

/* ---------- Heroes ---------- */
.hero--cinematic {
  background:
    linear-gradient(180deg, rgba(8, 31, 56, 0.55) 0%, rgba(8, 31, 56, 0.15) 55%, rgba(8, 31, 56, 0.45) 100%),
    url("../assets/skyline.svg") center bottom / cover no-repeat,
    var(--color-navy-900);
  color: var(--text-on-dark);
  padding-block: var(--space-20) clamp(8rem, 6rem + 10vw, 14rem);
}
.hero--cinematic h1 {
  text-shadow: 0 2px 24px rgba(8, 31, 56, 0.55);
}
.hero--cinematic h1 { font-size: var(--text-hero); max-width: 18ch; }
.hero--cinematic .lead { color: var(--text-on-dark-muted); }
.hero--interior {
  background:
    radial-gradient(70rem 30rem at 100% 0%, rgba(245, 179, 1, 0.12), transparent 55%),
    linear-gradient(150deg, var(--color-navy-700) 0%, var(--color-navy-800) 50%, var(--color-navy-900) 100%);
  color: var(--text-on-dark); padding-block: var(--space-12);
  border-bottom: 3px solid var(--accent);
}
.hero--interior .lead { color: var(--text-on-dark-muted); }
.hero--interior h1 { text-shadow: 0 2px 20px rgba(8, 31, 56, 0.6); }

/* Illustrated interior heroes — dusk scene behind a navy scrim for AA contrast */
.hero--residential,
.hero--commercial,
.hero--about {
  padding-block: var(--space-16) clamp(5rem, 4rem + 6vw, 9rem);
}
.hero--residential {
  background:
    linear-gradient(180deg, rgba(8, 31, 56, 0.72) 0%, rgba(8, 31, 56, 0.35) 60%, rgba(8, 31, 56, 0.55) 100%),
    url("../assets/hero-residential.svg") center bottom / cover no-repeat,
    var(--color-navy-900);
}
.hero--commercial {
  background:
    linear-gradient(180deg, rgba(8, 31, 56, 0.72) 0%, rgba(8, 31, 56, 0.35) 60%, rgba(8, 31, 56, 0.55) 100%),
    url("../assets/hero-commercial.svg") center bottom / cover no-repeat,
    var(--color-navy-900);
}
.hero--about {
  background:
    linear-gradient(180deg, rgba(8, 31, 56, 0.75) 0%, rgba(8, 31, 56, 0.4) 60%, rgba(8, 31, 56, 0.55) 100%),
    url("../assets/skyline.svg") center 70% / cover no-repeat,
    var(--color-navy-900);
}
.hero--utility { padding-block: var(--space-16) 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* ---------- Two-column split ---------- */
.split { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: var(--space-5); max-width: 36rem; }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-weight: 600; font-size: var(--text-sm); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text-body);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-gray-500);
  border-radius: var(--radius-control);
  background: var(--color-white);
  min-height: 44px; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.field .radio-row { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.field .radio-row input { width: 1.25rem; height: 1.25rem; min-height: 0; }
.field__hint { font-size: var(--text-caption); color: var(--text-muted); }
.field__error { display: none; font-size: var(--text-caption); color: var(--color-error); font-weight: 600; }
.turnstile-slot { min-height: 65px; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(80rem 30rem at 0% 0%, rgba(18, 58, 99, 0.6), transparent 60%),
    var(--color-navy-900);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-12) var(--space-8);
  font-size: var(--text-sm);
  border-top: 3px solid var(--accent);
}
.site-footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2, .site-footer .footer-heading {
  font-family: var(--font-display); font-size: var(--text-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-on-dark); margin-bottom: var(--space-3); font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-on-dark-muted); }
.site-footer address { font-style: normal; }
.site-footer__legal {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-caption);
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-callbar);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--hairline);
}
.callbar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; font-weight: 600; font-size: var(--text-sm);
  text-decoration: none;
}
.callbar__call { background: var(--color-navy-800); color: var(--text-on-dark); }
.callbar__quote { background: var(--accent); color: var(--color-navy-900); }
@media (min-width: 64rem) { .callbar { display: none; } }
@media (max-width: 63.9375rem) { body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); } }
