/* Pandalungan Ride. Direction: DESIGN.md. Dial: ENERGY 2 / RHYTHM 2 / MOTION 1. */

@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin-italic.woff2") format("woff2");
  font-weight: 700 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #012345;
  --navy-2: #0b3358;
  --green: #0a7a5c;        /* single accent: WhatsApp / booking actions */
  --green-dark: #075c45;
  --mountain: #0b9778;     /* decorative ridge only, never text */
  --mist: #f3f7f6;
  --mint: #e8f5f0;
  --ink-2: #4a5b6e;        /* secondary text, 6.97:1 on white */
  --on-navy-2: #c4d3e0;    /* secondary text on navy, 10.35:1 */
  --line: #cfdbe3;         /* dividers only */
  --line-strong: #7a90a3;  /* control boundaries, 3.31:1 on white */
  --error: #b42318;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --skew: -10deg;          /* the "Ride" box slant from the logo */
  --wrap: 1120px;
  --gutter: 16px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); /* room for the mobile WhatsApp bar */
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--navy); text-underline-offset: 3px; }
a, button, select, summary, label[for], .choice, input[type="radio"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-navy :focus-visible, .site-footer :focus-visible, .booking-intro :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 760px) { :root { --gutter: 28px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Buttons. Primary WhatsApp action wears the slanted "Ride" box from the logo. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-wa {
  background: var(--green); color: var(--white);
  transform: skewX(var(--skew));
  padding: 0 26px;
}
.btn-wa .btn-face { display: inline-flex; align-items: center; gap: 8px; transform: skewX(calc(var(--skew) * -1)); }
.btn-wa:hover { background: var(--green-dark); }
.btn-wa:active { transform: skewX(var(--skew)) translateY(1px); }
.btn-wa:disabled { background: #6b8f84; }

.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-outline { color: var(--navy); border-color: var(--line-strong); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); background: var(--mist); }

.btn-text { background: none; color: var(--navy); text-decoration: underline; padding: 0 10px; }
.btn-text:hover { color: var(--green-dark); }

.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 74px; height: auto; }
.brand-text, .footer-name {
  font-style: italic; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap;
}
.ride {
  display: inline-block; background: var(--green); color: var(--white);
  padding: 0 .35em; border-radius: 4px; transform: skewX(var(--skew));
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  font: inherit; font-weight: 700; color: var(--navy);
  background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
}
.menu-toggle:hover { border-color: var(--navy); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 12px 24px rgba(1, 35, 69, .12); /* elevation: menu sits over content */
}
.site-nav ul { list-style: none; }
.site-nav li a {
  display: flex; align-items: center; min-height: 48px;
  font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--mist);
}
.site-nav li a:hover { color: var(--green-dark); }
.site-nav .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 18px; }
  .site-nav li a { border: 0; min-height: 44px; white-space: nowrap; }
  .site-nav .wa-full { display: none; }
  .site-nav .btn { margin-top: 0; }
}
@media (min-width: 1180px) {
  .site-nav ul { gap: 24px; }
  .site-nav .wa-full { display: inline; }
}

/* Hero */
.hero { position: relative; background: var(--white); padding: 36px 0 0; overflow: hidden; }
.hero-inner { display: grid; gap: 24px; align-items: center; padding-bottom: 72px; }
.hero h1 {
  font-style: italic; font-weight: 800;
  font-size: clamp(2rem, 7.4vw, 3.6rem);
  letter-spacing: -.02em;
  max-width: 16ch;
}
.hero-lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.hero-figure { margin: 0; justify-self: center; max-width: 420px; width: 100%; }

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 40px; padding-bottom: 110px; }
  .hero-figure { max-width: 460px; justify-self: end; }
}

/* Mountain ridge: the identity motif, lifted from the logo. */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; }
.ridge path { fill: var(--navy); }
@media (min-width: 900px) { .ridge { height: 90px; } }

