/* ============================================================
   OZARK CLOSERS — Design system override
   Palette + type keyed to the logo (navy script + red arch on ivory)
   and the flyer system (near-black pricing bar, warm gold kicker,
   condensed industrial display type).
   Loaded AFTER styles.css so :root variables cascade wins.
   ============================================================ */

/* ---------- Google Fonts: Big Shoulders Display for headings, Inter for body ---------- */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ------ Brand tokens: navy + red + ivory from the logo, plus flyer near-black + gold ------ */
  --navy-900: #0F1B36;   /* Deepest navy (hover) */
  --navy-800: #1B2A4E;   /* Primary navy (from logo Closers script) */
  --navy-700: #2B3A5E;   /* Navy softer */
  --navy-600: #3D4C71;   /* Navy tint */
  --navy-100: #E6EAF2;   /* Navy paper tint */

  --brick-800: #8F1A24;  /* Red hover — darker */
  --brick-700: #A21F2A;  /* Red hover */
  --brick-600: #B4232E;  /* Red accent (from logo OZARK arch) */
  --brick-500: #C93E48;  /* Red light */
  --brick-100: #F6E4E6;  /* Red paper tint */

  --gold-600: #C88439;   /* Warm gold hover */
  --gold-500: #E5A054;   /* Warm gold (from flyer "STOCK PLAN" kicker) */
  --gold-100: #F7E9D3;   /* Gold paper tint */

  --cream-50:  #FBF9F4;
  --cream-100: #F5F1EA;  /* Primary bg — logo card ivory */
  --cream-200: #EBE5D8;  /* Section tint */
  --cream-300: #D9D2C4;  /* Border strong */

  --ink-950: #141313;    /* Near-black (from flyer pricing bar) */
  --ink-900: #1E1D1C;    /* Body text */
  --ink-800: #2C2B2A;    /* Primary text weight */
  --ink-500: #6E6862;    /* Text muted */
  --ink-400: #8C867F;    /* Text faint */
  --ink-300: #B5AFA5;    /* Text disabled */

  /* Neutral aliases (kept so any legacy hardcoded references still resolve) */
  --paper-50:   #FBF9F4;
  --paper-100:  #F5F1EA;
  --paper-200:  #EBE5D8;
  --paper-300:  #D9D2C4;
  --sand-400:   #C9C2B2;
  --sand-500:   #B5AFA5;

  --graphite-900: #1E1D1C;
  --graphite-800: #2C2B2A;
  --graphite-700: #423F3B;
  --graphite-600: #6E6862;
  --graphite-500: #8C867F;

  --brass-700: #A21F2A;  /* Legacy alias -> red hover */
  --brass-600: #B4232E;  /* Legacy alias -> red accent */
  --brass-500: #C93E48;
  --brass-100: #F6E4E6;

  /* Role redefinitions (light) */
  --bg:            var(--cream-100);
  --bg-tint:       var(--cream-200);
  --surface:       #FFFFFF;
  --surface-alt:   var(--cream-50);
  --border:        var(--sand-400);
  --border-strong: var(--cream-300);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --text-faint:    var(--ink-400);
  --primary:       var(--navy-800);        /* CTAs, links, nav = navy */
  --primary-hover: var(--navy-900);
  --accent:        var(--brick-600);       /* Kickers, section rules, emphasis = red */
  --accent-hover:  var(--brick-800);
  --accent-warm:   var(--gold-500);        /* Optional warm accent (dark sections) */
  --on-primary:    var(--cream-50);
  --on-accent:     var(--cream-50);
  --dark-bg:       var(--ink-950);         /* Flyer-style dark pricing bar / footer */
  --dark-fg:       #F0EBE0;

  /* Warm shadows */
  --shadow-sm: 0 1px 2px rgba(20, 19, 19, .06), 0 1px 1px rgba(20, 19, 19, .04);
  --shadow-md: 0 8px 24px -10px rgba(20, 19, 19, .16), 0 2px 6px rgba(20, 19, 19, .06);
  --shadow-lg: 0 24px 48px -20px rgba(20, 19, 19, .22);

  /* Typography — condensed display for headings, Inter for body */
  --font-display: 'Big Shoulders Display', 'Oswald', 'Impact', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg:            #14110E;
  --bg-tint:       #1A1613;
  --surface:       #201B15;
  --surface-alt:   #2A241D;
  --border:        #3A3226;
  --border-strong: #4A4033;
  --text:          #F1EBE0;
  --text-muted:    #B8AC98;
  --text-faint:    #857A68;
  --primary:       #E6DDCC;
  --primary-hover: #F1EBE0;
  --accent:        #D4A356;
  --accent-hover:  #E6BC70;
  --on-primary:    #1A1613;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .75);
}

