/* =====================
   RESET & BASICS
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #0b0b0b;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #141414, #0b0b0b 60%);
  color: #eaeaea;
  line-height: 1.6;
  display: flex;
  flex-direction: column; /* Ensures footer stays at bottom */
}

/* Notice Bar Spacing Control */
body.notice-visible {
  padding-top: 40px;
}

body.notice-visible .header {
  top: 40px;
}

/* =====================
   VARIABLES
===================== */
:root {
  --bg-dark: #0b0b0b;
  --bg-panel: linear-gradient(180deg, #141414, #0f0f0f);
  --border: rgba(255, 255, 255, 0.06);
  --muted: #a8a8a8;
  --accent: #e6d9b8; /* The Noir Gold */
}

/* =====================
   UTILITIES & GLOBAL
===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-highlight {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(230, 217, 184, 0.3);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0b;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: #eaeaea;
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-link {
  color: var(--muted);
  font-size: 0.8rem;
}

.btn-small {
  background: #fff;
  color: #000;
  font-size: 0.7rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.car-card:hover .btn-small {
  background: var(--accent);
  color: #000;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   NOTICE BAR
===================== */
.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #0f0f0f;
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.notice-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* =====================
   HEADER
===================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: top 0.35s ease;
  will-change: top;
}

.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =====================
   HERO SECTION
===================== */
.hero {
  padding: 4rem 0 2rem;
}

.hero-panel {
  background: var(--bg-panel);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero Animations */
.hero-content,
.hero-visual {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    rgba(230, 217, 184, 0.08) 0%,
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transform: scale(1.1);
}

/* =====================
   TRUST BAR
===================== */
.trust-bar {
  margin-top: 2rem;
}

.trust-items {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: #e0e0e0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #e0e0e0;
}

.trust-item svg {
  stroke: var(--accent);
}

/* =====================
   FEATURED / FLEET CARS
===================== */
.featured-cars .container {
  text-align: center;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.car-card {
  position: relative;
  background: linear-gradient(180deg, #121212, #0e0e0e);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  text-align: left;
}

.car-card:hover {
  transform: translateY(-6px);
}

.car-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.car-card:hover::after {
  opacity: 1;
}

.car-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-content {
  padding: 1.6rem;
}

.car-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.car-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

/* Badges */
.badge {
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.premium {
  background: rgba(230, 217, 184, 0.15);
  color: var(--accent);
}

.badge.standard {
  background: #1a1a1a;
  color: #aaa;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 0.65rem;
  font-weight: 400;
  color: #888;
  border: 1px solid #333;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Car Meta Icons */
.car-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.car-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* =====================
   HOW IT WORKS (STEPS)
===================== */
.how-it-works {
  padding: 5rem 0;
  text-align: center;
}

.how-it-works h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 3rem;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step-card {
  position: relative;
  background: linear-gradient(180deg, #121212, #0e0e0e);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(230, 217, 184, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.step-card:hover::after {
  opacity: 1;
}

.step-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(230, 217, 184, 0.15);
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.step-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =====================
   FAQ SECTION (PREMIUM)
===================== */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.faq-grid {
  max-width: 800px;
  margin: 3.5rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item[open] {
  background: rgba(20, 20, 20, 0.6);
  border-bottom-color: transparent;
}

summary {
  padding: 1.8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.1rem;
  color: #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color 0.3s ease;
}

.faq-item:hover summary,
.faq-item[open] summary {
  color: var(--accent);
}

summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.8rem;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 90%;
}

summary::-webkit-details-marker {
  display: none;
}

/* =====================
   REVIEWS SECTION
===================== */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  flex-direction: column;
}

.reviewer .name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.reviewer .verified {
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* =====================
   FLEET PAGE SPECIFICS
===================== */
.fleet-hero {
  padding: 5rem 0 1.4rem;
}

.fleet-hero .container {
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem 3.5rem 1.8rem;
}

/* Filter Buttons */
.fleet-filters {
  padding: 1rem 0 0.5rem;
  margin-bottom: 0;
}

.filter-row {
  margin-top: -0.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Center buttons */
}

.filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter.active {
  background: var(--accent);
  color: #0b0b0b;
  border-color: var(--accent);
}

/* Fleet Grid Spacing - TIGHT GAP */
.fleet-grid {
  padding-bottom: 6rem; /* Space before footer */
}

.fleet-grid .cars-grid {
  margin-top: 0.5rem; /* The "Tight Gap" Fix */
}

/* =====================
   AGENCY FOOTER (FIXED)
===================== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left; /* Fixes the centering issue */
}

/* Footer Brand Column */
.footer-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}

.brand-col p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

/* Footer Links */
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #444;
  font-size: 0.8rem;
}

/* =====================
   LEGAL PAGES
===================== */
.legal-page {
  padding: 6rem 0;
  min-height: 80vh; /* Ensures footer stays at bottom */
}

.legal-content {
  max-width: 800px; /* Keeps text easy to read */
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.legal-content h3 {
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.legal-content p {
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* =====================
   COOKIE BANNER
===================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Start hidden below screen */
  width: 90%;
  max-width: 500px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile Tweak */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 1rem;
    width: 95%;
  }
}

/* =====================
   MOBILE MENU & OVERLAY
===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 11, 11, 0.98);
  backdrop-filter: blur(10px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.mobile-link {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
}

.mobile-link:hover {
  color: var(--accent);
}

/* State: Menu Open */
body.menu-open {
  overflow: hidden;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu.active .mobile-nav {
  transform: translateY(0);
}

/* =====================
   MOBILE TOGGLE BUTTON
===================== */
.mobile-toggle {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 30px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.mobile-toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: #eaeaea;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.mobile-toggle span:nth-child(1) {
  top: 35%;
}
.mobile-toggle span:nth-child(2) {
  top: 65%;
}

/* Active X Shape */
body.menu-open .mobile-toggle span:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* =====================
   RESPONSIVE (TABLET/MOBILE)
===================== */
@media (max-width: 900px) {
  /* Toggle Visibility */
  .mobile-toggle {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  .nav-links {
    display: none !important;
  }

  /* Layout Adjustments */
  .hero-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem 0 1.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .fleet-hero .container {
    padding: 2.2rem 1.8rem;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .brand-col p {
    margin: 0 auto;
  }
}