/* Fleet summary strip (unit counts from the owner's flyer) */
.fleet-strip { background: var(--navy); color: var(--white); padding: 8px 0 32px; }
.fleet-strip-inner { display: grid; gap: 16px; }
.fleet-total { font-style: italic; font-weight: 800; font-size: 1.5rem; }
.fleet-total .num { color: #7fe0bd; } /* 9.9:1 on navy */
.fleet-counts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; color: var(--on-navy-2); }
.fleet-counts li { white-space: nowrap; }
.fleet-counts .num { color: var(--white); font-weight: 800; margin-right: 4px; }
@media (min-width: 760px) {
  .fleet-strip-inner { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .fleet-counts { grid-template-columns: repeat(2, auto); justify-content: end; }
}
@media (min-width: 1000px) {
  .fleet-counts { grid-template-columns: repeat(4, auto); }
}

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section h2 { font-style: italic; font-weight: 800; font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.015em; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: auto 1fr; align-items: end; gap: 48px; margin-bottom: 44px; }
}

/* Armada: MPV leads (largest share of the fleet), the rest follow smaller. */
.fleet-grid { list-style: none; display: grid; gap: 18px; }
.car {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.car img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 16px 16px 0; background: var(--white); }
.car-body { display: grid; gap: 6px; align-content: start; padding: 16px 18px 20px; }
.car-body h3 { font-size: 1.25rem; font-weight: 800; }
.car-units { font-weight: 700; color: var(--green-dark); font-size: .95rem; }
.car-model { color: var(--ink-2); font-size: .95rem; }
.car-body .btn { margin-top: 10px; justify-self: start; }

.car-price { margin-top: 6px; color: var(--ink-2); }
.car-price .price { color: var(--navy); font-weight: 800; font-style: italic; font-size: 1.35rem; }
.car-driver { color: var(--ink-2); font-size: .95rem; }
.car-featured .car-body { background: var(--mist); }
.car-featured h3 { font-size: 1.6rem; font-style: italic; }

@media (min-width: 640px) {
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .car-featured { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
  .car-featured img { padding: 20px; aspect-ratio: auto; align-self: center; }
  .car-featured .car-body { align-content: center; padding: 24px; }
  .car-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: none; align-items: center; }
  .car-wide img { padding: 16px; aspect-ratio: auto; }
}
/* Desktop: MPV tall on the left, two cars beside it, Hiace runs wide underneath like the van it is. */
@media (min-width: 1000px) {
  .fleet-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .car-featured { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: none; grid-template-rows: auto 1fr; }
  .car-featured img { padding: 40px 28px 20px; }
  .car-featured .car-body { align-content: start; padding: 24px 28px 32px; }
  .car-wide { grid-column: 2 / span 2; }
}