/* ---------- Typography — Inter sans display + Inter body ---------- */
/* Heavy weights + tight tracking do the work of a display face */
h1, .h1,
h2, .h2,
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-title,
.h1,
.display {
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2, .h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3, .h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Kickers stay uppercase sans — signature identifier */
.kicker,
.eyebrow,
.tag-pill,
.step-num {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Body copy tightens a touch under Inter */
body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
}

/* ---------- Buttons — squarer, less chrome ---------- */
.btn {
  border-radius: 4px !important;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--graphite-900);
  color: var(--paper-50);
  border: 1px solid var(--graphite-900);
}
.btn-primary:hover {
  background: var(--graphite-700);
  border-color: var(--graphite-700);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--graphite-900);
  border: 1px solid var(--graphite-900);
}
.btn-secondary:hover,
.btn-outline:hover {
  background: var(--graphite-900);
  color: var(--paper-50);
}

/* Accent (brass) reserved for genuine emphasis moments */
.btn-accent,
.btn.btn-brass {
  background: var(--brass-600);
  color: var(--graphite-900);
  border: 1px solid var(--brass-600);
}
.btn-accent:hover {
  background: var(--brass-700);
  color: var(--paper-50);
}

/* ---------- Cards ---------- */
.card,
.photo-card,
.step,
.faq-item {
  border-radius: 4px !important;
  border-color: var(--border);
}

/* Photo cards get a subtle warm border and no attribution overlay */
.photo-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Hide any leftover photo-attribution captions */
.photo-attribution {
  display: none !important;
}

/* ---------- Nav — flatter, sharper ---------- */
.nav-cta,
.header .btn-primary {
  border-radius: 4px !important;
}

/* ---------- Links ---------- */
a { color: var(--graphite-800); }
a:hover { color: var(--brass-700); }

/* Preserve legibility: text on colored bands */
.section-tint {
  background: var(--bg-tint);
}

/* ---------- Kicker in brass, not red ---------- */
.kicker {
  color: var(--brass-700);
}

html[data-theme="dark"] .kicker {
  color: var(--brass-500);
}

/* ---------- Quote cards from prior PR — re-tune to new palette ---------- */
.quote-card--us {
  background: var(--graphite-900);
  color: var(--paper-50);
  border-color: var(--graphite-900);
}
.quote-card--us .quote-body,
.quote-card--us .quote-attribution,
.quote-card--us .quote-attribution strong {
  color: var(--paper-50);
}
.quote-card--us .quote-attribution {
  color: var(--paper-200);
}
.quote-card--us .kicker {
  color: var(--brass-500);
}

/* ---------- HERO — light editorial background, dark text ---------- */
/* Overrides the dark navy gradient in styles.css line 2170 */
.hero {
  background:
    linear-gradient(180deg, var(--paper-50) 0%, var(--paper-100) 100%),
    radial-gradient(circle at 88% 18%, rgba(176, 130, 52, .10), transparent 40%) !important;
  color: var(--graphite-900) !important;
  border-bottom: 1px solid var(--border);
}

.hero .display,
.hero .lede,
.hero .hero-sub,
.hero .hero-marks li,
.hero .hero-marks strong,
.hero .eyebrow,
.hero .hero-title,
.hero .btn-ghost,
.hero .hero-tagline {
  color: var(--graphite-900) !important;
}

.hero .lede,
.hero .hero-sub {
  color: var(--graphite-600) !important;
}

.hero .eyebrow,
.hero .hero-tagline {
  color: var(--brass-700) !important;
}

/* Ghost button on hero — reverse to dark-on-light */
.hero .btn-ghost {
  border: 1px solid var(--graphite-900);
  color: var(--graphite-900) !important;
  background: transparent;
}
.hero .btn-ghost:hover {
  background: var(--graphite-900);
  color: var(--paper-50) !important;
}

