/* site.css — everything specific to Mirror Finish Auto Detailing. Tokens live in tokens.css. */

/* --- Type polish --- */
h1, h2, h3 { letter-spacing: -0.02em; }
.eyebrow { color: var(--accent); font-weight: 700; }
.brand { letter-spacing: 0.01em; }

/* The accent blue is a FILL colour. As small label text it measured 2.63:1 on the gunmetal
   sections — every dark context needs the bright step instead, not just the brand band. */
.section--brand .eyebrow, .page-hero .eyebrow, .spotlight .eyebrow { color: var(--accent-bright); }
/* --ink-muted is tuned for the near-white page; on gunmetal it fell to 2.25:1. */
.spotlight .quote footer { color: var(--brand-muted); }
/* A filled accent button on gunmetal sits at 2.63:1 against the band — under the 3:1 WCAG 1.4.11
   asks of a control's boundary. A hairline in the band's own text colour restores the edge. */
.section--brand .btn--primary, .spotlight .btn--primary { border: 1px solid rgba(244, 246, 249, 0.7); }

/* --- Skip link --- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--ink); padding: 0.75rem 1.25rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { left: 0; }

/* --- Inline tick list --- */
.checks { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.checks li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.checks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent); transform: rotate(45deg); }

/* --- Numbered process steps --- */
/* The prices section's bottom padding and this band's top padding stacked to ~220px above the
   "How it works" heading. Trimming the band's own top padding moves the head AND the steps up
   together, since both sit inside it. */
#how { padding-top: calc(var(--space-4) + var(--space-2)); }
/* …and the white section above it does not need a full --section-y of run-out under its CTA. */
.section--runout { padding-bottom: var(--space-4); }

.steps { list-style: none; counter-reset: step; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: var(--space-3); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2); color: var(--accent); margin-bottom: var(--space-1); }
.steps h3 { font-size: var(--fs-2); margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--ink-muted); }

/* --- FAQ --- */
.faq { max-width: 62rem; margin-top: var(--space-4); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 1.15rem 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 0 1.25rem; color: var(--ink-muted); max-width: 68ch; }
.faq a { color: var(--accent); font-weight: 600; }

/* --- Buttons: keep sharp, add a solid-on-dark option --- */
.btn { border-radius: var(--radius-sm); letter-spacing: 0.01em; }
.btn--primary { box-shadow: 0 8px 22px rgba(10, 102, 194, 0.28); }
.btn--outline-light { background: transparent; color: var(--on-brand); border: 2px solid rgba(244, 246, 249, 0.5); }
.btn--outline-light:hover, .btn--outline-light:focus-visible { background: rgba(244, 246, 249, 0.1); border-color: var(--on-brand); }

/* --- Header --- */
.site-header .brand { font-size: 1.2rem; }
.brand__mark { display: inline-block; width: 14px; height: 14px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px rgba(10,102,194,0.18); }

/* --- HERO (archetype A: full-bleed photo, dark, electric glow) --- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,18,24,0.92) 0%, rgba(18,22,30,0.78) 42%, rgba(18,22,30,0.32) 100%),
    linear-gradient(0deg, rgba(12,15,20,0.55), rgba(12,15,20,0.15));
}
.hero__glow { position: absolute; right: -8%; top: 12%; width: 46%; height: 70%; background: radial-gradient(closest-side, rgba(46,155,255,0.4), transparent 72%); filter: blur(10px); pointer-events: none; }
.hero .container { position: relative; z-index: 2; padding-block: clamp(4.5rem, 12vw, 9rem); }
.hero__inner { max-width: 44rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero .lead { color: #dfe5ee; }
.hero .eyebrow { color: var(--accent-bright); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero__meta { margin-top: var(--space-3); display: inline-flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; color: #cdd5e0; font-size: 0.95rem; }
.hero__meta b { color: #fff; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); display: inline-block; }

/* --- Compact page hero (services / gallery) --- */
.page-hero { background: var(--brand); color: #fff; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.page-hero .container { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #cdd5e0; }

/* --- Trust strip --- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); padding-block: var(--space-3); }
.trust__item { display: flex; gap: 0.75rem; align-items: baseline; }
.trust__item b { font-family: var(--font-display); font-size: 1.05rem; }
.trust__item span { color: var(--ink-muted); font-size: 0.95rem; }
.trust__item .num { color: var(--accent); font-weight: 700; }

/* --- Section head --- */
.section__head { max-width: 46rem; margin-bottom: var(--space-4); }

/* Two stacked sections on the SAME page colour add their paddings and read as a ~180px hole
   (measured between the reviews and "Have a look around"). When neither section paints its own
   band, the seam is carried by the first section's bottom padding alone. */
.section:not(.section--alt):not(.section--brand):not(.spotlight)
  + .section:not(.section--alt):not(.section--brand):not(.spotlight) { padding-top: 0; }

/* --- Price list --- */
.pricelist { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pricelist__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); align-items: start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.pricelist__row dt { margin: 0; }
.pricelist__row dt b { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 600; letter-spacing: -0.01em; display: block; }
.pricelist__row dt small { display: block; color: var(--ink-muted); margin-top: 0.35rem; font-size: 0.98rem; max-width: 46ch; }
.pricelist__row dd { margin: 0; text-align: right; white-space: nowrap; }
.price { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 700; color: var(--accent); }
.price small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); }

