/* mapmagpie.com. Colours come from the logo: the magpie's ink and wing
   blue, the map's greens, and the red / blue / yellow transit lines.
   System fonts only: nothing is fetched from a third party. */

:root {
  --ink: #14181d;
  --ink-soft: #4a5560;
  --paper: #f6f8f4;
  --surface: #ffffff;
  --line: #dfe5dc;
  --wing: #1f5fbf;
  --wing-deep: #17478f;
  --route-red: #e2483d;
  --route-blue: #2e7fe0;
  --route-yellow: #f2b632;
  --land: #e3f2d3;
  --park: #bfe39a;
  --river: #9fd3f2;
  --road: #ffffff;
  --tint: #edf3e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 24 29 / 6%), 0 8px 24px rgb(20 24 29 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eef2;
    --ink-soft: #a9b4be;
    --paper: #0f1216;
    --surface: #171c22;
    --line: #29313a;
    --wing: #5b9cf2;
    --wing-deep: #8ab8f6;
    --land: #1b2a1f;
    --park: #23402a;
    --river: #1d3b52;
    --road: #2a3540;
    --tint: #141a1f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--wing); text-underline-offset: 3px; }
a:hover { color: var(--wing-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-soft); }

.draft {
  background: var(--route-yellow);
  color: #2b2100;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.brand img { filter: drop-shadow(0 2px 4px rgb(0 0 0 / 18%)); }
.site-header nav { margin-inline-start: auto; }
.site-header nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; }
.site-header nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-quiet { color: var(--ink-soft); text-decoration: none; font-weight: 550; }

@media (max-width: 820px) {
  .site-header nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
/* On a phone the header keeps the logo and the one action; Sign in is in
   the footer too. */
@media (max-width: 480px) {
  .header-actions .link-quiet { display: none; }
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--wing);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--wing-deep); color: #fff; transform: translateY(-1px); }
.button.small { padding: 8px 16px; font-size: 0.95rem; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .button { color: #0f1216; }
  .button:hover { color: #0f1216; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  font-weight: 700; color: var(--wing); margin-bottom: 14px;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-note { margin: 14px 0 0; font-size: 0.95rem; }

.hero-map { position: relative; margin: 0; }
.hero-map svg { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }
.hero-bird {
  position: absolute; width: 34%; right: -4%; bottom: -10%;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 22%));
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bird { width: 28%; right: 2%; }
}

.m-land { fill: var(--land); }
.m-park { fill: var(--park); }
.m-river { fill: none; stroke: var(--river); stroke-width: 22; stroke-linecap: round; }
.m-roads path { fill: none; stroke: var(--road); stroke-width: 6; opacity: 0.9; }
.m-line { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.m-line.red { stroke: var(--route-red); }
.m-line.blue { stroke: var(--route-blue); }
.m-line.yellow { stroke: var(--route-yellow); }
.m-stops circle { fill: #fff; stroke: #1b2026; stroke-width: 3.5; }
.m-stops .hub { stroke-width: 4.5; }

.bus { stroke: #fff; stroke-width: 3; offset-rotate: 0deg; animation: drive 14s linear infinite; }
.bus-red { fill: #9d2a21; offset-path: path("M40 380 L150 300 L150 210 L280 140 L430 140 L520 60"); }
.bus-blue { fill: #144f96; offset-path: path("M20 90 L180 90 L280 140 L360 250 L540 250"); animation-duration: 11s; animation-delay: -4s; }
.bus-yellow { fill: #a87700; offset-path: path("M220 400 L280 320 L280 140 L330 60 L420 30"); animation-duration: 9s; animation-delay: -2s; }
.bus.late { animation-delay: -8s; }
@keyframes drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .bus { animation: none; offset-distance: 45%; }
  .bus.late { offset-distance: 80%; }
}

/* Standards strip */
.standards { border-block: 1px solid var(--line); background: var(--surface); }
.standards .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 18px; }
.standards p { margin: 0; font-weight: 650; color: var(--ink-soft); }
.standards ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.standards li {
  font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--line);
}

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.tinted { background: var(--tint); }
.section-title { text-align: center; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; }
.card.plain { box-shadow: none; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--wing) 14%, transparent); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--wing); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg circle { fill: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { position: relative; padding-top: 8px; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--route-red); color: #fff; font-weight: 750; margin-bottom: 14px;
  box-shadow: 0 0 0 5px var(--tint), 0 0 0 7px var(--route-red);
}
.steps li:nth-child(2) .step-no { background: var(--route-blue); box-shadow: 0 0 0 5px var(--tint), 0 0 0 7px var(--route-blue); }
.steps li:nth-child(3) .step-no { background: var(--route-yellow); color: #2b2100; box-shadow: 0 0 0 5px var(--tint), 0 0 0 7px var(--route-yellow); }
.steps p { color: var(--ink-soft); }

.open-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.open-grid p { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 820px) { .open-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 16px 18px 16px 50px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--park);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--park) 40%, #2f7a2f);
}

.closing { padding: 0 0 clamp(56px, 8vw, 96px); }
.closing-box {
  text-align: center; border-radius: 28px; padding: clamp(36px, 6vw, 64px) 24px;
  background: linear-gradient(135deg, var(--wing-deep), var(--wing));
  color: #fff;
}
.closing-box p { color: rgb(255 255 255 / 85%); }
.closing-box .button { background: #fff; color: var(--wing-deep); }
.closing-box .button:hover { background: #eef4ff; color: var(--wing-deep); }
.closing-demo { margin: 18px 0 0; }
.closing-demo a { color: #fff; font-weight: 550; }
@media (prefers-color-scheme: dark) {
  .closing-box { background: linear-gradient(135deg, #17345e, #1f4f8f); }
}

/* Plain pages */
.page { padding: clamp(40px, 6vw, 72px) 0 80px; max-width: 760px; }
.page-head { margin-bottom: 32px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
/* "Book a walkthrough" links to /contact/#book: clear the sticky header. */
.booking { scroll-margin-top: 88px; }
.booking h2 { margin-top: 0; }
.notice {
  display: inline-block; font-size: 0.9rem; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--route-yellow) 25%, transparent); border: 1px solid var(--route-yellow);
}
.not-found { text-align: center; margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--wing); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-base a { color: inherit; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
