/* Garage Muster – Stylesheet */
:root {
  --brand: #12324a;
  --brand-600: #1b4766;
  --brand-50: #eef3f7;
  --accent: #e8731a;
  --accent-dark: #b9540a;
  --ink: #16202a;
  --muted: #4f5b66;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-soft: #f5f2ee;
  --dark: #0d1f2d;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13,31,45,.06), 0 12px 32px -12px rgba(13,31,45,.18);
  --shadow-hover: 0 2px 4px rgba(13,31,45,.08), 0 22px 44px -16px rgba(13,31,45,.28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --section: clamp(64px, 10vw, 120px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 65ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: 8px; }

/* Eyebrow / Pills */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--brand-50); color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #1a0d02; box-shadow: 0 10px 24px -10px rgba(232,115,26,.7); }
.btn-primary:hover { background: #f38a35; color: #1a0d02; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(13,31,45,.08);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.header-call { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.header-call .label-long { display: none; }
@media (min-width: 640px) { .header-call .label-long { display: inline; } .header-call .label-short { display: none; } }

main { display: block; }

/* Hero */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 9vw, 112px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,31,45,.35) 0%, rgba(13,31,45,.55) 40%, rgba(13,31,45,.92) 100%),
    linear-gradient(90deg, rgba(13,31,45,.75) 0%, rgba(13,31,45,0) 70%);
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; text-wrap: balance; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 40ch; margin-bottom: 2rem; }
.hero .eyebrow { color: #ffb47a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255,255,255,.88); }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts svg { width: 18px; height: 18px; color: #ffb47a; flex: none; }

/* Sections */
.section { padding: var(--section) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--brand-50); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; }
  .section-head p { margin-bottom: .4rem; }
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Service cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column; gap: .25rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: #fff; margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0 0 1rem; font-size: 1rem; }
.card .pill { margin-top: auto; align-self: flex-start; }
.card-feature { background: linear-gradient(150deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; }
.card-feature h3 { color: #fff; }
.card-feature p { color: rgba(255,255,255,.85); }
.card-feature .icon { background: var(--accent); color: #1a0d02; }
.card-feature .pill { background: rgba(255,255,255,.14); color: #fff; }

/* Split / tyres */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } .split-reverse .split-media { order: 2; } }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.badge {
  position: absolute; left: 1rem; bottom: -1.5rem;
  background: #fff; border-radius: 16px; padding: 1rem 1.25rem; box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: .85rem; max-width: 85%;
}
@media (min-width: 900px) { .badge { left: -2rem; bottom: 2rem; } .split-reverse .badge { left: auto; right: -2rem; } }
.badge strong { display: block; font-size: 1.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--brand); }
.badge span { font-size: .875rem; color: var(--muted); line-height: 1.35; }
.badge svg { width: 34px; height: 34px; color: var(--accent); flex: none; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--accent-dark); margin-top: .15rem; }

/* About */
.about-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 6vw, 6rem); } }
.about-photo { position: relative; padding-bottom: 2rem; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) { .about-photo img { aspect-ratio: 4 / 4.6; } }
.owner {
  position: relative; margin: -4rem 1rem 0 auto; max-width: 340px;
  background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-hover);
}
.owner .pill { background: rgba(255,255,255,.14); color: #fff; margin-bottom: .75rem; }
.owner strong { display: block; font-size: 1.2rem; letter-spacing: -0.01em; }
.owner span { color: rgba(255,255,255,.82); font-size: .95rem; }
.since {
  display: flex; align-items: baseline; gap: .75rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 2px solid var(--line);
}
.since strong { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--brand); line-height: 1; }
.since span { color: var(--muted); font-size: 1rem; }
.values { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: var(--bg-soft); }
.value svg { width: 24px; height: 24px; color: var(--accent-dark); margin-bottom: .4rem; }
.value strong { display: block; font-size: 1rem; }
.value span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* CTA dark */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(232,115,26,.28), transparent 60%),
    linear-gradient(160deg, #0d1f2d 0%, #12324a 100%);
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta .eyebrow { color: #ffb47a; }
.cta .lead { color: rgba(255,255,255,.85); }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 5rem; } }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list .item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,.07); color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  transition: background-color .2s ease, transform .2s ease;
}
.contact-list a:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateX(4px); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #1a0d02; display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: rgba(255,255,255,.7); font-size: .82rem; letter-spacing: .03em; }
.contact-list b { font-size: 1.08rem; word-break: break-word; }
.hours { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.hours h3 { display: flex; align-items: center; gap: .6rem; }
.hours h3 svg { width: 24px; height: 24px; color: var(--accent-dark); }
.hours table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1rem; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: #8a4b1a; }
.hours .note { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo small { color: rgba(255,255,255,.6); }
.site-footer .logo-mark { background: var(--accent); color: #1a0d02; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #ffb47a; text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: rgba(255,255,255,.6); }

/* Legal pages */
.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 64px); background: var(--brand-50); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); margin: 0; }
.legal { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.legal h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.5rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.placeholder { background: #fff3e6; color: #7a3a06; padding: 0 .3em; border-radius: 4px; }

/* Reveal animation (only active when script.js sets html.js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
