/*
 * Silver Cabs Melbourne, design system.
 *
 * Direction "the docket": the fare estimate renders as a real taxi docket,
 * itemised, perforated, printed. It is the artifact a passenger already trusts,
 * it answers the one thing they actually worry about (what will this cost), and
 * it runs off the same fare engine every page prices from. Everything else is
 * kept quiet so that one element carries the page.
 *
 * Palette is sampled from the client's own logo: amber #FD9B06 to #FDC405,
 * charcoal #3C3C3C, silver #D5D5D9, on white and near white.
 *
 * Spacing NEVER goes in a style attribute in this theme. Inline styles cannot
 * be overridden by a media query, which silently breaks every phone layout.
 * Use the utilities at the bottom of this file instead.
 */

:root {
  /* Brand, sampled from the logo artwork. */
  --amber: #FDB005;
  --amber-deep: #FD9B06;
  --amber-bright: #FDC405;
  --amber-ink: #8A5300;          /* Only shade of the brand that passes AA as text on white. */
  --amber-wash: #FFF7E6;

  --ink: #1B1B1D;
  --charcoal: #3C3C3C;
  --slate: #5A5A5F;
  --muted: #74747A;

  --silver: #D5D5D9;
  --silver-soft: #E8E8EB;
  --paper: #F6F6F7;
  --surface: #FFFFFF;

  --ok: #147A4B;
  --warn: #B3541E;
  --err: #B3261E;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(27, 27, 29, .06), 0 1px 3px rgba(27, 27, 29, .08);
  --shadow: 0 4px 14px rgba(27, 27, 29, .08), 0 2px 4px rgba(27, 27, 29, .05);
  --shadow-lg: 0 18px 48px rgba(27, 27, 29, .14);

  --wrap: 1180px;
  --header-h: 74px;

  /* Inter, matching the owner's other site. Same client, same taste: he has
   * already signed off this typeface on the airport build. */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A hidden element stays hidden. Without this a display rule on a wrapper
 * (a grid row, a flex row) beats the attribute and the field shows anyway. */
[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); letter-spacing: -.018em; font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.42rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  /* Transform, not left:-9999px. An off canvas element positioned that far
   * left still contributes to document scrollWidth and creates a phantom
   * horizontal scrollbar. */
  transform: translateY(-120%);
  transition: transform .18s;
}
.skip:focus { transform: translateY(0); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: #E9E9EC; }
.sec--ink h2, .sec--ink h3 { color: #fff; }

/* ---------------------------------------------------------------------------
 * Speed lines. The motion marks beside the car in the logo, reused as a
 * section seam. Two rows minimum: one row alone reads as a stray dashed rule
 * rather than a deliberate mark.
 * ------------------------------------------------------------------------ */
.speedlines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 74px;
  flex-shrink: 0;
}
.speedlines i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--amber);
}
.speedlines i:nth-child(1) { width: 100%; }
.speedlines i:nth-child(2) { width: 68%; }
.speedlines i:nth-child(3) { width: 84%; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
  flex-shrink: 0;
}
.sec--ink .eyebrow { color: var(--amber-bright); }

.lede { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.sec--ink .lede { color: #B9B9C0; }

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-deep); color: #fff; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--charcoal); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.sec--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.sec--ink .btn--ghost:hover { border-color: #fff; color: #fff; }

.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; min-height: 56px; font-size: 1.1rem; }

.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--silver-soft);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.nav .current > a { color: var(--amber-ink); }

.nav__item { position: relative; }
.nav__toggle {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.nav__toggle svg { transition: transform .18s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  background: var(--surface);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  list-style: none;
  margin: 0;
  z-index: 95;
}
.nav__menu a { display: block; padding: .6rem .75rem; }

/* Header actions sit hard right. The nav used to own this margin, so with the
 * nav hidden on a phone the call button drifted back toward the logo. */
.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav + .header__actions { margin-left: .5rem; }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.drawer { display: none; }

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 85% -10%, rgba(253,196,5,.16), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
/* Grid and flex children default to min-width:auto and refuse to shrink below
 * their content, which silently widens the whole page instead of wrapping. */
.hero__grid > *, .grid > *, .split > * { min-width: 0; }

.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--amber-deep); }

.trustrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.trustrow li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--silver-soft);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.trustrow svg { color: var(--amber-deep); flex-shrink: 0; }

/* ---------------------------------------------------------------------------
 * Booking card and form
 * ------------------------------------------------------------------------ */
