/* =========================================================
   STEVESTON GARAGE DOORS — MOBILE-FIRST STYLESHEET
   Built for phones first. Desktop is a layered upgrade.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Colors — maritime navy + brass, lighter palette */
  --navy-900: #0F1D2E;
  --navy-800: #16273C;
  --navy-700: #1E3650;
  --navy-100: #E5ECF4;
  --navy-50:  #F4F7FB;

  --brass-700: #9E7A2D;
  --brass-600: #B58A33;
  --brass-500: #C89A47;
  --brass-100: #F1E4C2;
  --brass-50:  #FBF6E8;

  --ink-900: #0F1418;
  --ink-700: #3B4654;
  --ink-500: #6B7785;
  --ink-300: #B6BEC9;
  --ink-100: #E6E9EE;

  --bg:      #FFFFFF;
  --bg-soft: #F7F9FC;
  --line:    #E2E6EC;

  --emergency: #C8442B;
  --success:   #2F7D5B;

  /* Type scale (mobile-first) */
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   20px;
  --t-xl:   24px;
  --t-2xl:  30px;
  --t-3xl:  36px;
  --t-4xl:  44px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;

  /* Layout */
  --maxw: 1100px;
  --tap: 48px;             /* min tap target */
  --header-h: 56px;
  --topbar-h: 36px;
  --stickybar-h: 64px;     /* bottom Call+Text */

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 29, 46, 0.06);
  --shadow:    0 6px 18px rgba(15, 29, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 29, 46, 0.14);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Bottom CTA bar takes 64px + 16px gap; safe-area inset for notched phones */
  padding-bottom: calc(var(--stickybar-h) + env(safe-area-inset-bottom, 0px));
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--s-3);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p  { margin: 0 0 var(--s-4); color: var(--ink-700); text-wrap: pretty; }
.lead { font-size: var(--t-md); color: var(--ink-700); }

/* ---------- TOPBAR (small black strip with phone) ---------- */
.topbar {
  background: var(--navy-900);
  color: #fff;
  font-size: var(--t-xs);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.topbar a { color: var(--brass-500); font-weight: 600; text-decoration: none; }
.topbar-tag { color: rgba(255,255,255,0.75); }
.topbar-hours { display: none; }    /* hide hours on mobile */

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--navy-900);
}
.brand-mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--brass-500);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--brass-600);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-tag {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0;
}
.brand-stack { display: flex; flex-direction: column; }

/* Header right: hamburger + tiny call icon */
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  background: var(--bg-soft);
}
.icon-btn:hover { background: var(--navy-100); }
.icon-btn svg { width: 22px; height: 22px; }

.hamburger { display: grid; }
.nav-desktop { display: none; }      /* hidden on mobile */

/* ---------- MOBILE DRAWER ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,29,46,0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(15,29,46,0.18);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.drawer-close { width: 44px; height: 44px; }

.drawer-nav { flex: 1; overflow-y: auto; padding: var(--s-3) 0; }
.drawer-nav a {
  display: block;
  padding: 14px var(--s-5);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line);
}
.drawer-nav a:hover, .drawer-nav a:active { background: var(--bg-soft); text-decoration: none; }
.drawer-nav .sub {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-700);
  padding-left: var(--s-7);
}
.drawer-nav .group-label {
  display: block;
  padding: var(--s-4) var(--s-5) 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-700);
  border-bottom: 0;
}

.drawer-foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  background: var(--bg-soft);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--t-base);
  letter-spacing: -0.005em;
  transition: transform 0.05s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brass-500);
  color: var(--navy-900);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 0 rgba(232,93,47,.55);
  animation: sgd-pulse-glow 2.4s ease-in-out infinite;
}
.btn-primary:hover { background: var(--brass-600); animation-play-state: paused; }
@keyframes sgd-pulse-glow {
  0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 0 rgba(232,93,47,.55); }
  50%      { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 12px rgba(232,93,47,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .sticky-cta-call, .sticky-cta-text { animation: none !important; }
}
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { color: var(--navy-700); padding: 8px 12px; min-height: 0; }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: var(--t-md); padding: 14px 20px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: var(--t-sm); }

.btn svg { width: 18px; height: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,46,0) 30%, rgba(15,29,46,0.85) 100%);
}
.hero-price-chip {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px 11px;
  background: #fff;
  color: var(--navy-900);
  border-radius: 10px;
  border-left: 4px solid var(--brass-500);
  box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18);
  max-width: calc(100% - var(--s-5) * 2);
}
.hero-price-chip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-700, #2a3f5c);
  opacity: 0.85;
  line-height: 1;
}
.hero-price-chip-amount {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.hero-price-chip-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-700, #2a3f5c);
  opacity: 0.78;
  line-height: 1.2;
}
.hero-body {
  padding: var(--s-7) var(--s-5) var(--s-8);
  background: var(--navy-900);
  color: #fff;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(200, 154, 71, 0.15);
  border: 1px solid rgba(200, 154, 71, 0.35);
  color: var(--brass-100);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.hero h1 {
  color: #fff;
  font-size: var(--t-4xl);
  margin-bottom: var(--s-4);
}
.hero h1 .accent { color: var(--brass-500); }
.hero p { color: rgba(255,255,255,0.85); font-size: var(--t-md); margin-bottom: var(--s-6); }
.hero-ctas { display: flex; flex-direction: column; gap: var(--s-3); }

/* Trust strip below hero */
.trust-strip {
  background: var(--brass-50);
  border-bottom: 1px solid var(--brass-100);
  padding: var(--s-4) 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-num {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 2px;
}
.trust-label {
  font-size: 11px;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- SECTION HEADERS ---------- */
.section-head { margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--ink-700); }

/* ---------- SERVICE CARDS (3 main services) ---------- */
.service-list { display: flex; flex-direction: column; gap: var(--s-4); }
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-100);
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: var(--s-5); }
.service-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--s-2);
}
.service-card h3 { margin-bottom: var(--s-2); }
.service-card .price-tag {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--s-3);
}
.service-card p { color: var(--ink-700); margin-bottom: var(--s-4); font-size: var(--t-sm); }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-700);
  font-weight: 700;
  font-size: var(--t-sm);
}
.service-card-link::after { content: "→"; transition: transform 0.15s ease; }
.service-card:hover .service-card-link::after { transform: translateX(3px); }

