/* Stamford Trailers — global design system
   White backgrounds, navy type, restrained red calls to action. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --navy-900: #131d29;
  --navy-800: #182637;
  --navy-700: #1f3349;
  --navy-600: #2a4563;
  --navy-100: #e8edf4;
  --navy-50: #f4f6fa;
  --red-600: #c4262e;
  --red-700: #a51f26;
  --red-50: #fdf1f1;
  --text: #1f2733;
  --muted: #5a6575;
  --border: #e1e6ed;
  --border-strong: #c9d1dc;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ok: #1d6b45;
  --warn-bg: #fff8e6;
  --warn-border: #f0d48a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 29, 41, .06), 0 4px 16px rgba(19, 29, 41, .06);
  --shadow-lg: 0 10px 40px rgba(19, 29, 41, .12);
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid #2f6fd6; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border-radius: 10px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy-800); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration: none; color: var(--navy-700); }
.textlink::after { content: " →"; }
.textlink:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: .5em .8em; border-radius: 8px; text-decoration: none; color: var(--navy-800); font-weight: 600; font-size: .98rem; }
.nav a:hover { background: var(--navy-50); }
.nav a[aria-current="page"] { color: var(--red-600); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 600; text-decoration: none; color: var(--navy-800); font-size: .95rem; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--navy-900); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { min-height: 66px; }
  .brand img { width: 158px; }
  .header-actions .btn { display: none; }
  .mobile-nav { border-top: 1px solid var(--border); background: #fff; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: 1.05rem; }
  .mobile-nav a[aria-current="page"] { color: var(--red-600); }
  .mobile-nav .btn { margin: 16px 20px; width: calc(100% - 40px); border-bottom: 0; color: #fff; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.section-head.center { max-width: 760px; margin-inline: auto; }
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.page-hero h1 { margin-bottom: .35em; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 .4em; }

/* Home hero */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent { color: var(--red-600); }
.hero .lead { margin-bottom: 1.6em; }
.hero-photo { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; background: var(--navy-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(19,29,41,.78); color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 6px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--navy-800); font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; margin: 0; }
.check { width: 20px; height: 20px; flex-shrink: 0; color: var(--ok); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; aspect-ratio: 16 / 11; } }

/* Trailer cards */
.trailer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .trailer-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trailer-card { display: flex; flex-direction: column; }
.trailer-card .photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-100); }
.trailer-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.trailer-card .body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.trailer-card h3 { font-size: 1.45rem; margin: 0; }
.trailer-card .model { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.price span { color: var(--muted); font-size: .95rem; }
.deposit-note { font-size: .9rem; color: var(--muted); margin: -6px 0 0; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.spec-chips li { margin: 0; background: var(--navy-50); border: 1px solid var(--border); color: var(--navy-800); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.trailer-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; font: 800 1.05rem var(--font-display); margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--red-50); color: var(--red-600); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery.preview { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; flex: none; background: var(--navy-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { flex: 1; padding: 10px 14px 12px; font-size: .9rem; line-height: 1.4; color: var(--muted); background: #fff; }
@media (max-width: 900px) { .gallery, .gallery.preview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery.preview { grid-template-columns: repeat(2, 1fr); } .gallery.preview figcaption { display: none; } }
dialog.lightbox { padding: 0; border: 0; border-radius: 12px; max-width: min(96vw, 1200px); background: #000; }
dialog.lightbox::backdrop { background: rgba(10,15,22,.86); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: auto; }
dialog.lightbox p { color: #fff; margin: 0; padding: 10px 16px; font-size: .95rem; background: #111; }
dialog.lightbox button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.4rem; cursor: pointer; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--navy-900); position: relative; font-size: 1.04rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list .answer { padding: 0 20px 18px; color: var(--text); }
.faq-list .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.4rem; }

/* Detail pages */
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-gallery .main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-100); border: 1px solid var(--border); }
.detail-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--navy-100); }
.thumbs button[aria-pressed="true"] { border-color: var(--red-600); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 96px; padding: 26px; }
.buy-box .price strong { font-size: 2.4rem; }
.buy-box .btn { width: 100%; }
.buy-box hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 12px; }
.spec-table td { color: var(--navy-900); font-weight: 600; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 7px; height: 13px; border-right: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(40deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 8px; } }

