/* =============================
   Rathangan Local Hackney
   Black & white, elder-friendly: large Inclusive Sans type, maximum contrast,
   60px+ touch targets, square shapes, always-underlined links, no motion.
   Colours are named by role so the light and dark schemes stay consistent.
============================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f0f0f0;
  --ink: #000000;
  --muted: #333333;            /* 12.6:1 on white */
  --rule: #9e9e9e;             /* card borders */
  --rule-strong: #000000;
  --band: #000000;             /* header, hero and call-to-action bands */
  --band-ink: #ffffff;
  --primary: #000000;          /* main buttons on the page */
  --primary-ink: #ffffff;
  --soft: #ebebeb;             /* hover fills, diagram area */
  --note-bg: #f0f0f0;
  --link: #000000;
  --error: #a3160c;            /* errors stay red so they can't be missed */
  --field: #ffffff;

  --max: 1040px;
  --font: 'Inclusive Sans', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111111;
    --surface2: #1c1c1c;
    --ink: #ffffff;
    --muted: #d6d6d6;
    --rule: #6b6b6b;
    --rule-strong: #ffffff;
    --band: #000000;
    --band-ink: #ffffff;
    --primary: #ffffff;
    --primary-ink: #000000;
    --soft: #262626;
    --note-bg: #1c1c1c;
    --link: #ffffff;
    --error: #ff9d94;
    --field: #000000;
    color-scheme: dark;
  }
}