/* ---------- PRICING TABLE (transparency) ---------- */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row-name { font-weight: 600; color: var(--navy-900); font-size: var(--t-sm); }
.pricing-row-note { font-size: var(--t-xs); color: var(--ink-500); margin-top: 2px; display: block; }
.pricing-row-price { font-weight: 800; color: var(--navy-900); font-size: var(--t-base); white-space: nowrap; }
.pricing-row-price small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-500); text-align: right; letter-spacing: 0.06em; text-transform: uppercase; }

.pricing-foot {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-soft);
  font-size: var(--t-xs);
  color: var(--ink-700);
  border-top: 1px solid var(--line);
}

/* ---------- WHY US (icons row) ---------- */
.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.why-item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.why-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--brass-500);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h4 { font-size: var(--t-md); margin-bottom: 4px; }
.why-item p { margin: 0; font-size: var(--t-sm); color: var(--ink-700); }

/* ---------- FAMILY BLOCK ---------- */
.family-block {
  background: var(--navy-900);
  color: #fff;
  padding: var(--s-9) 0;
}
.family-block h2 { color: #fff; }
.family-block p { color: rgba(255,255,255,0.85); }
.family-block .eyebrow { color: var(--brass-500); }
.family-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--s-5);
  border: 1px solid rgba(255,255,255,0.1);
}
.family-img-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- AREAS GRID ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.area-chip {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px var(--s-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none !important;
  text-align: center;
}
.area-chip:hover { background: var(--bg-soft); border-color: var(--brass-500); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--t-base);
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brass-600);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--ink-700);
  font-size: var(--t-sm);
}
.faq-body p { margin: 0; }
.faq-body p + p { margin-top: var(--s-3); }