.price-notes { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.price-notes h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.price-notes ul { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); max-width: 75ch; }
@media (min-width: 900px) { .price-notes ul { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Aturan sewa */
.aturan { background: var(--mist); }
.aturan-inner { display: grid; gap: 28px; }
.aturan-intro p { margin-top: 12px; color: var(--ink-2); max-width: 40ch; }
.rules { display: grid; gap: 28px; }
.rule-group h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.rule-list { list-style: none; counter-reset: rule 0; display: grid; gap: 12px; }
.rule-group:nth-child(2) .rule-list { counter-reset: rule 3; } /* list continues 4 to 6 */
.rule-list li {
  counter-increment: rule;
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; align-items: baseline;
  background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px;
}
.rule-list li::before {
  content: counter(rule);
  font-style: italic; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-dark);
}
@media (min-width: 900px) {
  .aturan-inner { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
  .aturan-intro { position: sticky; top: 100px; }
  .rules { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Rekening: the number is the focal point, big enough to read off a screen. */
.rekening h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.rekening-card {
  display: grid; gap: 4px; justify-items: start;
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 18px 20px;
}
.bank { font-weight: 700; color: var(--ink-2); }
.acc-number { font-weight: 800; font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rekening-card .btn { margin-top: 10px; }
.rekening-card .copy-status { margin-top: 4px; }
.rekening-note { margin-top: 12px; color: var(--ink-2); }
.rekening-note a { font-weight: 700; }
@media (min-width: 900px) { .rekening { grid-column: 2; } }

/* Booking */
.booking { background: var(--navy); color: var(--white); }
.booking-inner { display: grid; gap: 28px; }
.booking-intro p { margin-top: 12px; color: var(--on-navy-2); max-width: 44ch; }
.booking-intro a { color: var(--white); font-weight: 700; }
.booking-intro .booking-direct { margin-top: 20px; }
@media (min-width: 900px) {
  .booking-inner { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
}

.form-card {
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); padding: 22px 18px;
}
@media (min-width: 760px) { .form-card { padding: 32px; } }

.field { display: grid; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
::placeholder { color: #5c6d7e; } /* 5.32:1 on white */
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

.duration { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }

.choices { display: grid; gap: 8px; }
@media (min-width: 520px) { .choices { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 20px; } }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }

.estimate {
  background: var(--mint); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 0 0 18px;
}
.estimate-label { font-weight: 700; font-size: .95rem; color: var(--green-dark); }
.estimate-value { font-weight: 800; font-size: 1.2rem; }
.estimate-note { font-size: .9rem; color: var(--ink-2); }

.field-error { color: var(--error); font-weight: 700; font-size: .95rem; }
.field-error::before { content: "! "; }
.form-error-summary {
  border: 2px solid var(--error); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 18px; color: var(--error); font-weight: 700;
}

.form-done h3 { font-size: 1.35rem; font-style: italic; font-weight: 800; }
.form-done > p { margin-top: 8px; color: var(--ink-2); }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; }
.message-preview {
  margin: 16px 0; padding: 14px; background: var(--mist); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; white-space: pre-wrap; word-break: break-word;
}
.done-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.copy-status { margin-top: 10px; min-height: 1.6em; font-weight: 700; color: var(--green-dark); }
.copy-status.is-error { color: var(--error); }

/* Lokasi: address beside a real map, map takes the wider column. */
.lokasi-inner { display: grid; gap: 24px; }
.lokasi address { font-style: normal; font-weight: 700; font-size: 1.15rem; line-height: 1.5; margin-top: 14px; }
.lokasi-info > p { margin-top: 12px; color: var(--ink-2); max-width: 40ch; }
.lokasi-actions { display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center; margin-top: 22px; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .lokasi-inner { grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
  .map-frame { aspect-ratio: 16 / 10; }
}

/* Footer */
.site-footer { position: relative; background: var(--navy); color: var(--white); margin-top: 0; }
.site-footer { background: transparent; }
.ridge-footer { position: static; height: 48px; margin-bottom: -1px; }
.ridge-footer path { fill: var(--navy); }
.footer-body { background: var(--navy); }
.footer-body { padding: 28px 0 40px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); padding: 12px 18px; justify-self: start;
}
.footer-brand img { width: 96px; }
.footer-info { display: grid; gap: 14px; color: var(--on-navy-2); }
.footer-area { color: var(--white); font-style: italic; font-weight: 800; font-size: 1.25rem; }
.footer-wa { color: var(--white); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-map { color: var(--white); font-weight: 700; }
.footer-nav a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.copyright { font-size: .9rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr; gap: 56px; align-items: start; }
  .ridge-footer { height: 72px; }
}

/* Mobile WhatsApp bar */
.wa-sticky {
  position: fixed; z-index: 40;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 6px 18px rgba(1, 35, 69, .28); /* elevation: floats over page content */
}
@media (min-width: 760px) { .wa-sticky { display: none; } }

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

/* 404 */
.page-404 { padding-bottom: 0; }
.notfound-title { font-style: italic; font-weight: 800; font-size: clamp(1.75rem, 6vw, 2.5rem); }
.notfound-text { margin-top: 12px; color: var(--ink-2); max-width: 50ch; }
.notfound-actions { margin-top: 24px; }
