/* RideMoris landing page. Mobile-first; breakpoints at 600px, 900px and 1100px. */

/* Inter, self-hosted (latin subset, variable 400–800) + an Arial fallback sized to match,
   so text paints immediately and doesn't shift when Inter arrives. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

:root {
  --blue-950: #041e31;
  --blue-900: #062b45;
  --blue-800: #08406a;
  --blue-700: #0a4f7a;
  --blue-600: #0b5c8e;
  --blue-100: #e3f0f8;
  --yellow: #ffd23f;
  --yellow-600: #f5c000;
  --green: #12a150;
  --green-700: #0d8a43;
  --whatsapp: #1fa855;
  --ink: #10202e;
  --muted: #566778;
  --line: #e1e8ee;
  --bg: #ffffff;
  --bg-soft: #f2f6f9;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(6 43 69 / 6%), 0 8px 24px rgb(6 43 69 / 8%);
  --header-h: 60px;
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, 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 { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow-600); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 24px; } }
.center { text-align: center; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--blue-900); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* Service variants: html[data-service] decides which copy is shown */
[data-for="transfer"] { display: none !important; }
html[data-service="transfer"] [data-for="transfer"] { display: revert !important; }
html[data-service="transfer"] [data-for="car"] { display: none !important; }
html[data-service="transfer"] .hero-copy[data-for="transfer"],
html[data-service="transfer"] .secondary-copy[data-for="transfer"] { display: block !important; }
html[data-service="transfer"] .benefit-grid[data-for="transfer"] { display: grid !important; }
html[data-service="transfer"] .trust-strip[data-for="transfer"] { display: grid !important; }
html[data-service="transfer"] .hero-cars { display: none; }
html[data-service="transfer"] .hero-switch[data-for="transfer"],
html[data-service="transfer"] .sticky-cta [data-for="transfer"] { display: flex !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 10px; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-transfer { background: var(--blue-600); color: #fff; }
.btn-transfer:hover { background: var(--blue-800); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--yellow); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178d46; }
.btn-ghost { border-color: var(--line); color: var(--blue-900); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-600); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; }
.logo-text { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue-900); }
.logo-text span { color: var(--blue-600); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text span { color: var(--yellow); }
.header-phone { display: none; align-items: center; gap: 10px; color: var(--blue-900); text-decoration: none; font-weight: 700; }
.header-phone .icon { width: 28px; height: 28px; color: var(--whatsapp); }
.header-phone small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.header-phone:hover { color: var(--blue-600); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; color: var(--blue-900); cursor: pointer; border-radius: 10px; }
.menu-toggle .icon { width: 28px; height: 28px; }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgb(6 43 69 / 14%); padding: 8px 16px 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--blue-900); }
.mobile-menu ul a .icon { color: var(--blue-600); }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) {
  .header-phone { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { background: var(--blue-600); color: #fff; padding: 18px 0 22px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero h1 { font-size: clamp(22px, 6vw, 46px); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.hero h1 .hl { display: block; color: var(--yellow); font-size: 1.24em; margin-bottom: 4px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.hero-checks li, .trust-strip li { display: flex; align-items: center; gap: 8px; }
.hero-checks li { gap: 5px; }
.hero-checks .icon { color: var(--yellow); stroke-width: 3; }
.hero-cars { display: none; flex: none; }
.hero-cars img { width: 420px; }

.booking-box { margin-top: 16px; background: var(--yellow); border-radius: var(--radius); padding: 8px; box-shadow: 0 10px 30px rgb(4 30 49 / 25%); }
/* The partner widget's calendar and time menus are absolutely positioned and open below the form,
   outside this box: no overflow clipping here, and a layer that keeps them above the sections that
   follow while staying under the sticky header (z-index 50). */
.booking-box, .secondary-booking { position: relative; z-index: 2; }
.widget-slot { position: relative; min-height: 470px; background: #fff; border-radius: 9px; color: var(--ink); }
.widget-slot.is-ready { min-height: 0; }
.widget-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.widget-slot.is-ready .widget-loading { display: none; }
.widget-slot.is-error .widget-loading { color: var(--ink); padding: 24px; text-align: center; }
.widget-slot.is-flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgb(18 161 80 / 0%); } 25% { box-shadow: 0 0 0 6px rgb(18 161 80 / 45%); } 100% { box-shadow: 0 0 0 0 rgb(18 161 80 / 0%); } }
.booking-note { display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; font-size: 13px; font-weight: 500; color: var(--blue-900); line-height: 1.35; }

.trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 18px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.trust-strip .icon { color: var(--yellow); width: 20px; height: 20px; }
.hero-switch { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 22%); color: #fff; text-decoration: none; font-size: 15px; line-height: 1.35; }
.hero-switch strong { color: var(--yellow); }
.hero-switch span { flex: 1; }
.hero-switch:hover { background: rgb(255 255 255 / 16%); }

@media (min-width: 600px) {
  .hero-checks { gap: 6px 22px; margin-top: 16px; font-size: 16px; }
  .trust-strip { grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 28px; font-size: 15px; }
}
@media (min-width: 900px) {
  .hero { padding: 34px 0 30px; }
  .hero-cars { display: block; }
  .booking-box { margin-top: 22px; padding: 12px; }
  .widget-slot { min-height: 400px; }
  .booking-note { padding: 10px 6px 0; font-size: 14px; }
  html[data-service="car"] .trust-strip[data-for="car"],
  html[data-service="transfer"] .trust-strip[data-for="transfer"] { display: flex !important; flex-wrap: wrap; justify-content: space-between; }
  .hero-switch { display: inline-flex; width: auto; }
}
@media (min-width: 1100px) {
  .hero-cars img { width: 500px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head h2, .explore-copy h2, .secondary h2 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; color: var(--blue-900); }
.eyebrow { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.eyebrow-light { color: var(--yellow); }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Benefits */
.benefits { background: var(--bg-soft); }
.benefit-grid { display: grid; gap: 14px; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.benefit-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); }
.benefit-icon .icon { width: 24px; height: 24px; }
.benefit h3 { font-size: 17px; color: var(--blue-900); align-self: end; }
.benefit p { color: var(--muted); font-size: 15px; }
@media (min-width: 600px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .benefit { display: block; padding: 26px; }
  .benefit-icon { margin-bottom: 16px; width: 52px; height: 52px; }
  .benefit h3 { margin-bottom: 6px; font-size: 19px; }
}

/* Cars: swipeable row on mobile, 3 per line from 900px */
.car-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: thin; }
.car-card { scroll-snap-align: center; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.car-card picture { background: linear-gradient(180deg, #f5f8fb 0%, #e8eef3 100%); padding: 10px 14px 0; }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.car-tag { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: var(--blue-100); color: var(--blue-700); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.car-card h3 { margin: 10px 0 10px; font-size: 20px; color: var(--blue-900); }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; color: var(--muted); font-size: 14px; font-weight: 500; }
.car-specs li { display: flex; align-items: center; gap: 6px; }
.car-specs .icon { width: 17px; height: 17px; color: var(--blue-600); }
.car-card .btn { margin-top: auto; }
.cars-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 600px) { .car-grid { grid-auto-columns: 46%; padding: 4px 24px 18px; margin: 0 -24px; } }
@media (min-width: 900px) {
  .car-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 22px; overflow: visible; padding: 0; margin: 0; }
  .car-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
}

/* Steps */
.steps-section { background: var(--bg-soft); }
.steps { display: grid; gap: 14px; margin-bottom: 32px; counter-reset: s; }
.steps li { position: relative; padding: 22px 20px 22px 76px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--blue-900); font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .steps li { padding: 28px; }
  .step-num { position: static; margin-bottom: 16px; width: 48px; height: 48px; }
}

/* Explore */
.explore-inner { display: grid; gap: 28px; }
.explore-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.explore-copy h2 { margin-bottom: 22px; }
.explore-list { display: grid; gap: 18px; margin-bottom: 28px; }
.explore-list li { display: flex; gap: 14px; }
.explore-list .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--blue-600); }
.explore-list h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 2px; }
.explore-list p { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .explore-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .explore-media img { aspect-ratio: 4 / 5; }
}