/* ---------- FAQ — featured "why does it cost what it costs" ---------- */
.faq-item--featured {
  border: 1px solid rgba(193, 142, 60, 0.55);
  background: linear-gradient(180deg, #FFF8EC 0%, #FFF3DD 100%);
  box-shadow: 0 0 0 0 rgba(193, 142, 60, 0.45);
  animation: featuredGlow 3.4s ease-in-out infinite;
}
.faq-item--featured summary {
  color: #6E4A12;
  font-weight: 700;
}
.faq-item--featured summary::before {
  content: "💬";
  margin-right: 10px;
  font-size: 18px;
  filter: saturate(1.1);
}
.faq-item--featured summary::after {
  color: #C18E3C;
}
.faq-item--featured .faq-body {
  color: #4B3A1F;
}
.faq-item--featured .faq-body strong {
  color: #2A1E08;
}
.faq-item--featured .faq-body em.zinger {
  display: block;
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: rgba(193, 142, 60, 0.12);
  border-left: 3px solid #C18E3C;
  border-radius: 6px;
  font-style: italic;
  color: #2A1E08;
  font-size: var(--t-sm);
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 142, 60, 0.0); border-color: rgba(193, 142, 60, 0.45); }
  50%      { box-shadow: 0 0 18px 2px rgba(193, 142, 60, 0.35); border-color: rgba(193, 142, 60, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item--featured { animation: none; }
}

/* ---------- BIG CTA SECTION ---------- */
.cta-block {
  position: relative;
  background: var(--navy-900) url("/cta-bg-van.jpg") center/cover no-repeat;
  color: #fff;
  padding: var(--s-9) 0;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,46,0.82) 0%, rgba(15,29,46,0.95) 100%);
}
.cta-block .container { position: relative; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.85); }
.cta-block .eyebrow { color: var(--brass-500); }
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* ---------- STICKY BOTTOM CTA BAR ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: var(--navy-900);
  border-top: 2px solid var(--brass-500);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow: 0 -4px 16px rgba(15,29,46,0.2);
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
}
.sticky-cta-call {
  background: var(--brass-500);
  color: var(--navy-900);
  animation: sgd-pulse-glow 2.4s ease-in-out infinite;
}
.sticky-cta-call:hover { background: var(--brass-600); animation-play-state: paused; }
.sticky-cta-text {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  animation: sgd-pulse-glow-light 2.4s ease-in-out infinite;
  animation-delay: 1.2s;
}
.sticky-cta-text:hover { background: rgba(255,255,255,0.12); animation-play-state: paused; }
@keyframes sgd-pulse-glow-light {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.sticky-cta-btn svg { width: 20px; height: 20px; }
.sticky-cta-call-num { font-size: 12px; font-weight: 600; opacity: 0.8; display: block; line-height: 1; margin-top: 2px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.8);
  padding: var(--s-8) 0 var(--s-7);
  font-size: var(--t-sm);
}
.site-footer h5 {
  color: var(--brass-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3);
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--brass-500); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: var(--t-sm); margin-top: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- FORM ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--s-4); }
.form-row label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font-size: var(--t-base);          /* 16px = no iOS zoom on focus */
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  -webkit-appearance: none;
  appearance: none;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(200, 154, 71, 0.18);
}
.form-help { font-size: var(--t-xs); color: var(--ink-500); margin-top: 4px; }

/* ---------- PRODUCT CARDS (openers etc.) ---------- */
.product-list { display: flex; flex-direction: column; gap: var(--s-3); }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 132px 1fr;
}
.product-card-img {
  background: #fff;
  border-right: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 10px;
  min-height: 100%;
}
.product-card-img img { max-width: 100%; max-height: 112px; width: auto; height: auto; object-fit: contain; display: block; }
.product-card-info { padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.product-card-tag {
  align-self: flex-start;
  font-size: 10px;
  color: var(--brass-700);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(200, 154, 71, 0.12);
  border-radius: 3px;
  padding: 2px 6px;
}
.product-card-name { font-weight: 800; color: var(--navy-900); font-size: var(--t-md); line-height: 1.2; }
.product-card-sub { font-size: var(--t-xs); color: var(--ink-500); line-height: 1.3; }
.product-card-price { font-weight: 700; font-size: var(--t-sm); color: var(--ink-900); }

/* Feature icon row — replaces the old spec grid */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px 3px 6px;
  line-height: 1;
}
.feat svg { width: 12px; height: 12px; flex-shrink: 0; }
.feat.feat-on { background: rgba(200, 154, 71, 0.12); border-color: rgba(200, 154, 71, 0.35); color: var(--brass-700); }

.product-card-foot {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.product-card-foot a {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.product-card-foot a:hover { color: var(--navy-900); text-decoration: none; }
.product-card-foot a svg { width: 13px; height: 13px; }
.product-card-foot .sep { color: var(--ink-300); }

/* Show-more toggle */
.opener-more { display: flex; flex-direction: column; gap: var(--s-3); }
.opener-more[hidden] { display: none; }
.opener-more-toggle {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  background: #fff;
  border: 1px dashed var(--brass-500);
  border-radius: var(--radius-md);
  width: 100%;
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.opener-more-toggle:hover { background: var(--bg-soft); }
.opener-more-toggle svg { width: 16px; height: 16px; transition: transform 0.2s; }
.opener-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Brand section heads inside product groups */
.brand-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  margin: var(--s-5) 0 var(--s-3);
}
.brand-section-head h3 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -0.01em;
}
.brand-section-sub {
  font-size: var(--t-xs);
  color: var(--ink-500);
  margin: 4px 0 0;
}

/* Product card tag variants */
.product-card-tag--navy {
  background: var(--navy-900);
  color: #fff;
}
.product-card-tag--brass {
  background: var(--brass-500, #c89a47);
  color: #fff;
}

/* Product card feature checklist */
.product-feature-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-feature-list li {
  font-size: var(--t-xs);
  color: var(--ink-700);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}
.product-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--brass-700);
  border-bottom: 2px solid var(--brass-700);
  transform: rotate(-45deg);
}

