/* ===== Colours & sizes — change these to restyle the whole site ===== */
:root {
  --black: #171717;        /* page background */
  --grey: #444444;         /* glass tint, borders */
  --red: #DA0037;          /* urgent: collision, accident, roadside, call buttons */
  --white: #EDEDED;        /* text */
  --muted: #b3b3b3;        /* secondary text */
  --glass: rgba(68, 68, 68, .38);
  --glass-hover: rgba(68, 68, 68, .55);
  --glass-line: rgba(237, 237, 237, .14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font: 17px/1.55 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position: relative;
  isolation: isolate;
}
/* Soft blurred colour glow behind the glass */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 0% 0%, rgba(218, 0, 55, .30), transparent 60%),
    radial-gradient(30rem 26rem at 100% 55%, rgba(68, 68, 68, .85), transparent 65%),
    radial-gradient(34rem 26rem at 10% 100%, rgba(218, 0, 55, .16), transparent 60%),
    var(--black);
}

h1, h2, h3 { font-family: Montserrat, system-ui, Arial, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* Reusable glass surface */
.glass, .card, .row, .topbar {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ----- Top bar (inner pages) ----- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  border-width: 0 0 1px;
}
.topbar-inner {
  max-width: 900px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: -8px;
  border-radius: 50%; color: var(--white); text-decoration: none;
}
.back:hover { background: var(--glass-hover); }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); min-height: 44px; }
.logo img { display: block; height: 30px; width: auto; }
.logo-text { font-family: Montserrat, Arial, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 1rem; line-height: 1.2; }
.logo-text small { display: block; font-weight: 400; font-size: .62rem; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }

/* ----- Home header ----- */
.hero { max-width: 640px; width: 100%; margin: 0 auto; padding: 44px 20px 8px; }
.hero .logo img { width: min(340px, 100%); height: auto; }
.hero .logo-text { font-size: 1.5rem; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ----- Page body ----- */
main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 24px 16px 40px; }
.narrow { max-width: 720px; }
.home { max-width: 640px; padding-top: 20px; }
.lead { color: var(--muted); font-size: 1.05rem; }

/* ----- Home: glass rows ----- */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  display: flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 14px 16px;
  border-radius: var(--radius); text-decoration: none;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.row:hover { background: var(--glass-hover); border-color: rgba(237,237,237,.24); }
.row:active { transform: scale(.985); }
.row .icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(237, 237, 237, .12); color: var(--white); flex: none;
}
.row.urgent .icon { background: var(--red); color: #fff; }
.row .label { font: 600 1.02rem/1.25 Montserrat, Arial, sans-serif; }
.row .label small { display: block; margin-top: 2px; font: 400 .85rem/1.3 "Source Sans 3", sans-serif; color: var(--muted); }
.row .chev { margin-left: auto; color: var(--muted); }

/* Desktop: two columns of rows */
@media (min-width: 900px) {
  .hero, .home { max-width: 900px; }
  .rows { grid-template-columns: 1fr 1fr; gap: 16px; }
  .row { min-height: 92px; padding: 18px 20px; }
}

/* ----- Cards & buttons ----- */
.card { border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.actions { display: grid; gap: 10px; margin: 0 0 16px; }
@media (min-width: 560px) { .actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 18px; border-radius: 14px;
  background: var(--white); color: var(--black); text-decoration: none;
  font: 600 1rem Montserrat, Arial, sans-serif;
  border: 1px solid var(--white); cursor: pointer;
  transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(.92); }
.btn.urgent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.urgent:hover { filter: brightness(1.12); }
.btn.outline {
  background: var(--glass); color: var(--white); border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.btn.outline:hover { background: var(--glass-hover); filter: none; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--glass-line); }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row svg { color: var(--muted); margin-top: 2px; }
.info-row ul { list-style: none; margin: 0; padding: 0; }
.info-row a { color: inherit; }

/* Numbered steps (accident tips) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 8px; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 52px; margin: 0 0 22px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--white);
  font: 600 1rem Montserrat, Arial, sans-serif;
}
.steps h2 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p, .steps ul { margin: 0; color: #d6d6d6; }
.steps ul { padding-left: 1.1em; }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(218, 0, 55, .16); border: 1px solid rgba(218, 0, 55, .55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: var(--radius); padding: 16px; margin: 0 0 20px;
}
.alert svg { color: #ff4d73; }
.alert p { margin: 0; }

/* FAQ accordion */
details { border-top: 1px solid var(--glass-line); }
details:first-of-type { border-top: 0; }
summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative;
  font: 600 1rem/1.35 Montserrat, Arial, sans-serif;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--muted);
}
details[open] summary::after { content: "–"; color: var(--red); }
details > div { padding: 0 0 16px; color: #d6d6d6; }

.checklist { padding-left: 1.2em; margin: 0; }
.checklist li { margin: 0 0 6px; }
.checklist li::marker { color: var(--red); }

/* Placeholder highlight: anything still needing real info */
.todo { background: #fff3b0; outline: 1px dashed #c9a400; border-radius: 4px; padding: 0 4px; color: #4a3b00; }

/* ----- Footer ----- */
footer { border-top: 1px solid var(--glass-line); padding: 20px 16px 28px; text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 2px 0; }
footer strong { color: var(--white); font-family: Montserrat, Arial, sans-serif; }

/* Brand logos used as icons */
.row .icon .brand-icon { width: 28px; height: auto; display: block; }
.row .icon .brand-icon.rings { width: 34px; }

/* Book-a-service location cards */
.loc .loc-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 30px; margin: 0 0 16px; }
.loc .loc-logo img { height: 22px; width: auto; max-width: 100%; }
.pill { font: 600 .78rem Montserrat, Arial, sans-serif; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: rgba(237,237,237,.14); border: 1px solid var(--glass-line); }
.loc .actions { margin: 0; }

/* Single-column button stack, kept to a comfortable width */
.actions.stack { grid-template-columns: 1fr; max-width: 460px; }
.btn.big { min-height: 64px; font-size: 1.05rem; }
.btn.big span { text-align: left; line-height: 1.2; }
.btn.big small { display: block; font: 600 .95rem "Source Sans 3", sans-serif; opacity: .9; margin-top: 2px; }

/* Roadside brand logo */
.brand-hero { margin: 4px 0 16px; }
.brand-hero img { display: block; height: auto; }

/* Accident tips without headings */
.steps > li { min-height: 36px; padding-top: 4px; }
.steps a { color: #ff6b8b; }

/* Older browsers without blur: use a solid tint instead */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .row, .topbar, .btn.outline { background: #2a2a2a; }
}

/* ----- Fade-up animation when a page loads ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.fade-up {
  animation: fadeUp .55s cubic-bezier(.22, .61, .36, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
/* People who turn off motion in their phone settings see no animation */
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
