/* Off Rhodes Garage - site styles
   Fonts: Barlow + Barlow Semi Condensed (SIL OFL), self-hosted so no third-party font requests. */
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f5f2;
  --panel: #ffffff;
  --ink: #18201b;
  --muted: #4f5a53;
  --line: #d3dad4;
  --green: #1b8640;
  --green-deep: #13602e;
  --green-tint: #e3f0e6;
  --plate: #f6cf2b;
  --focus: #0b5fa5;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 40rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .55em; padding-left: .2em; }
.prose li::marker { color: var(--green); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The number plate: the site's one signature element. The phone number is the booking system. */
.plate {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--plate); color: #000; text-decoration: none;
  font: 700 1.15rem/1 var(--display); letter-spacing: .04em;
  padding: .5em .8em; border-radius: 6px;
  border: 2px solid #000; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3px rgba(0,0,0,.35);
  white-space: nowrap;
}
.plate:hover { color: #000; background: #ffd93d; }
.plate svg { width: 1em; height: 1em; flex: none; }
.plate--xl { font-size: clamp(2rem, 6vw, 3.4rem); padding: .32em .55em; border-width: 3px; border-radius: 10px; letter-spacing: .05em; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand img { width: 140px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .75rem; font: 600 1.05rem/1 var(--display); color: var(--ink); text-decoration: none; border-radius: 4px; }
.nav a:hover { background: var(--green-tint); }
.nav a[aria-current="page"] { color: var(--green-deep); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .sub { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .site-header .wrap { min-height: 4.25rem; gap: .75rem; }
  .brand img { width: 112px; }
  .site-header .plate { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: .45rem .75rem; font: 600 1rem/1 var(--display); color: var(--ink); cursor: pointer; }
  .menu-toggle svg { width: 1.1rem; height: 1.1rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; gap: 0; }
  .nav a { padding: .85rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
}
/* Without JS the menu stays reachable */
.no-js .nav { display: block; position: static; }
.no-js .menu-toggle { display: none; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 1100px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--ink); justify-content: center; }
  .callbar .plate { width: 100%; justify-content: center; font-size: 1.3rem; }
  body { padding-bottom: 4.5rem; }
}

/* Home hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 30rem; }
.hero .book { margin-top: 1.75rem; }
.hero .book p { font: 600 1.1rem/1.3 var(--display); margin: 0 0 .6rem; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hero-photos img { width: 100%; aspect-ratio: 840 / 350; object-fit: cover; border-radius: 4px; }
.hero-photos img:first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Price board: dotted leaders like a workshop price list */
.prices { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 3px solid var(--ink); }
.prices li { border-bottom: 1px solid var(--line); }
.prices a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.prices a:hover .name { color: var(--green-deep); text-decoration: underline; }
.prices .name { font: 600 1.3rem/1.2 var(--display); display: flex; align-items: baseline; gap: .5rem; }
.prices .name::after { content: ""; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.25em); }
.prices .price { font: 700 1.5rem/1 var(--display); white-space: nowrap; }
.prices .price small { font: 400 .95rem/1 var(--body); color: var(--muted); margin-right: .3em; }

.forces { background: var(--green-tint); border-left: 4px solid var(--green); padding: 1.1rem 1.25rem; border-radius: 0 4px 4px 0; }
.forces p:last-child { margin: 0; }

/* Inner page head */
.page-head { padding-block: clamp(2rem, 5vw, 3.25rem) 1.5rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.page-head h1 { margin: 0; }
.page-body { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-body .split img { border-radius: 4px; }
.figs { display: grid; gap: .75rem; }
.figs--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .figs--2 { grid-template-columns: 1fr; } }
.figs img { width: 100%; border-radius: 4px; }
@media (max-width: 860px) { .figs:not(.figs--2) { max-width: 30rem; } }
.banner-img { width: 100%; aspect-ratio: 840 / 350; object-fit: cover; border-radius: 4px; margin-bottom: 2rem; }
.callout { font: 700 1.6rem/1.2 var(--display); color: var(--green-deep); margin: 1.5rem 0; }
.subhead { font: 600 1.25rem/1.3 var(--display); color: var(--muted); margin-top: -.25rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 14, 12, .88); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox .lb-bar { display: flex; justify-content: center; gap: .5rem; margin-top: .6rem; }
.lightbox button { background: #fff; color: var(--ink); border: 0; border-radius: 4px; padding: .5rem .9rem; font: 600 1rem/1 var(--display); cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 0; }
.contact-list dt { font: 700 1.25rem/1.2 var(--display); margin-top: 1.5rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .35rem 0 0; font-size: 1.15rem; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { color: var(--muted); max-width: 26rem; margin: 0 auto 1rem; }
.btn { display: inline-block; background: var(--green-deep); color: #fff; border: 0; border-radius: 6px; padding: .75rem 1.1rem; font: 600 1.1rem/1 var(--display); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--green-tint); color: var(--ink); }
.map .btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* Accreditations */
.accred { padding: 2rem 0; border-top: 1px solid var(--line); }
.accred ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; }
.accred img { width: 130px; mix-blend-mode: multiply; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe6e1; padding: 3rem 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.25rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { font-style: normal; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #36403a; color: #a9b4ad; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .callbar, .site-footer, .accred { display: none; } body { background: #fff; } }
.figs--spaced { margin-bottom: 2rem; }
.contact-list address { font-style: normal; }
.footer-contact { margin-top: 1rem; }
