/* ============================================================
   DRIVO — Phuket car rental
   Design tokens. To rebrand: change --accent (and the brand name
   in index.html). Default accent = high-energy orange.
   Andaman-turquoise alt: #11C9B7   /   classic red: #E10600
   ============================================================ */
:root {
  --accent: #ff4f12;
  --accent-ink: #ffffff;

  --bg: #0a0a0b;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f6f6f7;
  --muted: #a0a0a8;
  --muted-2: #74747c;

  --ink: #0a0a0b; /* text on light/accent */

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);

  --ff-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); line-height: 1.05; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  letter-spacing: .2px; white-space: nowrap; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.07); }
.btn--lg { padding: 17px 34px; font-size: 17px; }

.link-quiet { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.link-quiet:hover { color: var(--text); }
.link-arrow { color: var(--accent); font-family: var(--ff-display); font-weight: 700; font-size: 15px; }
.link-arrow:hover { filter: brightness(1.1); }

.eyebrow {
  font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.eyebrow--light { color: rgba(255,255,255,.7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.65); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(10,10,11,.92); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: inline-flex; align-items: baseline; font-family: var(--ff-display); font-weight: 900; font-size: 26px; letter-spacing: -.5px; }
.brand__mark { color: var(--text); }
.brand__dot { color: var(--accent); }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__link:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang__btn { background: none; border: none; color: var(--muted-2); font-family: var(--ff-display); font-weight: 700; font-size: 14px; padding: 2px; transition: color .2s; }
.lang__btn.is-active { color: var(--text); }
.lang__btn:hover { color: var(--text); }
.lang__sep { color: var(--muted-2); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 120px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.90) 0%, rgba(10,10,11,.48) 55%, rgba(10,10,11,.15) 100%),
    linear-gradient(180deg, rgba(10,10,11,.50) 0%, rgba(10,10,11,.22) 38%, rgba(10,10,11,.93) 100%),
    url("../assets/cars/hero.jpg") center 35% / cover no-repeat;
}
.hero__bg::after { content: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { font-family: var(--ff-display); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero__title { font-size: clamp(40px, 7vw, 84px); font-weight: 900; letter-spacing: -1.5px; text-transform: uppercase; }
.hero__sub { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

/* ---------- Booking widget ---------- */
.booking { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.booking__tabs { display: flex; gap: 4px; padding: 8px 8px 0; }
.booking__tab { background: transparent; border: none; color: var(--muted); font-family: var(--ff-display); font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 10px 10px 0 0; transition: background .2s, color .2s; }
.booking__tab.is-active { color: var(--text); background: var(--surface-2); }

.booking__grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1fr .7fr auto; gap: 1px; background: var(--line); padding: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); }
.field[hidden] { display: none; } /* beats .field's display:flex (UA [hidden] alone can't) */
.field--time { min-width: 96px; }
.field__label { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.field__input {
  background: transparent; border: none; color: var(--text); font: 500 16px var(--ff-body);
  padding: 2px 0; outline: none; width: 100%;
}
.field__input::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.field__input option { background: var(--surface-2); color: var(--text); }
.booking__submit { margin: 1px; border-radius: 0; height: auto; padding: 0 30px; font-size: 16px; }
.booking__diff { display: flex; align-items: center; gap: 9px; padding: 13px 16px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.booking__diff input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- USP strip ---------- */
.usps { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 26px 24px; }
.usp { display: flex; align-items: center; gap: 14px; }
.usp__icon { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.usp div { display: flex; flex-direction: column; }
.usp strong { font-family: var(--ff-display); font-size: 15px; }
.usp span { color: var(--muted); font-size: 13px; }

/* ---------- Generic section ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-2); }
.section__head { margin-bottom: 44px; }
.section__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.8px; text-transform: uppercase; }

/* ---------- Fleet ---------- */
.fleet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fleet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.fleet-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.fleet-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fleet-card__cat { font-family: var(--ff-display); font-weight: 800; font-size: 21px; text-transform: uppercase; }
.fleet-card__eg { color: var(--muted); font-size: 13px; margin-top: 2px; }
.fleet-card__seats { font-size: 12px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.fleet-card__art { aspect-ratio: 16 / 10; margin: 14px 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.fleet-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fleet-card:hover .fleet-card__art img { transform: scale(1.05); }
.fleet-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.fleet-card__price b { font-family: var(--ff-display); font-size: 26px; }
.fleet-card__price span { color: var(--muted); font-size: 13px; }
.fleet-card__price small { display: block; color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Offers ---------- */
.offers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; overflow: hidden; }
.offer--featured { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: var(--line-strong); }
.offer__badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--ff-display); font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.offer h3 { font-size: 24px; text-transform: uppercase; letter-spacing: -.3px; margin-bottom: 10px; }
.offer p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* ---------- Why ---------- */
.why { background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,79,18,.14), transparent 50%), var(--bg);
  padding: 100px 0; }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.6px; }
.why__sub { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 440px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__list li { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.why__list strong { font-family: var(--ff-display); font-size: 17px; }
.why__list span { color: var(--muted); font-size: 14px; }

/* ---------- App ---------- */
.app { padding: 100px 0; background: var(--bg-2); }
.app__inner { display: grid; grid-template-columns: .8fr 1fr; gap: 64px; align-items: center; }
.app__list { display: grid; gap: 14px; margin: 24px 0 30px; }
.app__list li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; }
.app__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.app__badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 18px; transition: border-color .2s; }
.store:hover { border-color: var(--text); }
.store svg { width: 24px; height: 24px; fill: var(--text); }
.store span { display: flex; flex-direction: column; font-family: var(--ff-display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.store small { font-family: var(--ff-body); font-weight: 400; font-size: 11px; color: var(--muted); }

.app__phone { display: grid; place-items: center; }
.phone { width: 250px; height: 510px; border-radius: 42px; background: linear-gradient(160deg, #232329, #131317); border: 1px solid var(--line-strong); padding: 14px; position: relative; box-shadow: var(--shadow); }
.phone__notch { width: 110px; height: 22px; background: #000; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone__screen { position: absolute; inset: 14px; top: 36px; background: linear-gradient(180deg, #0e0e12, #15151b); border-radius: 30px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.phone__brand { font-family: var(--ff-display); font-weight: 900; font-size: 24px; }
.phone__brand span { color: var(--accent); }
.phone__card { height: 120px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,79,18,.25), var(--surface-2)); border: 1px solid var(--line); }
.phone__card--sm { height: 54px; background: var(--surface-2); }
.phone__cta { margin-top: auto; text-align: center; background: var(--accent); color: var(--accent-ink); font-family: var(--ff-display); font-weight: 800; padding: 14px; border-radius: 12px; }

/* ---------- Locations ---------- */
.loc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; transition: border-color .2s; }
.loc:hover { border-color: var(--accent); }
.loc h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 6px; }
.loc p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Reviews ---------- */
.rev__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.rev__stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.rev blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.rev figcaption { color: var(--muted); font-size: 14px; }
.rev figcaption strong { color: var(--text); font-family: var(--ff-display); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); font-size: clamp(28px, 4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.5px; }
.cta-band .btn--accent { background: var(--ink); color: #fff; }
.cta-band .btn--accent:hover { background: #000; filter: none; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 14px 0 18px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; }
.footer__social a:hover svg { stroke: var(--accent-ink); }
.footer__col h4 { font-family: var(--ff-display); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text); }
.footer__col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-2); font-size: 13px; margin: 0; }
.footer__pay { display: flex; gap: 8px; }
.footer__pay span { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 30px; line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 26px; text-transform: uppercase; }
.modal__meta { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.modal__list { display: grid; gap: 12px; }
.modal__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.modal__row b { font-family: var(--ff-display); font-size: 17px; }
.modal__row small { display: block; color: var(--muted); font-size: 13px; }
.modal__row .price { font-family: var(--ff-display); font-size: 20px; color: var(--accent); white-space: nowrap; }
.modal__note { color: var(--muted-2); font-size: 12px; margin: 20px 0 0; text-align: center; }
.modal__row-right { display: flex; align-items: center; gap: 14px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Footer contact ---------- */
.footer__contact { display: grid; gap: 6px; margin: 0 0 18px; }
.footer__contact a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer__contact a:hover { color: var(--accent); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
/* revealed only after scrolling past the hero/booking widget — never overlaps form fields */
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: translateY(-2px) scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .booking__grid { grid-template-columns: 1fr 1fr; }
  .booking__submit { grid-column: 1 / -1; padding: 16px; }
  .fleet__grid, .offers__grid, .rev__grid, .loc__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner, .app__inner { grid-template-columns: 1fr; gap: 40px; }
  .app__phone { order: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-130%); transition: transform .3s ease; z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .burger { display: flex; }
  .link-quiet, .header__actions .btn--ghost { display: none; }
  .header__inner { gap: 12px; }

  .hero { padding: 56px 0 80px; }
  .booking__grid { grid-template-columns: 1fr; }
  .usps__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .section { padding: 64px 0; }
  .why { padding: 64px 0; }
  .app { padding: 64px 0; }
  .fleet__grid, .offers__grid, .rev__grid, .loc__grid, .why__list, .footer__top { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .usps__grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

/* keep the floating WhatsApp button clear of form fields on small screens */
@media (max-width: 900px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