/* Callouts */
.callout { border-radius: var(--radius-sm); padding: 18px 20px; border: 1px solid var(--border); background: var(--bg-soft); }
.callout h3 { font-size: 1.05rem; margin-bottom: .35em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout-navy { background: var(--navy-800); color: #e9eef5; border: 0; }
.callout-navy h3, .callout-navy strong { color: #fff; }
.draft-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); font-size: .92rem; padding: 10px 0; color: #5d4706; }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; font-size: .98rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--navy-800); color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.compare tbody th { color: var(--muted); font-weight: 600; width: 26%; background: var(--bg-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .compare { font-size: .9rem; } .compare th, .compare td { padding: 11px 12px; } }

/* Forms / estimator */
.form-card { padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; color: var(--navy-900); font-size: .97rem; }
.field .hint { font-size: .87rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); padding: 12px 14px; min-height: 50px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47,111,214,.35); border-color: #2f6fd6; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--red-600); }
.field .error { color: var(--red-700); font-size: .9rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: center; border: 2px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.choice strong { display: block; color: var(--navy-900); font-size: 1rem; }
.choice span { color: var(--muted); font-size: .9rem; }
.choice:has(input:checked) { border-color: var(--red-600); background: var(--red-50); }
.choice:has(input:focus-visible) { outline: 3px solid #2f6fd6; outline-offset: 2px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 14px; font-weight: 500; cursor: pointer; min-height: 46px; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--red-600); }
.check-row { font-weight: 400 !important; display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red-600); }
.estimator-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .estimator-grid { grid-template-columns: 1fr; } }
.estimate { padding: 24px; position: sticky; top: 96px; }
.estimate h2 { font-size: 1.3rem; }
.estimate table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.estimate th, .estimate td { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.estimate td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }
.estimate tr.subtotal th, .estimate tr.subtotal td { font-weight: 700; color: var(--navy-900); }
.estimate tr.total th, .estimate tr.total td { font-size: 1.12rem; font-weight: 800; color: var(--navy-900); border-bottom: 0; padding-top: 14px; font-family: var(--font-display); }
.estimate tr.deposit th, .estimate tr.deposit td { background: var(--bg-soft); padding-inline: 8px; }
.estimate .empty { color: var(--muted); padding: 18px 0; }
.estimate .disclaimer { margin-top: 16px; font-size: .9rem; background: var(--navy-50); border-radius: 8px; padding: 12px 14px; color: var(--navy-800); }
.form-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: fs; }
.form-steps li { counter-increment: fs; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 8px; margin: 0; }
.form-steps li::before { content: counter(fs); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-700); color: #fff; font-size: .75rem; margin-right: 6px; }
.form-section { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; }
.form-section h2 { font-size: 1.25rem; }
.send-options { display: grid; gap: 12px; }
.notice-box { border: 2px solid var(--ok); background: #f0f8f3; border-radius: 12px; padding: 20px; }
.notice-box h3 { color: var(--ok); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 24px; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card .big { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--navy-900); text-decoration: none; display: block; margin-bottom: 4px; word-break: break-word; }
.contact-card .btn-row { margin-top: 14px; }

/* CTA band */
.cta-band { background: var(--navy-800); color: #dfe6ef; border-radius: 18px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-secondary:hover { border-color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Prose (policy pages, guides) */
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--red-600); text-decoration: underline; }
.footer-brand img { width: 200px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(19,29,41,.08); }
  /* iOS Safari's floating toolbar can leave a gap under bottom-fixed bars while it shrinks/grows.
     Extend the bar's white background below its box so no page content ever shows underneath. */
  .action-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: #fff; pointer-events: none; }
  .action-bar .btn { min-height: 46px; padding: .5em .6em; font-size: .95rem; }
  body.has-action-bar { padding-bottom: 72px; }
}
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }

