﻿/* =========================================================================
   Royalty Metal Buildings — Design System
   Single source of truth for the whole site. Edit brand colors here.
   ========================================================================= */

:root {
  /* Brand palette */
  --steel-900: #0f1620;   /* near-black navy/charcoal */
  --steel-800: #1a2434;
  --steel-700: #24324a;
  --steel-600: #33445f;
  --steel-500: #4a5d7a;
  --steel-300: #9aa9bf;
  --steel-100: #e6ebf2;
  --steel-50:  #f4f6fa;

  --amber-600: #B91C1C;   /* primary accent — crimson red */
  --amber-500: #DC2626;
  --amber-400: #EF4444;
  --amber-100: #FEE2E2;

  --gold-600:  #C9952A;   /* gold accent */
  --gold-400:  #E8B84B;

  --green-600: #1f8a4c;   /* trust / "in stock" */
  --red-600:   #c0392b;

  --white: #ffffff;
  --ink: #16202e;
  --muted: #586274;
  --line: #dde3ec;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15,22,32,.08), 0 1px 2px rgba(15,22,32,.06);
  --shadow-md: 0 10px 30px rgba(15,22,32,.10);
  --shadow-lg: 0 24px 60px rgba(15,22,32,.18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--dark { background: var(--steel-900); color: var(--steel-100); }
.section--steel { background: var(--steel-50); }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: 15px;
  color: var(--amber-600);
  margin: 0 0 10px;
}
.section--dark .eyebrow { color: var(--amber-400); }
.section-crown { height: 44px; width: auto; margin: 0 auto 12px; }
.eyebrow-lg { font-size: 22px; }
.h2-lg { font-size: clamp(3rem, 6vw, 5rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; font-weight: 700; color: var(--steel-900); margin: 0 0 .5em; letter-spacing: .005em; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 60ch; }
.section--dark .lede { color: var(--steel-300); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.05rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-500); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--steel-900); color: #fff; }
.btn-dark:hover { background: var(--steel-800); }
.btn-ghost { background: transparent; color: var(--steel-900); border-color: var(--steel-300); }
.btn-ghost:hover { border-color: var(--steel-900); }
.section--dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: var(--steel-500); }
.section--dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 17px 34px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 2px solid var(--amber-600);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  overflow: visible;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 0; }
.brand { display: flex; align-items: flex-end; gap: 11px; text-decoration: none; margin-right: 24px; position: relative; z-index: 60; padding-bottom: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 160px; width: auto; display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}
.footer-logo {
  height: 150px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--steel-900); font-size: 1.18rem; }
