/* ==========================
   Twilight Mist Luxusautos – Vibrant Energetic Stylesheet
   Mobile-first, flexbox-only, high-energy aesthetic
   ========================== */

/* ===== CSS RESET & NORMALIZE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
:focus { outline: 2px dashed #7DF9FF; outline-offset: 2px; }

/* ===== THEME TOKENS ===== */
:root {
  --bg: #0D1117;           /* primary */
  --surface: #2B2F36;      /* secondary */
  --ink: #E6EAF0;          /* light text */
  --ink-dim: #B8C0CC;
  --ink-strong: #FFFFFF;   
  --accent: #D4AF37;       /* gold */
  --electric: #7DF9FF;     /* energetic highlight */
  --electric-pink: #FF2D55;/* energetic alt */
  --success: #2EE58F;
  --danger: #FF5A5F;
  --shadow-strong: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 180ms ease;
  --container-w: 1200px;
}

/* ===== BASE ===== */
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, .logo { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 28px; line-height: 1.25; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink-strong); }
p, li { font-size: 16px; color: var(--ink); }
small { font-size: 14px; color: var(--ink-dim); }

/* Links */
a { color: var(--electric); transition: color var(--transition); }
a:hover { color: var(--accent); }

/* Containers & Wrappers (Flex-only) */
.container {
  width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.content-wrapper {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%;
}

/* Global section spacing (plus required .section class) */
section { padding: 40px 0; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ===== HEADER & NAV ===== */
header { position: relative; z-index: 50; background: var(--bg); border-bottom: 2px solid rgba(212,175,55,0.2); }
header .container { padding-top: 14px; padding-bottom: 14px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); opacity: 0.9; padding: 8px 10px; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; font-size: 13px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.main-nav a:hover { background: rgba(125,249,255,0.08); color: var(--ink-strong); transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: var(--accent); background: rgba(212,175,55,0.08); }

/* Burger button */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; background: var(--surface); color: var(--ink-strong);
  box-shadow: var(--shadow-soft); transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-strong); background: #323844; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: 86%; max-width: 420px; background: var(--bg);
  box-shadow: -10px 0 24px rgba(0,0,0,0.4); transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 0; padding: 20px; z-index: 100;
}
.mobile-menu[aria-hidden="false"], .mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); color: var(--ink-strong);
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.02); color: var(--ink);
  text-transform: uppercase; font-weight: 800; letter-spacing: 0.8px; font-size: 14px; transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: rgba(125,249,255,0.08); color: var(--ink-strong); }
.mobile-nav a[aria-current="page"] { color: var(--accent); background: rgba(212,175,55,0.1); }

/* ===== HERO ===== */
.hero { background: var(--surface); position: relative; }
.hero .container { padding-top: 24px; padding-bottom: 24px; }
.hero .content-wrapper {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 0 0 2px rgba(125,249,255,0.05), var(--shadow-soft);
}
.hero h1 { color: var(--ink-strong); text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.hero p { color: var(--ink); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; line-height: 1;
  border: 2px solid var(--accent); color: #0D0F13; background: var(--accent);
  box-shadow: 0 6px 16px rgba(212,175,55,0.25), 0 0 0 4px rgba(212,175,55,0.08);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.cta-group a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,0.35), 0 0 0 6px rgba(125,249,255,0.12); }