.bookcard {
  background: var(--surface);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.bookcard--plain { border: 0; box-shadow: none; padding: 0; background: none; }

.bookcard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.bookcard__head h2, .bookcard__head h3 { margin: 0; font-size: 1.35rem; }

.seg {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--silver-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--slate);
  min-height: 38px;
}
.seg button[aria-selected="true"] { background: var(--amber); color: #fff; }

.field { margin-bottom: .9rem; }
.field--last { margin-bottom: 0; }
.field > label, .fieldlabel {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  min-height: 50px;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber-deep); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-row--split { grid-template-columns: 1fr 1fr; }

.field__err { display: block; color: var(--err); font-size: .85rem; font-weight: 600; margin-top: .3rem; }

.field--addr { position: relative; }
.locate {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--amber-deep);
  cursor: pointer;
}
.locate::before, .locate::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
  animation: locatepulse 2.2s ease-out infinite;
}
.locate::after { animation-delay: 1.1s; }
.locate.is-busy::before, .locate.is-busy::after { animation: none; opacity: 0; }
.locate.is-busy svg { animation: spin .9s linear infinite; }
.locate.is-done { background: var(--amber); color: #fff; }

@keyframes locatepulse {
  0%   { opacity: .55; transform: scale(.75); }
  100% { opacity: 0;   transform: scale(1.45); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .locate::before, .locate::after { animation: none; opacity: 0; }
}

/* Address autocomplete */
.ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px;
}
.ac--above { top: auto; bottom: calc(100% + 4px); }
.ac li { padding: .6rem .7rem; border-radius: 6px; cursor: pointer; font-size: .96rem; }
.ac li[aria-selected="true"], .ac li:hover { background: var(--amber-wash); }
.ac__sub { display: block; color: var(--muted); font-size: .84rem; }

/* Vehicle picker */
.vehopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); gap: .65rem; }
.vehopt input { position: absolute; opacity: 0; pointer-events: none; }
.vehopt__box {
  display: block;
  background: var(--surface);
  border: 1.5px solid var(--silver);
  border-radius: var(--radius-sm);
  padding: .8rem;
  cursor: pointer;
  height: 100%;
}
.vehopt input:checked + .vehopt__box { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); background: var(--surface); }
.vehopt input:focus-visible + .vehopt__box { outline: 3px solid var(--amber-deep); outline-offset: 2px; }
.vehopt__name { font-weight: 700; color: var(--ink); display: block; }
.vehopt__meta { font-size: .84rem; color: var(--muted); display: block; margin-top: .15rem; }

.checkitem {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--surface);
  border: 1.5px solid var(--silver);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  cursor: pointer;
}
.checkitem input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--amber-deep); flex-shrink: 0; }
.checkitem span { font-size: .95rem; }

.formsec { padding-top: 1.25rem; margin-top: 1.25rem; }
.formsec + .formsec { border-top: 1px solid var(--silver-soft); }
/* Specificity trap: `.formsec + .formsec` is 0-2-0, so a bare `.formsec--bare`
 * at 0-1-0 loses and the rule has to name both. */
.formsec + .formsec--bare { border-top: 0; }
.formsec:first-child { padding-top: 0; margin-top: 0; }
.formsec > h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .8rem; }

/* ---------------------------------------------------------------------------
 * The docket. The signature element: a real taxi receipt, itemised, so the
 * passenger can see exactly what the number is made of.
 * ------------------------------------------------------------------------ */
.docket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1.15rem 1.15rem 1.05rem;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
/* Perforated tear along the top edge. */
.docket::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -13px;
  height: 13px;
  background:
    repeating-linear-gradient(90deg, var(--surface) 0 9px, transparent 9px 18px),
    linear-gradient(var(--surface), var(--surface));
  -webkit-mask: radial-gradient(circle 6px at 9px 0, transparent 0 6px, #000 6.5px) repeat-x 0 100% / 18px 13px;
  mask: radial-gradient(circle 6px at 9px 0, transparent 0 6px, #000 6.5px) repeat-x 0 100% / 18px 13px;
  border-top: 1px solid var(--silver);
  border-left: 1px solid var(--silver);
  border-right: 1px solid var(--silver);
}
.docket__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--silver);
}
.docket__title { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.docket__tariff { font-size: .82rem; color: var(--muted); font-weight: 600; }

.docket__total { display: flex; align-items: baseline; gap: .5rem; padding: .85rem 0 .2rem; }
.docket__amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.docket__range { font-size: .95rem; color: var(--muted); font-weight: 600; }
.docket__note { font-size: .9rem; color: var(--muted); margin-top: .15rem; }

.docket__items { list-style: none; margin: .85rem 0 0; padding: .8rem 0 0; border-top: 1px dashed var(--silver); }
.docket__items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .93rem;
  padding: .28rem 0;
  color: var(--slate);
}
.docket__items b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.docket__items li.is-sub { font-size: .86rem; color: var(--muted); }

.docket--empty .docket__amount { color: var(--silver); }

.docket__legal { font-size: .82rem; color: var(--muted); margin-top: .85rem; padding-top: .7rem; border-top: 1px dashed var(--silver); }

/* ---------------------------------------------------------------------------
 * Cards and grids
 * ------------------------------------------------------------------------ */
.grid { display: grid; gap: 1.15rem; }
/* minmax with a bare 320px floor overflows a 320px viewport once padding is
 * counted. min() keeps the floor honest. */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid--roomy { gap: clamp(1.15rem, 2.5vw, 2rem); }

.card {
  background: var(--surface);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .16s, box-shadow .16s, transform .16s; }