.brand-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-300); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--steel-800); font-weight: 700; font-size: .95rem; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-family: var(--font-display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.nav-links a:hover { background: var(--steel-50); color: var(--amber-600); text-decoration: none; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 25px; height: 2.5px; background: var(--steel-800); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; display: none; flex-direction: column;
}
.has-drop:hover .drop { display: flex; }
.drop a { color: var(--ink); padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.drop a:hover { background: var(--steel-50); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #0f1620;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero-slide:nth-child(1) { background-image: url('../images/img-garages.jpg'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url('../images/img-shops.jpg'); animation-delay: 6s; }
.hero-slide:nth-child(3) { background-image: url('../images/img-barns.jpg'); animation-delay: 12s; }
.hero-slide:nth-child(4) { background-image: url('../images/img-carports.jpg'); animation-delay: 18s; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,26,.70) 0%, rgba(10,16,26,.82) 100%);
  z-index: 1;
}
@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  21%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 88px; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-crown { height: 84px; width: auto; margin: 0 auto 14px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.hero .eyebrow.hero-brand { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: .16em; line-height: 1.15; margin-bottom: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.85); }
.hero h1.hero-headline {
  color: #fff; margin: 0 0 6px;
  font-size: clamp(5rem, 8.5vw, 7rem);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.hero-subline {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  color: #fff; margin: 0 0 40px;
}
@media (max-width: 640px) {
  .hero-crown { height: 56px; margin-bottom: 12px; }
  .hero h1.hero-headline { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-subline { font-size: clamp(1.1rem, 5vw, 1.5rem); }
}
.hero .lede { color: #dfe6f0; font-size: 1.3rem; margin: 96px auto 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); justify-content: center; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #cdd6e3; }
.hero-badge b { color: #fff; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .12s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card-media { aspect-ratio: 16/10; background: var(--steel-800); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .tag { position: absolute; top: 12px; left: 12px; background: rgba(15,22,32,.78); color: #fff; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; }
.card-media .corner-mark { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; object-fit: contain; opacity: .7; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }

.feature { display: flex; gap: 16px; }
.feature .ic { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--steel-100); color: var(--amber-600); display: grid; place-items: center; font-size: 1.4rem; }
.section--dark .feature .ic { background: rgba(247,148,29,.15); }
.feature h3 { font-size: 1.2rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.section--dark .feature p { color: var(--steel-300); }

/* ---------- How-it-works chain card ---------- */
.how-it-works-card .card-body { padding: 48px 44px; }
.chain-header { text-align: center; margin-bottom: 36px; }
.chain-crown { height: 44px; width: auto; margin: 0 auto 14px; }
.chain-title { color: #fff; font-size: clamp(2.8rem, 6vw, 4rem); text-transform: uppercase; margin-bottom: 10px; line-height: 1; }
.chain-subtitle { color: var(--steel-300); font-size: 1.05rem; margin: 0; }
.chain-steps { position: relative; display: flex; flex-direction: column; gap: 26px; }
.chain-steps::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--amber-600), rgba(185,28,28,.15));
}
.chain-step { position: relative; display: flex; align-items: flex-start; gap: 20px; }
.chain-num {
  position: relative; z-index: 1; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--amber-600); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 0 0 6px var(--steel-800);
}
.chain-step > div { padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.chain-step b { color: #fff; font-size: 1.15rem; }
.chain-step span { color: var(--steel-300); font-size: .95rem; }

/* ---------- Numbered process steps ---------- */
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-600);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}

/* ---------- Designer nav link (accent pill) ---------- */
.nav-designer { background: var(--amber-100); color: var(--amber-600) !important; border-radius: 100px !important; }
.nav-designer:hover { background: var(--amber-600); color: #fff !important; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; color: var(--amber-400); line-height: 1; }
.stat .lab { font-size: .9rem; letter-spacing: .04em; color: var(--steel-300); margin-top: 8px; text-transform: uppercase; }

/* ---------- Estimator ---------- */
.estimator { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.estimator-form { background: #fff; padding: 34px; }
.estimator-out { background: var(--steel-900); color: #fff; padding: 34px; display: flex; flex-direction: column; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--steel-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(239,124,20,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range-val { font-family: var(--font-display); font-weight: 700; color: var(--amber-600); }
.price-readout { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--amber-400); line-height: 1.05; }
.price-sub { color: var(--steel-300); font-size: .92rem; margin-top: 4px; }
.spec-list { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.spec-list li { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; color: #cdd6e3; }
.spec-list li b { color: #fff; font-weight: 600; }
.disclaimer { font-size: .78rem; color: var(--steel-300); margin-top: auto; padding-top: 18px; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--steel-100); color: var(--steel-700); }
.pill-green { background: #e1f4e8; color: var(--green-600); }
.pill-amber { background: var(--amber-100); color: var(--amber-600); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--steel-50); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; color: var(--steel-700); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--steel-50); }

/* ---------- Callouts ---------- */
.callout { border-left: 4px solid var(--amber-500); background: var(--amber-100); padding: 18px 22px; border-radius: 0 10px 10px 0; }
.callout.info { border-color: var(--steel-500); background: var(--steel-50); }
.callout h4 { margin: 0 0 6px; }
.callout p { margin: 0; font-size: .96rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--steel-900); color: #fff; padding: 56px 0 50px; }
.page-hero::before {
  content: ""; position: absolute; top: 50%; right: -60px;
  width: 520px; height: 520px;
  background: url('../images/rmb-crown.png') no-repeat center / contain;
  transform: translateY(-50%);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff; font-family: var(--font-sans); text-transform: none;
  font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
}
.page-hero .lede { color: var(--steel-300); font-weight: 300; }
.page-hero .pill { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Page photos (permitting / content pages) ---------- */
.page-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21/9; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-photo--tall { aspect-ratio: 4/5; }
.page-photo--wide { aspect-ratio: 21/6; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) {
  .page-photo--tall { aspect-ratio: 16/10; }
}

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-600); font-size: 1.6rem; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 14px 0; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--amber-600), var(--amber-500)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.92); margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); color: #fff; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #fff; display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: var(--amber-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Toast / form states ---------- */
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 9px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e1f4e8; color: var(--green-600); }
.form-status.err { background: #fbe4e2; color: var(--red-600); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; }
.maxw-narrow { max-width: 760px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Building finder quiz ---------- */
.quiz-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px; }
.quiz-q { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; text-align: center; }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quiz-opt {
  display: block; width: 100%; text-align: center; padding: 18px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--steel-50);
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem; color: var(--ink);
  cursor: pointer; transition: .15s ease;
}
.quiz-opt:hover { border-color: var(--amber-500); background: var(--amber-100); }
.quiz-progress { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.quiz-back { display: inline-block; margin-bottom: 16px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.quiz-back:hover { color: var(--amber-600); }
.quiz-result-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--steel-50); border-radius: var(--radius); padding: 22px; }
.quiz-result-card img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.quiz-result-card .btn { margin-top: 10px; }

/* ---------- Video / founder placeholder ---------- */
.video-placeholder {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--steel-800), var(--steel-900));
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
}
.video-play {
  width: 68px; height: 68px; border-radius: 50%; background: var(--amber-600);
  color: #fff; font-size: 1.6rem; display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.video-placeholder .video-caption { color: var(--steel-300); font-size: .85rem; text-align: center; padding: 0 20px; }
.founder-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Founder headshot (About page) ---------- */
.founder-photo {
  display: block; width: 100%; max-width: 68%; margin: 0 auto; aspect-ratio: 4/5;
  object-fit: cover; object-position: 50% 15%;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}

/* ---------- Lead form ----------
   Custom form (not a HubSpot iframe embed) that posts directly to HubSpot's
   public Forms Submission API -- see wsbSubmitLead() in main.js. Built from the
   site's own .field styles so it's responsive by construction; replaced the old
   .hs-form-frame iframe embed 9/15/2026 because HubSpot's iframe content
   overflowed its container on narrow phones with no fix available short of a
   Marketing Hub Professional upgrade. */
.rmb-lead-form .field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .rmb-lead-form .field-row-2 { grid-template-columns: 1fr; } }
.rmb-lead-form textarea { resize: vertical; min-height: 90px; }
.rmb-lead-form .hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-status { font-size: .9rem; margin-top: 10px; min-height: 1.2em; }
.form-status--error { color: var(--amber-600); font-weight: 600; }
.form-success { border-left: 4px solid var(--steel-500); background: var(--steel-50); padding: 22px; border-radius: 0 10px 10px 0; }
.form-success h3 { margin-bottom: 6px; }
.form-success p { margin: 0; color: var(--ink); }

/* ---------- Customize teaser badges ---------- */
.customize-band { max-width: 720px; margin: 0 auto; }
.customize-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.customize-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--steel-50); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .92rem; font-weight: 600; color: var(--steel-700); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .estimator { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--steel-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1); display: none;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; font-size: 1.05rem; color: var(--steel-100); }
  .nav-links a:hover { background: rgba(255,255,255,.08); color: var(--amber-400, var(--amber-600)); }
  .has-drop .drop { position: static; display: flex; box-shadow: none; border: 0; background: rgba(255,255,255,.05); padding: 0 0 0 14px; }
  .drop a { color: var(--steel-100); }
  .drop a:hover { background: rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .nav-cta { display: block; margin: 16px 0 4px; }
  .nav-cta .btn { display: flex; }
  .nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }
  .quiz-options { grid-template-columns: 1fr 1fr; }
  .quiz-card { padding: 24px; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row, .field-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  body { font-size: 16px; }
}