/* Hero card (right side) — soften shadow, ensure white surface */
.hero-card,
.hero-report {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- Second dark band (services/proof) — flat warm charcoal ---------- */
/* Removes the cabin photo background; keeps the section as a clean dark band. */
.brand-proof,
.brand-services,
.section.dark-band {
  background:
    linear-gradient(135deg, var(--graphite-900) 0%, var(--graphite-800) 100%) !important;
}

/* ---------- Kill Clash Display leftover font on utility bar ---------- */
.utility-bar {
  background: var(--graphite-900);
  color: rgba(241, 235, 224, .82);
}

/* ---------- Section transitions — thin brass rule ---------- */
.section + .section {
  border-top: 1px solid var(--border);
}

/* ---------- Hero pills (hero-marks li) — dark border on light bg ---------- */
.hero .hero-marks li {
  background: rgba(26, 22, 19, .04) !important;
  border: 1px solid var(--graphite-900) !important;
  color: var(--graphite-900) !important;
}

/* Secondary/ghost button on hero — dark border, dark text */
.hero .btn-secondary,
.hero .btn-secondary.btn-lg,
.hero .btn-ghost {
  background: transparent !important;
  color: var(--graphite-900) !important;
  border: 1px solid var(--graphite-900) !important;
}
.hero .btn-secondary:hover,
.hero .btn-ghost:hover {
  background: var(--graphite-900) !important;
  color: var(--paper-50) !important;
}

/* Fix the little dot on Call us button */
.hero .btn-secondary .dot,
.hero .btn-secondary::before {
  background: var(--brass-600) !important;
}

/* ============================================================
   PROJECT GALLERY (projects.html)
   ============================================================ */
.project-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  margin: 0 0 48px;
}

.project-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-alt);
  grid-column: span 2;
  grid-row: span 1;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.project-photo:hover img {
  transform: scale(1.02);
}

.project-photo--hero {
  grid-column: span 4;
  grid-row: span 2;
}

.project-photo--wide {
  grid-column: span 6;
  grid-row: span 1;
}

@media (max-width: 900px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 10px;
  }
  .project-photo,
  .project-photo--hero,
  .project-photo--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.project-specs > div {
  border-left: 2px solid var(--brass-600);
  padding-left: 16px;
}

.project-specs dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 6px;
}

.project-specs dd {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--graphite-900);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .project-specs {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

/* ============================================================
   HEADER PHONE — brass tap-friendly, visible across breakpoints
   ============================================================ */

.header-phone {
  color: var(--brass-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 8px 4px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--brass-600);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Show phone on tablet + small-desktop (was hidden ≤1024px) */
@media (max-width: 1024px) {
  .header-phone { display: inline-flex !important; align-items: center; }
}

/* Mobile: keep visible, tighten to icon+number chip */
@media (max-width: 720px) {
  .header-phone {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid var(--brass-600);
    border-radius: 999px;
    background: transparent;
  }
  .header-phone::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M19.23 15.26l-2.54-.29a1.99 1.99 0 00-1.64.57l-1.84 1.84a15.045 15.045 0 01-6.59-6.59l1.85-1.85a2 2 0 00.57-1.64l-.29-2.52a2.006 2.006 0 00-2-1.77H5.03c-1.13 0-2.07.94-2 2.07a17.9 17.9 0 0015.66 15.66c1.13.07 2.07-.87 2.07-2v-1.73c.01-1.02-.75-1.87-1.76-1.98z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M19.23 15.26l-2.54-.29a1.99 1.99 0 00-1.64.57l-1.84 1.84a15.045 15.045 0 01-6.59-6.59l1.85-1.85a2 2 0 00.57-1.64l-.29-2.52a2.006 2.006 0 00-2-1.77H5.03c-1.13 0-2.07.94-2 2.07a17.9 17.9 0 0015.66 15.66c1.13.07 2.07-.87 2.07-2v-1.73c.01-1.02-.75-1.87-1.76-1.98z'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
  }
}

/* On very narrow (≤480), keep the chip but drop letter spacing further */
@media (max-width: 480px) {
  .header-phone { font-size: 13px; padding: 6px 9px; }
}

/* Mobile sticky CTA: single full-width button (Call is in the header chip) */
@media (max-width: 719px) {
  .mobile-sticky-cta {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Hero photo (replaces fake preview card) ---------- */
.hero-photo {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(26,22,19,0.35);
}
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-photo::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 84px; height: 6px;
  background: var(--brass-500);
  z-index: 2;
}
.hero-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(26,22,19,0) 0%, rgba(26,22,19,0.72) 100%);
  color: var(--paper-50);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
@media (max-width: 719px) {
  .hero-photo-caption { font-size: 12px; padding: 12px 14px; }
}

/* Brand-proof simplified: single-column, ivory copy on graphite */
.brand-proof-panel--simple {
  max-width: 68ch;
  display: block;
  grid-template-columns: none;
}
.brand-proof-panel--simple .kicker { color: var(--brass-500); }
.brand-proof-panel--simple .h2 { color: var(--paper-50); }
.brand-proof-panel--simple .section-lede {
  color: rgba(250, 246, 236, 0.82);
}

/* Rebalance hero grid: real photo gets equal weight; align top not bottom */
.hero-grid {
  align-items: start !important;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Strike-team: 3-column research grid at desktop (was 4-column with 3 cards) */
@media (min-width: 1080px) {
  .research-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
.research-card h3 { color: var(--graphite-900) !important; }
.research-num { color: var(--brass-700) !important; font-size: 14px; }
.research-card {
  min-height: 0 !important;
  padding: 32px !important;
  border-radius: 6px !important;
}

/* Contact page: partner-card variant with lede + note (Where we work) */
.partner-card-lede {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--graphite-900);
  margin: 8px 0 12px;
  line-height: 1.25;
}
.partner-card-note {
  color: var(--graphite-700);
  font-size: 14px;
  margin: 0;
  opacity: 0.72;
}

/* Contact intake: at desktop only, keep the dark copy card stretched to
   match form height, and fill empty space with a brass tagline at bottom.
   Below desktop, stack naturally without the tagline. */
@media (min-width: 980px) {
  .intake-copy {
    position: relative;
    display: flex !important;
    flex-direction: column;
  }
  .intake-copy::after {
    content: "One firm. Sketch to dried in.";
    margin-top: auto;
    padding-top: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 22px;
    line-height: 1.25;
    color: var(--brass-500);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
}

/* Contact hero: two-column with facts panel on right */
.contact-hero { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .contact-hero { grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
}
.contact-hero-copy { max-width: 52ch; }
.contact-hero-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--paper-300);
}
.contact-hero-facts li {
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-300);
  margin: 0;
}
.contact-hero-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--graphite-900);
  margin: 0 0 4px;
  line-height: 1.2;
}
.contact-hero-facts li p:last-child {
  margin: 0;
  color: var(--graphite-700);
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.85;
}

