/* =========================================================
   Tonks Auto Care: styles (mobile-first, no build step)
   Colours sampled from the Tonk's Auto Care logo (assets/fb-profile.jpg):
   electric blue #234df0 (the 'Tonk's' lettering) and gold #cdb689 (the 'Auto Care' script).
   #234df0 is only used as a fill (white text on it = 6.2:1); text/icons on dark use the lighter
   tint #6a8fff (6.4:1 on --bg, 5.6:1 on --surface). Gold text is 8.5:1 on --bg.
   ========================================================= */

:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --surface: #1a1e24;
  --surface-2: #222730;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5f8;
  --muted: #a9b3bf;          /* 8.6:1 on --bg */
  --blue: #234df0;           /* logo electric blue: fills only (buttons, tags, bars) */
  --blue-strong: #2f5bff;    /* hover fill, white text 5.2:1 */
  --on-blue: #ffffff;        /* text on blue fills, 6.2:1 */
  --accent: #6a8fff;         /* blue tint for text/icons on dark, 6.4:1 on --bg */
  --accent-strong: #8eabff;
  --gold: #cdb689;           /* logo gold script, 8.5:1 on --bg */
  --gold-strong: #dbc495;
  --gold-ink: #17130a;       /* text on gold fills, 9.4:1 */
  --deep-blue: #0e1d52;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 68px; /* room for mobile quick bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 10vw, 4.75rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 6.5vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .9rem; color: var(--gold); margin-bottom: .75rem;
}
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 8px 24px rgba(35, 77, 240, .32), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--blue-strong); color: var(--on-blue); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-ghost .icon { color: var(--accent); }
.btn-sub { font-family: var(--font-body); font-weight: 500; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--muted); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin: 1.75rem 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { /* thin blue-to-gold hairline, like the logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(35,77,240,0) 0%, rgba(35,77,240,.7) 30%, rgba(205,182,137,.6) 70%, rgba(205,182,137,0) 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
/* The logo is a transparent PNG made for dark backgrounds, so no card behind it */
.brand { display: inline-block; line-height: 0; margin-left: -6px; border-radius: 10px; }
.brand img { width: 136px; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.site-nav a:hover { color: var(--accent); }

/* JS-enhanced mobile menu */
.js .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
.js .site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 18px; }
.js .site-nav li a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.js .site-nav li:last-child a { border-bottom: 0; }
.nav-cta { color: var(--gold) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 28px; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(13,15,18,0) 60%, var(--bg) 100%),
    radial-gradient(120% 80% at 85% 10%, rgba(14, 29, 82, .7) 0%, rgba(13,15,18,0) 60%),
    linear-gradient(160deg, #10141b 0%, #0d0f12 70%);
}
.hero::before { /* subtle diagonal speed lines */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.025) 46px 47px);
}
.hero-glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 77, 240, .26), rgba(35, 77, 240, 0) 65%); }
/* Car-and-glow from the banner. The image fades to pure black, and 'screen' drops the black out,
   so only the paintwork highlights, headlights and blue haze show. */
.hero-car { position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: 0; width: 640px; max-width: 150%; transform: translateX(-46%); aspect-ratio: 628 / 192;
  background: url("assets/hero-car.jpg") center / contain no-repeat;
  mix-blend-mode: screen; opacity: .6; }
@media (max-width: 899px) {
  /* Phones/tablets: the car sits in its own band under the area chips, like the banner, so it never sits behind text */
  .hero { padding-bottom: clamp(120px, 34vw, 210px); }
  .hero-car { width: min(150%, 680px); }
}
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-note { font-size: .95rem; color: var(--muted); margin: 0; }
.hero-badge { display: none; }
.area-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 0; }
.area-strip li {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 32px; }
h1, h2 { text-wrap: balance; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-cta { margin: 36px 0 0; text-align: center; }
.group-title {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: flex; align-items: center; gap: 14px; margin: 40px 0 16px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head + .group-title { margin-top: 0; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, #171a20 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(106, 143, 255, .45); transform: translateY(-2px); }
.card h4 { margin-bottom: .3em; padding-right: 84px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--text); margin: 0 0 .5em; }
.price .from { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-right: 4px; vertical-align: .35em; }
.price-poa { color: var(--gold); }
.card-featured { border-color: rgba(35, 77, 240, .7); background: linear-gradient(180deg, rgba(35,77,240,.16) 0%, var(--surface) 55%); }
.tag {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .8rem; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-strong), var(--gold)); padding: 4px 10px; border-radius: 999px;
}