/* --- Before/after band --- */
/* Taller than a strip so `cover` crops less of the photograph — the band shows the car, not a
   slice of it. On a phone the frame is shown whole (its own aspect ratio, no centre crop). */
.band { min-height: clamp(320px, 56vw, 720px); }
.band img { object-position: center 60%; }
/* T5, not T4: the band photo stays bright and the words sit in a contained card. Darkening the whole
   frame is the habit mappings/section-treatments.md caps at 1-2 sections a site, and the hero already
   spends that budget. The card also holds its own contrast over a foam-covered panel. */
/* An even navy veil over the whole frame — the same blue family as the hero's glow, flat rather
   than a dark-to-light gradient, so the photograph reads navy end to end instead of near-black. */
.band__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 84% 38%, rgba(46,155,255,0.26), transparent 74%),
    linear-gradient(0deg, rgba(13,42,80,0.58), rgba(13,42,80,0.58));
}
.pcard { background: rgba(18,22,28,0.90); border: 1px solid rgba(244,246,249,0.16); box-shadow: var(--shadow); padding-inline: var(--space-4); }
.pcard .eyebrow { color: var(--accent-bright); }
.pcard small { color: var(--brand-muted); }
.band__caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.band__caption > div { position: relative; z-index: 2; color: #fff; padding-block: var(--space-4); max-width: 40rem; }
.band__caption .eyebrow { color: var(--accent-bright); }
.band__caption p { color: #fff; font-family: var(--font-display); font-size: var(--fs-2); margin: 0; }
.band__caption small { color: #cdd5e0; }
@media (max-width: 720px) {
  /* A phone-width band cropped the photo to a sliver and then covered it with the card. Stack
     instead: the whole frame, then the same words on the brand band underneath. */
  /* Image and scrim share one grid cell, so the tint covers the photo exactly and stops where it
     ends — the caption sits in the row beneath, untinted. */
  .band { min-height: 0; display: grid; grid-template-rows: auto auto; }
  .band img { grid-area: 1 / 1; position: static; width: 100%; height: auto; }
  .band__scrim { grid-area: 1 / 1; position: static; }
  /* Ride the caption up over the bottom of the photo, and keep the block itself shallow. */
  .band__caption { grid-area: 2 / 1; position: relative; z-index: 2; margin-top: -35px; width: 100%; max-width: none; padding-inline: var(--gutter); background: var(--brand); }
  .band__caption > div { padding-block: var(--space-2) var(--space-1); max-width: none; }
  .band .pcard.stack > * + * { margin-top: var(--space-1); }
  /* The caption band and the closing CTA are both --brand on a phone, so their paddings stacked
     into ~120px of empty navy. One modest gap instead. */
  .section--after-band { padding-top: var(--space-2); }
  .band .pcard { background: transparent; border: 0; box-shadow: none; padding-inline: 0; }
}

/* --- Ceramic spotlight (gunmetal) --- */
.spotlight { background:
  radial-gradient(60% 90% at 85% 20%, rgba(46,155,255,0.16), transparent 60%),
  var(--brand); color: var(--on-brand); }
.spotlight h2 { color: #fff; }
.spotlight .quote { border-left: 3px solid var(--accent-bright); }
.spotlight .contact-list a, .section--brand a:not(.btn) { color: var(--accent-bright); }

/* --- Quotes / testimonials --- */
.quote { margin: 0; padding: var(--space-3) 0 var(--space-3) var(--space-3); border-left: 3px solid var(--accent); }
.quote p { font-family: var(--font-display); font-size: var(--fs-1); font-weight: 500; margin-bottom: 0.6rem; }
.quote footer { color: var(--ink-muted); font-weight: 600; font-size: 0.95rem; }
.section--brand .quote footer { color: var(--brand-muted); }
.quotes { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quotes .quote { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: var(--space-3); }

/* --- Gallery grid (asymmetric) --- */
.gallery-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .gallery-grid .g-tall { grid-row: span 2; }
  .gallery-grid .g-wide { grid-column: span 2; }
}
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.gallery-preview { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery-preview .media { border: 1px solid var(--line); }

/* Gallery page: one feature + a pair */
.gallery__feature { margin: 0 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__pair { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery__pair { grid-template-columns: 1fr 1fr; } }
.gallery__pair figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__cap { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 0.95rem; }

/* --- About --- */
.about-figure { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Same navy veil as the In-the-bay band, so the two photographs on the site read as one treatment. */
.about-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 84% 38%, rgba(46,155,255,0.22), transparent 74%),
    linear-gradient(0deg, rgba(13,42,80,0.42), rgba(13,42,80,0.42));
}

/* --- Contact close --- */
.contact-list { display: grid; gap: var(--space-3); font-style: normal; }
.contact-list > div { display: grid; gap: 0.2rem; }
.contact-list .eyebrow { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Footer --- */
.site-footer .demo { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--space-2); margin: 0; font-size: 0.85rem; color: var(--ink-muted); }
.site-footer .brand { color: var(--ink); text-decoration: none; }

/* --- Sticky mobile CTA bar --- */
.cta-bar .btn { background: var(--accent); color: var(--on-accent); }

/* --- multipage front door: teaser cards that link to the real pages --- */
.teasers { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-sm); }
.teaser h3 { margin: 0; font-size: var(--fs-2); }
.teaser p { margin: 0; color: var(--ink-muted); }
/* --ink is the one colour guaranteed to be legible on --surface on every palette. The accent is
   a FILL and measured 2.7:1 as link text on dark cards. Underline carries the affordance. */
.teaser__link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.teaser__link:hover { text-decoration: underline; }

/* On a saturated brand band an accent-filled button can sit under 2:1 against the band and read as
   a coloured block rather than a control (WCAG 1.4.11 wants 3:1). A rim in the band's own text
   colour guarantees the boundary whatever the two fills happen to be. */
/* Self-contained closing CTA. The first version reused .section--brand and assumed it paints a
   --brand background; on sites where that class means something else, --on-brand text landed on the
   page colour at 1.18:1. Setting both sides here guarantees the pair always matches. */
.cta-band { background: var(--brand); color: var(--on-brand); padding-block: var(--section-y); }
.cta-band h2 { color: var(--on-brand); margin-top: 0; }
.cta-band p { margin-bottom: 0; }
.cta-band .btn--primary { background: var(--on-brand); color: var(--brand); border: 1px solid var(--on-brand); }
.cta-band .btn--ghost { color: var(--on-brand); border: 1px solid var(--on-brand); background: transparent; }

/* ---------- Duna Marketing sample-site bar ---------- */
/* Frosted glass: the page shows through a dark-grey translucent bar, so it belongs to every
   palette while still reading as a control. The whole bar is one link back to dunamarketing.com.
   rgba(25,28,35,.72) composited over even a pure-white page keeps white text at 6.7:1; the
   backdrop blur is decoration on top of that, never load-bearing. On phones the site's own
   .cta-bar lifts above it. */
:root { --duna-h: 54px; }
.duna-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  box-sizing: border-box; min-height: var(--duna-h);
  /* Three columns so the button stays optically centred no matter how wide the copyright is. */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(25, 28, 35, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #FFFFFF; text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-body); font-size: 0.92rem; line-height: 1.3; text-align: center;
  cursor: pointer; transition: background 0.15s ease;
}
/* No colour here: `.duna-bar a` (0,1,1) would outrank .duna-bar__btn--text (0,1,0) and paint
   the text button white on white. The button classes own their colours. */
.duna-bar a { text-decoration: none; }
.duna-bar__copy {
  justify-self: start; font-size: 0.76rem; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);   /* 5.42:1 on the bar over even a white page */
  white-space: nowrap;
}
.duna-bar__note {
  grid-column: 3; justify-self: end; font-size: 0.76rem; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);   /* same 5.42:1 as the copyright */
  white-space: nowrap;
}
/* Two buttons now, side by side and optically centred in the middle column. */
.duna-bar__actions { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 0.5rem; }
.duna-bar__btn {
  /* Own dark fill over the bar's glass: transparent let each site's palette bleed through and
     muddied the white text. Black at 45% takes it from 6.7:1 to 12.7:1 in the worst case
     (a pure-white page behind the bar) while staying translucent. */
  display: inline-block; background: rgba(0, 0, 0, 0.45); color: #FFFFFF;
  border: 1.5px solid #FFFFFF; border-radius: 4px;
  padding: 0.45rem 1.1rem; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.duna-bar__btn:hover, .duna-bar__btn:focus-visible { background: #FFFFFF; color: #14171E; }
/* "Text me" is the offer on this bar, so it leads: white fill and dark label, the reverse of the
   home button, and it inverts on hover the same way. */
.duna-bar__btn--text { margin-left: 0.6rem; background: #C8102E; color: #FFFFFF; border-color: #C8102E;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(200, 16, 46, 0.32);
  display: inline-flex; align-items: center; gap: 0.45rem; }
.duna-bar__btn--text svg { width: 15px; height: 15px; flex: none; }
.duna-bar__btn--call { margin-left: 0.6rem; background: #003087; color: #FFFFFF; border-color: #003087;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 48, 135, 0.34);
  display: inline-flex; align-items: center; gap: 0.45rem; }
.duna-bar__btn--call:hover, .duna-bar__btn--call:focus-visible { background: #001D52; border-color: #001D52;
  color: #FFFFFF; box-shadow: 0 6px 18px rgba(0, 48, 135, 0.44); }
.duna-bar__btn--call svg { width: 15px; height: 15px; flex: none; }
.duna-bar__btn--text:hover, .duna-bar__btn--text:focus-visible { background: #A50D25; border-color: #A50D25;
  color: #FFFFFF; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.42); }
/* Mobile: the button is the only thing that matters — drop the copyright and the tagline so
   the bar is one unambiguous tap target. */
@media (max-width: 720px) {
  /* Phones (all ad traffic): two full-width, full-label text and call buttons on one row.
     --duna-h tracks the taller bar so pages keep clearing it. */
  :root { --duna-h: 66px; }
  .duna-bar__copy, .duna-bar__note, .duna-bar .long { display: none; }
  .duna-bar { grid-template-columns: 1fr; gap: 0; padding: 0.4rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom)); }
  .duna-bar__actions { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.5rem; }
  .duna-bar__btn { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 0.1rem 0 0.15rem;
    font-size: 0.74rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
  .duna-bar__btn--text, .duna-bar__btn--call { grid-column: auto; justify-self: stretch; justify-content: center; text-align: center;
    margin-left: 0; min-height: 46px; padding: 0.4rem 0.45rem; font-size: 0.82rem; font-weight: 700; line-height: 1.15;
    white-space: normal; text-decoration: none; opacity: 1; border-radius: 10px; }
  .duna-bar__btn--text { background: #C8102E; border: 1.5px solid #C8102E; }
  .duna-bar__btn--call { background: #003087; border: 1.5px solid #003087; }
  .duna-bar__btn--text .long, .duna-bar__btn--call .long { display: inline; }
  .duna-bar__btn--text svg, .duna-bar__btn--call svg { width: 16px; height: 16px; }
}

body { padding-bottom: calc(var(--duna-h) + env(safe-area-inset-bottom)); }
@media (max-width: 720px) {
  .cta-bar { bottom: calc(var(--duna-h) + env(safe-area-inset-bottom)); }
  body.has-cta-bar { padding-bottom: calc(84px + var(--duna-h)); }
}

/* Uniform legal block shared by every Duna sample site. */
.site-footer .duna-legal { grid-column: 1 / -1; margin-top: 0.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line, rgba(127, 127, 127, 0.35)); font-size: 0.85rem; line-height: 1.55; }
.site-footer .duna-legal p { margin: 0 0 0.3rem; max-width: none; }
.site-footer .duna-legal p:last-child { margin-bottom: 0; }
