/* ===================================================================
   DriveNgo — styles.css
   Light-first premium theme with day/night toggle.
   =================================================================== */

:root {
  --gold-1: #BF953F;
  --gold-2: #E6C158;
  --gold-3: #AA771C;
  --gold-grad: linear-gradient(135deg, #BF953F 0%, #FCF6BA 42%, #B38728 70%, #AA771C 100%);
  --gold-soft: #C9A227;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, .06);
  --shadow-md: 0 18px 40px -18px rgba(16, 24, 40, .28);
  --shadow-lg: 0 40px 80px -30px rgba(16, 24, 40, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .45s var(--ease);
}

/* ---- LIGHT THEME (default) ---- */
[data-theme="light"] {
  --bg: #fcfcf7;          /* warm off-white core */
  --bg-soft: #ffffff;
  --bg-alt: #eef4ff;      /* soft blue tint for alt sections */
  --ink: #16202b;
  --ink-soft: #4b5666;
  --line: #e6eaf3;
  --card: #ffffff;
  /* brighter, more colourful blooms: gold + sky + rose */
  --hero-grad: radial-gradient(900px 470px at 82% -6%, #d8ebff 0%, rgba(216,235,255,0) 60%),
               radial-gradient(820px 460px at 4% 2%, #fff0d2 0%, rgba(255,240,210,0) 58%),
               radial-gradient(760px 540px at 52% 124%, #ffe1ec 0%, rgba(255,225,236,0) 60%);
  --nav-bg: rgba(255, 255, 255, .8);
  --car-window: #cdd6e6;
}

/* ---- DARK THEME ---- */
[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-soft: #11151c;
  --bg-alt: #0e1219;
  --ink: #f3f5f9;
  --ink-soft: #9aa4b6;
  --line: #1f2632;
  --card: #131922;
  --hero-grad: radial-gradient(1100px 520px at 78% -8%, #16203a 0%, rgba(22,32,58,0) 60%),
               radial-gradient(900px 480px at 8% 0%, #241d0c 0%, rgba(36,29,12,0) 55%);
  --nav-bg: rgba(13, 17, 23, .72);
  --car-window: #2a3446;
  --shadow-md: 0 18px 40px -18px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t), color var(--t);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand__text { font-family: "Sora", "Inter", sans-serif; }

a { color: inherit; text-decoration: none; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad: .8rem 1.4rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { --pad: 1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--gold {
  background: var(--gold-grad);
  color: #2a1e05;
  box-shadow: 0 10px 26px -10px rgba(191, 149, 63, .7);
}
.btn--gold:hover { box-shadow: 0 16px 34px -10px rgba(191, 149, 63, .85); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold-3); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), padding .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; transition: padding .3s var(--ease); }
.nav.is-scrolled .nav__inner { padding: .65rem 0; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 42px; height: 42px; display: block; }
.brand__text { font-weight: 700; font-size: 1.25rem; letter-spacing: .2px; }
.brand__text strong { color: var(--gold-soft); }

.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { color: var(--ink-soft); font-weight: 500; position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold-grad); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .8rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
  cursor: pointer; transition: transform .3s var(--ease), border-color .25s, background-color var(--t);
}
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--gold-soft); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 12px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9.5rem 0 4rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: var(--hero-grad); z-index: 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.badge__arrow { color: var(--gold-soft); transition: transform .3s var(--ease); }
.badge:hover .badge__arrow { transform: translateX(4px); }

.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -1px; margin: 1.1rem 0 0; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator__word {
  grid-area: 1 / 1; background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(60%); will-change: transform, opacity;
}
.rotator__word.is-active { opacity: 1; transform: translateY(0); }

.hero__sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 38rem; margin-top: 1.3rem; }
.hero__actions { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }

.hero__stats { list-style: none; display: flex; gap: 2.2rem; margin-top: 2.4rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Sora", sans-serif; font-size: 1.5rem; }
.hero__stats span { color: var(--ink-soft); font-size: .86rem; }

.hero__art { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero__art-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.32), rgba(201,162,39,0) 65%); filter: blur(8px); }
.hero__car { position: relative; width: 100%; z-index: 1; }
.hero__car svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 30px rgba(16,24,40,.28)); }

/* marquee */
.marquee { position: relative; z-index: 1; margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { color: var(--ink-soft); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: "◆"; color: var(--gold-soft); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gold-3); margin-bottom: .6rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.5px; }
.section__head p { color: var(--ink-soft); margin-top: .7rem; }

/* ---------- Fleet ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.car-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.car-card__media { position: relative; padding: 1.6rem 1.4rem .4rem; background: linear-gradient(180deg, var(--bg-alt), transparent); }
.car-card__media svg { width: 100%; height: auto; display: block; }
.car-card__media--photo { padding: 0; background: none; }
.car-card__photo { width: 100%; height: 230px; object-fit: cover; display: block; }
.car-card__tag { position: absolute; top: 1rem; left: 1rem; background: var(--gold-grad); color: #2a1e05; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.car-card__body { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.car-card__name { font-family: "Sora", sans-serif; font-size: 1.2rem; font-weight: 700; }
.car-card__specs { display: flex; flex-wrap: wrap; gap: .5rem; }
.car-card__specs span { font-size: .78rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: .25rem .55rem; border-radius: 999px; }
.car-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.car-card__price { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; }
.car-card__price small { font-weight: 500; color: var(--ink-soft); font-size: .78rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 1.4rem; justify-content: center; max-width: 720px; margin-inline: auto; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(201,162,39,.18), rgba(201,162,39,.05)); margin-bottom: 1rem; }
.feature__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Quick booking ---------- */
.quickbook {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 2.4rem; display: grid;
  grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center;
}
.quickbook__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.quickbook__copy p { color: var(--ink-soft); margin-top: .6rem; }
.quickbook__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quickbook__form .btn { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .7rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
  font: inherit; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}

/* ---------- CTA strip (bright, colourful) ---------- */
.ctastrip { background: linear-gradient(120deg, #FFC94B 0%, #FF8A4C 48%, #FF6F91 100%); color: #3a2406; }
.ctastrip__inner { text-align: center; padding: 4rem 0; }
.ctastrip h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ctastrip p { color: #5a3a12; margin: .6rem 0 1.6rem; }
.ctastrip .btn--gold { background: #fff; color: #b3402f; box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand p { color: var(--ink-soft); margin-top: .8rem; max-width: 22rem; }
.footer__col h4 { margin-bottom: .9rem; font-size: 1rem; }
.footer__col a { display: block; color: var(--ink-soft); margin-bottom: .5rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold-3); }
.footer__bottom { display: flex; justify-content: space-between; padding: 1.3rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }

/* ---------- Scroll reveal ---------- */
[data-anim] { opacity: 0; }
[data-anim].is-in { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .quickbook { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 64px 4% auto 4%; flex-direction: column; gap: 1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 1.4rem; flex-wrap: wrap; }
  .fleet { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .quickbook__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: .4rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-anim] { opacity: 1 !important; }
}
