/* Cadence design kit v1, style "Warm", standard text. Cadence writes this file: put the app's own styles in its own stylesheet. */
:root { --bg: #fbf6ef; --surface: #fffdf9; --ink: #2b1d14; --muted: #6a5546; --line: #eadfd2; --accent: #a63d1c; --accent-ink: #ffffff; --accent-strong: #a63d1c; --soft: #f8e6dc; --r: 20px; --font: ui-rounded, 'SF Pro Rounded', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --base: 16px; --tap: 44px; --focus: #a63d1c; --ok: #1f7a4d; --warn: #9a5b00; --danger: #b42318; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18); --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .28); color-scheme: light; }

/* Cadence design kit: components every web app Cadence builds starts from.
   Mobile first (a 390px phone), then tablets and desktops. The colours, corner radius, font and
   sizes come from the style the owner approved (the :root block Cadence writes above this one).
   App-specific styles go in the app's own stylesheet, loaded after this file. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); font-weight: 760; }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.c-muted { color: var(--muted); }
.c-small { font-size: .875rem; }
.c-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .6rem; }
.c-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.c-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.c-section { padding: 32px 0; }
.c-section--tight { padding: 16px 0; }
.c-stack > * + * { margin-top: 16px; }
.c-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.c-row--between { justify-content: space-between; }
.c-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.c-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.c-split { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) {
  .c-container { padding: 0 24px; }
  .c-grid--2, .c-grid--3, .c-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .c-section { padding: 48px 0; }
}
@media (min-width: 960px) {
  .c-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .c-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .c-split { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; }
  .c-section { padding: 64px 0; }
}

/* Top bar: sticky, the app's name on the left, links or one action on the right */
.c-appbar {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.c-appbar__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.c-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 1.08rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.c-brand__mark { width: 34px; height: 34px; border-radius: calc(var(--r) * .6); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .95rem; }
.c-appbar__nav { display: none; margin-left: auto; gap: 4px; }
.c-appbar__nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.c-appbar__nav a:hover { color: var(--ink); background: var(--soft); }
.c-appbar__nav a[aria-current="page"] { color: var(--accent-strong); background: var(--soft); }
.c-appbar__action { margin-left: auto; }
@media (min-width: 768px) { .c-appbar__nav { display: flex; } .c-appbar__nav + .c-appbar__action { margin-left: 8px; } }

/* Bottom tabs: the screens' navigation on phones (hidden on wider screens, where the top bar has it) */
.c-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.c-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: var(--tap); justify-content: center; padding: 4px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 650; }
.c-tabs a svg { width: 22px; height: 22px; }
.c-tabs a[aria-current="page"] { color: var(--accent-strong); background: var(--soft); }
body:has(.c-tabs) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .c-tabs { display: none; } body:has(.c-tabs) { padding-bottom: 0; } }

/* Screens: one page, one screen at a time (cadence.js shows the one named in the address, #name) */
[data-screen][hidden] { display: none !important; }
[data-screen] { animation: c-fade .22s ease both; }
@keyframes c-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero: the first thing people see */
.c-hero { position: relative; overflow: hidden; padding: 40px 0 32px; background:
  radial-gradient(1100px 420px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
  linear-gradient(180deg, var(--soft), var(--bg)); }
.c-hero--dark { background: radial-gradient(900px 420px at 80% 0%, color-mix(in srgb, var(--accent) 55%, #000), #0d0e11 70%); color: #f7f5f0; }
.c-hero--dark .c-muted, .c-hero--dark p { color: rgba(247, 245, 240, .78); }
.c-hero--image { background-size: cover; background-position: center; color: #fff; }
.c-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.c-hero--image > * { position: relative; }
.c-hero p.c-lead, .c-lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.c-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.c-hero__media { margin-top: 24px; border-radius: calc(var(--r) * 1.4); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .c-hero { padding: 72px 0 56px; } .c-hero .c-split { align-items: center; } .c-hero__media { margin-top: 0; } }

/* Cards */
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.c-card--flat { box-shadow: none; }
.c-card--soft { background: var(--soft); border-color: transparent; box-shadow: none; }
.c-card--link { display: block; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.c-card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.c-card__media { margin: -20px -20px 16px; aspect-ratio: 16 / 10; background: var(--soft); border-radius: var(--r) var(--r) 0 0; overflow: hidden; display: grid; place-items: center; color: var(--accent-strong); }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; }
.c-card__title { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.c-card__meta { color: var(--muted); font-size: .9rem; }
.c-icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent-strong); margin-bottom: 12px; }
.c-icon-tile svg { width: 22px; height: 22px; }

/* Buttons */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.c-btn:hover { transform: translateY(-1px); }
.c-btn:active { transform: translateY(0); }
.c-btn[disabled], .c-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.c-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.c-btn--ghost { background: transparent; color: var(--accent-strong); box-shadow: none; }
.c-btn--block { width: 100%; }
.c-btn--lg { min-height: calc(var(--tap) + 8px); padding: 0 28px; font-size: 1.05rem; }
.c-btn svg { width: 18px; height: 18px; }
.c-btn.is-loading { pointer-events: none; opacity: .8; }
.c-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: c-spin .7s linear infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }

/* Forms */
.c-field { display: grid; gap: 6px; margin-bottom: 16px; }
.c-field > label, .c-label { font-weight: 650; font-size: .95rem; }
.c-hint { color: var(--muted); font-size: .85rem; }
.c-input, .c-field input:not([type="checkbox"]):not([type="radio"]), .c-field select, .c-field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: calc(var(--r) * .7); transition: border-color .15s ease, box-shadow .15s ease;
}
.c-field textarea { min-height: 110px; resize: vertical; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus, .c-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.c-field [aria-invalid="true"] { border-color: var(--danger); }
.c-error-text { color: var(--danger); font-size: .85rem; font-weight: 600; }
.c-input-icon { position: relative; }
.c-input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.c-input-icon > input { padding-left: 42px !important; }
.c-form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.c-check { display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap); padding: 10px 0; }
.c-check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }

/* Choice cards: pick one option (a ride, a plan, a time) with big tap targets */
.c-choices { display: grid; gap: 10px; }
.c-choice { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.c-choice input { position: absolute; opacity: 0; pointer-events: none; }
.c-choice:has(input:checked) { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.c-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.c-choice__body { flex: 1; min-width: 0; }
.c-choice__title { font-weight: 700; }
.c-choice__price { font-weight: 760; white-space: nowrap; }
.c-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.c-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.c-chip[aria-pressed="true"], .c-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Steps: a flow in parts (Where, When, Ride, Confirm). cadence.js moves between them. */
.c-steps__bar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: c-step; }
.c-steps__bar li { flex: 1; counter-increment: c-step; font-size: .78rem; font-weight: 650; color: var(--muted); }
.c-steps__bar li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; transition: background .2s ease; }
.c-steps__bar li.is-done::before, .c-steps__bar li[aria-current="step"]::before { background: var(--accent); }
.c-steps__bar li[aria-current="step"] { color: var(--ink); }
[data-c-step][hidden] { display: none !important; }
[data-c-step] { animation: c-fade .2s ease both; }
.c-steps__nav { display: flex; gap: 10px; margin-top: 20px; }
.c-steps__nav [data-c-next], .c-steps__nav [data-c-submit] { flex: 1; }

/* Summary: the live total, route or order that stays in view (sticky on desktop) */
.c-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .c-summary { position: sticky; top: 84px; } }
.c-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.c-summary__row:last-of-type { border-bottom: 0; }
.c-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-weight: 760; font-size: 1.25rem; }