/* Utility spacing */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Request page: inline estimate on phones, sidebar on desktop */
.show-mobile { display: none; }
.estimator-grid > .hide-mobile { display: contents; }
@media (max-width: 900px) { .show-mobile { display: block; } .estimator-grid > .hide-mobile { display: none; } }
.mobile-estimate { margin: 4px 0 22px; background: #fff; }
.mobile-estimate h2 { font-size: 1.15rem; }
.mobile-estimate table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mobile-estimate th, .mobile-estimate td { padding: 7px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.mobile-estimate td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.mobile-estimate tr.total th, .mobile-estimate tr.total td { font-weight: 800; border-bottom: 0; }
.send-options .btn { white-space: normal; text-align: center; }

/* ===== v2: rate plate, hero rate board, requirements list, detail layout, mobile tuning ===== */
.textlink::after { content: none; }
.textlink { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--red-600); }
.section-head.split { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; }

/* Hero */
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.02em; max-width: 15ch; }
.hero-photo { margin: 0; }
.rate-board { list-style: none; padding: 0; margin: 4px 0 8px; border-top: 2px solid var(--navy-900); max-width: 460px; }
.rate-board li { margin: 0; border-bottom: 1px solid var(--border-strong); }
.rate-board a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px; text-decoration: none; color: var(--navy-900); }
.rate-board a:hover .rb-name { color: var(--red-600); }
.rb-name { font-weight: 600; font-size: 1.08rem; }
.rb-rate { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.rb-rate strong { font: 800 1.6rem/1 var(--font-display); color: var(--navy-900); font-variant-numeric: tabular-nums; margin-right: 2px; }
.rate-note { font-size: .92rem; color: var(--muted); margin: 0 0 22px; }

/* Rate plate — the one signature element: a stamped navy data plate with rivets */
.plate { position: relative; background: var(--navy-800); color: #c9d4e2; border-radius: 6px; padding: 18px 22px 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 5px var(--navy-800), inset 0 0 0 6px rgba(255,255,255,.12); }
.plate::before, .plate::after { content: ""; position: absolute; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fa1b8, #3c506a 70%); }
.plate::before { left: 10px; } .plate::after { right: 10px; }
.plate-rate { display: flex; align-items: baseline; gap: 8px; }
.plate-rate strong { font: 800 2.4rem/1 var(--font-display); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plate-rate span { font-size: .95rem; }
.plate-deposit { margin-top: 4px; font-size: .92rem; color: #e7edf5; }
.plate-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.22); }
.plate-specs div { padding-right: 8px; }
.plate-specs dt { font-size: .78rem; color: #93a3b8; margin: 0; }
.plate-specs dd { margin: 2px 0 0; color: #fff; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.plate-compact { padding: 14px 18px; }

/* Trailer card: flat, photo-led */
.trailer-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: none; }
.trailer-card .photo { aspect-ratio: 16 / 10; display: block; overflow: hidden; background: var(--navy-100); }
.trailer-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.trailer-card .body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.trailer-card h2, .trailer-card h3 { font-size: 1.5rem; margin: 0; }
.trailer-card h2 a, .trailer-card h3 a { color: inherit; text-decoration: none; }
.trailer-card .model { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.trailer-card .summary { margin: 0; color: var(--text); }
.trailer-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Requirements */
.need-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.need-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 2px solid var(--navy-900); }
.need-list li { margin: 0; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--border-strong); position: relative; }
.need-list li::before { content: ""; position: absolute; left: 6px; top: 19px; width: 7px; height: 13px; border-right: 2.5px solid var(--red-600); border-bottom: 2.5px solid var(--red-600); transform: rotate(40deg); }
.need-list strong { display: block; color: var(--navy-900); }
.need-list span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .need-grid { grid-template-columns: 1fr; gap: 8px; } .need-list { grid-template-columns: 1fr; } }

/* Steps: plainer, rule-led instead of cards */
.steps li { background: transparent; border: 0; border-top: 2px solid var(--navy-900); border-radius: 0; padding: 18px 4px 0; }
.steps li::before { width: auto; height: auto; background: none; color: var(--red-600); border-radius: 0; display: block; font-size: 1.6rem; margin-bottom: 6px; }

/* Detail page: gallery, price, details — price sits right under the photos on phones */
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-areas: "gallery buy" "details buy"; gap: 36px clamp(28px, 4vw, 56px); align-items: start; }
.d-gallery { grid-area: gallery; } .d-buy { grid-area: buy; } .d-details { grid-area: details; }
.d-details > * + * { margin-top: 36px; }
.buy-box { position: sticky; top: 96px; padding: 0; background: none; border: 0; box-shadow: none; }
.buy-box .stack { margin-top: 18px; }
.buy-box .ticks { margin-top: 20px; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "buy" "details"; gap: 24px; }
  .buy-box { position: static; }
  .detail-section { padding-top: 20px; }
}

