/* ============================================================
   GLOSIFY — Global Design System
   Affordable Luxury · Melbourne Mobile Car Detailing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Montserrat:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:        #000000;
  --black-soft:   #0a0a0a;
  --charcoal:     #111111;
  --charcoal-mid: #1a1a1a;
  --white:        #ffffff;
  --white-dim:    rgba(255,255,255,0.72);
  --white-faint:  rgba(255,255,255,0.08);

  --gold:         #C9A84C;
  --gold-light:   #F0D060;
  --gold-dark:    #8B6914;
  --gold-grad:    linear-gradient(135deg, #8B6914 0%, #C9A84C 35%, #F0D060 55%, #C9A84C 75%, #8B6914 100%);
  --gold-text:    linear-gradient(135deg, #C9A84C, #F0D060, #C9A84C);

  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(201,168,76,0.18);
  --glass-blur:   blur(18px);

  --nav-h:        72px;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:   0.35s var(--ease-smooth);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.display-xl { font-size: clamp(2.6rem, 7vw, 6rem); }
.display-lg { font-size: clamp(2rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.body-lg  { font-size: 1.125rem; line-height: 1.75; }
.body-md  { font-size: 1rem;     line-height: 1.7; }
.body-sm  { font-size: 0.875rem; line-height: 1.6; }
.muted    { color: var(--white-dim); }

/* ── LAYOUT UTILITIES ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.section-pad { padding: 5rem 0; }
@media (min-width: 768px) { .section-pad { padding: 7rem 0; } }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ── GLASS CARD ──────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.12), 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.gold-divider {
  width: 60px; height: 2px;
  background: var(--gold-grad);
  border-radius: 99px;
  margin: 1rem 0 1.5rem;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold-grad);
  color: var(--black);
  border: none;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  box-shadow: 0 6px 36px rgba(240,208,96,0.55);
  transform: translateY(-2px) scale(1.02);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 24px rgba(201,168,76,0.2);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 0.85rem; }
.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.72rem; }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold); }
.badge-dark { background: rgba(255,255,255,0.06); color: var(--white-dim); border: 1px solid rgba(255,255,255,0.1); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-label { display: block; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--white-dim); }

/* ── NAVIGATION ──────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#main-nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--glass-border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-logo span { background: var(--gold-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: none; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold-grad);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* ── MOBILE NAV ──────────────────────────────────────────── */
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 4px; cursor: pointer;
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

#mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu a {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
}
#mobile-menu a:hover, #mobile-menu a.active { color: var(--white); }
#mobile-menu .btn { width: 220px; justify-content: center; }

/* ── STICKY MOBILE CTA ───────────────────────────────────── */
#sticky-mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 998;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  display: flex; gap: 0.75rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-smooth);
}
#sticky-mobile-cta.visible { transform: translateY(0); }
#sticky-mobile-cta a { flex: 1; text-align: center; justify-content: center; }
@media (min-width: 900px) { #sticky-mobile-cta { display: none !important; } }

/* ── FOOTER ──────────────────────────────────────────────── */
#main-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.footer-brand p { color: var(--white-dim); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.875rem; color: var(--white-dim);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.social-row { display: flex; gap: 1rem; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--white-dim);
  transition: var(--transition);
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }

/* ── SCROLL ANIMATIONS (GSAP triggers these classes) ─────── */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }

/* ── VIDEO HERO ──────────────────────────────────────────── */
.hero-video-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
}

/* ── PRICE TAG ───────────────────────────────────────────── */
.price-tag {
  font-family: 'Syncopate', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.price-tag sup { font-size: 1rem; vertical-align: super; }

/* ── CHECKLIST ───────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--white-dim);
}
.check-list li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ── GLOW EFFECTS ────────────────────────────────────────── */
.glow-gold { box-shadow: 0 0 60px rgba(201,168,76,0.15); }
.glow-ring {
  position: relative;
}
.glow-ring::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--gold-grad);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.glow-ring:hover::before { opacity: 1; }

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

/* ── STAR RATING ─────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }

/* ── BEFORE/AFTER SLIDER ─────────────────────────────────── */
.ba-container {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 16/9;
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ba-before { background: #1a1a1a; }
.ba-after { clip-path: inset(0 50% 0 0); background: #0d0d0d; }
.ba-after.dragging { transition: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px; background: var(--gold-grad);
  z-index: 2;
}
.ba-handle::before, .ba-handle::after {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle::before { top: 50%; margin-top: -20px; }
.ba-label {
  position: absolute; bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.ba-label.left  { left: 1rem; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }
.ba-label.right { right: 1rem; color: var(--gold); border: 1px solid var(--gold); }

/* ── PLACEHOLDER IMAGE ───────────────────────────────────── */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111 0%, #1c1c1c 50%, #111 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.img-placeholder i { font-size: 2rem; color: rgba(201,168,76,0.3); }
.img-placeholder span { font-size: 0.7rem; color: rgba(255,255,255,0.2); font-family: 'Montserrat', sans-serif; letter-spacing: 0.1em; }

/* ── MISC ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.d-flex { display: flex; }
.ai-center { align-items: center; }
.wrap { flex-wrap: wrap; }

/* STAGGER ANIMATION INITIAL STATE */
.stagger-parent > * { opacity: 0; transform: translateY(32px); }

/* NO-JS FALLBACK: reveal elements if JS/GSAP unavailable */
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-scale, .no-js .stagger-parent > * { opacity: 1 !important; transform: none !important; }