.product-list-foot {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-500);
}
.product-list-foot a {
  color: var(--brass-700);
  font-weight: 700;
  text-decoration: none;
}
.product-list-foot a:hover { text-decoration: underline; }

/* Tinted section background */
.section-tinted { background: var(--bg-soft); }

/* Mobile: stack image above content */
@media (max-width: 540px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card-img { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s-3); }
  .product-card-img img { max-height: 130px; }
}

/* ---------- COMMERCIAL OPERATOR CARDS (vertical, brochure-style) ---------- */
.com-section {
  padding: var(--s-7) 0;
}
.com-section + .com-section {
  padding-top: 0;
}
.com-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.com-section-head h3 {
  font-family: var(--font-serif, Georgia, 'Times New Roman', serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0;
}
.com-section-head .com-section-tag {
  font-size: var(--t-sm);
  color: var(--ink-500);
  font-weight: 500;
}
.com-section--manaras {
  background: #f5efe6;
}
.com-section--liftmaster {
  background: #f7f1e6;
}
.com-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .com-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .com-grid { grid-template-columns: repeat(3, 1fr); }
}
.com-card {
  background: #fff;
  border: 1px solid #e5dcc9;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.com-card-img {
  background: #fff;
  padding: var(--s-5) var(--s-4) var(--s-4);
  height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.com-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  display: block;
}
.com-card-badge {
  position: absolute;
  top: 0;
  right: var(--s-4);
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 0 4px 4px;
}
.com-card-badge--brass { background: #c89a47; }
.com-card-badge--rust { background: #b35a2f; }
.com-card-body {
  padding: var(--s-4) var(--s-4) var(--s-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.com-card-model {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-700, #946a1a);
}
.com-card-name {
  font-family: var(--font-serif, Georgia, 'Times New Roman', serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.15;
  color: var(--navy-900);
  margin-top: -2px;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.com-card-desc {
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--ink-500);
  line-height: 1.5;
}
.com-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.com-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--t-sm);
  color: var(--ink-700, #2a3340);
  line-height: 1.45;
  min-width: 0;
}
.com-card-list li::before {
  content: "✓";
  color: var(--brass-500, #c89a47);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
  flex: 0 0 14px;
}
.com-card-list li > * {
  min-width: 0;
  overflow-wrap: break-word;
}
.com-card-list li strong { font-weight: 700; }
.com-card-foot {
  padding: 0 var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.com-btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #e5dcc9;
  border-radius: 6px;
  color: var(--ink-700, #2a3340);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.com-btn-pdf:hover { background: #f3ebd8; text-decoration: none; }
.com-btn-pdf svg { width: 16px; height: 16px; opacity: 0.6; }
.com-btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #b35a2f;
  color: #fff;
  border-radius: 6px;
  font-size: var(--t-md);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.com-btn-quote:hover { background: #9a4a25; text-decoration: none; color: #fff; }
.com-section-foot {
  margin-top: var(--s-5);
  padding: var(--s-4);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-500);
}
.com-section-foot a {
  color: #b35a2f;
  font-weight: 700;
  text-decoration: none;
}
.com-section-foot a:hover { text-decoration: underline; }

/* ---------- STEPS ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brass-500);
  color: var(--navy-900);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: var(--t-md);
}
.step h4 { margin-bottom: 4px; font-size: var(--t-md); }
.step p { margin: 0; font-size: var(--t-sm); }

/* ---------- BREADCRUMBS ---------- */
.breadcrumb {
  font-size: var(--t-xs);
  color: var(--ink-500);
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--ink-700); }
.breadcrumb a:hover { color: var(--navy-900); text-decoration: none; }
.breadcrumb-sep { color: var(--ink-300); margin: 0 6px; }

/* ---------- PAGE HERO (interior pages, smaller than home hero) ---------- */
.page-hero {
  background: var(--navy-900);
  color: #fff;
  padding: var(--s-7) 0 var(--s-8);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero[data-bg="residential"]::before { background-image: url("/residential-header.jpg"); background-image: image-set(url("/residential-header.webp") type("image/webp"), url("/residential-header.jpg") type("image/jpeg")); }
.page-hero[data-bg="commercial"]::before { background-image: url("/commercial-hero-richmond.png"); background-image: image-set(url("/commercial-hero-richmond.webp") type("image/webp"), url("/commercial-hero-richmond.png") type("image/png")); }
.page-hero[data-bg="commercial-openers"]::before { background-image: url("/commercial-opener-install.png"); background-image: image-set(url("/commercial-opener-install.webp") type("image/webp"), url("/commercial-opener-install.png") type("image/png")); }
.page-hero[data-bg="strata"]::before { background-image: url("/strata-van-parkade.jpg"); background-image: image-set(url("/strata-van-parkade.webp") type("image/webp"), url("/strata-van-parkade.jpg") type("image/jpeg")); }
.page-hero[data-bg="spring"]::before { background-image: url("/spring-repair-hero.png"); }
.page-hero[data-bg="openers"]::before { background-image: url("/openers-hero-richmond.png"); background-image: image-set(url("/openers-hero-richmond.webp") type("image/webp"), url("/openers-hero-richmond.png") type("image/png")); }
.page-hero[data-bg="newdoor"]::before { background-image: url("/new-doors-hero-richmond.jpg"); background-image: image-set(url("/new-doors-hero-richmond.webp") type("image/webp"), url("/new-doors-hero-richmond.jpg") type("image/jpeg")); }
.page-hero[data-bg="areas"]::before { background-image: url("/service-areas-header.jpg"); background-image: image-set(url("/service-areas-header.webp") type("image/webp"), url("/service-areas-header.jpg") type("image/jpeg")); }
.page-hero[data-bg="about"]::before { background-image: url("/family-team-richmond.png"); background-image: image-set(url("/family-team-richmond.webp") type("image/webp"), url("/family-team-richmond.png") type("image/png")); }
.page-hero[data-bg="contact"]::before { background-image: url("/cta-bg-van.jpg"); background-image: image-set(url("/cta-bg-van.webp") type("image/webp"), url("/cta-bg-van.jpg") type("image/jpeg")); }
.page-hero[data-bg="faq"]::before { background-image: url("/faq-team-richmond.png"); background-image: image-set(url("/faq-team-richmond.webp") type("image/webp"), url("/faq-team-richmond.png") type("image/png")); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: var(--t-3xl); margin-bottom: var(--s-3); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: var(--t-md); margin-bottom: var(--s-5); }
.page-hero-ctas { display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------- BACKGROUNDS ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-cream { background: var(--brass-50); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.85); }

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide-mobile { display: none; }
.show-mobile { display: block; }

/* ---------- EMERGENCY BANNER ---------- */
.emergency-banner {
  background: var(--emergency);
  color: #fff;
  padding: var(--s-3) 0;
  font-size: var(--t-sm);
  font-weight: 600;
  text-align: center;
}
.emergency-banner a { color: #fff; text-decoration: underline; font-weight: 800; }

/* ---------- LIST STYLE ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.checklist--detailed { gap: var(--s-3); }
.checklist--detailed li {
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink-700);
}
.checklist--detailed li strong {
  color: var(--navy-900);
  display: inline;
}

/* ---------- PROSE BLOCK ---------- */
.prose { max-width: 70ch; }
.prose p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0 0 var(--s-3) 0;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy-900); }
.prose .btn { margin-top: var(--s-2); }

.prose-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--s-4);
  margin-top: var(--s-2);
}
.prose-list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-4);
  border-left: 3px solid var(--brass-500, #c89a47);
}
.prose-list-item h4 {
  margin: 0 0 var(--s-2) 0;
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}
.prose-list-item p {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-700);
}

/* Alt section background to break up long pages */
.section--alt { background: #f7f3ea; }

/* ---------- PROCESS STEPS (numbered) ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--s-4);
  counter-reset: process;
}
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-5) var(--s-4) var(--s-4);
  position: relative;
}
.process-step-num {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass-500, #c89a47);
  line-height: 1;
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.process-step h4 {
  margin: 0 0 var(--s-2) 0;
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}
.process-step p {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-700);
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: var(--t-sm);
  color: var(--ink-700);
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  background: var(--brass-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F1D2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =========================================================
   DESKTOP UPGRADE — ≥768px
   ========================================================= */
@media (min-width: 768px) {
  :root {
    --t-3xl: 44px;
    --t-4xl: 56px;
    --header-h: 68px;
  }

  body { padding-bottom: 0; }   /* sticky CTA hides on desktop */
  .sticky-cta { display: none; }

  .topbar-hours { display: inline; }

  .container { padding: 0 var(--s-7); }
  .section { padding: var(--s-10) 0; }

  /* Header: show desktop nav, hide hamburger */
  .hamburger { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--s-5);
  }
  .nav-desktop a {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--navy-900);
    padding: 8px 4px;
  }
  .nav-desktop a:hover { color: var(--brass-700); text-decoration: none; }
  .nav-desktop .nav-cta {
    background: var(--brass-500);
    color: var(--navy-900);
    padding: 10px 16px;
    border-radius: 8px;
  }
  .nav-desktop .nav-cta:hover { background: var(--brass-600); color: var(--navy-900); }

  /* Hero: side-by-side */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 540px;
  }
  .hero-image { aspect-ratio: auto; height: 100%; min-height: 540px; order: 2; }
  .hero-image::after { background: linear-gradient(90deg, rgba(15,29,46,0.4) 0%, rgba(15,29,46,0) 60%); }
  .hero-price-chip { left: auto; right: var(--s-7); bottom: var(--s-7); padding: 12px 18px 13px; }
  .hero-price-chip-amount { font-size: 26px; }
  .hero-body { display: flex; flex-direction: column; justify-content: center; padding: var(--s-10) var(--s-9); }
  .hero h1 { font-size: 56px; line-height: 1.05; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }

  .trust-strip-grid { grid-template-columns: repeat(4, 1fr); }

  .service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .areas-grid { grid-template-columns: repeat(4, 1fr); }

  .why-list { display: grid; grid-template-columns: 1fr 1fr; }

  .page-hero { padding: var(--s-9) 0; }
  .page-hero::before { opacity: 0.35; }
  .page-hero h1 { font-size: 48px; }
  .page-hero-ctas { flex-direction: row; }

  .cta-buttons { flex-direction: row; justify-content: center; }

  .product-card-head { grid-template-columns: 140px 1fr; }
  .product-card-img { width: 140px; height: 140px; }

  .family-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-9);
    align-items: center;
  }
  .family-img-wrap { margin-top: 0; }

  .form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-9);
    align-items: start;
  }

  .hide-desktop { display: none; }
  .show-desktop { display: block; }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--s-7); }
  .hero-body { padding: var(--s-10) var(--s-10); }
  .nav-desktop { gap: var(--s-7); }
}

