/* ==========================================================================
   DetroitCommercialDoors.com
   Galvanized steel neutrals, red-oxide primer, bollard yellow for the phone.
   One family (Archivo variable): condensed for display, normal width for text.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Galvanized neutrals (tinted toward steel, never toward cream) */
  --surface: oklch(0.992 0.002 250);
  --field: oklch(0.962 0.004 250);
  --field-alt: oklch(0.925 0.006 250);
  --ink: oklch(0.21 0.012 255);
  --ink-2: oklch(0.35 0.012 255);
  --muted: oklch(0.46 0.012 255);
  --line: oklch(0.21 0.012 255 / 0.16);
  --line-strong: oklch(0.21 0.012 255 / 0.4);

  /* Primed steel (dark sections) */
  --steel: oklch(0.27 0.012 255);
  --steel-deep: oklch(0.205 0.012 255);
  --on-steel: oklch(0.95 0.004 250);
  --on-steel-muted: oklch(0.78 0.008 250);
  --line-on-steel: oklch(0.95 0.004 250 / 0.18);

  /* Red-oxide primer (brand) and bollard yellow (phone actions only) */
  --oxide: oklch(0.46 0.135 33);
  --oxide-deep: oklch(0.38 0.12 33);
  --oxide-lite: oklch(0.76 0.11 40);
  --signal: oklch(0.87 0.17 96);
  --signal-deep: oklch(0.8 0.165 90);
  --glass: oklch(0.84 0.025 235);
  --good: oklch(0.52 0.12 155);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1260px;
  --gutter: clamp(20px, 4vw, 40px);
  --band-pad: clamp(56px, 8vw, 116px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 100;
  --z-dropdown: 110;
  --z-sticky: 9999;
  --z-modal: 10000;

  /* Aliases kept for inline styles that survive in page bodies */
  --brand: var(--ink);
  --brand-dark: var(--steel-deep);
  --bg: var(--field);
  --bg-card: var(--surface);
  --bg-subtle: var(--field-alt);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --ink-strong: var(--ink);
  --amber: var(--oxide);
  --amber-light: var(--oxide-lite);
  --brass: var(--oxide);
  --brass-light: var(--oxide-lite);
  --amber-subtle: oklch(0.46 0.135 33 / 0.07);
  --border-amber: oklch(0.46 0.135 33 / 0.35);
  --radius-xs: 2px;
  --radius-sm: 2px;
  --shadow-sm: none;
  --content-font: var(--font);
  --display-font: var(--font);
  --mono-font: var(--font);
}

*, ::before, ::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--oxide); color: #fff; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: var(--z-modal);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1, h2 {
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.4rem); margin-bottom: 0.45em; }

