:root {
  --bg: #FAF7F1; --surface: #FFFFFF; --surface-alt: #F1ECE2; --surface-hover: #F6F2EA; --deep: #173D26;
  --border: #DDD5C6; --border-hover: #B9AE9A;
  --text: #1C1F1A; --text-secondary: #3D4239; --text-tertiary: #5E6558; --text-on-deep: #F4F1EA;
  --brand-green: #30854F; --accent: #1F6B3A; --accent-hover: #17552E; --gold: #DFAA44; --gold-hover: #C99530;
  --white: #FFFFFF;
  --placeholder-bg: #FFF4DC; --placeholder-text: #7A4F00; --placeholder-border: #D9A441;
  --bg-rgb: 250, 247, 241; --accent-rgb: 31, 107, 58; --deep-rgb: 23, 61, 38; --gold-rgb: 223, 170, 68;
  --success: #2E7D32; --error: #B3261E; --warning: #B26A00;
  --font-head: 'Roboto Slab', Rockwell, 'Courier New', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(var(--deep-rgb), .08);
  --shadow-2: 0 6px 18px rgba(var(--deep-rgb), .12);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; } /* clears the sticky header on anchor jumps */
body { margin: 0; background: var(--bg); color: var(--text-secondary); font: 400 1.125rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }
h3 { font-size: 1.4375rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; }
.section-head { margin-bottom: 40px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .875rem 1.5rem; border-radius: 8px; border: 2px solid transparent; font: 700 1.125rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-call { background: var(--gold); color: var(--text); }
.btn-call:hover { background: var(--gold-hover); color: var(--text); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: rgba(var(--accent-rgb), .08); color: var(--accent-hover); }
.btn-on-deep { background: transparent; color: var(--text-on-deep); border-color: var(--text-on-deep); }
.btn-on-deep:hover { background: rgba(var(--bg-rgb), .12); color: var(--text-on-deep); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Placeholder */
.placeholder { display: inline-block; padding: .2rem .6rem; border: 2px dashed var(--placeholder-border); background: var(--placeholder-bg); color: var(--placeholder-text); border-radius: 6px; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.placeholder-block { border: 2px dashed var(--placeholder-border); background: var(--placeholder-bg); color: var(--placeholder-text); border-radius: var(--radius); padding: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Top bar */

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: box-shadow .15s ease, border-color .15s ease; }
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-1); }
.header .container { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { display: block; }
.logo img { height: 56px; width: auto; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: .6rem .75rem; border-radius: 6px; }
.nav a:hover { background: var(--surface-hover); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--gold); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.icon-btn.call { background: var(--gold); border-color: var(--gold); }
.icon-btn.call:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.header .btn-call { display: none; }
.mobile-menu { border-top: 1px solid var(--border); background: var(--surface); padding: 12px 20px 20px; }
.mobile-menu a:not(.btn) { display: block; padding: .8rem 0; color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu .btn-row { margin-top: 16px; }
.mobile-menu .btn { flex: 1 1 100%; }

/* Hero */
.hero { position: relative; background: var(--deep); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-copy { padding: 28px 0 40px; color: var(--text-on-deep); }
.hero-copy h1 { color: var(--white); }
.hero-copy .lead { color: var(--text-on-deep); max-width: 36rem; }
.hero-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-facts .icon { color: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp .5s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust li { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.trust .icon { color: var(--brand-green); width: 1.6em; height: 1.6em; }

/* Cards */
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-2); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; }
.price-line { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card .btn-row { margin-top: auto; padding-top: 8px; }
/* What's included */
.included { border-top: 1px solid var(--border); padding-top: 12px; }
.included summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.included summary::-webkit-details-marker { display: none; }
.included summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); font-weight: 800; line-height: 1; }
.included[open] summary::before { content: "\2212"; }
.included summary:hover { color: var(--accent-hover); }
.included h4 { font: 700 1rem/1.3 var(--font-body); color: var(--text); margin: 14px 0 6px; }
.included ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; color: var(--text-secondary); }
.included p { color: var(--text-secondary); margin-top: 10px; }
/* House package prices */
.prices { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 24px; display: grid; gap: 24px; grid-template-columns: 1fr; }
.prices h3 { margin: 0 0 .35rem; }
.prices .note { color: var(--text-tertiary); margin: 0 0 14px; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--border); }
.price-table th { font: 700 1rem/1.3 var(--font-body); color: var(--text-tertiary); }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-weight: 800; color: var(--text); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.addons { background: var(--surface-alt); border-radius: 10px; padding: 20px; align-self: start; }
.addons h4 { font: 700 1rem/1.3 var(--font-body); margin: 0 0 10px; }
.addons ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: .45rem; }
.addons li { display: flex; justify-content: space-between; gap: 12px; }
.addons li strong { white-space: nowrap; }
.addons p { margin: 0; color: var(--text-tertiary); font-size: 1rem; }
/* Rating */
.rating { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-weight: 700; }
.rating .stars { color: var(--gold-hover); letter-spacing: .1em; font-size: 1.25rem; }
.ways { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.way { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--brand-green); border-radius: 8px; padding: 20px; }
.way h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.way p { margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--text); font: 800 1.25rem/1 var(--font-head); margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.steps p { margin: 0; }