/* Lists of entries */
.c-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.c-list > li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-height: calc(var(--tap) + 12px); }
.c-list > li:last-child { border-bottom: 0; }
.c-list a { color: inherit; text-decoration: none; }
.c-list__body { flex: 1; min-width: 0; }
.c-list__title { font-weight: 650; }
.c-list__meta { color: var(--muted); font-size: .88rem; }
.c-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 750; overflow: hidden; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-search { display: flex; gap: 8px; margin-bottom: 16px; }
.c-search .c-input-icon { flex: 1; }

/* Small things */
.c-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--accent-strong); }
.c-badge--ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.c-badge--warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.c-badge--danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.c-price { font-weight: 780; font-size: 1.15rem; }
.c-rating { color: #d99a00; letter-spacing: 1px; font-size: .95rem; }
.c-divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.c-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.c-stat__label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.c-stat__value { font-size: 1.9rem; font-weight: 780; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.c-stat__delta { font-size: .85rem; font-weight: 650; color: var(--ok); }
.c-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.c-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.c-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.c-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.c-table tr:last-child td { border-bottom: 0; }
.c-gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.c-gallery > * { aspect-ratio: 1; border-radius: calc(var(--r) * .7); overflow: hidden; background: var(--soft); }
.c-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .c-gallery { grid-template-columns: repeat(4, 1fr); } }
.c-quote { font-size: 1.05rem; }
.c-quote footer { margin-top: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.c-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.c-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 32px; align-items: center; }
.c-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.c-faq details[open] summary::after { content: "–"; }
.c-faq details p { margin: 10px 0 0; color: var(--muted); }

/* States: loading, empty, error and success, always in plain words */
.c-empty { text-align: center; padding: 36px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.c-empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--accent-strong); opacity: .8; }
.c-empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.c-skeleton { border-radius: 10px; min-height: 18px; background: linear-gradient(90deg, var(--soft) 25%, color-mix(in srgb, var(--soft) 50%, var(--surface)) 37%, var(--soft) 63%); background-size: 400% 100%; animation: c-shimmer 1.3s ease infinite; }
@keyframes c-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.c-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: calc(var(--r) * .8); background: var(--soft); border: 1px solid var(--line); }
.c-alert--ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.c-alert--error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.c-alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.c-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 650; box-shadow: var(--shadow-lg); transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: calc(100vw - 32px); }
.c-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .c-toast { bottom: 28px; } }

/* Map: cadence.js draws it with Leaflet and OpenStreetMap, or shows the addresses when the map can't load */
.c-map { position: relative; width: 100%; height: 280px; border-radius: var(--r); overflow: hidden; background:
  linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--soft) 40%, var(--surface))); border: 1px solid var(--line); }
@media (min-width: 960px) { .c-map { height: 380px; } }
.c-map--tall { height: 420px; }
.c-map__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: .92rem; }
.c-map__fallback strong { display: block; color: var(--ink); }
.c-map .leaflet-container { font: inherit; }
.c-map-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 4px 10px rgba(0,0,0,.3); display: grid; place-items: center; }
.c-map-pin span { transform: rotate(45deg); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.c-route { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-weight: 650; }
.c-route span { display: inline-flex; gap: 6px; align-items: center; }

/* Footer */
.c-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .9rem; background: var(--surface); }
.c-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
