/* SV Car Studio — Premium visual layer (fonts loaded via index.html) */

:root {
  --sv-bg: #06080f;
  --sv-bg-elevated: #0c1019;
  --sv-emerald: #2dd4a8;
  --sv-emerald-deep: #0d9668;
  --sv-gold: #d4af37;
  --sv-gold-soft: #c9a962;
  --sv-champagne: #f5e6c8;
  --sv-glass: rgba(255, 255, 255, 0.045);
  --sv-glass-border: rgba(255, 255, 255, 0.1);
  --sv-glow: rgba(45, 212, 168, 0.22);
  --sv-gold-glow: rgba(212, 175, 55, 0.18);
}

/* ── Base atmosphere ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif !important;
  background-color: var(--sv-bg) !important;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 168, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 175, 55, 0.06), transparent 50%),
    radial-gradient(800px 400px at 50% 100%, rgba(16, 185, 129, 0.05), transparent 60%);
  background-attachment: scroll;
}

@media (min-width: 1024px) {
  body {
    background-attachment: fixed;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#root {
  position: relative;
  z-index: 1;
}

/* ── Typography — display serif in hero only, Manrope everywhere else ── */
body,
header,
.nav-link,
.btn-primary,
.btn-outline,
p,
li,
label,
input,
textarea,
select,
button {
  letter-spacing: -0.01em;
}

#root main > div > section:first-of-type h1,
#root section[class*="min-h-[90vh]"] h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

h2,
h3,
h4,
.section-title {
  font-family: "Manrope", system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #ffffff;
}

.section-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: none;
}

.gradient-text {
  background: linear-gradient(135deg, #faf3e0 0%, var(--sv-gold-soft) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── Hero (homepage first screen) — base handled in hero-ambient.css ── */

/* ── Glass & cards ── */
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.22) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 168, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.service-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

.service-card:hover {
  border-color: rgba(45, 212, 168, 0.35) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(45, 212, 168, 0.08) !important;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--sv-emerald) 0%, var(--sv-emerald-deep) 55%, #0a7a56 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 8px 24px rgba(45, 212, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3ee9b5 0%, var(--sv-emerald) 50%, var(--sv-emerald-deep) 100%) !important;
  box-shadow:
    0 12px 32px rgba(45, 212, 168, 0.38),
    0 0 24px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-outline {
  border-color: rgba(212, 175, 55, 0.25) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.btn-outline:hover {
  border-color: rgba(45, 212, 168, 0.45) !important;
  background: rgba(45, 212, 168, 0.06) !important;
}

/* ── Header / nav strip ── */
header.sticky,
.sticky.top-0,
[class*="backdrop-blur"][class*="border-b"] {
  background: rgba(6, 8, 15, 0.72) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
  border-bottom-color: rgba(212, 175, 55, 0.08) !important;
}

.nav-link.active::after {
  background: linear-gradient(90deg, var(--sv-emerald), var(--sv-gold-soft)) !important;
  height: 2px !important;
  box-shadow: 0 0 12px var(--sv-glow);
}

/* ── Section rhythm ── */
.section {
  position: relative;
}

.bg-\[\#080c14\],
.bg-\[\#0a0f1a\] {
  background-color: transparent !important;
}

section.bg-\[\#080c14\]::before,
section.border-y.border-white\/5::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.03) 0%, transparent 30%, transparent 70%, rgba(45, 212, 168, 0.03) 100%);
  z-index: 0;
}

section.bg-\[\#080c14\] > *,
section.border-y.border-white\/5 > * {
  position: relative;
  z-index: 1;
}

/* ── Instagram block ── */
#behold-mount {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#behold-mount .sv-ig-item {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#behold-mount .sv-ig-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.1);
}

/* ── Car cards ── */
.glass-card .aspect-\[16\/10\] img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── Forms ── */
.form-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-input:focus {
  border-color: rgba(45, 212, 168, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.12) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.35), rgba(212, 175, 55, 0.25)) !important;
}

/* ── Footer subtle top glow ── */
footer {
  border-top-color: rgba(212, 175, 55, 0.1) !important;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .btn-primary,
  #behold-mount .sv-ig-item {
    transition: none !important;
  }
}
