/* MJS Driving School — public site + booking/admin */

/* Plus Jakarta Sans — self-hosted, SIL OFL (see /fonts/OFL.txt) */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07111F;
  --ink-2: #0C1A2E;
  --ink-soft: #1C334C;
  --sand: #F3F5F7;
  --sand-2: #E4E8EE;
  --paper: #F6F7F9;
  --cream: #FFFFFF;
  --gold: #F5C400;
  --gold-2: #E0B400;
  --clay: #F5C400;
  --clay-dark: #E0B400;
  --yellow: #F5C400;
  --yellow-ink: #07111F;
  --wa: #1F6B45;
  --wa-dark: #185536;
  --mist: #5B6B7C;
  --line: rgba(7, 17, 31, 0.10);
  --line-strong: rgba(7, 17, 31, 0.18);
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.14);
  --radius: 16px;
  --header-h: 72px;
  --bottom-h: 0px;
  --font-serif: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --content: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 799px) {
  :root { --header-h: 62px; --bottom-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4, .book-panel-title, .price-tag {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 800;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  border-bottom: 1px solid rgba(245, 196, 0, 0.18);
}
.header-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img { width: auto; height: 42px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(244, 247, 251, 0.82);
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.site-header .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
.site-header .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  border-radius: 10px;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-clay {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 8px 22px rgba(245, 196, 0, 0.28);
}
.btn-clay:hover { background: #ffd21a; }
.btn-ink { background: var(--ink); color: #F4F7FB; }
.btn-ink:hover { background: #0c1a2e; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--sand); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffd21a; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #F4F7FB;
  isolation: isolate;
  display: grid;
}
.hero-media {
  grid-area: 1 / 1;
  min-height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}
.hero-veil {
  grid-area: 1 / 1;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.72) 42%, rgba(7, 17, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.18) 0%, rgba(7, 17, 31, 0.05) 40%, rgba(7, 17, 31, 0.45) 100%);
  pointer-events: none;
}
.hero-stage {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  min-height: min(820px, calc(100svh - var(--header-h)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.l-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  border-radius: 3px;
  line-height: 1;
}
.hero-copy h1 {
  font-size: clamp(3.5rem, 2.5rem + 1.8vw, 4rem); /* 56–64px */
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 12em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-copy .lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(244, 247, 251, 0.82);
  margin: 0 0 28px;
  max-width: 42ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.quickbook {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
}
.quickbook-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.quickbook-lead {
  margin: -4px 0 4px;
  color: var(--mist);
  font-size: 14px;
}
.quickbook-field { display: grid; gap: 6px; }
.quickbook-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.quickbook-field select,
.quickbook-field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--paper);
}
.quickbook-field select:focus,
.quickbook-field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: #fff;
}
.quickbook .btn { width: 100%; margin-top: 4px; }

/* Trust */
.trust {
  background: var(--gold);
  color: var(--ink);
}
.trust-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.trust-item i {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--ink);
  flex: 0 0 auto;
  transform: rotate(45deg);
}

/* Sections */
.section { padding: 88px 0; }
.section-inner { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2, .about-copy h2, .book-intro h2, .cta-inner h2 {
  font-size: clamp(2.25rem, 1.5rem + 1.2vw, 2.75rem); /* 36–44px */
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p, .areas-copy p, .about-copy p {
  color: var(--mist);
  margin: 0 0 12px;
}
.section-how { background: var(--ink); color: #F4F7FB; }
.section-how .section-head p,
.section-how .how-step p { color: rgba(244, 247, 251, 0.72); }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step {
  border-top: 1px solid rgba(245, 196, 0, 0.35);
  padding-top: 22px;
}
.how-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.how-step h3 { margin: 0 0 8px; font-size: 1.35rem; }
.how-step p { margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.service-icon {
  width: 42px;
  height: 42px;
  color: var(--ink);
  margin-bottom: 16px;
  background: var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { margin: 0 0 8px; font-size: 1.25rem; }
.service p { margin: 0; color: var(--mist); }

/* Pricing */
.section-pricing { background: var(--ink); color: #F4F7FB; }
.section-pricing .section-head p { color: rgba(244, 247, 251, 0.7); }
.section-pricing .section-head .price-aud {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.58);
  margin: 10px 0 0;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: #0E1C30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  color: #F4F7FB;
  position: relative;
}
.price-card.featured {
  background: #fff;
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
}
.price-badge {
  position: static;
  align-self: flex-start;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  margin: 0 0 14px;
}
.price-card h3 { font-size: 1.25rem; margin: 0 0 10px; white-space: nowrap; }
.price-card .desc { color: #B7C3C7; font-size: 15px; margin: 0 0 20px; flex: 1; }
.price-card.featured .desc { color: var(--mist); }
.price-tag {
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 4px;
  font-weight: 800;
}
.price-card .fine { font-size: 13px; color: #8FA0A5; margin: 0 0 18px; }
.price-card.featured .fine { color: var(--mist); }
.price-card .btn-ghost {
  color: #F4F7FB;
  border-color: rgba(244, 247, 251, 0.28);
}
.price-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.price-card.featured .btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.price-disclaimer {
  margin: 22px 0 0;
  color: rgba(244, 247, 251, 0.62);
  font-size: 14px;
}

/* Areas */
.section-areas { background: var(--sand); }
.areas-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}
.suburb-board { margin-top: 22px; }
.area-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.chip-solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.areas-visual {
  position: relative;
  min-height: 420px;
}
.areas-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.areas-map {
  position: absolute;
  width: min(320px, 66%);
  height: auto;
  right: -8px;
  bottom: -28px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* About / instructor */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.portrait {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.15), rgba(7, 17, 31, 0.82)),
    url("../img/perth-roads.jpg") center 30% / cover no-repeat;
  color: #fff;
  border-radius: 20px;
  min-height: 420px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}
.portrait-mark {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--gold);
}
.tbc-note {
  align-self: flex-start;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.portrait strong { font-size: 1.15rem; font-family: var(--font-display); }
.portrait p { margin: 6px 0 0; color: rgba(244, 247, 251, 0.82); font-size: 14.5px; }
.about-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.about-list li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  padding: 14px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body { margin: 0 0 16px; color: var(--mist); }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.55), rgba(7, 17, 31, 0.72));
}
.cta-inner { position: relative; z-index: 2; width: min(720px, calc(100% - 32px)); padding: 88px 0; }
.eyebrow-light { color: var(--gold); justify-content: center; }
.cta-inner h2 { font-size: clamp(2.25rem, 1.5rem + 1.2vw, 2.75rem); line-height: 1.05; margin: 0 0 12px; }
.cta-inner p { color: rgba(244, 247, 251, 0.86); margin: 0 0 28px; font-size: 1.1rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 247, 251, 0.82);
  padding: 56px 0 28px;
}
.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer a { color: #F4F7FB; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: grid; gap: 14px; align-items: start; margin-bottom: 12px; }
.footer-brand img { width: auto; height: 44px; }
.footer-brand p { margin: 0; max-width: 36ch; }
.legal {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8B97A6;
}
.legal a { color: #C5CED6; }

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245, 196, 0, 0.2);
}
.mobile-bar .btn { flex: 1; padding: 12px 8px; font-size: 13.5px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: fadeup .7s var(--ease) both;
  }
  @keyframes fadeup {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 999px) {
  .hero-stage { grid-template-columns: 1fr 300px; gap: 28px; width: min(var(--content), calc(100% - 32px)); }
  .areas-layout, .about-grid { grid-template-columns: 1fr; }
  .areas-map { right: 16px; bottom: -16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 799px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink-2);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(245, 196, 0, 0.18);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .header-actions { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero-stage { display: contents; min-height: 0; width: auto; padding: 0; }
  .hero-copy {
    order: 1;
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
  }
  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.125rem, 1.15rem + 5.2vw, 2.5rem); /* ~34–40px around 390px */
  }
  .section-head h2, .about-copy h2, .book-intro h2, .cta-inner h2 {
    font-size: clamp(1.75rem, 1rem + 3.5vw, 2rem); /* 28–32px */
  }
  .hero-media {
    order: 2;
    height: 260px;
    min-height: 260px;
  }
  .hero-veil { display: none; }
  .quickbook {
    order: 3;
    margin: 16px 16px 28px;
    width: auto;
    box-shadow: var(--shadow);
  }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 14px 0; gap: 10px 12px; }
  .how-grid, .services-grid, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .section { padding: 64px 0; }
  .areas-photo { height: 280px; }
  .areas-visual { min-height: 0; margin-top: 8px; }
  .areas-map { width: min(210px, 64%); bottom: -18px; }
  .portrait { min-height: 320px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .trust-inner { grid-template-columns: 1fr; }
  .hero-media { height: 220px; min-height: 220px; }
  .cta-actions .btn, .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .price-card.featured { transform: none; }
  .reveal { animation: none; }
}

.book-intro { max-width: 720px; margin-bottom: 28px; }
.book-intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 1.2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.book-intro p { color: var(--mist); margin: 0 0 16px; }
@media (max-width: 799px) {
  .book-intro h2, .section-head h2, .about-copy h2, .cta-inner h2 {
    font-size: clamp(1.75rem, 1rem + 3.5vw, 2rem);
  }
}
.book-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.book-wizard {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
}
.book-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}
.book-progress li {
  position: relative;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  padding-top: 14px;
}
.book-progress li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: 99px;
  background: var(--sand-2);
}
.book-progress li.is-active { color: var(--ink); }
.book-progress li.is-active::before,
.book-progress li.is-done::before { background: var(--gold); }
.book-panel-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  outline: none;
}
.book-hint { color: var(--mist); font-size: 14.5px; margin: 0 0 16px; }
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.book-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.book-summary {
  background: var(--sand);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 16px;
  cursor: pointer;
  min-height: 180px;
}
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card { position: relative; }
.pick-card.is-featured { background: var(--ink); color: #F4F7FB; border-color: transparent; }
.pick-card.is-featured .pick-fine,
.pick-card.is-featured .pick-blurb { color: #C9D3D6; }
.pick-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 7px; border-radius: 5px;
}
.pick-card.is-featured { padding-top: 36px; }
.pick-card.is-selected { box-shadow: 0 0 0 2px var(--clay); }
.pick-card.is-featured.is-selected { box-shadow: 0 0 0 2px var(--gold); }
.pick-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.pick-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.pick-fine { font-size: 13px; color: var(--mist); }
.pick-blurb { font-size: 14.5px; color: var(--mist); margin-top: auto; }

.cal-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.cal-board, .slot-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cal-nav h4 { margin: 0; font-size: 16px; font-weight: 650; }
.cal-nav .btn { width: 42px; height: 42px; padding: 0; font-size: 22px; line-height: 1; }
.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 4px 0;
}
.cal-day, .cal-blank {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 580;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink);
}
.cal-blank { cursor: default; }
.cal-day.is-muted, .cal-day.is-past { color: #9aa6aa; cursor: not-allowed; }
.cal-day.is-open:hover { background: var(--sand-2); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--gold-2); }
.cal-day.is-selected { background: var(--ink); color: var(--sand); }
.cal-day.is-selected .cal-dot { background: var(--gold); }
.cal-day.is-blocked { text-decoration: line-through; opacity: .7; }
.cal-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-2);
  display: block;
}
.slot-board h4 { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 580;
  cursor: pointer;
  min-height: 44px;
}
.slot-btn.is-selected { background: var(--ink); color: var(--sand); border-color: var(--ink); }