/* ---------- PRINT (and reduced-motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   DOOR CAROUSEL — horizontal snap-scrolling style gallery
   ========================================================= */
.door-carousel {
  position: relative;
  margin-top: var(--s-5);
}
.door-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: var(--s-2) 0 var(--s-4);
  -webkit-overflow-scrolling: touch;
}
.door-track::-webkit-scrollbar { display: none; }
.door-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.door-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.door-card-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.door-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.door-card-body {
  padding: var(--s-3) var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.door-card-style {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brass-700);
}
.door-card-name {
  font-weight: 800;
  font-size: var(--t-md);
  color: var(--navy-900);
  line-height: 1.2;
}
.door-card-desc {
  font-size: var(--t-xs);
  color: var(--ink-700);
  line-height: 1.4;
  margin-top: 2px;
}
.door-card-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.door-card-meta span::before { content: "·"; margin-right: 8px; color: var(--ink-300); }
.door-card-meta span:first-child::before { content: ""; margin: 0; }

.door-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-2);
  gap: var(--s-3);
}
.door-arrows { display: flex; gap: 8px; }
.door-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--navy-900);
  transition: background 0.15s, border-color 0.15s;
}
.door-arrow:hover { background: var(--bg-soft); border-color: var(--brass-500); }
.door-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.door-arrow svg { width: 18px; height: 18px; }
.door-progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  max-width: 220px;
}
.door-progress-bar {
  height: 100%;
  background: var(--brass-500);
  width: 10%;
  transition: width 0.25s;
}
.door-count {
  font-size: var(--t-xs);
  color: var(--ink-500);
  font-weight: 600;
  white-space: nowrap;
}

