/* ==========================================================================
   Gotti Car — Custom styles & theme tokens (complements Tailwind CDN).
   ========================================================================== */

:root {
  --racing: #ff4500;
  --racing-600: #e03e00;

  /* Light theme tokens */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.82);
}

html.dark {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #1f2a3c;
  --header-bg: rgba(11, 17, 32, 0.78);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* --- Themed helper utilities --------------------------------------------- */
.surface   { background-color: var(--surface); }
.surface-2 { background-color: var(--surface-2); }
.text-muted { color: var(--text-muted); }
.bd        { border-color: var(--border); }
.accent    { color: var(--racing); }
.bg-accent { background-color: var(--racing); }

/* --- Brand wordmark (two-tone) ------------------------------------------ */
.brand-mark { letter-spacing: -0.02em; }
.brand-gotti { color: var(--text); }            /* adapts to light/dark theme */
.brand-car   { color: var(--racing); }          /* racing orange */
.hero .brand-gotti { color: #fff; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.92)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1920&q=80")
      center / cover no-repeat fixed;
  color: #f8fafc;
}
html:not(.dark) .hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.82)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1920&q=80")
      center / cover no-repeat fixed;
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

/* Accent buttons */
.btn-accent {
  background-color: var(--racing);
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 8px 24px -10px rgba(255, 69, 0, 0.7);
}
.btn-accent:hover { background-color: var(--racing-600); box-shadow: 0 12px 30px -8px rgba(255, 69, 0, 0.65); }
.btn-accent:active { transform: scale(0.97); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.12s ease;
}
.btn-ghost:hover { background-color: rgba(255, 255, 255, 0.12); }
.btn-ghost:active { transform: scale(0.97); }

/* --- Cards --------------------------------------------------------------- */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--racing);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
}

/* --- Form fields --------------------------------------------------------- */
.field {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--racing);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.18);
}

/* --- Slot buttons -------------------------------------------------------- */
.slot {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.1s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.slot:hover:not(:disabled) { border-color: var(--racing); }
.slot:active:not(:disabled) { transform: scale(0.95); }
.slot.selected {
  background-color: var(--racing);
  border-color: var(--racing);
  color: #fff;
}
.slot:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Language dropdown --------------------------------------------------- */
.lang-menu { display: none; }
.lang-menu.open { display: block; }

/* --- Mobile nav ---------------------------------------------------------- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
#mobile-menu.open { max-height: 420px; }

/* --- Modal --------------------------------------------------------------- */
.modal-backdrop {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; }
.modal-card {
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

/* --- Scroll-reveal micro-animation -------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Floating WhatsApp --------------------------------------------------- */
.wa-fab {
  background: #25d366;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.6s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Scrollbar ----------------------------------------------------------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--racing); }

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