/* ---------- Footer: Certified partners strip ---------- */
.footer-partners {
  padding: 44px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
  text-align: center;
}
.footer-partners-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-500);
  margin: 0 0 28px;
  opacity: 0.9;
}
.footer-partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: center;
  align-items: center;
}
.footer-partners-list li {
  margin: 0;
  padding: 0;
  /* Each logo sits in a fixed-size well so wildly different aspect ratios
     read as equal visual weight. */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  min-width: 150px;
}
.footer-partners-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 16px 22px;
  /* Warm paper-toned well so dark-fill logos (General Steel) read on the
     dark footer, and all three logos sit on the same visual card. */
  background: var(--paper-50);
  border: 1px solid var(--paper-300);
  border-radius: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.footer-partners-list a:hover,
.footer-partners-list a:focus-visible {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
}
.footer-partners-list img {
  display: block;
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Per-logo sizing overrides so each reads at balanced visual weight
   (their intrinsic aspect ratios are very different). */
.footer-partners-list li:nth-child(1) img { /* General Steel wordmark — wide */
  max-height: 46px;
  max-width: 170px;
}
.footer-partners-list li:nth-child(2) img { /* Capital Steel wordmark — bold blocky */
  max-height: 44px;
  max-width: 130px;
}
.footer-partners-list li:nth-child(3) img { /* Barndo Network seal — near-square */
  max-height: 72px;
  max-width: 90px;
}
.footer-partners-list li:nth-child(4) img { /* Barndo Nation map shield — landscape */
  max-height: 68px;
  max-width: 130px;
}

@media (max-width: 640px) {
  .footer-partners {
    padding: 36px 0 28px;
  }
  .footer-partners-label {
    margin: 0 0 20px;
  }
  .footer-partners-list {
    /* 2x2 grid on mobile — 4 badges don't fit cleanly in one row at 390px,
       and 3+1 leaves an orphan. Grid keeps it balanced. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    max-width: 340px;
    margin: 0 auto;
  }
  .footer-partners-list li {
    height: 64px;
    min-width: 0;
    width: 100%;
  }
  .footer-partners-list li:nth-child(1) img {
    max-height: 34px;
    max-width: 120px;
  }
  .footer-partners-list li:nth-child(2) img {
    max-height: 32px;
    max-width: 90px;
  }
  .footer-partners-list li:nth-child(3) img {
    max-height: 54px;
    max-width: 68px;
  }
  .footer-partners-list li:nth-child(4) img {
    max-height: 50px;
    max-width: 92px;
  }
}

/* ============================================================================
   BUILDINGS STOREFRONT (buildings.html, buildings/[slug].html, building-inquiry.html)
   ============================================================================ */

/* ---- Buildings hero variant ---- */
.hero--buildings { padding: 72px 0 48px; }
.hero-copy-only {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.hero-copy-only .display { margin-bottom: 20px; }
.hero-copy-only .lede { margin-bottom: 28px; }

/* ---- Dealer explainer 4-step ---- */
.kit-dealer-explainer { background: var(--surface-alt); }
.dealer-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.dealer-step {
  padding: 24px 22px 22px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.dealer-step-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.dealer-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.25;
}
.dealer-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .dealer-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .dealer-steps { grid-template-columns: 1fr; }
}

/* ---- Kit category section ---- */
.kit-category { padding: 64px 0; }
.kit-category + .kit-category { border-top: 1px solid var(--border-strong); }

/* ---- Kit card grid ---- */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.kit-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.kit-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(20, 17, 14, 0.08);
}
.kit-card-image {
  margin: -24px -22px 18px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.kit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kit-card-image--contain img {
  object-fit: contain;
  padding: 12px;
}
.kit-card-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 17, 14, 0.72);
  color: rgba(250, 246, 236, 0.92);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 10px;
  margin: 0;
  text-align: center;
  line-height: 1.35;
}
.kit-card-hero {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 14px;
}
.kit-card-mfg {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}
.kit-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.15;
}
.kit-card-dims {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.kit-card-lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}
.kit-card-price {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 13px;
}
.kit-card-price-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 3px;
  color: var(--text-muted);
}
.kit-card-price-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.kit-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kit-card-actions .btn { flex: 1 1 auto; text-align: center; }