/* Modal for door detail */
.door-modal {
  position: fixed; inset: 0;
  background: rgba(15, 29, 46, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--s-3);
  animation: fadein 0.2s;
}
.door-modal[open] { display: flex; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.door-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}
.door-modal-img { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.door-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.door-modal-body { padding: var(--s-5); }
.door-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.door-modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: var(--s-4) 0;
}
.door-modal-features div {
  font-size: var(--t-xs);
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.door-modal-features div span { display: block; color: var(--ink-500); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.door-modal-features div strong { color: var(--navy-900); font-size: var(--t-sm); }

@media (min-width: 700px) {
  .door-track { grid-auto-columns: 42%; }
}
@media (min-width: 1024px) {
  .door-track { grid-auto-columns: 28%; }
}

/* =========================================================
   BRAND MARQUEE — auto-scrolling logos
   ========================================================= */
.brand-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
  overflow: hidden;
}
.brand-strip-head {
  text-align: center;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: var(--s-4);
}
.brand-marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.brand-marquee-track {
  display: flex;
  gap: var(--s-7);
  flex-shrink: 0;
  align-items: center;
  padding-right: var(--s-7);
  animation: brand-scroll 38s linear infinite;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-700);
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.2s;
  font-family: var(--font-display, 'Inter', sans-serif);
}
.brand-logo:hover { opacity: 1; color: var(--navy-900); }
.brand-logo.italic { font-style: italic; }
.brand-logo.cond { letter-spacing: -0.04em; font-weight: 900; }
.brand-logo.serif { font-family: 'Georgia', serif; font-weight: 700; }
.brand-logo.thin { font-weight: 600; }
.brand-logo.upper { text-transform: uppercase; letter-spacing: 0.05em; font-size: 19px; }