/* Secondary service */
.secondary { background: var(--blue-900) radial-gradient(1200px 500px at 85% -10%, rgb(11 92 142 / 70%), transparent 70%); color: #fff; }
.secondary h2 { color: #fff; }
.secondary-inner { display: grid; gap: 28px; }
.secondary-lead { margin-top: 14px; font-size: 17px; color: rgb(255 255 255 / 85%); }
.mini-steps { display: grid; gap: 12px; margin-top: 22px; counter-reset: ms; }
.mini-steps li { position: relative; padding-left: 40px; color: rgb(255 255 255 / 85%); font-size: 15px; }
.mini-steps li::before { counter-increment: ms; content: counter(ms); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--blue-900); font-weight: 800; font-size: 14px; }
.mini-checks li::before { content: "✓"; }
.mini-steps strong { color: #fff; }
.secondary-booking { background: var(--yellow); padding: 8px; border-radius: var(--radius); }
.widget-slot-light { min-height: 640px; }
@media (min-width: 900px) {
  .secondary-inner { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .secondary-copy { position: sticky; top: calc(var(--header-h) + 32px); }
  .secondary-booking { padding: 12px; }
  .widget-slot-light { min-height: 520px; }
}

/* FAQ */
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--blue-600); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; color: var(--blue-900); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-600); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.final-cta { position: relative; isolation: isolate; padding: 80px 0; color: #fff; text-align: center; overflow: hidden; }
.final-bg, .final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 30 49 / 55%), rgb(4 30 49 / 75%)); }
.final-cta h2 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; }
.final-cta p { margin: 12px auto 28px; max-width: 560px; font-size: 18px; color: rgb(255 255 255 / 90%); }
.final-actions { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
@media (min-width: 600px) { .final-actions { display: flex; justify-content: center; max-width: none; } }
@media (min-width: 900px) { .final-cta { padding: 120px 0; } }

/* Footer */
.site-footer { background: var(--blue-950); color: rgb(255 255 255 / 78%); padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-title { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-list { display: grid; gap: 10px; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-list a:hover { color: var(--yellow); }
.footer-list .icon { width: 18px; height: 18px; color: var(--yellow); }
.footer-company { margin-top: 16px; font-style: normal; font-size: 14px; line-height: 1.6; color: rgb(255 255 255 / 70%); }
.footer-company strong { color: #fff; }
.footer-disclosure { margin-bottom: 8px; max-width: 760px; }
.footer-disclosure strong { color: rgb(255 255 255 / 80%); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 13px; color: rgb(255 255 255 / 60%); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 2fr 1fr 1fr; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(6 43 69 / 10%); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: none; }
.picker-open .sticky-cta { transform: translateY(110%); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Legal pop-ups (#terms, #privacy) ---------- */
.legal-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.legal-modal::backdrop { background: rgb(4 30 49 / 60%); }
body.has-modal { overflow: hidden; }
.legal-modal-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.legal-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-900); font: 700 15px/1 var(--font); cursor: pointer; }
.legal-close:hover { border-color: var(--blue-600); color: var(--blue-600); }
.legal { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
.legal-title { font-size: clamp(30px, 5vw, 42px); font-weight: 800; color: var(--blue-900); }
.legal .updated { margin: 8px 0 32px; color: var(--muted); font-size: 14px; }
.legal section { margin-bottom: 28px; }
.legal h3 { margin-bottom: 10px; font-size: 21px; color: var(--blue-900); }
.legal h4 { margin: 16px 0 8px; font-size: 17px; color: var(--blue-900); }
.legal p { margin-bottom: 10px; color: #33475a; }
.legal ul, .legal ol { margin: 0 0 12px 22px; color: #33475a; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal-done { margin-top: 12px; }
@media (min-width: 600px) { .legal-modal-bar { padding: 0 24px; } .legal { padding: 48px 24px 80px; } }