h3 {
  font-stretch: 82%;
  font-weight: 750;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h4 {
  font-stretch: 88%;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1.15em;
  max-width: 68ch;
  text-wrap: pretty;
}

p strong, li strong { color: var(--ink); font-weight: 700; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Links inside running copy */
main p a:not(.btn), main li a:not(.btn), .accordion-content a {
  color: var(--oxide);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
main p a:not(.btn):hover, main li a:not(.btn):hover { color: var(--oxide-deep); text-decoration-thickness: 2.5px; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Bands ---------- */

section, .band { padding: var(--band-pad) 0; position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.band-alt { background: var(--field-alt); }
.band-steel {
  background: var(--steel);
  color: var(--on-steel-muted);
}
.band-steel h2, .band-steel h3, .band-steel h4, .band-steel p strong { color: var(--on-steel); }
.band-steel :focus-visible { outline-color: var(--signal); }

.prose { max-width: 820px; }
.prose > h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.6em; max-width: 68ch; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--oxide); }

/* Two-column heading / body split used on the homepage */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.split > :first-child h2 { margin-bottom: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 { max-width: 16ch; margin-bottom: 0.3em; }
.section-head p { margin-bottom: 0; }

.section-marker, .urgent-call-strip-tag { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }

.btn-large { padding: 17px 28px; font-size: 1.0625rem; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--oxide); border-color: var(--oxide); color: #fff; }

.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Yellow is reserved for phone actions. Text on it is always black. */
.btn-call, .btn-amber, .btn-brass {
  background: var(--signal);
  border-color: var(--signal);
  color: #000;
  font-variant-numeric: tabular-nums;
}
.btn-call:hover, .btn-amber:hover, .btn-brass:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  color: #000;
}

.band-steel .btn-ghost, .urgent-call-strip .btn-ghost, .cta-band .btn-ghost, .dispatch-banner .btn-ghost {
  border-color: oklch(1 0 0 / 0.55);
  color: #fff;
}
.band-steel .btn-ghost:hover, .urgent-call-strip .btn-ghost:hover, .cta-band .btn-ghost:hover, .dispatch-banner .btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.band-steel .btn-primary { background: var(--on-steel); border-color: var(--on-steel); color: var(--ink); }
.band-steel .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-stretch: 88%;
  border-bottom: 2px solid var(--oxide);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease-out), color 0.2s;
}
.text-link:hover { color: var(--oxide); gap: 12px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Utility bar + header ---------- */

.top-notice-bar {
  background: var(--steel-deep);
  color: var(--on-steel-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.top-notice-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 6px 24px;
  flex-wrap: wrap;
}
.top-notice-bar a {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-notice-bar :focus-visible { outline-color: var(--signal); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--field);
  border-bottom: 1px solid var(--line-strong);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-stretch: 66%;
  font-weight: 850;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--oxide); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-group { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  font-stretch: 90%;
  font-weight: 650;
  color: var(--ink);
  border-radius: 2px;
}
.nav-link:hover, .nav-group:hover > .nav-link, .nav-link[aria-current="page"] { color: var(--oxide); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-link .chevron { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.nav-group:hover .chevron, .nav-group.open .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -8px;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--oxide);
  box-shadow: 0 18px 40px -18px oklch(0.21 0.012 255 / 0.45);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-dropdown a {
  display: block;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown a:last-child { border-bottom: 0; }
.nav-dropdown a:hover { background: var(--field); }
.nav-dropdown .item-title { display: block; font-weight: 700; font-stretch: 88%; color: var(--ink); }
.nav-dropdown a:hover .item-title { color: var(--oxide); }
.nav-dropdown .item-desc { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { padding: 11px 16px; }
.header-quote {
  font-weight: 650;
  font-stretch: 90%;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 1px;
}
.header-quote:hover { color: var(--oxide); border-color: var(--oxide); }

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

/* ---------- Breadcrumb ---------- */

.breadcrumb-trail { border-bottom: 1px solid var(--line); font-size: 0.875rem; padding: 12px 0; }
.breadcrumb-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb-list a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-list a:hover { color: var(--oxide); }
.breadcrumb-list .sep { color: var(--muted); }

/* ---------- Homepage hero: annotated door ---------- */

.hero-home {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy {
  align-self: center;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

.hero-lead-badge {
  display: block;
  margin: 0 0 18px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--oxide);
  max-width: none;
}

.hero-headline { margin-bottom: 0.32em; }
.hero-headline .accent-text, .hero-headline em {
  color: var(--oxide);
  font-style: normal;
}
.hero-headline .accent-text { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero-note strong { color: var(--ink); }

.door-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--steel);
  color: var(--on-steel);
}

.door-photo {
  display: grid;
  align-items: center;
  overflow: hidden;
  max-height: min(660px, 74vh);
}
.door-photo-inner { position: relative; aspect-ratio: 1200 / 896; width: 100%; }
.door-photo-inner img { width: 100%; height: 100%; object-fit: cover; }

.door-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: #000;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px oklch(0.205 0.012 255 / 0.75);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  animation: marker-in 0.6s var(--ease-out) backwards;
  animation-delay: calc(0.35s + var(--i) * 0.12s);
}
@keyframes marker-in {
  from { transform: scale(0.35); }
}

.door-figure:has([data-part="1"]:hover) .door-marker[data-part="1"],
.door-figure:has([data-part="2"]:hover) .door-marker[data-part="2"],
.door-figure:has([data-part="3"]:hover) .door-marker[data-part="3"],
.door-figure:has([data-part="4"]:hover) .door-marker[data-part="4"],
.door-figure:has([data-part="1"]:focus-visible) .door-marker[data-part="1"],
.door-figure:has([data-part="2"]:focus-visible) .door-marker[data-part="2"],
.door-figure:has([data-part="3"]:focus-visible) .door-marker[data-part="3"],
.door-figure:has([data-part="4"]:focus-visible) .door-marker[data-part="4"] {
  transform: scale(1.45);
  box-shadow: 0 0 0 3px var(--steel-deep), 0 0 0 7px oklch(0.87 0.17 96 / 0.5);
}

.door-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.door-legend li { border-top: 1px solid var(--line-on-steel); }
.door-legend li:nth-child(odd) { border-right: 1px solid var(--line-on-steel); }
.door-legend li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.door-legend a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 2.4vw, 28px);
  color: var(--on-steel);
  font-size: 0.9688rem;
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.25;
  transition: background-color 0.18s;
}
.door-legend a:hover { background: var(--steel-deep); }
.door-legend a:focus-visible { outline-color: var(--signal); outline-offset: -4px; }
.door-legend .n {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: #000;
  font-size: 0.8125rem;
  font-weight: 800;
}
.door-legend .n-none { background: transparent; border: 1.5px solid var(--on-steel-muted); }
.door-legend svg { width: 15px; height: 15px; margin-left: auto; flex: none; opacity: 0.7; }

/* ---------- Subpage hero ---------- */

.hero-editorial {
  padding: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}
.hero-editorial h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-image-card, .hero-main-card { background: var(--steel); }
.hero-image-card img, .hero-main-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-floating-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--on-steel);
}
.hero-floating-stat .stat-item { padding: 14px 18px; }
.hero-floating-stat .stat-item + .stat-item { border-left: 1px solid var(--line-on-steel); }
.stat-value { font-stretch: 72%; font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: var(--on-steel); }
.stat-label { font-size: 0.875rem; color: var(--on-steel-muted); line-height: 1.3; margin-top: 3px; }

/* ---------- Ledger of operating facts ---------- */

.ledger-band { padding: 0; background: var(--field-alt); border-bottom: 1px solid var(--line); }
.ledger {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ledger > div { padding: 20px 20px 20px 0; }
.ledger dt { font-size: 0.875rem; color: var(--muted); }
.ledger dd { margin: 2px 0 0; font-weight: 700; font-stretch: 88%; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Direct answer (AEO) ---------- */

.direct-answer {
  margin: 0 0 1.6em;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 72ch;
}
.direct-answer > strong:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--oxide);
  font-stretch: 88%;
  font-weight: 750;
}

/* ---------- Fault triage ---------- */

.triage-box {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border-top: 1px solid var(--line-on-steel);
  border-bottom: 1px solid var(--line-on-steel);
  margin-top: clamp(28px, 4vw, 48px);
}

.triage-nav { display: flex; flex-direction: column; border-right: 1px solid var(--line-on-steel); }

.triage-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line-on-steel);
  color: var(--on-steel-muted);
  font-stretch: 86%;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.25;
  text-align: left;
  transition: color 0.18s, padding-left 0.25s var(--ease-out);
}
.triage-tab-btn:last-child { border-bottom: 0; }
.triage-tab-btn::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--signal);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}
.triage-tab-btn:hover { color: var(--on-steel); }
.triage-tab-btn.active { color: var(--on-steel); padding-left: 4px; }
.triage-tab-btn.active::before { transform: scale(1); }

