/* ═══════════════════════════════════════════════════════════
   ADVOCATE PALLAVI SRIVASTAVA — Law Firm Website
   Color System:
     --black      #0a0a0a
     --black-soft #111111
     --dark       #1a1a1a
     --gold       #c9a84c
     --gold-light #e2c97e
     --cream      #faf8f3
     --text       #e8e4dc
     --muted      #8a8278
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --black-soft: #111111;
  --dark:       #1a1a1a;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim:   #9a7e38;
  --cream:      #faf8f3;
  --text-dark:  #1a1a1a;
  --text-light: #e8e4dc;
  --muted:      #8a8278;
  --muted-dark: #5a5550;
  --border:     rgba(201,168,76,0.2);
  --shadow:     0 8px 40px rgba(0,0,0,0.15);
  --radius:     12px;
  --transition: 0.35s cubic-bezier(0.22,1,0.36,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.gold { color: var(--gold); }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section base ────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section--dark { background: var(--black-soft); color: var(--text-light); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label--gold { color: var(--gold); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-title--light { color: var(--text-light); }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.section--dark .section-subtitle { color: var(--muted-dark); color: #8a8278; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--text-light);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.85rem; right: 0.85rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}
.nav-cta-icon { font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 8rem;
  overflow: hidden;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Gold grain texture using SVG filter */
.hero::after {
  content: '';
  position: absolute;
  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' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem auto;
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-br { display: none; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 3rem;
  backdrop-filter: blur(8px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}
.stat-suffix { font-size: 1.4rem; color: var(--gold); font-weight: 600; margin-left: 2px; display: inline; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* Scroll cue */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-decoration: none;
}
.scroll-down-arrow {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-logo-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  box-shadow: 0 0 60px rgba(201,168,76,0.12), 0 0 0 16px rgba(201,168,76,0.05);
}
.about-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.about-badge {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: var(--gold);
  color: var(--black);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.badge-num  { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-text { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; margin-top: 2px; }

.about-content { }
.about-body { color: #4a4640; line-height: 1.85; margin-bottom: 1.1rem; }
.about-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.service-tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.05);
}

/* ══════════════════════════════════════════════════════════
   PRACTICE CARDS
══════════════════════════════════════════════════════════ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.practice-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: var(--transition);
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.practice-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.practice-card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.card-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}
.card-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--transition);
}
.practice-card:hover .card-line { width: 100%; }

/* ══════════════════════════════════════════════════════════
   WHY CHOOSE ME
══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(201,168,76,0.15);
  border-color: var(--gold);
}
.why-icon { font-size: 2.2rem; margin-bottom: 1.1rem; display: block; }
.why-card h3 {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.why-card p { font-size: 0.9rem; color: var(--muted-dark); line-height: 1.75; }

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.info-value { font-size: 0.95rem; color: var(--text-light); line-height: 1.5; }
.info-link { color: var(--text-light); text-decoration: none; }
.info-link:hover { color: var(--gold); }

.contact-note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.05);
  border-radius: 0 8px 8px 0;
}
.contact-note p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.65; font-style: italic; }

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.45rem;
}
.required { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group select option { background: #1a1a1a; color: #fff; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.78rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 0.8rem; }
.form-success, .form-error {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: center;
}
.form-success { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.form-error   { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }
.btn-loader { letter-spacing: 0.05em; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; border: 1px solid var(--gold); }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #fff; }
.footer-tagline { font-size: 0.82rem; color: var(--gold); font-style: italic; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.83rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.25); line-height: 1.7; }
.footer-copy small { font-size: 0.72rem; }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.fade-in {
  animation: heroFadeIn 1s var(--transition) both;
}
.fade-in--delay { animation-delay: 0.45s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
  transition-delay: var(--delay, 0s);
}
.reveal--delay { transition-delay: 0.18s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 1.5rem 1rem; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat { padding: 0 1.5rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .practice-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; padding: 1.25rem; }
  .stat { padding: 0.5rem 1rem; }
  .hero { padding: 6rem 1.25rem 6rem; }
  .section { padding: 4rem 0; }
  .about-logo-ring { width: 220px; height: 220px; }
  .about-logo { width: 155px; height: 155px; }
  .contact-form-wrap { padding: 1.5rem; }
}