/* ---------- Why us ---------- */
.feature-grid { display: grid; gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; fill: var(--accent); background: rgba(35,77,240,.16); box-shadow: inset 0 0 0 1px rgba(106,143,255,.18); margin-bottom: 14px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 24px 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--blue-strong), var(--blue)); }
.step-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Gallery (real photos) ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery-grid.ba-grid, .gallery-grid.photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-grid > .photo-feature, .photo-grid > .photo-wide { grid-column: 1 / -1; }
.photo { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.photo .shot-label { position: absolute; top: 10px; left: 10px; }
.shot-label {
  position: relative; z-index: 1; height: fit-content; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.65); color: var(--text);
}
.shot-label-after { background: var(--blue); color: var(--on-blue); }
.photo-caption { position: absolute; left: 10px; bottom: 10px; z-index: 1; max-width: calc(100% - 20px); font-size: .82rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); background: rgba(10,11,14,.8); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .photo:hover img { transform: scale(1.04); } }
@media (min-width: 900px) {
  .gallery-grid.ba-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gallery-grid.photo-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .photo-grid > .photo-feature { grid-column: span 2; grid-row: span 2; }
  .photo-grid > .photo-wide { grid-column: auto; }
  .photo-caption { font-size: .88rem; }
}

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s ease;
}
.contact-list a:hover { border-color: rgba(106,143,255,.5); color: var(--text); }
.contact-list .icon { width: 26px; height: 26px; color: var(--accent); }
.contact-list span { display: flex; flex-direction: column; line-height: 1.3; word-break: break-word; }
.contact-list strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); font-weight: 700; }
.contact-area { color: var(--muted); font-size: .95rem; }