.confirm-card h3 { margin-bottom: 8px; }
.confirm-kicker {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 6px;
}
.confirm-note { color: var(--mist); }
.confirm-dl { display: grid; gap: 10px; margin: 18px 0; }
.confirm-dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.confirm-dl dt { color: var(--mist); font-size: 14px; }
.confirm-dl dd { margin: 0; font-weight: 580; }
.email-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.email-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}
.email-preview h4 { margin: 0 0 10px; font-size: 15px; }
.email-meta { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); word-break: break-word; }
.email-meta span { display: inline-block; min-width: 64px; color: var(--mist); }
.email-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  background: var(--sand);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0 0;
  max-height: 260px;
  overflow: auto;
}

/* ---------- Admin ---------- */
.admin-body { background: var(--sand); }
.admin-main { width: min(1120px, calc(100% - 32px)); margin: 28px auto 80px; }
.admin-login { display: grid; place-items: start center; padding: 24px 0 60px; }
.admin-login-card {
  width: min(480px, 100%);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.admin-login-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.admin-login-card p { color: var(--mist); }
.admin-login-card .btn-lg { width: 100%; margin-top: 8px; }
.admin-shell { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs button, .header-actions [data-admin-tab] {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 580;
  cursor: pointer;
}
.admin-tabs button.is-active { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.admin-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar h2, .admin-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.admin-filter { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.admin-filter select {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--paper);
  font: inherit;
}
.booking-list, .block-list { display: grid; gap: 10px; }
.booking-card, .block-row {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 16px;
}
.booking-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.booking-when { font-weight: 650; margin: 6px 0; }
.booking-card p { margin: 4px 0; color: var(--ink-soft); }
.booking-licence { font-size: 14px; }
.booking-actions, .block-row { display: flex; flex-wrap: wrap; gap: 8px; }
.block-row { justify-content: space-between; align-items: center; }
.status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--sand-2);
}
.status-pending .status-pill { background: #f3e0b5; color: #5c4a24; }
.status-confirmed .status-pill { background: #d4eadc; color: #185536; }
.status-cancelled .status-pill { background: #ead9d4; color: #933C29; }
.avail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.weekly-editor { display: grid; gap: 10px; }
.weekday-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.weekday-name { font-weight: 650; padding-top: 8px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sand);
  border-radius: 999px;
  padding: 4px 4px 4px 10px;
  font-size: 13.5px;
}
.time-chip button {
  border: 0; background: transparent; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px;
}
.muted { color: var(--mist); font-size: 14px; }
.add-time { display: flex; gap: 6px; align-items: center; }
.add-time input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  font-size: 16px;
}
.admin-ok { color: var(--wa-dark); font-weight: 580; }
.admin-subhead { font-size: 1.1rem; margin: 22px 0 10px; }
.admin-slot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.admin-slot.is-booked { color: var(--clay-dark); }
.admin-slot.is-blocked-slot { color: var(--mist); }
.admin-day-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18,38,46,.45);
  display: grid; place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(860px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  background: var(--cream);
  border-radius: 24px;
  padding: 20px;
}
.modal-card h3 { font-family: var(--font-serif); margin: 0 0 8px; }

@media (max-width: 999px) {
  .pick-grid, .cal-wrap, .email-previews, .avail-grid { grid-template-columns: 1fr; }
  .confirm-dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 799px) {
  .book-wizard { padding: 16px 14px 20px; border-radius: 22px; }
  .book-progress li { font-size: 10px; letter-spacing: 0.04em; }
  .pick-card { min-height: 0; }
  .weekday-row { grid-template-columns: 1fr; }
  .admin-main { width: min(1120px, calc(100% - 24px)); }
  .site-header .header-actions { display: none; }
  .admin-body .site-header .header-actions { display: none; }
}
@media (max-width: 420px) {
  .book-contact .btn { flex: 1 1 auto; }
  .cal-day, .cal-blank { min-height: 42px; font-size: 14px; }
  .book-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 799px) {
  .admin-body .site-header { height: var(--header-h); padding: 0; }
  .admin-body .header-inner { flex-wrap: nowrap; }
  .admin-body .brand img { height: 34px; }
  .admin-body .site-header .header-actions {
    display: flex;
    width: auto;
    margin: 0 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}


/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.form-grid .full, .field.full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .admin-login-card label {
  font-size: 13px;
  font-weight: 700;
}
.req { color: #b42318; }
.field input, .field select, .field textarea,
.admin-login-card input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.admin-login-card input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-error {
  display: none;
  background: #FDECEC;
  color: #8A1C12;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.form-error.show { display: block; }
.demo-banner {
  background: #F4F7FB;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  margin: 16px 0;
}

@media (max-width: 799px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Author display rules must not override the hidden attribute. */
[hidden] { display: none !important; }

@media (max-width: 799px) {
  #book-wizard [data-panel="1"] .book-actions {
    position: sticky;
    bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 24px rgba(7, 17, 31, 0.06);
    padding: 10px 16px 10px;
    z-index: 5;
    margin-top: 12px;
    margin-left: -16px;
    margin-right: -16px;
    border-top: 1px solid var(--line);
  }
  #book-wizard [data-panel="1"] { padding-bottom: 4px; }
  #enquire { scroll-margin-top: calc(var(--header-h) + 8px); }
  #book-wizard { scroll-margin-top: calc(var(--header-h) + 8px); }
  .pick-card { padding: 14px; gap: 4px; }
  .book-hint { font-size: 13.5px; }
}
.admin-body .header-actions [data-admin-tab] { display: none; }

/* Tighten the wide sidebearing on the full stop in display headings */
h1 .dot, h2 .dot { margin-left: -0.09em; }
