/* Autoteks main stylesheet, used on every page */

/* Fonts: self-hosted Archivo (SIL Open Font Licence, see /assets/fonts/OFL.txt) */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-800i.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo Condensed";
  src: url("/assets/fonts/archivo-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Tokens */
:root {
  /* Colours from the building: fascia blue, bay-door navy, lift yellow, painted floor */
  --blue: #1F4FC9;
  --blue-dark: #183FA3;
  --navy: #13214A;
  --yellow: #F7C51E;
  --concrete: #EDF0F4;
  --steel: #4E5873;
  --line: #D5DAE3;
  --white: #FFFFFF;
  --plate-ink: #000000;

  /* Type */
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo Expanded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-plate: "Archivo Condensed", "Arial Narrow", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.3rem + 4.4vw, 4.5rem);

  /* Spacing and layout */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6rem);
  --max: 72rem;
  --radius: 6px;
  --slant: 10deg; /* matches the logo's italic angle */
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--navy); padding: 0.6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--concrete { background: var(--concrete); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy a:not(.btn) { color: var(--white); }
.section--navy :focus-visible { outline-color: var(--yellow); }
.section-intro { color: var(--steel); margin-bottom: 2rem; }
.section--navy .section-intro { color: #C9D2E8; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.75rem;
}
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 2.75rem; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--navy); border-radius: var(--radius);
  color: var(--navy); font: 600 var(--step--1)/1 var(--font-body);
  padding: 0.6rem 0.8rem; cursor: pointer;
}

@media (max-width: 1100px) {
  .site-header__inner { flex-wrap: wrap; gap: 0.75rem; min-height: 4rem; padding-block: 0.6rem; }
  .site-header__logo img { height: 2rem; }
  .menu-toggle { display: block; }
  .site-header__actions { display: none; }
  .site-nav { display: none; width: 100%; margin-left: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .site-nav a { display: block; padding: 0.75rem 0; font-size: var(--step-0); border-top: 1px solid var(--line); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn--yellow:hover { background: #FFD53F; color: var(--navy); }
.btn--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn--outline-dark { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--concrete); color: var(--navy); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--step--1); }

/* Hero and number plate field */
.hero { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.hero__inner { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.hero__content { max-width: 58%; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); text-wrap: balance; }
.hero h1 .line { white-space: nowrap; }
.hero__lead { font-size: var(--step-1); line-height: 1.45; color: #E3E9FA; max-width: 34ch; margin-bottom: 1.75rem; }

.plate-form { max-width: 34rem; }
.plate-form__label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.plate-form__row { display: flex; gap: 0.75rem; align-items: stretch; }
.plate-form__error { min-height: 1.5em; margin: 0.5rem 0 0; color: var(--yellow); font-weight: 600; font-size: var(--step--1); }

.plate {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--plate-ink);
  background: var(--yellow);
  border: 3px solid var(--plate-ink);
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
  box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 4px rgba(0,0,0,0.15);
}
.plate::placeholder { color: rgba(0,0,0,0.22); }
.plate:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.hero__meta { margin: 1.25rem 0 0; color: #E3E9FA; font-size: var(--step--1); }
.hero__meta a { color: var(--white); font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--white); margin-right: 0.35rem; }
.open-status::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: #98A6C8;
}
.open-status.is-open::before { background: var(--yellow); }

/* Photo bleeds off the right edge, cut at the logo's slant */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  margin: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; }

@media (max-width: 860px) {
  .hero__content { max-width: none; }
  .hero__photo { display: none; }
  .hero h1 .line { white-space: normal; }
}
@media (max-width: 520px) {
  .plate-form__row { flex-direction: column; }
}

/* Prices */
.price-board { border-top: 3px solid var(--navy); margin: 0 0 1.5rem; padding: 0; list-style: none; max-width: 52rem; }
.price-board__row {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem; align-items: baseline;
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
}
.price-board__class { font-family: var(--font-plate); font-weight: 700; font-size: var(--step-1); letter-spacing: 0.02em; }
.price-board__covers { margin: 0; color: var(--steel); }
.price-board__price {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--step-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-notes p { color: var(--steel); }
.price-notes strong { color: var(--navy); }

@media (max-width: 600px) {
  .price-board__row { grid-template-columns: 1fr auto; }
  .price-board__covers { grid-column: 1 / -1; grid-row: 2; }
}

/* Booking steps */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--blue); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--step-2); color: var(--blue); line-height: 1; margin-bottom: 0.6rem;
}
.steps p { color: var(--steel); margin: 0; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.steps-cta p { margin: 0; color: var(--steel); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Facts and photos */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.facts { margin: 0; }
.facts div { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-weight: 600; font-size: var(--step-1); margin-bottom: 0.2rem; }
.facts dd { margin: 0; color: var(--steel); }
.photo-stack { display: grid; gap: 1rem; margin: 0; }
.photo-stack figure { margin: 0; }
.photo-stack img { border-radius: var(--radius); width: 100%; }
.photo-stack figcaption { font-size: var(--step--1); color: var(--steel); margin-top: 0.4rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Servicing, tyres, number plates */
.panel { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-top: 0; }
.panel .btn { margin-top: 0.5rem; }
.brands__title { margin: 2rem 0 0.75rem; font-size: var(--step-1); }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.brands li { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.brands img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 226; object-fit: contain; }
.brands__note { max-width: 48rem; margin: 2rem 0 0; color: var(--steel); }
.plate-price { margin: 0 0 1rem; font-size: var(--step-1); }
.plate-price strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: var(--step-3); color: var(--navy); }

/* FAQs */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1rem 2.5rem 1rem 0; font-weight: 600; font-size: var(--step-0); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq details p { max-width: 60ch; margin: 0 0 1.1rem; color: var(--steel); }

/* Find us */
.find-us { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.find-us address { font-style: normal; font-size: var(--step-1); line-height: 1.45; margin-bottom: 1.25rem; }
.find-us__directions { color: #C9D2E8; }
.find-us__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--yellow); font-weight: 600; }
.hours-note { font-size: var(--step--1); color: #C9D2E8; margin-top: 0.75rem; }
.find-us figure { margin: 0; }
.find-us img { border-radius: var(--radius); width: 100%; }
.find-us figcaption { font-size: var(--step--1); color: #C9D2E8; margin-top: 0.5rem; }
@media (max-width: 860px) { .find-us { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #C9D2E8; border-top: 1px solid rgba(255,255,255,0.12); padding-block: 3rem 2rem; font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer__logo img { height: 2.5rem; width: auto; margin-bottom: 1rem; }
.site-footer address { font-style: normal; }
.site-footer h3 { color: var(--white); font-size: var(--step-0); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; }
.site-footer__legal p { max-width: none; margin-bottom: 0.4rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Call / book bar on phones */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(19, 33, 74, 0.12);
  }
  .action-bar .btn { width: 100%; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}

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

/* Hero buttons */
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--large { min-height: 3.5rem; padding: 0.9rem 1.6rem; font-size: var(--step-1); }
@media (max-width: 520px) { .hero__actions .btn { width: 100%; } }
