/* Alan Thomson draft preview — yellow/black, high contrast, mobile first */
:root {
  --yellow: #FFD400;
  --yellow-hover: #F0C400;
  --black: #0C0D10;
  --ink: #14151A;
  --white: #FFFDF5;
  --muted: #2C2E34;
  --line: #2A2C32;
  --radius: 14px;
  --wrap: 70rem;
  --focus: 3px solid var(--yellow);
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 4.5rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding: 0 0 0 1.2em; }

.wrap {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  padding: 0.6rem 1rem;
}
.skip:focus { top: 0.75rem; outline: 3px solid var(--black); }

/* Visible focus */
:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
.btn:focus-visible,
.btn-placeholder:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

/* Draft banner */
.draft-banner {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.65rem 1rem;
  border-bottom: 3px solid var(--black);
}

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  min-height: 4rem;
}
.brand {
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand-role {
  display: block;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
}
.nav a:not(.btn):hover { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.7rem 1.25rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 3px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  cursor: pointer;
}
.btn:hover { background: var(--yellow-hover); }
.btn-lg { min-height: 3.25rem; padding: 0.9rem 1.7rem; font-size: 1.15rem; }
.btn-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.7rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 1.05rem;
  border: 3px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  opacity: 0.85;
  cursor: not-allowed;
  font-family: inherit;
}
.btn-placeholder:disabled { opacity: 0.85; }

/* Hero */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 3rem;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.25fr);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead {
  font-size: 1.12rem;
  max-width: 40rem;
  margin-bottom: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-note { font-size: 0.9rem; color: #E8E6DC; margin: 0; }

.hero-visual {
  margin: 0;
  justify-self: stretch;
  max-width: 100%;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-visual figcaption {
  text-align: left;
  font-size: 0.82rem;
  color: #E8E6DC;
  margin-top: 0.6rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Sections */
.section { padding: 3rem 0; }
.section-black { background: var(--black); color: var(--white); }
.section-yellow { background: var(--yellow); color: var(--black); }
.section-white { background: var(--white); color: var(--ink); }
.kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  border: 2px solid var(--black);
}
.section-black .kicker { border-color: var(--yellow); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.2rem;
}
@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: 4px 4px 0 var(--black);
}
.section-white .why-card {
  background: var(--black);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--yellow);
  border-color: var(--black);
}
.icon {
  width: 3rem;
  height: 3rem;
  background: var(--yellow);
  color: var(--black);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border: 2px solid var(--black);
}
.icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { margin-bottom: 0.4em; }
.why-card p { margin: 0; }

.licence-note {
  background: var(--black);
  color: var(--white);
  border-left: 6px solid var(--yellow);
  padding: 1rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.2rem 0 0;
}
.licence-note p { margin: 0; }

/* Areas */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0.8rem;
  padding: 0;
  list-style: none;
}
.towns li {
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--black);
}

/* Placeholders */
.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (max-width: 640px) {
  .placeholder-grid { grid-template-columns: 1fr; }
}
.placeholder-card {
  border: 3px dashed var(--black);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  background: #FFF8D0;
}
.placeholder-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq { margin-top: 1rem; }
.faq details {
  border: 3px solid var(--black);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.95rem 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 2.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.1rem 1.1rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.faq a:hover { color: #000; }

/* CTA band */
.cta-band {
  background: var(--yellow);
  color: var(--black);
  padding: 2.6rem 0;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { max-width: 38rem; margin: 0 auto 1.2rem; }

/* Page intro (inner pages) */
.page-intro {
  background: var(--black);
  color: var(--white);
  padding: 2.2rem 0 2.4rem;
}
.page-intro h1 { max-width: 20ch; }
.page-intro p { max-width: 40rem; margin-bottom: 0; }

.prose { padding: 2.4rem 0 3rem; max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }

.callout {
  background: #FFF8D0;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  margin: 1.4rem 0;
}
.callout h2 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 0;
}
.traits {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  padding: 0.95rem 1rem;
  border-bottom: 3px solid var(--yellow);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1.3rem 0 1.6rem;
  font-size: 0.92rem;
}
.footer-inner a {
  color: var(--yellow);
  font-weight: 700;
  text-underline-offset: 2px;
}
.footer-inner p { margin: 0; color: #E8E6DC; }

/* 404 */
.notfound { padding: 3rem 0 4rem; text-align: center; }
.notfound h1 { margin-bottom: 0.4em; }


/* AA review mock-up only */
.aa-bar {
  background: var(--yellow);
  color: var(--black);
  border-bottom: 3px solid var(--black);
  text-align: center;
  padding: 0.7rem 1rem 0.8rem;
}
.aa-bar strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}
.aa-bar p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 44rem;
  margin-inline: auto;
  line-height: 1.35;
}
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
}
.sticky-top .site-header { position: static; }
.brand-role { max-width: 16rem; line-height: 1.25; font-size: 0.72rem; }
.portrait img {
  border-radius: 18px;
  border: 4px solid var(--yellow);
}
.portrait figcaption { margin-top: 0.5rem; border-radius: 8px; }
.car-photo {
  margin: 1.4rem 0 0.4rem;
}
.car-photo img {
  width: 100%;
  border-radius: 16px;
  background: var(--black);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.car-photo figcaption {
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
  color: #E8E6DC;
}
.section-white .car-photo figcaption { color: var(--muted); }

.draft-photo-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Launch-ready additions */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hours-table {
  width: 100%;
  max-width: 32rem;
  border-collapse: collapse;
  margin: 1.2rem 0 1rem;
  background: #FFF8D0;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid var(--black);
}
.hours-table thead th {
  background: var(--black);
  color: var(--yellow);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hours-table tbody th {
  font-weight: 800;
  width: 55%;
}
.hours-table tbody tr:last-child th,
.hours-table tbody tr:last-child td {
  border-bottom: 0;
}
.hours-note {
  margin: 0;
  max-width: 40rem;
}

.sticky-book {
  display: none;
}
@media (max-width: 800px) {
  .sticky-book {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--black);
    border-top: 3px solid var(--yellow);
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    text-align: center;
  }
  .sticky-book .btn {
    width: min(100%, 22rem);
  }
  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 800px) {
  body { padding-bottom: 7rem; }
}
@media (min-width: 801px) {
  body { padding-bottom: 0; }
}
