/* Layout: Uber-style — black-and-white rhythm rebuilt in RideToGo navy + ice; booking card leads the hero,
   then service suggestions, earn band, app band, safety + phone booking, footer. Single light theme by choice. */
:root {
  --navy: #344461;        /* RideToGo brand navy (logo background) */
  --ink: #141C2B;         /* near-black, navy-biased, for text + dark bands */
  --ice: #EBF7FD;         /* RideToGo brand ice-white (logo mark) */
  --paper: #FFFFFF;
  --mist: #F2F5F9;        /* neutral panels, navy-biased grey */
  --line: #DCE3EC;
  --muted: #5B6779;
  --brand: #344461;       /* RideToGo navy: header, footer, dark bands, main buttons */
  --brand-deep: #283650;  /* hover on navy */
  --brand-soft: #C9D3E3;  /* text on navy */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --r: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--brand); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--brand); color: var(--paper); }
.btn-dark:hover { background: var(--brand-deep); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--ice); }
.btn-soft { background: var(--mist); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.link-u { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--brand); color: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.mark { height: 26px; width: auto; }
.brand img.word { height: 13px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .top-right a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .top-right a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.menu-btn { display: none; background: transparent; border: 0; color: inherit; padding: 8px; border-radius: 10px; cursor: pointer; }
.menu-btn:hover { background: rgba(255,255,255,.14); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mnav { background: var(--brand-deep); }
.mnav .wrap { display: grid; gap: 2px; padding-block: 8px 14px; }
.mnav a { color: var(--paper); text-decoration: none; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-right { display: flex; align-items: center; gap: 4px; }
.top-right .signup { background: var(--paper); color: var(--ink); }
.top-right .signup:hover { background: var(--ice); }
.lang { font-weight: 600; letter-spacing: .04em; }
@media (max-width: 900px) { .nav { display: none; } .top .wrap { justify-content: space-between; } .top-right .hide-sm { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 901px) { .mnav { display: none !important; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-block: 56px 72px; }
.where { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 800; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab { border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; font: 600 15px var(--font-body); color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--brand); color: var(--paper); }
.tab:not([aria-selected="true"]):hover { background: var(--mist); color: var(--ink); }
.book { display: grid; gap: 10px; max-width: 460px; }
.field { position: relative; display: flex; align-items: center; gap: 12px; background: var(--mist); border: 2px solid transparent; border-radius: 10px; padding: 0 16px; min-height: 56px; }
.field:focus-within { border-color: var(--brand); background: var(--paper); }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--font-body); color: var(--ink); outline: none; height: 52px; }
.field input::placeholder { color: var(--muted); }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.pin.sq { border-radius: 2px; }
.route-line { position: absolute; left: 20px; top: 46px; width: 2px; height: 32px; background: var(--brand); }
.when { display: flex; gap: 10px; }
.when .field { flex: 1; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.book-note { font-size: 14px; color: var(--muted); min-height: 1.5em; }
.hero-art { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; background: var(--navy); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-badge { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(20,28,43,.25); max-width: 360px; }
.hero-badge .eta { font: 800 22px var(--font-display); }
.hero-badge small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 48px; } .hero-art { order: -1; aspect-ratio: 16 / 10; } }

/* Section scaffolding */
section { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }

/* Suggestions (Uber-style cards) */
.sugg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--mist); border-radius: var(--r); padding: 20px; display: flex; justify-content: space-between; gap: 12px; min-height: 140px; text-decoration: none; transition: background .15s; }
.card:hover { background: var(--line); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.card .go { display: inline-block; background: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.card .ill { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex: none; align-self: center; }
.card .ill img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sugg { grid-template-columns: minmax(0, 1fr); } }

/* Split feature rows */
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip .media { order: 2; }
.split .media { border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.05; margin-bottom: 16px; }
.split p { color: var(--muted); max-width: 52ch; margin: 0 0 26px; font-size: 17px; }
.split .row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
@media (max-width: 900px) { .split .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split.flip .media { order: 0; } }

/* Dark earn band */
.band { background: var(--brand); color: var(--paper); }
.band p { color: var(--brand-soft); }
.band .stats { display: flex; gap: 32px; margin: 0 0 28px; flex-wrap: wrap; }
.band .stats div { border-left: 2px solid var(--ice); padding-left: 14px; }
.band .stats b { display: block; font: 800 26px var(--font-display); color: var(--ice); }
.band .stats span { font-size: 14px; color: var(--brand-soft); }

/* Ride options */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opt { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.opt .pic { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--mist); }
.opt .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opt .pic.contain img { object-fit: contain; padding: 12px; }
.opt .body { padding: 18px 20px 22px; }
.opt h3 { font-size: 20px; margin-bottom: 4px; }
.opt p { margin: 0; color: var(--muted); font-size: 15px; }
.opt .meta { margin-top: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .opts { grid-template-columns: minmax(0, 1fr); } }

/* Phone booking */
.call { background: var(--ice); }
.call .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.call h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.call p { margin: 0 0 20px; color: var(--muted); max-width: 50ch; }
.phone { display: inline-flex; align-items: center; gap: 12px; font: 800 clamp(28px, 4vw, 40px) var(--font-display); color: var(--navy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.copy { font: 600 14px var(--font-body); border: 1px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) { .call .wrap { grid-template-columns: minmax(0, 1fr); } }

/* App download */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; }
.app:hover { background: var(--mist); }
.app .ic { width: 64px; height: 64px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; flex: none; }
.app .ic img { width: 38px; }
.app h3 { font-size: 20px; }
.app p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.app .arrow { margin-left: auto; font-size: 22px; }
@media (max-width: 700px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer { background: var(--brand); color: var(--brand-soft); padding-block: 56px 32px; font-size: 15px; }
footer.foot { background: linear-gradient(180deg, rgba(52,68,97,.95) 0%, rgba(52,68,97,.88) 50%, rgba(52,68,97,.70) 100%), var(--city, none) center 65% / cover no-repeat, var(--brand); }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-top .brand img.mark { height: 30px; }
.foot-top .brand img.word { height: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.foot-cols h4 { color: var(--paper); font: 700 16px var(--font-display); margin: 0 0 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--paper); text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a { text-decoration: none; }
@media (max-width: 800px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* additions for the PHP version */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.hero { padding: 0; }
section.tight-top { padding-top: 16px; }
section.no-top { padding-top: 0; }
.opt.plain { border: 0; background: var(--paper); }
.opt.plain p { margin: 8px 0 14px; }
.app .ic.dark { background: var(--brand-deep); }
.link-u.light { color: var(--paper); }
.phone a { text-decoration: none; color: inherit; }
.ios-note { margin: 14px 0 0; font-size: 15px; }
.top-right a { white-space: nowrap; }
@media (max-width: 420px) { .top .wrap { gap: 10px; } .top-right a { padding: 8px 10px; font-size: 14px; } .brand img.word { height: 11px; } }

/* address suggestions (rtg-places.js) */
.rtg-sug { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(20,30,50,.16); max-height: 360px; overflow-y: auto; }
.rtg-sug li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.rtg-sug li b { font: 600 15px var(--font-body); color: var(--ink); }
.rtg-sug li span { font-size: 13px; color: var(--muted); }
.rtg-sug li:hover, .rtg-sug li[aria-selected="true"] { background: var(--mist); }
.rtg-sug li.none { cursor: default; color: var(--muted); }
.book .field:focus-within { z-index: 5; }