/* Brand showcase tiles (above the auto-marquee) */
.brand-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.brand-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.brand-tile:hover {
  border-color: var(--brass-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.brand-tile-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tile-logo.italic { font-style: italic; }
.brand-tile-logo.serif { font-family: 'Georgia', serif; font-weight: 700; }
.brand-tile-logo.upper { text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; }
.brand-tile-logo.cond { letter-spacing: -0.04em; font-weight: 900; }
.brand-tile-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brass-700);
}
.brand-tile-desc {
  font-size: var(--t-xs);
  color: var(--ink-700);
  line-height: 1.45;
  margin-top: 2px;
}

/* ===== Spring repair page: pricing tiers (good/better/best) ===== */
.spring-pricing .section-sub {
  max-width: 760px;
  margin: var(--s-3) auto 0;
  color: var(--ink-700);
  font-size: var(--t-md);
  text-align: center;
}
.gbb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (min-width: 860px) {
  .gbb-grid {
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: var(--s-5);
    align-items: stretch;
  }
}
.gbb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s-6) var(--s-5);
  box-shadow: 0 2px 8px rgba(15, 29, 46, 0.04);
}
.gbb-card h3 {
  font-size: var(--t-xl, 26px);
  margin: var(--s-2) 0 var(--s-3);
}
.gbb-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-700);
  background: rgba(15, 29, 46, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}
.gbb-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: var(--s-2) 0 var(--s-1);
  color: #0F1D2E;
}
.gbb-currency {
  font-size: 22px;
  font-weight: 600;
  transform: translateY(-12px);
}
.gbb-amount {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gbb-sub {
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-700);
  font-weight: 600;
}
.gbb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbb-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: #1d2735;
}
.gbb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #E8F2EA url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%231F8A45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l2.8 2.8L12.5 5'/></svg>") center/12px 12px no-repeat;
}
.gbb-note {
  margin: 0 0 var(--s-4);
  font-size: 13px;
  color: var(--ink-700);
  padding: var(--s-3);
  background: #F7F2E8;
  border-radius: 10px;
  line-height: 1.5;
}
.gbb-card .btn {
  margin-top: auto;
}

.gbb-better {
  border: 2px solid #C18E3C;
  background: linear-gradient(180deg, #FFFCF4 0%, #FFFFFF 40%);
  box-shadow: 0 8px 28px rgba(193, 142, 60, 0.18);
}
@media (min-width: 860px) {
  .gbb-better { transform: translateY(-12px); }
}
.gbb-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #C18E3C;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(193, 142, 60, 0.35);
}
.gbb-better .gbb-tag {
  background: rgba(193, 142, 60, 0.15);
  color: #6E4A12;
}
.gbb-better .gbb-price { color: #6E4A12; }

.gbb-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: #0F1D2E;
  border-radius: 14px;
  color: #fff;
}
@media (min-width: 720px) {
  .gbb-trust { grid-template-columns: repeat(4, 1fr); }
}
.gbb-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.gbb-trust-item strong {
  font-size: 32px;
  font-weight: 800;
  color: #FFD27A;
  letter-spacing: -0.02em;
}
.gbb-trust-item span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}
.gbb-promise {
  max-width: 760px;
  margin: var(--s-5) auto 0;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-700);
  line-height: 1.6;
}