/* Deal */
.deal { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
.deal-copy { background: var(--surface); border: 1px solid var(--border); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.deal-copy h3 { font-size: 1.5rem; }
.deal-ad { min-height: 260px; }
.deal-ad-figure { margin: 0; }
.deal-ad-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.deal-ad-figure figcaption { color: var(--text-tertiary); font-size: 1rem; margin-top: 8px; }

/* Products */
.grid-products { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.product-tile { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand-green); border-radius: 10px; padding: 18px; text-decoration: none; color: var(--text-secondary); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; display: block; }
.product-tile:hover { background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--shadow-2); color: var(--text-secondary); }
.product-tile strong { display: block; font: 700 1.125rem/1.25 var(--font-head); color: var(--text); margin-bottom: .3rem; }
.product-tile span { font-size: 1rem; line-height: 1.4; display: block; }
.confirm-note { margin-top: 16px; font-size: 1rem; }

/* Proof */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: 1rem; color: var(--text-tertiary); margin-top: .4rem; }
.gallery + .gallery { margin-top: 16px; }
.gallery.gallery-wide img { aspect-ratio: 16 / 9; }
@media (min-width: 760px) { .gallery.gallery-wide { grid-template-columns: repeat(2, 1fr); } }
.color-chart { margin: 24px 0 0; max-width: 560px; }
.color-chart img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.color-chart figcaption { font-size: 1rem; color: var(--text-tertiary); margin-top: .4rem; }
.reviews { margin-top: 16px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0; }
.review p { font-size: 1.25rem; color: var(--text); font-weight: 600; line-height: 1.45; }
.review cite { font-style: normal; color: var(--text-tertiary); font-weight: 600; }

/* CTA band */
.cta-band { background: var(--deep); color: var(--text-on-deep); padding: 56px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--text-on-deep); }

/* Visit */
.visit { display: grid; gap: 28px; grid-template-columns: 1fr; }
.visit dl { margin: 0; display: grid; gap: 18px; }
.visit dt { font: 700 .9375rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-green); margin-bottom: .2rem; }
.visit dd { margin: 0; color: var(--text); }
.hours { border-collapse: collapse; }
.hours td { padding: .15rem 1.25rem .15rem 0; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--surface-alt); }

/* Footer */
.footer { background: var(--deep); color: var(--text-on-deep); padding: 48px 0; font-size: 1rem; border-top: 1px solid rgba(var(--bg-rgb), .15); }
.footer a { color: var(--text-on-deep); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer h3 { color: var(--white); font-size: 1.125rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; }
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .soda { color: var(--gold); font-weight: 700; }
.footer .bbb { background: var(--white); border-radius: 8px; padding: 6px; width: 150px; }
.footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(var(--bg-rgb), .15); color: var(--text-on-deep); opacity: .85; }

/* Sticky call bar (mobile) */