/* ---- Kit detail page ---- */
.kit-breadcrumb {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.kit-breadcrumb a { color: var(--text-muted); }
.kit-breadcrumb a:hover { color: var(--accent); }
.kit-breadcrumb span[aria-hidden] { margin: 0 6px; opacity: 0.5; }

.kit-detail-photo {
  padding-top: 24px;
  padding-bottom: 8px;
}
.kit-detail-photo-frame {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(20, 17, 14, 0.06);
}
.kit-detail-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
}
.kit-detail-photo-frame--cover img {
  object-fit: cover;
  padding: 0;
}
.kit-detail-photo-caption {
  max-width: 1120px;
  margin: 10px auto 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}
.kit-detail-hero { padding-top: 24px; padding-bottom: 48px; }
.kit-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: start;
}
.kit-detail-name { font-size: clamp(36px, 5vw, 56px); margin: 12px 0 8px; }
.kit-detail-dims {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}
.kit-price-block {
  margin: 24px 0 28px;
  padding: 22px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.kit-price-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 6px;
}
.kit-price-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.15;
}
.kit-price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.kit-detail-specs {
  padding: 26px 26px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  position: sticky;
  top: 24px;
}
.kit-specs-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
}
.kit-specs-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
  font-size: 14px;
}
.kit-specs-list dt {
  color: var(--text-muted);
  font-weight: 500;
}
.kit-specs-list dd {
  color: var(--text);
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .kit-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .kit-detail-specs { position: static; }
}