.card--link:hover { border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .98rem; }

.cardicon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--amber-wash);
  color: var(--amber-ink);
  margin-bottom: .85rem;
}

.stat { text-align: left; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--amber-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__l { font-size: .95rem; color: var(--slate); margin-top: .35rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: s; display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before {
  content: counter(s);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Vehicle cards */
.vehcard { background: var(--surface); border: 1px solid var(--silver-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.vehcard__img { background: var(--paper); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.vehcard__img img { width: 100%; height: 100%; object-fit: contain; }
.vehcard__body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.vehcard__meta { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .93rem; color: var(--slate); display: grid; gap: .25rem; }
.vehcard__meta li { display: flex; gap: .5rem; align-items: center; }

/* Tables scroll inside their own box, never sideways-scroll the page. */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; border: 1px solid var(--silver-soft); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 460px; }
table.tbl th, table.tbl td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--silver-soft); }
table.tbl th { background: var(--paper); font-weight: 700; color: var(--ink); font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--silver-soft); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--amber-deep);
  border-bottom: 2.5px solid var(--amber-deep);
  transform: rotate(45deg);
  transition: transform .18s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 1.25rem 1.2rem; color: var(--slate); }

/* Suburb / area chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .95rem;
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}
.chips a:hover { border-color: var(--amber); color: var(--ink); background: var(--amber-wash); }

.callout {
  background: var(--amber-wash);
  border: 1px solid rgba(253,155,6,.28);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.callout p { font-size: .98rem; }

.entry { font-size: 1.06rem; }
.entry h2 { margin-top: 2.2rem; }
.entry h3 { margin-top: 1.6rem; }
.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.entry li { margin-bottom: .4em; }
/* Any rule that colours a bare `a` inside a component wrapper needs to spare
 * the buttons, or a link colour repaints a button label. */
.entry a:not(.btn) { color: var(--amber-ink); }

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--silver); }

/* Page hero for interior pages */
.phero { background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--silver-soft); padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem); }
.phero h1 { margin-bottom: .3em; }

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #B9B9C0; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
/* :not(.btn) so the footer's amber call button keeps its own label colour. */
.site-footer a:not(.btn) { color: #B9B9C0; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__brand img { height: 52px; width: auto; margin-bottom: .9rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .87rem; }

/* ---------------------------------------------------------------------------
 * Sticky action bar, phones only
 * ------------------------------------------------------------------------ */
.actionbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--silver);
  padding: .6rem .8rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
  gap: .55rem;
  box-shadow: 0 -4px 18px rgba(27,27,29,.09);
}
.actionbar .btn { flex: 1; padding: .7rem .6rem; font-size: .95rem; gap: .4rem; min-height: 46px; }

/* ---------------------------------------------------------------------------
 * Utilities. Spacing lives here, never in a style attribute.
 * ------------------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.narrow { max-width: 62ch; }
.center { text-align: center; }
.center .eyebrow, .center .lede { justify-content: center; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* The drawer renders the same nav tree as native accordions, closed by
   * default so every item plus the book button fits a 320x568 screen. */
  .drawer[open] { display: block; }
  .drawer {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 88;
    background: var(--surface);
    overflow-y: auto;
    padding: 1.25rem;
    padding-bottom: 6rem;
  }
  .drawer ul { list-style: none; margin: 0; padding: 0; }
  .drawer > ul > li { border-bottom: 1px solid var(--silver-soft); }
  .drawer a, .drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: .5rem .25rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
  }
  .drawer summary { list-style: none; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2.5px solid var(--amber-deep);
    border-bottom: 2.5px solid var(--amber-deep);
    transform: rotate(45deg);
    flex-shrink: 0;
  }
  .drawer details[open] > summary::after { transform: rotate(-135deg); }
  .drawer details ul { padding-left: .9rem; padding-bottom: .5rem; }
  .drawer details ul a { min-height: 46px; color: var(--slate); font-weight: 500; }
}

/* Touch targets keyed to width OR a coarse pointer, not a bare width: an iPad
 * at 768 needs them too, and headless Chromium reports `fine` even while
 * emulating a phone, so `coarse` alone can silently stop applying. */
@media (max-width: 1100px), (pointer: coarse) {
  .site-footer a:not(.btn), .chips a, .nav a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer ul { gap: .1rem; }
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .actionbar { display: flex; }
  body { padding-bottom: 74px; }
  .field-row { grid-template-columns: 1fr; }
  /* Date and time stay side by side at every width. Stacking them makes a
   * simple pair look like four unrelated questions. */
  .field-row--split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .wrap, .wrap--narrow { width: min(100% - 1.75rem, var(--wrap)); }
  .bookcard { padding: 1.05rem; border-radius: var(--radius); }
  .actionbar .btn { font-size: .92rem; padding: .7rem .5rem; }
  .docket__items li { font-size: .89rem; }
}

@media print {
  .site-header, .actionbar, .drawer, .site-footer { display: none !important; }
  body { padding-bottom: 0; }
}

.btnrow--center { justify-content: center; }
