/*
 * LUX4RIDES — Global Stylesheet (Clean / Production)
 * Dark luxury theme + gold accents
 * Mobile-first responsive
 * Includes: header safety, hero, cards, grids, trust, accordion, utilities
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================================
   1) CSS VARIABLES
========================================================= */
:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-dark: #000000;
  --bg-card: #111111;
  --fg: #f5f5f0;
  --fg-muted: rgba(255, 255, 255, 0.72);
  --fg-subtle: rgba(255, 255, 255, 0.52);

  --primary: #ffa500;
  --primary-light: #ffd700;
  --primary-dark: #e69500;

  --border: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(255, 165, 0, 0.22);

  /* Gradients */
  --grad: linear-gradient(135deg, #ffa500 0%, #ffd700 50%, #ffa500 100%);
  --grad-dark: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  --grad-card: linear-gradient(145deg, #111 0%, #0a0a0a 100%);

  /* Shadows */
  --shadow-gold: 0 0 40px rgba(255, 165, 0, 0.15);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container-max: 1400px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Header safety (prevents “homepage header missing”) */
  --header-h: 80px;

  /* Spacing (mobile-first) */
  --section-pad-m: 3rem 1rem;
  --section-pad-t: 4rem 1.5rem;
  --section-pad-d: 5rem 2rem;

  /* Motion */
  --t: all 0.3s ease;
  --t-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   2) RESET + BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* If your header is fixed, this prevents hero/content from sitting under it */
  padding-top: var(--header-h);
}

/* If you have pages with NO fixed header, add class "no-fixed-header" on body */
body.no-fixed-header {
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
}

p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  p { font-size: 1rem; }
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements default */
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 165, 0, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================================================
   3) CONTAINER + UTILITIES
========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.text-center { text-align: center; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section { padding: var(--section-pad-m); }
@media (min-width: 768px) {
  .section { padding: var(--section-pad-t); }
}
@media (min-width: 1024px) {
  .section { padding: var(--section-pad-d); }
}

.section-dark { background: var(--bg-dark); }

/* Scroll margin so anchored sections don’t hide under fixed header */
section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* =========================================================
   4) TYPOGRAPHY SCALE
========================================================= */
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}

/* =========================================================
   5) HEADER (SAFE DEFAULTS)
   - This prevents “header exists but invisible” issues
   - Works even if body background changes
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 10000;

  display: flex;
  align-items: center;

  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header a { color: var(--fg); }
.site-header a:hover { color: var(--primary); }

/* =========================================================
   6) BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.05em;

  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn { padding: 1rem 2rem; font-size: 0.875rem; }
}

.btn-primary {
  background: var(--grad);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 165, 0, 0.40);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
}

/* =========================================================
   7) CARDS
========================================================= */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--t);
}

@media (min-width: 640px) {
  .card { padding: 2rem; }
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.card h3, .card h4 { color: var(--fg); }

.card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}
@media (min-width: 640px) {
  .card p { font-size: 0.9375rem; }
}

.card ul { list-style: none; margin: 0; padding: 0; }
.card ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .card ul li { font-size: 0.9375rem; }
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* =========================================================
   8) GRID SYSTEM
========================================================= */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid { gap: 1.5rem; } }
@media (min-width: 1024px) { .grid { gap: 2rem; } }

.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   9) HERO (SAFE Z-INDEX + OVERLAY)
========================================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { min-height: 100vh; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .hero-content { padding: 2rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 165, 0, 0.10);
  border: 1px solid rgba(255, 165, 0, 0.30);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-badge { font-size: 0.75rem; padding: 0.5rem 1.25rem; margin-bottom: 2rem; }
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.5rem; margin-bottom: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; margin-bottom: 1.5rem; }
}

.hero-subtitle {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; margin-bottom: 2rem; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

.hero-cta .btn { width: 100%; max-width: 280px; }
@media (min-width: 480px) {
  .hero-cta .btn { width: auto; max-width: none; }
}

/* =========================================================
   10) TRUST STRIP
========================================================= */
.trust-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: rgba(255, 165, 0, 0.05);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}

@media (min-width: 640px) {
  .trust-strip {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .trust-strip { gap: 3rem; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .trust-item { font-size: 0.875rem; }
}

.trust-item svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  stroke: var(--primary);
}

.trust-stat { text-align: center; padding: 0.5rem; }
.trust-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}
@media (min-width: 640px) { .trust-stat strong { font-size: 2rem; } }
.trust-stat span { font-size: 0.75rem; color: var(--fg-muted); }
@media (min-width: 640px) { .trust-stat span { font-size: 0.875rem; } }

