/* Hurricane Car Rental — dark premium */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0c10;
  --bg-2: #10141c;
  --card: #141924;
  --line: rgba(255,255,255,.08);
  --text: #eef1f6;
  --muted: #8b93a3;
  --accent: #ffb300;
  --accent-2: #ff7a00;
  --radius: 16px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3140; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
}

/* header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10,12,16,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--text); text-decoration: none; line-height: 1.1;
}
.logo span { display: block; font-size: .58rem; letter-spacing: .42em; color: var(--accent); font-weight: 600; }
.nav-links a {
  color: var(--muted); text-decoration: none; margin-left: 28px;
  font-size: .95rem; transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-block; padding: 14px 34px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #161006; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,179,0,.35); }
.btn-sm { padding: 10px 22px; font-size: .9rem; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-wide { width: 100%; }

/* hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8%;
  background: url("img/hero.jpg") center/cover;
  will-change: transform;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.35) 45%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-kicker {
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .35em; font-size: .8rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.02em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  animation: riseIn 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-title .line:nth-child(2) > span { animation-delay: .15s; }
.hero-title .line:nth-child(3) > span { animation-delay: .3s; }
.hero-title .accent { color: var(--accent); }
@keyframes riseIn {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.hero-sub { max-width: 520px; color: #c9cedb; font-size: 1.1rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px;
  z-index: 2;
}
.hero-scroll-hint span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* marquee */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-weight: 700; font-size: 1.05rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.marquee-track span::after { content: "◆"; color: var(--accent); margin-left: 48px; font-size: .7em; vertical-align: middle; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* sections */
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* stats */
.stats { padding: 64px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat span { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; }

/* filters */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: .95rem; transition: all .25s;
}
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #161006; font-weight: 700; }

/* car cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.car-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,179,0,.5);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.car-media { position: relative; height: 210px; overflow: hidden; }
.car-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.car-card:hover .car-media img { transform: scale(1.07); }
.car-media.no-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2130, #0e1420);
  color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
}
.car-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,12,16,.75); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.car-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.car-body h3 { font-size: 1.15rem; }
.car-specs { color: var(--muted); font-size: .88rem; }
.car-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; }
.car-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.car-price small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.car-deposit { font-size: .78rem; color: var(--muted); }

/* booking */
.booking-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-form {
  max-width: 760px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.booking-form label { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.booking-form input, .booking-form select {
  padding: 13px 14px; border-radius: 10px; font-size: 1rem;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s;
}
.booking-form input:focus, .booking-form select:focus { outline: none; border-color: var(--accent); }
.booking-form input[type="date"] { color-scheme: dark; }

.km-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.km-opt {
  flex: 1; padding: 12px; border-radius: 10px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  font-size: .95rem; transition: all .25s;
}
.km-opt.active { border-color: var(--accent); color: var(--accent); font-weight: 700; background: rgba(255,179,0,.08); }

.quote { border-top: 1px dashed var(--line); padding: 18px 0; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.quote-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; }
.quote-deposit span:last-child { color: var(--text); }
.quote-total { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.quote-total span:last-child { color: var(--accent); }
.form-message { min-height: 1.4em; margin-top: 14px; font-weight: 600; text-align: center; }
.form-message.ok { color: #51cf66; }
.form-message.err { color: #ff6b6b; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .3s, border-color .3s;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(255,179,0,.4); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,179,0,.1); color: var(--accent); font-size: 1.4rem; margin-bottom: 16px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .9rem; }

/* routes */
.routes-section { background: var(--bg-2); border-top: 1px solid var(--line); }
.routes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.route-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
  background: linear-gradient(160deg, var(--card), var(--bg));
  transition: transform .3s, border-color .3s;
}
.route-card:hover { transform: translateY(-4px); border-color: rgba(255,179,0,.4); }
.route-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.route-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.route-card span { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 0; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer p { margin-bottom: 6px; }
.muted { color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 24px;
  color: var(--muted); font-size: .85rem; text-align: center;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .booking-form { padding: 22px; }
  .section { padding: 64px 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