/* ---- Best for section ---- */
.kit-best-for { padding: 56px 0; background: var(--surface-alt); }
.section-head--tight { margin-bottom: 24px; }
.kit-best-for-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.kit-best-for-list li {
  padding: 14px 18px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* ---- Includes / excludes two-col ---- */
.kit-includes-section { padding: 56px 0; }
.kit-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.h2--tight { margin: 8px 0 20px; }
.kicker--muted { color: var(--text-muted); }
.kit-includes-list,
.kit-excludes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.kit-includes-list li,
.kit-excludes-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border-strong);
  position: relative;
  color: var(--text);
}
.kit-includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.kit-excludes-list li::before {
  content: "—";
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--text-faint);
  font-weight: 700;
}
.kit-excludes-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: normal;
}
@media (max-width: 780px) {
  .kit-includes-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- CTA panel (used at bottom of kit pages) ---- */
.section--cta { padding: 56px 0 64px; }
.cta-panel {
  padding: 40px 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  text-align: center;
}
.cta-panel .h2 { margin-bottom: 12px; }
.cta-panel .section-lede { max-width: 620px; margin: 0 auto 24px; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Kit inquiry page ---- */
.kit-inquiry-hero { padding: 48px 0 64px; }
.kit-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.kit-inquiry-copy .display { font-size: clamp(36px, 4.5vw, 52px); margin: 8px 0 20px; }
.kit-inquiry-facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--border-strong);
}
.kit-inquiry-facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-strong);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.kit-inquiry-facts strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}
.kit-inquiry-form-wrap {
  padding: 32px 32px 28px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
@media (max-width: 980px) {
  .kit-inquiry-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Kit inquiry form fields ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 6px;
}
.form-field label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-field input[type=text],
.form-field input[type=tel],
.form-field input[type=email],
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 130, 52, 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}
.form-submit-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
}
.form-submit-row .btn { width: 100%; }
.form-fine {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.5;
  text-align: center;
}
.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 1.5em;
}
.form-result {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 4px;
  border-left: 3px solid;
}
.form-result--success {
  background: var(--surface-alt);
  border-left-color: var(--accent);
}
.form-result--error {
  background: var(--surface-alt);
  border-left-color: #A13544;
}
.form-result-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.form-result-detail {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- Small button size used inside kit cards ---- */
.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

/* ---- Active nav state ---- */
.primary-nav a.is-current { color: var(--accent); }

/* ============================================================
   FLYER-STYLE DISPLAY TYPE
   Big Shoulders Display is tall and narrow; tune sizing and
   letter-spacing to match the flyer H1 feel ("THE TABLEROCK").
   ============================================================ */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);  /* red — logo arch color */
}
/* Section rules: red bar under kickers, per flyer */
.section-head { position: relative; }

/* ============================================================
   MOBILE HERO PRICE LADDER — stack rows vertically at ≤640px
   Prevents label + nowrap price from overflowing 390px viewport
   ============================================================ */
@media (max-width: 640px) {
  .hero-price-ladder > div[style*="grid-template-columns"] > div[style*="justify-content:space-between"],
  .hero-price-ladder > div > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .hero-price-ladder strong[style*="white-space:nowrap"] {
    font-size: 1.15rem !important;
    color: var(--accent, #B4232E) !important;
  }
  .hero-price-ladder {
    padding: 12px 14px !important;
  }
  .chip-row {
    flex-wrap: wrap;
  }
}

/* Global horizontal overflow guard — never allow horizontal scroll on any viewport */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ========================================================================
   SPEC SHEET — Architectural 1px-line spec grid (Uncommon Studio lift)
   Use in place of bulleted .includes-list on plan detail pages.
   Two-column grid: label left, spec right, thin rule between rows.
   ======================================================================== */
.spec-sheet {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border, #C9C2B2);
}
.spec-sheet li {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2.4fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #C9C2B2);
  align-items: baseline;
}
.spec-sheet .spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted, #6E6862);
  margin: 0;
  line-height: 1.4;
}
.spec-sheet .spec-value {
  font-size: 0.98rem;
  color: var(--text, #141313);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .spec-sheet li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
}

/* ========================================================================
   GUARANTEE GRID — Three-column named-guarantee block (Vitruvius lift).
   Use on About / How It Works to frame Price / Timeline / Build certainty.
   ======================================================================== */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
@media (max-width: 840px) {
  .guarantee-grid { grid-template-columns: 1fr; gap: 24px; }
}
.guarantee {
  padding: 28px 24px;
  border: 1px solid var(--border, #C9C2B2);
  background: var(--surface, #fbfbf9);
  border-radius: 4px;
}
.guarantee .guarantee-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent, #B4232E);
  margin: 0 0 6px 0;
}
.guarantee .guarantee-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text, #141313);
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.guarantee .guarantee-body {
  font-size: 0.95rem;
  color: var(--text, #141313);
  line-height: 1.55;
  margin: 0;
}

/* ========================================================================
   HERO FULL — Full-bleed image hero (Vitruvius lift). Photo does the work.
   Copy, price ladder, CTAs live in the next section, below the fold.
   ======================================================================== */
.hero-full {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  background: #1A1613;
}
.hero-full::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
}
.hero-full-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  padding: 0 32px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  opacity: 0.95;
  z-index: 2;
}
@media (max-width: 640px) {
  .hero-full {
    height: 56vh;
    min-height: 380px;
    max-height: 560px;
  }
  .hero-full img {
    object-position: center 55%;
  }
  .hero-full-caption {
    bottom: 16px;
    padding: 0 20px;
    font-size: 0.68rem;
  }
}