/* =========================================================
   11) FEATURES GRID
========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--t);
}

@media (min-width: 640px) {
  .feature-card { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .feature-card { padding: 2.5rem 1.5rem; }
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 165, 0, 0.10);
  border-radius: 12px;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .feature-icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 1.5rem; }
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}
@media (min-width: 640px) {
  .feature-icon svg { width: 32px; height: 32px; }
}

/* =========================================================
   12) FLEET CARDS
========================================================= */
.fleet-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--t);
  background: var(--bg-card);
}

.fleet-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.fleet-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (min-width: 640px) { .fleet-card img { height: 210px; } }
@media (min-width: 1024px) { .fleet-card img { height: 230px; } }

.fleet-card:hover img { transform: scale(1.05); }

.fleet-card-content {
  padding: 1rem;
  background: var(--grad-card);
}
@media (min-width: 640px) { .fleet-card-content { padding: 1.25rem; } }

.fleet-card-content h3,
.fleet-card-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 640px) {
  .fleet-card-content h3,
  .fleet-card-content h4 { font-size: 1.125rem; }
}

.fleet-card-content p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin: 0;
}
@media (min-width: 640px) {
  .fleet-card-content p { font-size: 0.875rem; }
}

.fleet-card-features {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.fleet-card-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
@media (min-width: 640px) {
  .fleet-card-feature { font-size: 0.875rem; }
}

/* =========================================================
   13) CTA SECTION
========================================================= */
.cta-section {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(255,165,0,0.05) 0%, rgba(0,0,0,0.95) 100%);
  border-top: 1px solid var(--border-accent);
}

@media (min-width: 640px) { .cta-section { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .cta-section { padding: 6rem 2rem; } }

.cta-section p { max-width: 650px; margin: 0 auto 1.5rem; }
@media (min-width: 640px) { .cta-section p { margin-bottom: 2rem; } }

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 480px) {
  .cta-buttons { flex-direction: row; justify-content: center; gap: 1rem; flex-wrap: wrap; }
}
.cta-buttons .btn { width: 100%; max-width: 280px; }
@media (min-width: 480px) { .cta-buttons .btn { width: auto; max-width: none; } }

/* =========================================================
   14) ACCORDION
========================================================= */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}
@media (min-width: 640px) { .accordion-item { margin-bottom: 1rem; } }

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.25rem;
  background: transparent;
  border: none;

  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}
@media (min-width: 640px) {
  .accordion-header { padding: 1.25rem 1.5rem; font-size: 1rem; }
}
.accordion-header:hover { background: rgba(255,165,0,0.05); }
.accordion-header span:first-child { flex: 1; }

.accordion-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
@media (min-width: 640px) { .accordion-icon { font-size: 1.5rem; } }

.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-item.active .accordion-content {
  max-height: 700px;
  padding: 0 1.25rem 1rem;
}
@media (min-width: 640px) {
  .accordion-item.active .accordion-content { padding: 0 1.5rem 1.25rem; }
}
.accordion-content p { margin: 0; font-size: 0.875rem; line-height: 1.6; }
@media (min-width: 640px) { .accordion-content p { font-size: 0.9375rem; } }
.accordion-content a { color: var(--primary); transition: opacity 0.3s ease; }
.accordion-content a:hover { opacity: 0.85; }

/* =========================================================
   15) BREADCRUMB
========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;

  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
@media (min-width: 640px) {
  .breadcrumb { font-size: 0.875rem; gap: 0.5rem; margin-bottom: 1.5rem; }
}
.breadcrumb a { color: var(--fg-muted); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current="page"] { color: var(--primary); }

/* =========================================================
   16) TABLES (basic)
========================================================= */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.8125rem;
}
@media (min-width: 640px) { .comparison-table { font-size: 0.9375rem; } }
.comparison-table th,
.comparison-table td { padding: 0.75rem; }
@media (min-width: 640px) { .comparison-table th, .comparison-table td { padding: 1rem; } }

/* =========================================================
   17) ARTICLE LINKS (optional)
========================================================= */
article a { color: var(--primary); transition: opacity 0.3s ease; }
article a:hover { opacity: 0.85; }

/* =========================================================
   18) PRELOADER (safe)
========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

body.loaded #preloader {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   19) SCROLL TO TOP
========================================================= */
#scrollToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--grad);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

#scrollToTop svg {
  width: 20px;
  height: 20px;
  stroke: #000;
}

/* =========================================================
   20) ANIMATIONS
========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,165,0,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,165,0,0.4); }
}

.animate-fade-in { animation: fadeInUp 0.8s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* =========================================================
   21) SCROLLBAR
========================================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255,165,0,0.30);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,165,0,0.50); }