/* ===== Spring repair page: photo-style "why" icons ===== */
.why-item:has(.why-icon--photo) .why-icon { width: 72px; height: 72px; }
.why-icon--photo {
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.why-icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ===== Responsive hero backgrounds (mobile-first variants) ===== */
/* On viewports up to 768px CSS pixels, switch to the 960w hero variants.
   On viewports up to 480px, switch to the 480w variants. Saves 80-95% of the
   hero bytes on phones (a 414w iPhone @3x DPR comfortably fits 960w). */
@media (max-width: 768px) {
  .page-hero[data-bg="residential"]::before        { background-image: url("/residential-header.jpg");        background-image: image-set(url("/residential-header-960.webp") type("image/webp"), url("/residential-header.jpg") type("image/jpeg")); }
  .page-hero[data-bg="commercial"]::before         { background-image: url("/commercial-hero-richmond.png");  background-image: image-set(url("/commercial-hero-richmond-960.webp") type("image/webp"), url("/commercial-hero-richmond.png") type("image/png")); }
  .page-hero[data-bg="commercial-openers"]::before { background-image: url("/commercial-opener-install.png"); background-image: image-set(url("/commercial-opener-install-960.webp") type("image/webp"), url("/commercial-opener-install.png") type("image/png")); }
  .page-hero[data-bg="strata"]::before             { background-image: url("/strata-van-parkade.jpg");        background-image: image-set(url("/strata-van-parkade-960.webp") type("image/webp"), url("/strata-van-parkade.jpg") type("image/jpeg")); }
  .page-hero[data-bg="openers"]::before            { background-image: url("/openers-hero-richmond.png");     background-image: image-set(url("/openers-hero-richmond-960.webp") type("image/webp"), url("/openers-hero-richmond.png") type("image/png")); }
  .page-hero[data-bg="newdoor"]::before            { background-image: url("/new-doors-hero-richmond.jpg");   background-image: image-set(url("/new-doors-hero-richmond-960.webp") type("image/webp"), url("/new-doors-hero-richmond.jpg") type("image/jpeg")); }
  .page-hero[data-bg="areas"]::before              { background-image: url("/service-areas-header.jpg");      background-image: image-set(url("/service-areas-header-960.webp") type("image/webp"), url("/service-areas-header.jpg") type("image/jpeg")); }
  .page-hero[data-bg="about"]::before              { background-image: url("/family-team-richmond.png");      background-image: image-set(url("/family-team-richmond-960.webp") type("image/webp"), url("/family-team-richmond.png") type("image/png")); }
  .page-hero[data-bg="contact"]::before            { background-image: url("/cta-bg-van.jpg");                background-image: image-set(url("/cta-bg-van-960.webp") type("image/webp"), url("/cta-bg-van.jpg") type("image/jpeg")); }
  .page-hero[data-bg="faq"]::before                { background-image: url("/faq-team-richmond.png");         background-image: image-set(url("/faq-team-richmond-960.webp") type("image/webp"), url("/faq-team-richmond.png") type("image/png")); }
}
@media (max-width: 480px) {
  .page-hero[data-bg="residential"]::before        { background-image: url("/residential-header.jpg");        background-image: image-set(url("/residential-header-480.webp") type("image/webp"), url("/residential-header.jpg") type("image/jpeg")); }
  .page-hero[data-bg="commercial"]::before         { background-image: url("/commercial-hero-richmond.png");  background-image: image-set(url("/commercial-hero-richmond-480.webp") type("image/webp"), url("/commercial-hero-richmond.png") type("image/png")); }
  .page-hero[data-bg="commercial-openers"]::before { background-image: url("/commercial-opener-install.png"); background-image: image-set(url("/commercial-opener-install-480.webp") type("image/webp"), url("/commercial-opener-install.png") type("image/png")); }
  .page-hero[data-bg="strata"]::before             { background-image: url("/strata-van-parkade.jpg");        background-image: image-set(url("/strata-van-parkade-480.webp") type("image/webp"), url("/strata-van-parkade.jpg") type("image/jpeg")); }
  .page-hero[data-bg="openers"]::before            { background-image: url("/openers-hero-richmond.png");     background-image: image-set(url("/openers-hero-richmond-480.webp") type("image/webp"), url("/openers-hero-richmond.png") type("image/png")); }
  .page-hero[data-bg="newdoor"]::before            { background-image: url("/new-doors-hero-richmond.jpg");   background-image: image-set(url("/new-doors-hero-richmond-480.webp") type("image/webp"), url("/new-doors-hero-richmond.jpg") type("image/jpeg")); }
  .page-hero[data-bg="areas"]::before              { background-image: url("/service-areas-header.jpg");      background-image: image-set(url("/service-areas-header-480.webp") type("image/webp"), url("/service-areas-header.jpg") type("image/jpeg")); }
  .page-hero[data-bg="about"]::before              { background-image: url("/family-team-richmond.png");      background-image: image-set(url("/family-team-richmond-480.webp") type("image/webp"), url("/family-team-richmond.png") type("image/png")); }
  .page-hero[data-bg="contact"]::before            { background-image: url("/cta-bg-van.jpg");                background-image: image-set(url("/cta-bg-van-480.webp") type("image/webp"), url("/cta-bg-van.jpg") type("image/jpeg")); }
  .page-hero[data-bg="faq"]::before                { background-image: url("/faq-team-richmond.png");         background-image: image-set(url("/faq-team-richmond-480.webp") type("image/webp"), url("/faq-team-richmond.png") type("image/png")); }
}