.triage-content-panel {
  display: none;
  padding: clamp(24px, 3.4vw, 44px) 0 clamp(24px, 3.4vw, 44px) clamp(20px, 4vw, 56px);
}
.triage-content-panel.active { display: block; animation: panel-in 0.35s var(--ease-out); }
@keyframes panel-in { from { opacity: 0.2; transform: translateY(8px); } }
.triage-content-panel p { color: var(--on-steel-muted); }

.triage-specs-badge {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 32px;
  margin: 28px 0 0;
  border-top: 1px solid var(--line-on-steel);
}
.triage-row { padding: 12px 0; border-bottom: 1px solid var(--line-on-steel); }
.triage-k { display: block; font-size: 0.875rem; color: var(--on-steel-muted); }
.triage-v { display: block; margin: 0; font-weight: 700; font-stretch: 88%; color: var(--on-steel); font-variant-numeric: tabular-nums; }

/* ---------- Urgent call strip ---------- */

.urgent-call-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 2.2em 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--steel);
  color: var(--on-steel-muted);
}
.urgent-call-strip-text { flex: 1 1 300px; }
.urgent-call-strip-heading { font-stretch: 80%; font-weight: 750; font-size: 1.4rem; line-height: 1.15; color: var(--on-steel); }
.urgent-call-strip-desc { margin: 6px 0 0; font-size: 0.9688rem; color: var(--on-steel-muted); }
.urgent-call-strip-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.urgent-call-strip :focus-visible { outline-color: var(--signal); }