.quote-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); align-self: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #0f1216; border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #7d8794; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35,77,240,.35); }
.field input[type="date"] { color-scheme: dark; }
.form-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.form-note a { color: var(--accent); font-weight: 600; }
.form-note.is-error { color: #ffb4a8; }
.field-error { margin: 0; font-size: .9rem; font-weight: 500; color: #ffb4a8; }   /* 10:1 on --surface */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff7a66; box-shadow: 0 0 0 3px rgba(255, 122, 102, .22); }
.form-success {
  margin: 0 0 14px; padding: 14px 16px 14px 46px; position: relative; border-radius: 12px; line-height: 1.45;
  background: rgba(56, 196, 120, .12); border: 1px solid rgba(56, 196, 120, .55); color: var(--text); font-weight: 500;
}
.form-success::before {
  content: ""; position: absolute; left: 17px; top: 17px; width: 9px; height: 15px;
  border-right: 3px solid #5fd99a; border-bottom: 3px solid #5fd99a; transform: rotate(45deg);
}
.form-success:focus { outline: none; }
.quote-form button[disabled] { opacity: .75; cursor: progress; transform: none; }
/* Honeypot: kept off-screen (not display:none) so bots still fill it in; hidden from people and screen readers */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.quote-form { position: relative; }

/* ---------- Google review prompt ---------- */
.review-cta {
  margin: 36px auto 0; max-width: 640px; text-align: center; padding: 24px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.review-cta p { color: var(--muted); margin: 0 0 14px; }
.review-cta .btn .icon { color: var(--gold); }
.review-cta .btn { padding: .7em 1.1em; font-size: 1.1rem; }
@media (min-width: 560px) { .review-cta .btn { padding: .8em 1.5em; font-size: 1.2rem; } }
.footer-links a.footer-review { color: var(--gold); }
.footer-links a.footer-review:hover { color: var(--gold-strong); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: #0a0b0e; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand .footer-logo { width: 190px; margin: 0 0 12px -8px; }
.footer-brand p { color: var(--muted); max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 28px; }
.footer-legal p { color: var(--muted); font-size: .9rem; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Mobile quick bar ---------- */
.quick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(10, 11, 14, .94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.quick-bar a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
}
.quick-bar a.quick-primary { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 560px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-form { grid-template-columns: 1fr 1fr; padding: 28px; }
  .field-full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .quick-bar { display: none; }
  .brand img { width: 158px; }
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .js .site-nav ul, .site-nav ul { flex-direction: row; align-items: center; gap: 28px; padding: 0; }
  .js .site-nav li a { display: inline; padding: 6px 0; font-size: .98rem; border: 0; }
  .js .site-nav a.nav-cta, .site-nav a.nav-cta {
    display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--blue); color: var(--on-blue) !important;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 1.02rem;
  }
  .js .site-nav a.nav-cta:hover { background: var(--blue-strong); }

  .hero { padding: 84px 0 48px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-badge { display: grid; place-items: center; align-self: start; margin-top: 8px; }
  .hero-badge img { width: 100%; max-width: 500px; }
  .hero-car { left: auto; transform: none; right: max(-60px, calc((100vw - 1180px) / 2 - 40px)); bottom: 70px; width: min(56vw, 700px); opacity: .62; }
  .section { padding: 96px 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card-grid-compact { grid-template-columns: repeat(5, 1fr); }
  .card-grid-compact .card h4 { padding-right: 0; font-size: 1.25rem; }
  .card-grid-compact .price { font-size: 1.8rem; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .card-grid-3 > .card:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 900px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-5 { grid-template-columns: repeat(6, 1fr); }
  .card-grid-5 > .card { grid-column: span 2; }
  .card-grid-5 > .card:nth-child(n+4) { grid-column: span 3; }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* A single premium protection service is intentionally presented as a wide feature card. */
.card-grid-wide { grid-template-columns: minmax(0, 1fr); }

/* =========================================================
   Motion (progressive enhancement)
   - Scroll reveals: main.js adds .reveal (hidden) and then .is-visible. Without JS
     (or without IntersectionObserver) nothing is hidden. Everything is switched off
     for prefers-reduced-motion (global rule at the top of this file + guards below).
   - Only opacity/transform are animated, so it stays smooth on phones.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.22, .68, .26, 1);
  --ease-lift: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .75s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Hidden state applied before first paint (class set by the inline <head> script), with no transition,
   so below-the-fold content never fades *out* on load. Keep this list in sync with main.js. */
.reveal-pending :is(.section-head > *, .group-title, .section-cta, .review-cta, .card-grid > .card, .feature-grid > .feature,
  .steps > .step, .gallery-grid > *, .faq details, .contact-info > .eyebrow, .contact-info > h2, .contact-info > p,
  .contact-list > li, .quote-form, .footer-inner > *, .footer-legal) {
  opacity: 0; transform: translate3d(0, 28px, 0); transition: none;
}
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-pending * { opacity: 1 !important; transform: none !important; } }
@media print { .reveal, .reveal-pending * { opacity: 1 !important; transform: none !important; } }

/* ---------- Hero entrance (CSS only, always ends fully visible) ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes badge-in {
  from { opacity: 0; transform: scale(.94) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes car-in {
  from { opacity: 0; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes accent-sheen {
  0%        { background-position: 100% 0; }
  28%, 100% { background-position: 0 0; }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero .btn-row > .btn,
  .area-strip li { animation: rise-in .8s var(--ease-out) backwards; }
  .hero-copy > .btn-row { animation: none; }
  .hero-copy > .eyebrow     { animation-delay: .05s; }
  .hero-copy > h1           { animation-delay: .15s; animation-duration: .95s; }
  .hero-copy > .lead        { animation-delay: .32s; }
  .hero .btn-row > .btn:nth-child(1) { animation-delay: .46s; }
  .hero .btn-row > .btn:nth-child(2) { animation-delay: .56s; }
  .hero-copy > .hero-note   { animation-delay: .68s; }
  .area-strip li { animation-duration: .6s; }
  .area-strip li:nth-child(1) { animation-delay: .75s; }
  .area-strip li:nth-child(2) { animation-delay: .81s; }
  .area-strip li:nth-child(3) { animation-delay: .87s; }
  .area-strip li:nth-child(4) { animation-delay: .93s; }
  .area-strip li:nth-child(5) { animation-delay: .99s; }
  .area-strip li:nth-child(6) { animation-delay: 1.05s; }
  .hero-badge { animation: badge-in 1.1s var(--ease-out) .3s backwards; }
  .hero-car   { animation: car-in 1.6s var(--ease-out) .2s backwards; }
  .hero-glow  { animation: glow-breathe 9s ease-in-out infinite; }

  /* Mobile menu drops in */
  .js .site-nav.is-open { animation: nav-drop .22s var(--ease-out); }
}
@media (min-width: 900px) { .js .site-nav.is-open { animation: none; } }

/* Slow sheen across "Grampians local." (falls back to the plain blue) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .hero h1 .accent {
      background-image: linear-gradient(105deg, var(--accent) 0%, var(--accent) 38%, #d6e0ff 47%, #ffffff 50%, #f1e6cc 53%, var(--accent) 62%, var(--accent) 100%);
      background-size: 260% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: accent-sheen 7s ease-in-out 1.4s infinite;
    }
  }
}

/* ---------- Hover lift (pointer devices only, so taps don't leave cards "stuck") ---------- */
.btn { transition: transform .25s var(--ease-lift), box-shadow .25s var(--ease-lift), background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(0) scale(.98); }
.card { transition: transform .35s var(--ease-lift), box-shadow .35s var(--ease-lift), border-color .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 14px 32px rgba(35, 77, 240, .45), inset 0 1px 0 rgba(255,255,255,.2); }
  .btn-ghost:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(106, 143, 255, .55);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(35, 77, 240, .25), 0 10px 30px rgba(35, 77, 240, .16);
  }
}
@media (hover: none) { .card:hover, .btn:hover { transform: none; } }

/* Sections focused by the smooth-scroll script shouldn't show a big outline */
main [tabindex="-1"]:focus { outline: none; }
