/* ============================================================
   REVISIONCAR — Main Stylesheet  (zero dipendenze esterne)
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  --bg-0: #070c18;
  --bg-1: #0d1525;
  --bg-2: #131e30;
  --bg-3: #1a2a40;
  --bg-card: #162032;
  --accent: #e63946;
  --accent-dark: #b52d38;
  --accent-glow: rgba(230, 57, 70, 0.25);
  --text-1: #f0f4f8;
  --text-2: #a0b0c8;
  --text-3: #617082;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(230, 57, 70, 0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

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

ul { list-style: none; }

button { cursor: pointer; font-family: var(--font); border: none; background: none; }

input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-1);
}

main { flex: 1; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-2); }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-3); }

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* ── 5. NAVIGATION ────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#header.scrolled {
  background: rgba(7, 12, 24, 0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover,
.nav-links li.active a {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}

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

.nav-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-login:hover { background: var(--accent-dark) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(255,255,255,0.06); }

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.nav-drawer.open { display: block; }

.nav-drawer ul { flex-direction: column; gap: 4px; display: flex; }

.nav-drawer li a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-drawer li a:hover,
.nav-drawer li.active a {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}

.nav-drawer li.active a { color: var(--accent); }

.nav-drawer .nav-login {
  margin-top: 8px;
  display: inline-flex;
  background: var(--accent) !important;
  color: #fff !important;
}

/* Page offset for fixed nav */
body { padding-top: var(--nav-h); }

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
  border: 2px solid transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block { width: 100%; justify-content: center; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-1px);
}

/* ── 7. HERO SECTIONS ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-0);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,12,24,0.92) 0%, rgba(7,12,24,0.65) 60%, rgba(7,12,24,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text-1);
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (shorter) */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .hero-bg { filter: brightness(0.5); }

.page-hero .hero-overlay {
  background: linear-gradient(to right, rgba(7,12,24,0.9) 0%, rgba(7,12,24,0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 { color: var(--text-1); margin-bottom: 8px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.breadcrumb a { color: var(--text-2); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-3); }

/* ── 8. SECTION HEADERS ───────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 16px;
}

.divider.centered { margin: 16px auto 0; }

/* ── 9. CAR CARDS ─────────────────────────────────────────── */
.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.car-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-2);
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.car-card:hover .car-card-img img { transform: scale(1.05); }

.car-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  flex: 1;
}

.car-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.car-card-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  justify-content: center;
}

/* ── 10. SLIDER CAROUSEL ──────────────────────────────────── */
.slider-wrapper {
  position: relative;
}

.slider-track-container {
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  transition: transform 0.4s var(--ease);
}

.slider-track .car-card {
  flex: 0 0 calc(33.333% - 14px);
  margin-right: 21px;
}

.slider-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── 11. SERVICE CARDS ────────────────────────────────────── */
.services-section {
  background: var(--bg-1);
}

.service-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--accent);
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; }

/* ── 12. STATS BAR ────────────────────────────────────────── */
.stats-bar {
  background: var(--accent);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* ── 13. FORMS ────────────────────────────────────────────── */
.form-section {
  background: var(--bg-1);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control::placeholder { color: var(--text-3); }

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

/* Form success/loading states */
.btn-submit {
  position: relative;
  min-width: 160px;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 14. INFO CARD (CONTACT) ──────────────────────────────── */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.info-card h3 { margin-bottom: 24px; }

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.info-item-content span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.info-item-content strong {
  color: var(--text-1);
  font-size: 0.95rem;
  display: block;
}

.info-item-content a:hover { color: var(--accent); }

/* ── 15. GOOGLE MAPS ──────────────────────────────────────── */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  margin-bottom: 48px;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

.map-consent-placeholder {
  width: 100%;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-2);
  text-align: center;
  padding: 24px;
}

.map-consent-placeholder svg { color: var(--text-3); opacity: 0.5; }
.map-consent-placeholder p { font-size: 0.9rem; max-width: 340px; }

/* ── 16. ABOUT SECTION ────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-cert {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.about-list {
  list-style: none;
  margin: 20px 0;
}

.about-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ── 17. LETSGO / APP SECTION ─────────────────────────────── */
.app-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(14, 30, 60, 0.6) 0%, transparent 60%);
}

.app-store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  transition: all 0.3s var(--ease);
  min-width: 200px;
}

.btn-store:hover {
  background: var(--bg-3);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-store svg { flex-shrink: 0; }

.btn-store-text { text-align: left; }
.btn-store-text small { display: block; font-size: 0.72rem; color: var(--text-3); }
.btn-store-text strong { display: block; font-size: 1rem; font-weight: 700; }

/* ── 18. RENTAL SECTION ───────────────────────────────────── */
.rental-header-section {
  background: var(--bg-1);
  padding: 32px 0;
}

.rental-cars-title {
  margin-bottom: 24px;
}

.rental-model-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.rental-model-tag:hover {
  border-color: var(--accent);
  color: var(--text-1);
}

/* ── 19. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-main {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cookie-manage-link {
  font-size: 0.82rem;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ── 20. COOKIE BANNER ────────────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--bg-1);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

#cookieBanner.visible { transform: translateY(0); }

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 240px; }

.cookie-banner-text h3 {
  font-size: 1rem;
  color: var(--text-1);
  margin-bottom: 6px;
}

.cookie-banner-text p { font-size: 0.85rem; }
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-text a:hover { text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-cookie-reject {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
}

.btn-cookie-reject:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-1);
}

.btn-cookie-settings {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
}

.btn-cookie-settings:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-1);
}

.btn-cookie-accept {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  transition: all 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ── 21. COOKIE MODAL ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cookie-modal > p {
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.cookie-category {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-of-type { border-bottom: none; }

.cookie-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-cat-header strong {
  display: block;
  color: var(--text-1);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cookie-cat-header p { font-size: 0.82rem; max-width: 380px; }

.badge-always {
  flex-shrink: 0;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-3);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before {
  transform: translate(22px, -50%);
  background: #fff;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── 22. PRIVACY / COOKIE POLICY PAGES ───────────────────── */
.policy-section { padding: 64px 0 80px; }

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.3rem;
  color: var(--text-1);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p, .policy-content li {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}

.policy-content th, .policy-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.policy-content th {
  color: var(--text-1);
  font-weight: 600;
  background: var(--bg-2);
}

.policy-date {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 32px;
}

/* ── 23. ALERTS ───────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}

.alert.visible { display: block; }
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.alert-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ── 24. UTILITIES ────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 16px; }
.mt-4  { margin-top: 24px; }
.mt-6  { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 16px; }
.mb-4  { margin-bottom: 24px; }
.mb-6  { margin-bottom: 40px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}

.empty-state svg { opacity: 0.3; margin: 0 auto 16px; }

/* ── 25. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .slider-track .car-card { flex: 0 0 calc(50% - 11px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }

  .hero { min-height: 85vh; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .page-hero { height: 240px; }

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

  .slider-track .car-card { flex: 0 0 calc(100% - 0px); margin-right: 0; }

  .form-card { padding: 24px; }

  .cookie-banner-inner { flex-direction: column; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .btn-cookie-reject, .btn-cookie-settings, .btn-cookie-accept { flex: 1; }

  .cookie-modal { padding: 24px; }
  .cookie-modal-actions { flex-direction: column; }
  .cookie-modal-actions .btn, .cookie-modal-actions button { width: 100%; justify-content: center; }

  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .app-store-buttons { flex-direction: column; }
  .btn-store { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 32px; }
}