/* Tablet */
@media (min-width: 760px) {
  .container { padding: 0 32px; }
  .section { padding: 88px 0; }
    .logo img { height: 64px; }
  .trust ul { grid-template-columns: repeat(4, 1fr); padding: 22px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .deal { grid-template-columns: 1.1fr 1fr; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: 3fr 2fr; padding: 32px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .visit { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .header .btn-call { display: inline-flex; }
  .icon-btn.call { display: none; }
  /* Hero: text over photo */
  .hero { min-height: 600px; display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { height: 100%; aspect-ratio: auto; }
  /* Home hero: photo stays bright, copy sits on its own panel (10-14) */
  .hero .hero-copy, .page-hero:not(.plain) .hero-copy { position: relative; margin: 64px 0; padding: 36px 40px; max-width: 600px; background: rgba(var(--bg-rgb), .86); /* was .70 + backdrop blur; the blur repainted every scroll frame */ color: var(--text-secondary); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
  .hero .hero-copy h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); color: var(--deep); }
  .hero .hero-copy .lead { color: var(--text-secondary); }
  .page-hero:not(.plain) .hero-copy h1 { color: var(--deep); }
  .page-hero:not(.plain) .hero-copy .lead { color: var(--text-secondary); }
}
/* Desktop */
@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .header .menu-btn { display: none; }
  .logo img { height: 72px; }
  .grid-products { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   SUB PAGE COMPONENTS (v3, 2026-10-03)
   Spec: 07-DESIGN.md §10. Used by pole-barns.html, house-packages.html.
   ============================================================ */

/* Breadcrumb */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 2px 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { display: flex; align-items: center; gap: .4rem; color: var(--text-tertiary); }
.crumbs li + li::before { content: "/"; color: var(--border-hover); }
.crumbs a { color: var(--text-tertiary); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* Page hero: shorter than the home hero, photo always behind on desktop */
.page-hero { position: relative; background: var(--deep); }
.page-hero .hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-hero .hero-copy { padding: 28px 0 36px; color: var(--text-on-deep); }
.page-hero .hero-copy h1 { color: var(--white); font-size: clamp(2.125rem, 4vw, 3.25rem); }
.page-hero .hero-copy .lead { color: var(--text-on-deep); max-width: 40rem; }

/* Jump links under the page hero */
.jumps { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.jumps ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.jumps a:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-hover); }

/* Starting-at price cards */
.size-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.size-card { background: var(--surface); border: 1px solid var(--border); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 22px; }
.size-card h3 { font-size: 1.5rem; margin-bottom: .1rem; }
.size-card .sqft { color: var(--text-tertiary); font-size: 1rem; margin: 0 0 .75rem; }
.size-card .amount { font: 800 2rem/1 var(--font-head); color: var(--text); display: block; margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.size-card .amount-note { font-size: 1rem; color: var(--text-tertiary); margin: 0; }

/* Two ways to buy, as full panels */
.buy-ways { display: grid; gap: 24px; grid-template-columns: 1fr; }
.buy-way { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.buy-way.lead-way { border-top: 6px solid var(--brand-green); }
.buy-way h3 { margin: 0; font-size: 1.5rem; }
.buy-way p { margin: 0; }
.buy-way ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.buy-way .btn-row { margin-top: auto; padding-top: 6px; }

/* Spec list: what's included / not included */
.spec-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.spec h3 { font-size: 1.375rem; display: flex; align-items: center; gap: .5rem; }
.spec h3 .icon { width: 1.2em; height: 1.2em; }
.spec.yes h3 .icon { color: var(--brand-green); }
.spec.no h3 .icon { color: var(--text-tertiary); }
.spec ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.spec > p:last-child { margin-bottom: 0; }

/* Options chips */
.options { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.options li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .6rem 1rem; font-weight: 600; color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq details[open] { border-color: var(--border-hover); }
.faq summary { cursor: pointer; font: 700 1.1875rem/1.35 var(--font-head); color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.5rem/1 var(--font-body); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding-bottom: 20px; margin: 0; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Table that scrolls sideways on a phone instead of breaking the layout */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 0; }
@media (max-width: 759px) {
  .price-table th, .price-table td { padding: .6rem .3rem; }
}

/* Panel: a plain bordered block for warranty, financing, delivery */
.panel-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.panel { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--brand-green); border-radius: 8px; padding: 22px; }
.panel h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.panel p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .size-cards { grid-template-columns: repeat(3, 1fr); }
  .buy-ways { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero { min-height: 420px; display: flex; align-items: center; }
  .page-hero > .container { width: 100%; }
  .page-hero .hero-media { position: absolute; inset: 0; }
  .page-hero .hero-media img { height: 100%; aspect-ratio: auto; }
  .page-hero .hero-copy { position: relative; }
}

/* Stat line: one sourced number under a section, not a review rating */
.statline { margin: 28px 0 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: 8px; color: var(--text); font-weight: 700; font-size: 1.1875rem; line-height: 1.45; }

/* Grid and flex children default to min-width:auto, so a wide table pushes the
   whole page sideways instead of scrolling inside its own wrapper. DESIGN.md
   section 9 requires no horizontal scroll at 320px and up. */
.grid-2 > *, .spec-grid > *, .prices > *, .panel-grid > *, .buy-ways > *, .size-cards > * { min-width: 0; }
.table-scroll { max-width: 100%; }

/* ============================================================
   v4 (2026-10-03): plain hero, prose, forms, contact
   ============================================================ */

/* Hero with no photo, for pages where Lucky has no usable image yet */
.page-hero.plain { background: var(--deep); min-height: 0; }
.page-hero.plain .hero-copy { padding: 44px 0; max-width: 46rem; text-shadow: none; position: static; }
@media (min-width: 760px) { .page-hero.plain { display: block; } .page-hero.plain .hero-copy { padding: 64px 0; } }

/* Prose block for product pages */
.prose { max-width: 680px; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose > :last-child { margin-bottom: 0; }

/* Product hub section */
.line { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 28px; }
.line:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.line h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.line .prose { margin-bottom: 0; }
@media (min-width: 760px) {
  .line { display: grid; grid-template-columns: 1fr 1.9fr; gap: 32px; align-items: start; }
  .line h3 { margin: 0; }
}

/* Forms */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; }
.field { display: grid; gap: .4rem; }
.field > label, .fieldset > legend { font: 700 1rem/1.3 var(--font-body); color: var(--text); }
.field .hint { font-size: 1rem; color: var(--text-tertiary); }
.field input, .field select, .field textarea {
  font: 400 1.125rem/1.4 var(--font-body); color: var(--text); background: var(--bg);
  border: 2px solid var(--border); border-radius: 8px; padding: .7rem .8rem; min-height: 52px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-hover); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--text); outline-offset: 2px; border-color: var(--accent); }
.field .req, .fieldset .req { color: var(--error); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fieldset legend { padding: 0; margin-bottom: .2rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem .9rem;
  background: var(--bg); border: 2px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--text); cursor: pointer; }
.choice:hover { border-color: var(--border-hover); }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); }
.choice:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
.form-note { font-size: 1rem; color: var(--text-tertiary); margin: 0; }
.form-sent { display: none; border: 2px solid var(--brand-green); background: rgba(var(--accent-rgb), .08);
  color: var(--text); border-radius: 8px; padding: 16px 18px; font-weight: 700; }
.form-sent.show { display: block; }
.form-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.aside { background: var(--surface-alt); border-radius: var(--radius); padding: 24px; }
.aside h3 { font-size: 1.25rem; }
.aside ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.aside > :last-child { margin-bottom: 0; }

/* Quote picker cards */
.pick { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pick a { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--brand-green);
  border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text-secondary); display: grid; gap: .5rem; }
.pick a:hover { border-color: var(--border-hover); box-shadow: var(--shadow-2); color: var(--text-secondary); }
.pick strong { font: 700 1.375rem/1.25 var(--font-head); color: var(--text); }
.pick span { font-size: 1.0625rem; }

@media (min-width: 760px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1.6fr 1fr; }
  .pick { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 32px; }
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.aside .soda-note { color: var(--accent); font-weight: 700; margin-bottom: 0; }
.aside h2 { font-size: 1.25rem; }
.form > h2 { font-size: 1.5rem; margin: 0; }
.prose h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }

/* Tap targets missed on the first pass: list links in an aside, and the phone
   number in Visit Us, which is a primary action on the contact page. */
.aside ul a, .visit dd a[href^="tel"] { display: inline-flex; align-items: center; min-height: 44px; }
.choice input { font-size: 1rem; }
/* A field with a hint is taller than one without, so stop the grid stretching
   the control to match and leaving two inputs of different heights side by side. */
.field { align-content: start; }
.form-row { align-items: start; }
/* Visual order label, control, hint, so controls line up across a two-up row
   even when only one of them carries a hint. DOM order stays label, hint,
   control, which is the order a screen reader wants. */
.field > label { order: 1; }
.field > input, .field > select, .field > textarea { order: 2; }
.field > .hint { order: 3; }
@media (min-width: 760px) { .panel-grid.two { grid-template-columns: repeat(2, 1fr); } }

/* Storefront hero: keep the sign in frame when the hero crops short (10-19) */
.hero-media img.pos-top { object-position: center 30%; }
.form-sent.err { border-color: var(--error); background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin: 4px 0 16px; }