/* ---------- Phone tuning ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 22px; }
  .lead { font-size: 1.04rem; }
  h2 { font-size: 1.55rem; }
  .page-hero { padding: 22px 0 22px; }
  .page-hero h1 { font-size: 1.85rem; }
  .breadcrumbs { margin-bottom: 8px; font-size: .85rem; }

  .hero { padding: 0 0 36px; }
  .hero-grid { gap: 20px; }
  .hero-photo { order: -1; margin: 0 -16px; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9; }
  .hero h1 { font-size: 1.9rem; max-width: none; }
  .hero .lead { margin-bottom: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .trailer-grid { gap: 20px; }
  .trailer-card .body { padding: 18px 16px; gap: 14px; }
  .trailer-card .actions .btn { flex: 1 1 100%; }
  .plate { padding: 16px 18px 14px; }
  .plate-rate strong { font-size: 2.1rem; }

  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 14px 0; border-top: 1px solid var(--border-strong); }
  .steps li:first-child { border-top: 2px solid var(--navy-900); }
  .steps li::before { grid-row: span 2; font-size: 1.35rem; margin: 0; }
  .steps h3 { margin: 0 0 2px; font-size: 1.05rem; }

  .faq-list summary { padding: 16px 46px 16px 16px; font-size: 1rem; }
  .faq-list .answer { padding: 0 16px 16px; }
  .cta-band { border-radius: 12px; padding: 26px 20px; }
  .cta-band .btn { flex: 1 1 100%; }
  .contact-card .btn-row .btn { flex: 1 1 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-grid li { margin-bottom: 0; }
  .footer-grid li { padding: 4px 0; }
  .footer-grid li a { display: inline-block; padding: 4px 0; }
  .footer-bottom { flex-direction: column; gap: 12px; margin-top: 28px; }
  .footer-brand img { width: 170px; }
  .site-footer { padding: 36px 0 20px; }

  .thumbs { gap: 8px; }
  .detail-gallery .main { margin: 0 -16px; border-radius: 0; border: 0; }
  .form-card { padding: 18px 16px; border-radius: 10px; }
}
@media (max-width: 380px) { .plate-specs { grid-template-columns: 1fr 1fr; gap: 8px 0; } }
.footer-grid h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; font-family: var(--font-display); color: var(--navy-900); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; }
.contact-form-wrap { align-items: start; }
.contact-form-wrap h2 { font-size: 1.35rem; }
.notice-box p + p { margin-top: 6px; }
.notice-box .ref { font: 800 1.4rem var(--font-display); color: var(--navy-900); letter-spacing: .02em; }
.notice-warn { border-color: var(--red-600); background: var(--red-50); }
.notice-warn h3 { color: var(--red-700); }

/* Booked dates note (request form) */
.booked-note { margin: -.25rem 0 1rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); font-size: .92rem; }
.booked-note.has-conflict { background: var(--red-50); border-color: #f0c2c4; }

/* Check your request */
.narrow-wrap { max-width: 640px; }
.status-card { margin-top: 1.25rem; scroll-margin-top: 96px; }
.status-title { margin: .25rem 0 .1rem; font-size: 1.5rem; }
.status-dates { font-weight: 600; color: var(--navy-700); }
.status-card.is-closed { border-left: 4px solid var(--border-strong); }
.status-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .1rem; }
.status-steps li { position: relative; display: flex; align-items: center; gap: .75rem; padding: .45rem 0; color: var(--muted); }
.status-steps li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 1.75rem; height: calc(100% - 1.1rem); width: 2px; background: var(--border); }
.status-steps .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; z-index: 1; }
.status-steps li.done { color: var(--text); }
.status-steps li.done .dot { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.status-steps li.done::after { background: var(--ok); }
.status-steps li.current { color: var(--navy-900); font-weight: 600; }
.status-steps li.current .dot { border-color: var(--red-600); box-shadow: 0 0 0 4px var(--red-50); background: var(--red-600); }

/* ---------- Date calendar (trailer pages + request/estimate forms) ---------- */
.cal { --cal-gap: 4px; user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { margin: 0; font-size: 1.05rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; color: var(--navy-900); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--navy-600); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cal-gap); }
.cal-dow span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding-bottom: 2px; }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 38px; border: 0; border-radius: 9px; background: var(--bg-soft); color: var(--navy-900); font: 600 .95rem/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .12s; }
.cal-day:hover:not([aria-disabled]) { background: var(--navy-100); }
.cal-day:focus-visible { outline: 3px solid #2a6fd6; outline-offset: 1px; z-index: 1; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--navy-600); }
.cal-day.is-off { background: transparent; color: #b4bcc8; cursor: default; }
.cal-day.is-booked { background: repeating-linear-gradient(135deg, #eceff3 0 5px, #f7f8fa 5px 10px); color: #98a2b0; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-sel { background: var(--red-50); color: var(--red-700); }
.cal-day.is-start, .cal-day.is-end { background: var(--red-600); color: #fff; }
.cal.is-loading .cal-grid { opacity: .55; }
.cal-msg { min-height: 1.3em; margin: 8px 0 4px; font-size: .9rem; color: var(--navy-700); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.cal-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw-open { background: var(--bg-soft); border: 1px solid var(--border-strong); }
.sw-booked { background: repeating-linear-gradient(135deg, #d5dae2 0 3px, #f7f8fa 3px 6px); }
.sw-sel { background: var(--red-600); }
.cal-field { margin-top: 4px; }
.cal-label { display: block; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.cal-label .muted { font-weight: 400; font-size: .9rem; }
.cal-field .cal { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: #fff; max-width: 420px; }

.date-check { padding: 20px; }
.date-check-head { margin-bottom: 12px; }
.date-check-head h2 { margin-bottom: 2px; }
.date-check .cal { max-width: 440px; }
.date-check-cta { margin-top: 12px; max-width: 440px; }
.cal-pick { border-top: 1px solid var(--border); padding-top: 12px; }
.cal-pick-dates { margin-bottom: 4px; font-size: 1.05rem; }

/* Review box above "Send" */
.review-box { border: 1px solid var(--border-strong); border-left: 4px solid var(--navy-700); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; background: var(--bg-soft); }
.review-title { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Draft restored note */
.draft-note { background: var(--navy-50); border-radius: var(--radius-sm); padding: 8px 12px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--navy-600); text-decoration: underline; font: inherit; cursor: pointer; }

/* Success: what happens next */
.success-box h4 { margin: 1.1rem 0 .5rem; font-size: 1rem; }
.ref-line { font-size: 1.05rem; }
.next-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; position: relative; padding-left: 40px; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .cal-day { transition: none; } }


/* ===== v3: home hero slideshow + square product graphics ===== */
.hero.hero-v3 { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); padding: 0; min-height: clamp(560px, 74vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.3s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-active img { animation: hero-zoom 9s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-v3::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(12, 19, 28, .94) 0%, rgba(12, 19, 28, .80) 38%, rgba(12, 19, 28, .35) 70%, rgba(12, 19, 28, .15) 100%),
  linear-gradient(0deg, rgba(12, 19, 28, .85) 0%, rgba(12, 19, 28, 0) 34%); }
.hero-v3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-600); }
.hero-inner { padding-top: clamp(56px, 9vh, 96px); padding-bottom: 18px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(196, 38, 46, .92); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero-v3 h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.025em; max-width: 13ch; margin: 0 0 .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-v3 h1 .accent { color: #ff6b70; display: block; }
.hero-v3 .lead { color: rgba(255, 255, 255, .88); max-width: 34rem; margin-bottom: 22px; }
.hero-v3 .rate-board { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; border: 0; max-width: none; margin: 0 0 10px; }
.hero-v3 .rate-board li { border: 0; }
.hero-v3 .rate-board a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s; }
.hero-v3 .rate-board a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.hero-v3 .rate-board a:hover .rb-name { color: #fff; }
.hero-v3 .rb-name { font-size: .95rem; color: rgba(255, 255, 255, .9); }
.hero-v3 .rb-rate { color: rgba(255, 255, 255, .75); }
.hero-v3 .rb-rate strong { color: #fff; font-size: 2rem; }
.hero-v3 .rate-note { color: rgba(255, 255, 255, .75); margin-bottom: 24px; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 22px; }
.hero-caption { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .8); min-height: 1.3em; }
.hero-dots { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hero-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background .2s; }
.hero-dot[aria-pressed="true"]::before { background: #fff; }
.hero-dot:focus-visible, .hero-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }
.hero-pause { width: 36px; height: 36px; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(12, 19, 28, .4); color: #fff; font-size: .7rem; cursor: pointer; }
.hero-pause[aria-pressed="true"] span { font-size: .9rem; }
@media (max-width: 860px) {
  .hero.hero-v3 { min-height: 0; }
  .hero-v3::before { background: linear-gradient(180deg, rgba(12, 19, 28, .05) 0%, rgba(12, 19, 28, .2) 16%, rgba(12, 19, 28, .82) 30%, rgba(12, 19, 28, .96) 48%); }
  .hero-slides { bottom: auto; height: 62%; }
  .hero-inner { padding-top: 150px; }
  .hero-v3 h1 { font-size: 2.15rem; max-width: none; }
  .hero-v3 .rate-board { grid-template-columns: 1fr 1fr; }
  .hero-v3 .rate-board a { padding: 12px; }
  .hero-v3 .rb-rate strong { font-size: 1.6rem; }
  .hero-controls { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; transform: none; }
  .hero-v3 .rate-board a { transition: none; }
}

/* Product graphics are square artwork with text: show them whole, never cropped */
.trailer-card .photo { aspect-ratio: 1 / 1; background: #f1f1f0; }
.trailer-card .photo img { object-fit: contain; }
.trailer-card .photo:hover img { transform: scale(1.02); }
.trailer-card .photo img { transition: transform .35s ease; }
.thumbs { grid-template-columns: repeat(5, 1fr); }
.detail-gallery .main { background: #f1f1f0; }
.detail-gallery .main img[src*="/img/graphics/"] { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .trailer-card .photo img { transition: none; } }

/* iOS Safari date/time fields: same look as other inputs, left-aligned, never wider than the column */
.row-2 > * { min-width: 0; }
.field input[type="date"], .field input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%;
  height: 50px; text-align: left; background-color: #fff; color: var(--text);
}
.field input[type="date"]::-webkit-date-and-time-value, .field input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.field.has-empty-date { position: relative; }
.field.has-empty-date::after {
  content: attr(data-empty-hint); position: absolute; left: 15px; bottom: 14px; color: var(--muted);
  font-size: 1rem; pointer-events: none;
}

/* Estimate page: days slider */
.slider-field label { font-weight: 700; }
.days-control { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 4px; }
.days-out { font-size: 1.6rem; font-weight: 800; min-width: 6ch; text-align: center; color: var(--navy-900); }
.step-btn { width: 48px; height: 48px; padding: 0; font-size: 1.4rem; line-height: 1; border-radius: 50%; }
.slider-field input[type="range"] { width: 100%; height: 44px; accent-color: var(--red-600); margin: 0; }
.range-scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted, #5b6675); }

/* Guides */
.guide-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--navy-700); transform: translateY(-1px); }
.guide-card h2 { color: var(--navy-700); }

/* Guides hub + articles */
.guide-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--navy-700); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.chip.is-on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.guide-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-featured { margin-bottom: 18px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.guide-card[hidden] { display: none; }
.gc-img { aspect-ratio: 16 / 10; background: #f3f5f9; overflow: hidden; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.gc-cat { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red-600); }
.gc-title { font-size: 1.12rem; line-height: 1.25; margin: 0; color: var(--navy-900); }
.gc-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.gc-meta { font-size: .8rem; color: var(--muted); }
@media (min-width: 820px) {
  .guide-card.featured { flex-direction: row; }
  .guide-card.featured .gc-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
  .guide-card.featured .gc-body { align-content: center; padding: 28px; }
  .guide-card.featured .gc-title { font-size: 1.6rem; }
}
.guide-meta { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.guide-figure { margin: 0 0 22px; }
.guide-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; background: #f3f5f9; }
.guide-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.prose .table-wrap { overflow-x: auto; }
.guide-cta { padding: 20px; margin-top: 28px; }
.gc-img img[src*="/img/guides/"] { object-position: top center; }

/* Footer policy links: wrap whole links, no dangling separators */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--muted); white-space: nowrap; }
.footer-legal a:hover { color: var(--red-600); }
.footer-grid a { overflow-wrap: anywhere; }

/* Trailer finder */
.finder { margin-top: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.finder-title { font-size: 1.2rem; margin: 0 0 16px; }
.finder fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.finder legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; }
.fchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fchip span { display: block; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; font-size: .95rem; line-height: 1.3; transition: background .15s, border-color .15s; }
.fchip input:hover + span { border-color: var(--navy-700); }
.fchip input:focus-visible + span { outline: 3px solid var(--red-600); outline-offset: 2px; }
.fchip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.finder-result { border-top: 1px solid var(--border); padding-top: 16px; }
.finder-result p { margin: 0 0 10px; }
.finder-pick { font-size: 1.1rem; }
.finder-result .btn-row { margin: 14px 0 10px; }
@media (max-width: 560px) { .finder { padding: 18px 16px; } .fchips { display: grid; grid-template-columns: 1fr; gap: 8px; } .fchip span { width: 100%; border-radius: 10px; padding: 12px 14px; } .finder-result .btn { flex: 1 1 100%; } }

/* Chat assistant */
.assist-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--navy-900); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(19,29,41,.25); cursor: pointer; }
.assist-fab:hover { background: var(--navy-700); }
.assist-fab:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; }
.assist.is-open .assist-fab { display: none; }
.assist-panel { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 380px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 48px rgba(19,29,41,.28); overflow: hidden; }
.assist-panel[hidden] { display: none; }
.assist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--navy-900); color: #fff; }
.assist-head strong { display: block; font-size: 1rem; }
.assist-head span { display: block; font-size: .78rem; opacity: .8; }
.assist-close { border: 0; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.assist-close:hover { background: rgba(255,255,255,.12); }
.assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); overscroll-behavior: contain; }
.assist-msg { display: flex; }
.assist-msg p { margin: 0; padding: 10px 13px; border-radius: 14px; max-width: 86%; white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.45; }
.assist-msg.assistant p { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.assist-msg.user { justify-content: flex-end; }
.assist-msg.user p { background: var(--navy-800); color: #fff; border-bottom-right-radius: 4px; }
.assist-msg.user a { color: #fff; }
.assist-msg.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: assist-dot 1s infinite ease-in-out; }
.assist-msg.typing span:nth-child(2) { animation-delay: .15s; } .assist-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.assist-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; background: var(--bg-soft); }
.assist-starters[hidden] { display: none; }
.assist-chip { border: 1px solid var(--border-strong); background: #fff; color: var(--navy-800); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.assist-chip:hover { border-color: var(--navy-700); }
.assist-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 8px; border-top: 1px solid var(--border); background: #fff; }
.assist-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.35; }
.assist-form .btn { min-height: 44px; padding: .5em 1em; }
.assist-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0 16px 12px; font-size: .8rem; color: var(--muted); background: #fff; }
.assist-reset { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px 0; }
@media (prefers-reduced-motion: reduce) { .assist-msg.typing span { animation: none; } }
@media (max-width: 760px) {
  .assist-fab { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px 14px; }
  .assist-panel { right: 0; left: 0; bottom: 0; top: auto; width: 100%; max-width: none; height: calc(100dvh - 56px); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