.cta-group a:nth-child(2) {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.cta-group a:nth-child(2):hover { background: rgba(212,175,55,0.1); color: var(--ink-strong); }

/* Trust badges & text blocks */
.trust-badges { display: flex; flex-direction: column; gap: 10px; }
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section img { display: inline-block; vertical-align: middle; height: 18px; width: auto; margin-right: 6px; }

/* ===== FLEX LAYOUT UTILS (MANDATORY PATTERNS) ===== */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===== CARDS & TESTIMONIALS ===== */
.card, .testimonial-card {
  background: #FFFFFF; color: #0D1117; border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.testimonial-card { border-left: 6px solid var(--accent); }
.testimonial-card p { color: #0D1117; }
.testimonial-card strong { color: #111827; }

/* ===== GENERIC CONTENT ===== */
section .content-wrapper { background: transparent; }
section:nth-of-type(even) { background: rgba(255,255,255,0.02); }

/* Emphasis links inside text sections */
.text-section a { color: var(--electric); font-weight: 700; border-bottom: 2px solid rgba(125,249,255,0.3); padding-bottom: 2px; }
.text-section a:hover { color: var(--accent); border-color: rgba(212,175,55,0.5); }

/* Ordered lists spacing */
.text-section ol, .text-section ul { display: flex; flex-direction: column; gap: 8px; }

/* ===== FOOTER ===== */
footer { background: #0B0F14; border-top: 2px solid rgba(212,175,55,0.2); }
footer section { padding: 40px 0; }
footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-nav a { color: var(--ink-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; font-size: 13px; }
.footer-nav a:hover { color: var(--ink-strong); }
footer .logo img { height: 36px; }

/* ===== BUTTON-LIKE LINKS (fallback) ===== */
a.button, .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--accent); color: #0D0F13; background: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
a.button:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,0.35); }

/* ===== TABLES (in case) ===== */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: var(--accent); font-weight: 800; }

/* ===== RESPONSIVE RULES ===== */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .hero .content-wrapper { flex-direction: column; align-items: flex-start; }

  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  .text-image-section { flex-direction: row; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* ===== MICRO-INTERACTIONS ===== */
.hover-raise { transition: transform var(--transition), box-shadow var(--transition); }
.hover-raise:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }

/* ===== ACCESSIBILITY & STATES ===== */
[aria-current="page"] { position: relative; }
[aria-current="page"]::after { content: ""; display: block; height: 3px; background: var(--accent); border-radius: 3px; margin-top: 6px; }

/* ===== MOBILE MENU BACKDROP (optional helper) ===== */
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity var(--transition); z-index: 90; }
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; background: #0F141B; color: var(--ink);
  border-top: 3px solid var(--accent); box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
  transform: translateY(100%); transition: transform 260ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-buttons button {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.cookie-accept { background: var(--accent); color: #0D0F13; border: 2px solid var(--accent); }
.cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(212,175,55,0.3); }
.cookie-reject { background: transparent; color: var(--ink-strong); border: 2px solid rgba(255,255,255,0.2); }
.cookie-reject:hover { background: rgba(255,255,255,0.06); }
.cookie-settings { background: transparent; color: var(--electric); border: 2px solid rgba(125,249,255,0.4); }
.cookie-settings:hover { background: rgba(125,249,255,0.08); }

/* Cookie Modal */
.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 300; opacity: 0; pointer-events: none; transition: opacity var(--transition); display: flex; align-items: center; justify-content: center; }
.cookie-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: #0F141B; border: 2px solid rgba(212,175,55,0.2); color: var(--ink);
  width: 92%; max-width: 640px; border-radius: 16px; box-shadow: var(--shadow-strong);
  transform: translateY(20px); transition: transform var(--transition);
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal-backdrop.open .cookie-modal { transform: translateY(0); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Cookie switches (toggle) */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #3B4250; transition: background var(--transition); display: flex; align-items: center; padding: 3px; }
.switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translateX(0); transition: transform var(--transition), background var(--transition); }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(20px); background: #0D1117; }

/* ===== UTILITIES ===== */
.muted { color: var(--ink-dim); }
.accent { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(212,175,55,0.12); color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.8px; }

/* ===== PAGE-SPECIFIC NUANCES ===== */
/* Hero variations keep strong contrast and energy */
.hero .cta-group a { box-shadow: 0 8px 18px rgba(212,175,55,0.25), 0 0 0 4px rgba(125,249,255,0.06); }

/* List icons alignment */
.text-section li img { margin-right: 6px; }

/* Contact blocks */
.text-section p img { margin-right: 8px; }

/* ===== FLEX-ONLY LAYOUT SAFEGUARDS ===== */
/* Avoid absolute positioning for content blocks; decorative only if needed. */

/* ===== PRINT (optional minimal) ===== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Ensure no CSS Grid or Columns are used anywhere. All containers rely on flexbox. */