/* =============================
   Base
============================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 20px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 4px; }
p { margin: 0 0 16px; }
strong { font-weight: 700; }
img, svg { max-width: 100%; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 8px var(--bg); }
.site-header :focus-visible, .hero :focus-visible, .cta-band :focus-visible {
  outline-color: var(--band-ink);
  box-shadow: 0 0 0 8px var(--band);
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section + .section { border-top: 2px solid var(--rule); }
.muted { color: var(--muted); }
.small { font-size: 18px; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--band-ink); color: var(--band); padding: 14px 18px; }

h1, h2, h3 { font-family: var(--font); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.4vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 23px; line-height: 1.25; margin-bottom: 8px; }
.kicker {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.intro { font-size: 22px; max-width: 34em; }

/* =============================
   Header
============================= */
.site-header { background: var(--band); color: var(--band-ink); border-bottom: 2px solid #3d3d3d; }
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.header-call {
  color: inherit;
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
}

/* =============================
   Hero
============================= */
.hero {
  background: var(--band);
  color: var(--band-ink);
  padding: 44px 0 80px;
  position: relative;
}
.hero::after {
  /* Road line motif */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--band-ink) 0 48px, transparent 48px 84px);
}
.hero h1 em { font-style: normal; }
.hero .intro { color: var(--band-ink); margin-top: 20px; }
.hero-phone {
  display: inline-flex;
  flex-direction: column;
  margin-top: 26px;
  color: var(--band-ink);
  text-decoration: none;
}
.hero-phone span { font-size: 20px; }
.hero-phone strong {
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.hero.compact { padding: 36px 0 70px; }
@media (prefers-color-scheme: dark) {
  .hero, .cta-band { border-bottom: 2px solid #3d3d3d; }
}

/* =============================
   Buttons
============================= */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 26px;
  border: 3px solid transparent;
  font: 700 21px/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn svg { flex: 0 0 auto; width: 24px; height: 24px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-outline { border-color: var(--rule-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--soft); }
/* On the black bands, buttons flip to white */
.hero .btn-primary, .cta-band .btn-primary { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn-outline-band { border-color: var(--band-ink); color: var(--band-ink); background: transparent; }
.btn-outline-band:hover { background: #262626; }

/* =============================
   Steps
============================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
}
.step p { margin: 0; }

/* =============================
   Area diagram
============================= */
.area { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.area-diagram {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 12px;
}
.area-diagram svg { display: block; width: 100%; height: auto; }
.area-diagram .zone { fill: var(--soft); stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 8 6; }
.area-diagram .home { fill: var(--ink); }
.area-diagram .trip { stroke: var(--ink); stroke-width: 3; fill: none; }
.area-diagram .ret { stroke: var(--ink); stroke-width: 3; fill: none; stroke-dasharray: 7 6; }
.area-diagram .dest { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.area-diagram text { fill: var(--ink); font-family: var(--font); font-size: 17px; }
.area-diagram .label-strong { font-weight: 700; font-size: 19px; }
.area-diagram .label-muted { fill: var(--muted); font-size: 16px; }
.area-diagram .label-ret { fill: var(--ink); font-size: 17px; font-weight: 700; }
.area-diagram .arrowhead, .area-diagram .arrowhead-ret { fill: var(--ink); }

.rules { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rules .ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 22px;
}
.rules strong { display: block; }
.rules span { color: var(--muted); }

/* =============================
   Trust / vehicle
============================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.panel {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 28px;
}
dl.facts { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 22px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 700; }

/* =============================
   FAQ
============================= */
.faqs { margin-top: 24px; display: grid; gap: 12px; max-width: 48em; }
details.faq {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 0 24px;
}
details.faq[open] { border-color: var(--rule-strong); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  min-height: 62px;
  font-weight: 700;
  font-size: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 26px;
  line-height: 1;
}
details.faq[open] summary::after { content: '−'; }
details.faq p { padding-bottom: 8px; }

/* =============================
   CTA band
============================= */
.cta-band {
  background: var(--band);
  color: var(--band-ink);
  border: 2px solid var(--band);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
@media (prefers-color-scheme: dark) { .cta-band { border-color: var(--rule-strong); } }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 22px; }
.cta-band a.tel { color: inherit; font-weight: 700; }
.cta-band .btn { min-width: 220px; }

/* =============================
   Note
============================= */
.note {
  background: var(--note-bg);
  border-left: 8px solid var(--ink);
  padding: 18px 20px;
}

/* =============================
   Booking form
============================= */
.book-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.book-aside { position: sticky; top: 20px; display: grid; gap: 16px; }
.book-aside .panel { padding: 24px; }
.book-aside ol { margin: 8px 0 0; padding-left: 24px; }
.book-aside li { margin: 8px 0; }

form { display: grid; gap: 24px; }
fieldset {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 26px;
  display: grid;
  gap: 22px;
  min-width: 0;
}
legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
}
legend + * { clear: both; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .check label { font-weight: 700; font-size: 20px; }
.hint { font-size: 18px; color: var(--muted); }
.req { color: var(--error); }

input[type="text"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 2px solid var(--rule-strong);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 20px/1.4 var(--font);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 26px) 50%, calc(100% - 18px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 48px;
}
textarea { min-height: 130px; resize: vertical; }
::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: 4px solid var(--ink); outline-offset: 2px; box-shadow: none; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 3px !important; }

/* Each checkbox / radio is a large bordered box; tapping anywhere in it selects it */
.check {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid var(--rule);
  background: var(--surface);
}
.check:has(input:checked) { border: 3px solid var(--rule-strong); background: var(--soft); }
.check:has(input:focus-visible) { outline: 4px solid var(--ink); outline-offset: 2px; }
.check input { width: 28px; height: 28px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; cursor: pointer; }
.check label { cursor: pointer; }
.check label::after { content: ''; position: absolute; inset: 0; }

.send { display: grid; gap: 14px; }
.send-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.error-msg {
  color: var(--error);
  font-weight: 700;
  font-size: 21px;
  border-left: 8px solid var(--error);
  padding: 10px 16px;
  margin: 0;
}
.preview {
  white-space: pre-wrap;
  font: 400 19px/1.55 var(--font);
  background: var(--surface2);
  padding: 18px;
  margin: 14px 0 0;
}
.sent { border: 4px solid var(--ink); }

/* =============================
   Footer
============================= */
.site-footer {
  border-top: 2px solid var(--rule);
  padding: 30px 0 130px;
  font-size: 18px;
  color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* =============================
   Sticky mobile bar
============================= */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 3px solid var(--rule-strong);
}
.callbar .btn { flex: 1 1 0; min-height: 60px; padding: 10px 6px; font-size: 20px; }

/* =============================
   Responsive
============================= */
@media (max-width: 880px) {
  .steps, .split { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .book-aside { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }

  /* Hero: tighter so the booking buttons appear sooner */
  .hero { padding: 28px 0 64px; }
  .hero.compact { padding: 26px 0 60px; }
  .hero::after { bottom: 22px; }
  h1 { font-size: 34px; }
  h2 { font-size: 29px; }
  .intro, .hero .intro { font-size: 19px; margin-top: 14px; }
  .hero-phone { margin-top: 18px; }
  .hero-phone strong { font-size: 40px; }
  .actions { margin-top: 20px; }

  /* Steps: number beside the heading instead of above it */
  .steps { gap: 12px; margin-top: 20px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .step::before { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .step h3, .step p { grid-column: 2; }

  /* The ✓ list says the same thing in larger text; the diagram is too small to read on a phone */
  .area-diagram { display: none; }

  /* Booking page: form first, extra info after it */
  .book-aside { order: 1; }

  /* Keep the call bar out of the way while someone is typing */
  body:has(form :focus) .callbar { display: none; }

  .section { padding: 48px 0; }
  .row { grid-template-columns: 1fr; }
  .header-call { display: none; }
  .logo { font-size: 20px; }
  .callbar { display: flex; }
  .hero .actions .btn { flex: 1 1 100%; }
  .cta-band { padding: 26px 22px; }
  .cta-band .btn { flex: 1 1 100%; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
  fieldset { padding: 22px 18px; }
  .send-buttons .btn { flex: 1 1 100%; }
}
