/* ============================================================
   Advocate Sweta Singh — custom styles
   Complements Tailwind utilities with bespoke luxury touches.
   ============================================================ */

:root {
  --gold: #c8a24a;
  --gold-dark: #a6842f;
  --ink: #0a0a0a;
  --cream: #f6f1e7;
}

html, body { background: var(--ink); }

/* Lenis smooth scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Subtle grain overlay for cinematic feel */
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.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
  z-index: 60;
  mix-blend-mode: overlay;
}

/* ============ Typography ============ */
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; }

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 11px;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--gold);
}

/* ============ Buttons ============ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  background: linear-gradient(135deg, #d8b25a, #a6842f);
  color: #0a0a0a;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 10px 30px -10px rgba(200,162,74,.5);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, filter .4s;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.btn-gold:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 40px -10px rgba(200,162,74,.6); }
.btn-gold:hover::after { transform: translateX(100%); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  border: 1px solid rgba(246,241,231,.3);
  color: var(--cream);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 2px;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* ============ Navbar ============ */
#navbar.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,162,74,.15);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
}
.nav-link {
  position: relative;
  font-size: 12px;
  color: rgba(246,241,231,.8);
  letter-spacing: .2em;
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.mobile-link { color: var(--cream); transition: color .3s; }
.mobile-link:hover { color: var(--gold); }

#mobileMenu.open { transform: translateX(0); }
#menuBtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menuBtn.open span:nth-child(2) { opacity: 0; }
#menuBtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.55) 40%, rgba(10,10,10,.95) 100%),
    url("https://images.unsplash.com/photo-1589994965851-a8f479c573a9?q=80&w=1920&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.15);
}
.hero-line { overflow: hidden; display: block; }
.hero-line > span { display: inline-block; transform: translateY(110%); }

/* ============ Practice Cards ============ */
.practice-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(200,162,74,.15);
  background: linear-gradient(180deg, rgba(26,26,26,.6), rgba(18,18,18,.8));
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .5s, box-shadow .5s;
}
.practice-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(200,162,74,.1), transparent 40%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
.practice-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200,162,74,.55);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(200,162,74,.1) inset;
}
.practice-card:hover::before { transform: scaleY(1); transform-origin: top; }
.practice-card:hover::after { opacity: 1; }
.practice-card .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(200,162,74,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: all .5s;
}
.practice-card:hover .icon {
  background: var(--gold); color: #0a0a0a;
  transform: rotate(-8deg) scale(1.05);
}

/* ============ Timeline ============ */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(200,162,74,.4), transparent);
  transform: translateX(-50%);
}
@media (max-width: 768px) { .timeline::before { left: 20px; } }
.tl-item .dot {
  position: absolute; left: 50%; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(200,162,74,.08);
}
@media (max-width: 768px) { .tl-item .dot { left: 20px; } }

/* ============ Testimonials ============ */
.t-track { display: flex; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.t-slide { flex: 0 0 100%; padding: 0 1rem; }
.t-card {
  background: linear-gradient(180deg, rgba(26,26,26,.7), rgba(18,18,18,.9));
  border: 1px solid rgba(200,162,74,.18);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}
.t-card::before {
  content: "\201C";
  position: absolute;
  top: 10px; left: 30px;
  font-family: "Playfair Display", serif;
  font-size: 120px;
  color: var(--gold);
  opacity: .15;
  line-height: 1;
}
.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(200,162,74,.25);
  transition: all .4s;
}
.t-dot.active { background: var(--gold); width: 30px; border-radius: 6px; }

/* ============ Forms ============ */
.form-field {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246,241,231,.2);
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .4s;
}
.form-field::placeholder { color: rgba(246,241,231,.4); }
.form-field:focus { border-color: var(--gold); }
textarea.form-field { resize: vertical; min-height: 120px; }

/* ============ Social icons ============ */
.social-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,162,74,.3);
  color: rgba(246,241,231,.7);
  border-radius: 50%;
  transition: all .4s;
}
.social-ico:hover {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============ Reveal animation base ============ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-60px); }
.reveal-right { opacity: 0; transform: translateX(60px); }

/* ============ Utilities ============ */
.text-gradient-gold {
  background: linear-gradient(135deg, #e8c972, #c8a24a 50%, #a6842f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.divider {
  width: 60px; height: 1px; background: var(--gold); margin: 1.5rem auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
