/* ============================================================
   House of Luxury Cars — custom layer
   (everything Tailwind utilities can't express cleanly)
   ============================================================ */

:root {
  --brand: #8e191c;
  --brand-deep: #5c0f12;
  --ink: #0c0c0e;
  --cream: #faf8f5;
  --gold: #c5a059;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-feature-settings: 'ss01' on, 'cv05' on;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #131316; }
::-webkit-scrollbar-thumb {
  background: #2e2e36;
  border-radius: 8px;
  border: 2px solid #131316;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- glass surfaces ---------- */
.glass-dark {
  position: relative;
  background: rgba(12, 12, 14, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.glass-dark::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.45) 30%, rgba(197, 160, 89, 0.45) 70%, transparent);
  pointer-events: none;
}
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-light {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(12, 12, 14, 0.06);
}

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- hero ---------- */
.hero-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.45) 38%, rgba(12, 12, 14, 0.25) 60%, rgba(12, 12, 14, 0.65) 100%),
    radial-gradient(120% 90% at 78% 30%, transparent 30%, rgba(12, 12, 14, 0.55) 100%);
  pointer-events: none;
}

.text-shine {
  background: linear-gradient(110deg, #faf8f5 35%, #e3cd9c 48%, #faf8f5 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 5.5s linear infinite;
}
@keyframes shineSweep {
  to { background-position: -200% center; }
}

/* ---------- hero (split editorial layout) ---------- */
.hero-in {
  opacity: 0;
  animation: heroIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-watermark {
  position: absolute;
  left: -5rem;
  bottom: -4rem;
  width: 32rem;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.animate-spin-slower { animation: spinSlower 22s linear infinite; }
@keyframes spinSlower { to { transform: rotate(360deg); } }
.hero-line-draw {
  background: linear-gradient(to bottom, transparent, rgba(197, 160, 89, 0.55), transparent);
  animation: lineDraw 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  transform-origin: top;
}
@keyframes lineDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- navbar logo chip ---------- */
.logo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(142, 25, 28, 0.4), rgba(12, 12, 14, 0.65));
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.35), 0 8px 24px -8px rgba(142, 25, 28, 0.55);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
a:hover .logo-chip {
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.75), 0 10px 32px -8px rgba(142, 25, 28, 0.8);
  transform: translateY(-1px);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.is-visible,
.reveal-right.is-visible { transform: translateX(0); }
.reveal-scale { transform: scale(0.94); }
.reveal-scale.is-visible { transform: scale(1); }

/* ---------- card hover ---------- */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 14px -4px rgb(12 12 14 / 0.10), 0 28px 56px -16px rgb(12 12 14 / 0.22);
}
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img { transform: scale(1.06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #a52b2f 0%, #8e191c 55%, #761417 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.15) inset, 0 10px 28px -10px rgb(142 25 28 / 0.6);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 14px 36px -10px rgb(142 25 28 / 0.75);
  transform: translateY(-2px);
}
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #faf8f5;
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-ghost-dark {
  border: 1px solid rgba(12, 12, 14, 0.18);
  color: #0c0c0e;
  background: transparent;
}
.btn-ghost-dark:hover {
  border-color: #8e191c;
  color: #8e191c;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #2ad168 0%, #1faf52 100%);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgb(37 211 102 / 0.55);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgb(37 211 102 / 0.7); }

/* ---------- nav ---------- */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.72);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #c5a059, #8e191c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: #faf8f5; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #faf8f5; }
.nav-link.active::after { transform: scaleX(1); }

#topBar {
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.nav-scrolled #topBar { max-height: 0; opacity: 0; }
.nav-scrolled .glass-dark {
  background: rgba(12, 12, 14, 0.92);
  box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.6);
}

/* ---------- chips / filter pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  border-radius: 9999px;
  border: 1px solid #eae5dc;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #44444c;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: #d69092; color: #8e191c; }
.chip.active {
  background: #8e191c;
  border-color: #8e191c;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgb(142 25 28 / 0.5);
}

/* ---------- forms ---------- */
.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2ddd3;
  background: #fff;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  color: #0c0c0e;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder { color: #9b9ba3; }
.field:focus {
  outline: none;
  border-color: #8e191c;
  box-shadow: 0 0 0 4px rgb(142 25 28 / 0.08);
}
.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2e2e36;
  margin-bottom: 0.5rem;
}

/* dark variant (details / finance panels on ink) */
.field-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #faf8f5;
}
.field-dark::placeholder { color: rgba(250, 248, 245, 0.4); }
.field-dark:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 4px rgb(197 160 89 / 0.12);
}

/* ---------- range sliders ---------- */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, #8e191c 0%, #8e191c var(--fill, 50%), #eae5dc var(--fill, 50%), #eae5dc 100%);
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #8e191c;
  box-shadow: 0 4px 12px -2px rgb(142 25 28 / 0.45);
  transition: transform 0.15s ease;
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #8e191c;
  box-shadow: 0 4px 12px -2px rgb(142 25 28 / 0.45);
  cursor: pointer;
}
.range-dark { background: linear-gradient(to right, #c5a059 0%, #c5a059 var(--fill, 50%), rgba(255,255,255,0.15) var(--fill, 50%), rgba(255,255,255,0.15) 100%) !important; }
.range-dark::-webkit-slider-thumb { border-color: #c5a059; box-shadow: 0 4px 12px -2px rgb(197 160 89 / 0.5); }
.range-dark::-moz-range-thumb { border-color: #c5a059; }

/* ---------- accordion ---------- */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-body > div { overflow: hidden; }
.accordion-item.open .accordion-body { grid-template-rows: 1fr; }
.accordion-item .accordion-icon { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

/* ---------- brand marquee logos ---------- */
.brand-logo {
  mix-blend-mode: screen; /* drops the black logo plates into the dark band */
  opacity: 0.65;
  filter: saturate(0.4);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.brand-logo:hover {
  opacity: 1;
  filter: saturate(1);
  transform: scale(1.08);
}

/* ---------- marquee ---------- */
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track:hover { animation-play-state: paused; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 12, 14, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- floating CTA stack ---------- */
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- gallery thumbs ---------- */
.thumb {
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.25s ease;
}
.thumb:hover { opacity: 1; }
.thumb.active {
  border-color: #8e191c;
  opacity: 1;
  box-shadow: 0 6px 18px -6px rgb(142 25 28 / 0.45);
}

/* ---------- step connector (how it works) ---------- */
@media (min-width: 1024px) {
  .step-line::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(50% + 3rem);
    width: calc(100% - 6rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.5), rgba(197, 160, 89, 0.08));
  }
  .step-line:last-child::after { display: none; }
}

/* ---------- donut (EMI breakdown) ---------- */
.donut {
  border-radius: 50%;
  background: conic-gradient(#8e191c 0% var(--principal, 70%), #c5a059 var(--principal, 70%) 100%);
  transition: background 0.4s ease;
}

/* ---------- back-to-top ---------- */
#backToTop {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- ticker badge ---------- */
.badge-dot { position: relative; }
.badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulseRingRed 2.2s infinite;
}
@keyframes pulseRingRed {
  0% { box-shadow: 0 0 0 0 rgb(142 25 28 / 0.4); }
  70% { box-shadow: 0 0 0 10px rgb(142 25 28 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(142 25 28 / 0); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
