/* ============================================================
   QZero International — Global Stylesheet
   Brand: black & gold luxury automotive
   Loaded on every page alongside the Tailwind CDN build.
   ============================================================ */

:root {
  --gold: #d4af37;
  --gold-light: #f0d97c;
  --gold-dark: #9c7a1e;
  --ink: #0a0a0c;
  --coal: #111114;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.92);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0a0a0c; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: #2b2b31; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ---------- Typography helpers ---------- */
.text-gradient-gold {
  background: linear-gradient(115deg, #f5e6a8 0%, #f0d97c 25%, #d4af37 55%, #a8842a 80%, #e8cd6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border-radius: 0.7rem;
  padding: 0.8rem 1.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, #f0d97c, #d4af37 48%, #9c7a1e);
  color: #0a0a0c;
  box-shadow: 0 10px 28px -10px rgba(212, 175, 55, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, 0.7); }
.btn-outline {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f5ebc8;
  background: rgba(212, 175, 55, 0.04);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.14); border-color: var(--gold); transform: translateY(-2px); }
.btn-whatsapp {
  background: #1fa855;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.6);
}
.btn-whatsapp:hover { background: #24c463; transform: translateY(-2px); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; border-radius: 0.55rem; }

/* ---------- Cards / chips ---------- */
.card-hover { transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.75);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
body[data-hero="1"] .site-header:not(.is-solid) {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.site-header.is-solid,
body:not([data-hero="1"]) .site-header {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.nav-link {
  position: relative;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---------- Hero carousel ---------- */
.slide { opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide .slide-caption > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide.active .slide-caption > * { opacity: 1; transform: none; }
.slide.active .slide-caption > *:nth-child(1) { transition-delay: 0.15s; }
.slide.active .slide-caption > *:nth-child(2) { transition-delay: 0.32s; }
.slide.active .slide-caption > *:nth-child(3) { transition-delay: 0.49s; }
.slide.active .slide-caption > *:nth-child(4) { transition-delay: 0.66s; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active { background: var(--gold); width: 28px; }
.hero-arrow {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.hero-arrow:hover { background: var(--gold); color: #0a0a0c; }

/* ---------- WhatsApp float ---------- */
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2fd06f, #128c4b);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(18, 140, 75, 0.65);
  transition: transform 0.3s ease;
}
.wa-float:hover { transform: scale(1.08) rotate(4deg); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(47, 208, 111, 0.8);
  animation: wa-pulse 2.2s ease-out infinite;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slide .slide-caption > * { transition: none; }
}

/* ---------- Forms (shared by contact + admin) ---------- */
.field {
  width: 100%;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.6rem;
  padding: 0.62rem 0.9rem;
  color: #fff;
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field::placeholder { color: rgba(255, 255, 255, 0.32); }
.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}
select.field option { background: #14141a; }
.label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.err-text { color: #f87171; font-size: 0.78rem; margin-top: 0.3rem; display: none; }
.err-text.show { display: block; }

/* ---------- Stars ---------- */
.star { color: #3a3a40; }
.star.filled { color: var(--gold); filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5)); }

/* ---------- Admin panel extras ---------- */
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.admin-nav-btn:hover { background: rgba(212, 175, 55, 0.08); color: #fff; }
.admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.07));
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  border-radius: 0 0.55rem 0.55rem 0;
}
.admin-table th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.87rem;
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(212, 175, 55, 0.04); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.icon-btn.danger:hover { border-color: #ef4444; color: #f87171; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2.5rem 1rem;
}
.modal-card {
  background: #121216;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 1rem;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

/* Toasts */
#toast-root {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}
.toast-item {
  min-width: 240px;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.toast-success { background: #14251b; border: 1px solid rgba(74, 222, 128, 0.4); color: #bbf7d0; }
.toast-error { background: #2b1416; border: 1px solid rgba(248, 113, 113, 0.45); color: #fecaca; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}

/* Vehicle detail gallery */
.thumb-active { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Misc */
.map-frame {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.9rem;
  filter: grayscale(0.85) contrast(1.05) invert(0.92) hue-rotate(180deg);
}
@media (min-width: 768px) { .map-frame { height: 320px; } }