.band-steel .urgent-call-strip { background: none; padding: 0; margin: clamp(32px, 4vw, 52px) 0 0; }

/* ---------- Door schedule (services) ---------- */

.door-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.door-type { display: flex; flex-direction: column; }
.door-type + .door-type .door-copy { border-left: 1px solid var(--line); padding-left: 20px; }

.door-elev {
  display: flex;
  align-items: flex-end;
  padding: 0 20px 0 0;
  border-bottom: 3px solid var(--ink);
}
.door-type + .door-type .door-elev { padding-left: 20px; }
.door-elev svg { height: clamp(150px, 15.5vw, 224px); width: auto; overflow: hidden; }

.door-copy { padding: 22px 20px 0 0; flex: 1; display: flex; flex-direction: column; }
.door-copy h3 { font-size: 1.3rem; margin-bottom: 0.45em; }
.door-copy h3 a:hover { color: var(--oxide); }
.door-copy p { font-size: 0.9688rem; line-height: 1.5; margin-bottom: 1em; }
.door-copy .text-link { margin-top: auto; align-self: flex-start; font-size: 0.9688rem; }

/* elevation drawing parts */
.d-frame { fill: var(--ink); }
.d-void { fill: var(--steel-deep); }
.d-leaf { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.d-stile { fill: var(--steel); stroke: var(--ink); stroke-width: 1.5; }
.d-glass { fill: var(--glass); stroke: var(--ink); stroke-width: 1; }
.d-plate { fill: var(--field-alt); stroke: var(--ink); stroke-width: 1; }
.d-hw { fill: var(--ink); }
.d-hw-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.d-accent { fill: var(--oxide); }

.leaf {
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.55s var(--ease-out);
}
.leaf-r { transform-origin: right center; }
.leaf-sag { transform-origin: left top; transform: rotate(1.7deg); }

.door-type:hover .leaf, .door-type:focus-within .leaf { transform: scaleX(0.8) skewY(-5deg); }
.door-type:hover .leaf-r, .door-type:focus-within .leaf-r { transform: scaleX(0.8) skewY(5deg); }
.door-type:hover .leaf-sag, .door-type:focus-within .leaf-sag { transform: rotate(0deg); }

/* ---------- Tables ---------- */

.spec-table-wrap, .dispatch-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.8em 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.spec-table, .dispatch-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9688rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.spec-table th, .spec-table td, .dispatch-table th, .dispatch-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tbody tr:last-child td, .dispatch-table tbody tr:last-child td { border-bottom: 0; }

.spec-table thead th, .dispatch-table thead th {
  font-size: 0.875rem;
  font-weight: 700;
  font-stretch: 88%;
  color: var(--ink);
  background: var(--field-alt);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.spec-table td:first-child, .dispatch-table .city-cell { color: var(--ink); font-weight: 700; font-stretch: 90%; }
.spec-table tbody tr:hover, .dispatch-table tbody tr:hover { background: var(--field); }

.tag-pill { font-weight: 650; color: var(--ink); }

.dispatch-table .call-link {
  color: var(--oxide);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dispatch-table .call-link:hover { color: var(--oxide-deep); }

/* ---------- Photo pair + checklist ---------- */

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.photo-pair { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.photo-pair figure { margin: 0; }
.photo-pair figure:first-child { grid-column: 1 / 10; grid-row: 1; }
.photo-pair figure:last-child { grid-column: 7 / 13; grid-row: 1; transform: translateY(clamp(20px, 3vw, 44px)); border: 6px solid var(--field); }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair figcaption { font-size: 0.875rem; color: var(--muted); padding-top: 8px; max-width: 34ch; }
.photo-pair figure:last-child figcaption { background: var(--field); padding: 8px 0 0; }

.spec-list { list-style: none; margin: 1.6em 0 2em; padding: 0; border-top: 1px solid var(--line-strong); }
.spec-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { display: block; font-stretch: 88%; }

/* ---------- Point lists and corridors (were card grids) ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 1.8em 0 2.2em;
}
.point { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.point h4 { margin-bottom: 6px; }
.point p { margin: 0; font-size: 0.9688rem; line-height: 1.55; }
.points-stack { grid-template-columns: 1fr; }
.point-label { font-size: 0.875rem; color: var(--muted); }
.point-value { font-stretch: 86%; font-weight: 750; font-size: 1.25rem; color: var(--ink); line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.point-value a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--oxide); }
.point-note { font-size: 0.9375rem; color: var(--muted); margin-top: 4px; }

.corridors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0 clamp(24px, 3.4vw, 44px);
  margin-top: clamp(24px, 3vw, 40px);
}
.corridor {
  display: flex;
  flex-direction: column;
  padding: 20px 0 22px;
  border-top: 3px solid var(--ink);
}
.corridor h4 { margin-bottom: 2px; font-size: 1.2rem; }
.corridor-meta { font-size: 0.875rem; color: var(--muted); margin: 0 0 10px; }
.corridor p { font-size: 0.9688rem; line-height: 1.55; margin: 0 0 14px; }
.corridor h4 + p { margin-top: 6px; }
.corridor-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.corridor-eta { color: var(--ink); font-weight: 650; }
.corridor-call, main p a.corridor-call {
  margin-top: auto;
  color: var(--oxide);
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.corridor-call:hover { color: var(--oxide-deep); }

.subhead { margin: clamp(40px, 5vw, 64px) 0 0; }
.subhead h3 { margin-bottom: 0.3em; }
.subhead p { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.accordion-group { border-top: 3px solid var(--ink); max-width: 860px; }
.accordion-card { border-bottom: 1px solid var(--line-strong); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  text-align: left;
  font-stretch: 86%;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.18s;
}
.accordion-trigger:hover { color: var(--oxide); }

.accordion-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  font-size: 0;
  color: transparent;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 2.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), background-color 0.18s;
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-card.open .accordion-icon::after { transform: rotate(0deg); }
.accordion-card.open .accordion-icon::before, .accordion-card.open .accordion-icon::after { background: var(--oxide); }

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.accordion-content > * { overflow: hidden; margin: 0; min-height: 0; }
.accordion-card.open .accordion-content { grid-template-rows: 1fr; }
.accordion-card.open .accordion-content > * { padding-bottom: 22px; }

/* ---------- Closing call band (red oxide, full bleed) ---------- */

.cta-band {
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--oxide);
  color: oklch(0.96 0.02 40);
}
.dispatch-banner { position: relative; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: oklch(0.96 0.02 40); max-width: 56ch; font-size: 1.125rem; }
.cta-band :focus-visible { outline-color: #fff; }

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: clamp(24px, 3vw, 40px);
}

.cta-phone {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  font-stretch: 66%;
  font-weight: 850;
  font-size: clamp(3rem, 8.4vw, 6rem);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
  transition: text-decoration-thickness 0.2s var(--ease-out);
}
.cta-phone:hover { text-decoration-thickness: 0.12em; }
.cta-phone span {
  font-stretch: 90%;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 10px;
  text-decoration: none;
  display: inline-block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--steel-deep);
  color: var(--on-steel-muted);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  font-size: 0.9688rem;
}
.site-footer :focus-visible { outline-color: var(--signal); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 4vw, 56px);
  padding-bottom: 44px;
}

.site-footer .wordmark { color: #fff; font-size: 1.6rem; display: inline-block; margin-bottom: 14px; }
.site-footer .wordmark span { color: var(--oxide-lite); }
.site-footer p { color: var(--on-steel-muted); max-width: 44ch; }

.footer-contact { margin: 18px 0 0; display: grid; gap: 4px; }
.footer-contact dt { font-size: 0.875rem; margin-top: 8px; }
.footer-contact dd { margin: 0; color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }

.footer-col h4 { color: #fff; font-size: 1.0625rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--signal); }

.footer-bottom {
  border-top: 1px solid var(--line-on-steel);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile sticky call bar ---------- */

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--steel-deep);
  border-top: 1px solid var(--line-on-steel);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobile-sticky-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; }
.mobile-sticky-call-btn, .mobile-sticky-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px;
  border-radius: 2px;
  font-stretch: 86%;
  font-weight: 750;
  font-size: 1rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mobile-sticky-call-btn { background: var(--signal); color: #000; }
.mobile-sticky-quote-btn { border: 2px solid oklch(1 0 0 / 0.55); color: #fff; }
.mobile-sticky-bar :focus-visible { outline-color: #fff; }

/* ---------- Quote dialog + forms ---------- */

.quote-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: oklch(0.205 0.012 255 / 0.78);
}
.quote-modal-backdrop.active { display: flex; }

.quote-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border-top: 6px solid var(--oxide);
  padding: clamp(22px, 4vw, 40px);
  animation: dialog-in 0.3s var(--ease-out);
}
@keyframes dialog-in { from { transform: translateY(14px); opacity: 0.4; } }
.quote-modal-dialog h3 { font-stretch: 70%; font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; padding-right: 44px; }
.quote-modal-dialog > p { font-size: 0.9688rem; }

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--line-strong);
  border-radius: 2px;
}
.modal-close-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.modal-close-btn svg { width: 18px; height: 18px; }

.modal-urgent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: var(--field-alt);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.9688rem;
}
.modal-urgent .btn { padding: 9px 14px; font-size: 0.9688rem; }

.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-top: 6px solid var(--oxide); padding: clamp(22px, 4vw, 40px); }
.form-card h3 { font-stretch: 70%; font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 650; color: var(--ink); }

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus { outline: 3px solid var(--oxide); outline-offset: 1px; background: var(--surface); }
textarea.form-control { resize: vertical; min-height: 96px; }

.form-submit { width: 100%; }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--field-alt);
  color: var(--ink);
  font-size: 0.9688rem;
  line-height: 1.45;
}
.form-status.show { display: block; }
.form-status a { color: var(--oxide); font-weight: 750; text-decoration: underline; white-space: nowrap; }
.form-status.ok { border-top: 3px solid var(--good); }
.form-status.fail { border-top: 3px solid var(--oxide); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-quote { display: none; }
  .door-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .door-type:nth-child(4) .door-copy { border-left: 0; padding-left: 0; }
  .door-type:nth-child(4) .door-elev { padding-left: 0; }
  .door-elev svg { height: clamp(150px, 22vw, 210px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mobile-nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--field);
    border-bottom: 1px solid var(--line-strong);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav.active { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-group > .nav-link .chevron { display: none; }
  .nav-dropdown {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding-left: 14px;
  }
  .nav-dropdown a { padding: 11px 0; }
  .nav-dropdown .item-desc { display: none; }

  .hero-home { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px var(--gutter) 40px; }
  .door-photo { max-height: none; }
  .hero-grid, .split, .field-grid, .contact-grid { grid-template-columns: 1fr; }
  .split > :first-child h2 { margin-bottom: 0.2em; }

  .triage-box { grid-template-columns: 1fr; }
  .triage-nav { border-right: 0; border-bottom: 1px solid var(--line-on-steel); }
  .triage-content-panel { padding-left: 0; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-sticky-bar { display: block; }
  .header-actions { display: none; }
  .top-notice-inner > :first-child { display: none; }
  .top-notice-inner { justify-content: center; }

  .door-legend { grid-template-columns: 1fr; }
  .door-legend li:nth-child(odd) { border-right: 0; }
  .door-marker { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

  .door-row { grid-template-columns: 1fr; row-gap: 0; }
  .door-type { flex-direction: row; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
  .door-type:first-child { border-top: 3px solid var(--ink); }
  .door-type .door-elev, .door-type + .door-type .door-elev { flex: none; width: 96px; padding: 0; justify-content: center; align-self: flex-start; }
  .door-elev svg { height: 128px; }
  .door-type .door-copy, .door-type + .door-type .door-copy { padding: 0; border-left: 0; }

  .photo-pair figure:first-child { grid-column: 1 / 12; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .door-type:hover .leaf, .door-type:focus-within .leaf,
  .door-type:hover .leaf-r, .door-type:focus-within .leaf-r { transform: none; }
}

.actions-row { margin: 2em 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Homepage hero sizing: the photo sets the height, the legend absorbs any slack */
.hero-home .hero-headline { font-size: clamp(2.5rem, 4.3vw, 4.4rem); }
.hero-home .hero-copy { padding-top: clamp(36px, 4vw, 64px); padding-bottom: clamp(36px, 4vw, 64px); }
.door-figure figcaption { flex: 1; display: flex; }
.door-legend { flex: 1; grid-auto-rows: 1fr; }
.door-legend a { height: 100%; }
@media (min-width: 901px) {
  .hero-home { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
  .hero-home .hero-copy { padding-right: clamp(24px, 3vw, 48px); }
  .hero-home .lead { font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
}

/* Legend links sit on dark steel: keep them light, not prose-link red */
main .door-legend li a { color: var(--on-steel); font-weight: 600; text-decoration: none; }
main .door-legend li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-home .hero-actions .btn-large { padding: 17px 20px; }
.field-grid { align-items: start; }

.prose > h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.prose > h2:first-child { margin-top: 0; }
.mobile-sticky-quote-btn { text-decoration: none; }
