/* ============================================================
   BHARTIYA LAW — FUTURISTIC ENHANCEMENT LAYER
   Modern glass + glow theme, additive to styles.css
   Preserves all Bar Council compliance & existing markup
   ============================================================ */

/* ── EXTENDED TOKENS ────────────────────────────────────────── */
:root {
  /* Brand glow accents */
  --glow-gold:        rgba(201, 162, 39, 0.55);
  --glow-gold-soft:   rgba(201, 162, 39, 0.18);
  --glow-gold-strong: rgba(212, 175, 116, 0.85);
  --glow-navy:        rgba(70, 52, 42, 0.40);
  --glow-blue-ice:    rgba(120, 180, 220, 0.35);

  /* Glass surfaces (LIGHT) */
  --glass-bg:         rgba(255, 255, 255, 0.55);
  --glass-bg-strong:  rgba(255, 255, 255, 0.78);
  --glass-border:     rgba(255, 255, 255, 0.85);
  --glass-stroke:     rgba(201, 162, 39, 0.22);
  --glass-shadow:
      0 18px 50px -10px rgba(22, 20, 18, 0.18),
      0 6px 18px rgba(22, 20, 18, 0.08),
      inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  --glass-shadow-hover:
      0 28px 70px -12px rgba(22, 20, 18, 0.28),
      0 0 32px rgba(201, 162, 39, 0.22),
      inset 0 1.5px 2px rgba(255, 255, 255, 0.95);

  /* Page atmosphere (LIGHT) */
  --aurora-1: rgba(201, 162, 39, 0.18);
  --aurora-2: rgba(70, 52, 42, 0.10);
  --aurora-3: rgba(212, 175, 116, 0.12);
  --grid-line: rgba(42, 42, 42, 0.045);

  /* Easing curves */
  --ease-out-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-q:  cubic-bezier(0.76, 0, 0.24, 1);

  /* Display font (loaded in header) */
  --font-display: 'Cormorant Garamond', 'Lora', serif;
}

[data-theme="dark"] {
  /* Glass surfaces (DARK) */
  --glass-bg:         rgba(26, 22, 18, 0.55);
  --glass-bg-strong:  rgba(24, 22, 20, 0.78);
  --glass-border:     rgba(255, 255, 255, 0.08);
  --glass-stroke:     rgba(201, 162, 39, 0.18);
  --glass-shadow:
      0 18px 50px -10px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.04),
      inset 0 1px 1px rgba(255, 255, 255, 0.04);
  --glass-shadow-hover:
      0 30px 80px -10px rgba(0, 0, 0, 0.65),
      0 0 38px rgba(201, 162, 39, 0.18),
      inset 0 1px 1px rgba(255, 255, 255, 0.05);

  /* Page atmosphere (DARK) */
  --aurora-1: rgba(201, 162, 39, 0.10);
  --aurora-2: rgba(70, 52, 42, 0.22);
  --aurora-3: rgba(18, 147, 106, 0.10);
  --grid-line: rgba(255, 255, 255, 0.035);
}

/* ── GLOBAL BACKGROUND: AURORA + GRID ───────────────────────── */
html, body { min-height: 100%; }

body {
  background:
    radial-gradient(60vw 60vw at 8% -10%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(70vw 60vw at 105% 20%, var(--aurora-2) 0%, transparent 60%),
    radial-gradient(80vw 70vw at 50% 115%, var(--aurora-3) 0%, transparent 65%),
    var(--light-bg);
  background-attachment: fixed;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  background:
    radial-gradient(60vw 60vw at 8% -10%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(70vw 60vw at 105% 20%, var(--aurora-2) 0%, transparent 60%),
    radial-gradient(80vw 70vw at 50% 115%, var(--aurora-3) 0%, transparent 65%),
    var(--dark-bg);
  background-attachment: fixed;
}

/* Subtle grid overlay — adds the "futuristic" precision feeling */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Push real content above the grid */
/* IMPORTANT: navbar gets a HIGHER z-index than hero/main-content, otherwise
   the mobile drop-down menu (which is a child of .navbar) ends up behind
   the hero section on mobile. */
.hero, .page-hero, .main-content, .footer,
.cta-section { position: relative; z-index: 1; }
.navbar { position: relative; z-index: 100; }

/* ── TYPOGRAPHY REFINEMENT ──────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hero-title,
.page-hero h1,
.cta-section h2,
.section-header h2,
.about-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Light, refined accent on headings */
.section-header h2,
.about-content h2,
.cta-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-header { text-align: center; }
.section-header h2::after,
.about-content h2::after,
.cta-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--glow-gold);
}
.about-content h2::after { left: 0; transform: none; }

/* ── NAVBAR: FROSTED GLASS ──────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
              0 8px 28px -8px rgba(22, 20, 18, 0.10);
}
[data-theme="dark"] .navbar {
  background: rgba(14, 12, 10, 0.62);
  border-bottom-color: rgba(201, 162, 39, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
              0 8px 28px -8px rgba(0, 0, 0, 0.6);
}

.navbar-logo { transition: transform 0.4s var(--ease-out-quart); }
.navbar-logo:hover { transform: translateY(-1px); }

.firm-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 6px 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.nav-link::after {
  bottom: -2px !important;
  height: 1.5px !important;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent) !important;
  box-shadow: 0 0 8px var(--glow-gold);
}
.nav-link:hover { color: var(--secondary-color); }
[data-theme="dark"] .nav-link:hover { color: var(--secondary-color); }
.nav-link.active { color: var(--secondary-color); }

/* Theme toggle: subtle glow ring on hover */
.theme-toggle {
  position: relative;
  border-color: rgba(201, 162, 39, 0.35) !important;
  transition: all 0.35s var(--ease-out-quart);
}
.theme-toggle:hover {
  transform: rotate(15deg);
  box-shadow: 0 0 0 4px var(--glow-gold-soft), 0 0 20px var(--glow-gold);
}

/* ── HERO: STARFIELD + GRADIENT ─────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201, 162, 39, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(18, 147, 106, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #120f0c 0%, #0c0a08 50%, #080604 100%);
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201, 162, 39, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(18, 147, 106, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #0c0a08 0%, #080604 50%, #040302 100%);
}

/* Animated mesh blob behind hero */
.hero::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 60%);
  filter: blur(50px);
  opacity: 0.45;
  animation: heroBlobFloat 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes heroBlobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-120px, 80px) scale(1.15); }
}

/* Decorative scale-of-justice silhouette (CSS-only, very subtle) */
.hero .hero-content::before {
  content: '⚖';
  position: absolute;
  top: -90px; left: 50%;
  transform: translateX(-50%);
  font-size: 110px;
  color: var(--secondary-color);
  opacity: 0.12;
  filter: drop-shadow(0 0 30px var(--glow-gold));
  pointer-events: none;
  animation: scalesFloat 6s ease-in-out infinite;
}
@keyframes scalesFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-12px); }
}

.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #bfe6d5 50%, #12936a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  letter-spacing: -0.02em;
  animation: heroTitleRise 1.1s var(--ease-out-quart) both;
}
[data-theme="dark"] .hero-title {
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.hero-subtitle {
  animation: heroSubRise 1.1s var(--ease-out-quart) 0.15s both;
}
.hero-buttons {
  animation: heroSubRise 1.1s var(--ease-out-quart) 0.3s both;
}

@keyframes heroTitleRise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0);   }
}
@keyframes heroSubRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page hero (sub-pages) */
.page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #120f0c 0%, #0c0a08 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.page-hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #bfe6d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* ── BUTTONS: GLOW + SHIMMER ────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  transition: transform 0.35s var(--ease-out-back),
              box-shadow 0.35s ease,
              background 0.35s ease,
              color 0.35s ease;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: skewX(-22deg);
  transition: left 0.7s ease;
  z-index: -1;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }

.btn-primary {
  background: linear-gradient(135deg, #0f7a57 0%, #12936a 50%, #0f7a57 100%);
  background-size: 200% 100%;
  border: none;
  color: #ffffff;
  box-shadow:
    0 6px 20px -4px rgba(201, 162, 39, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px -4px rgba(201, 162, 39, 0.55),
    0 0 28px rgba(201, 162, 39, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.20);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color) !important;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.25), 0 0 24px rgba(255, 255, 255, 0.25);
}

/* ── GLASS CARD: REUSABLE PATTERN ───────────────────────────── */
.service-card,
.practice-card,
.reason,
.stat,
.blog-card,
.team-member-preview,
.team-full-card,
.form,
.about-card,
.testimonial-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px !important;
  box-shadow: var(--glass-shadow) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-quart),
              box-shadow 0.45s ease,
              border-color 0.45s ease !important;
}

/* Light reflection edge on top */
.service-card::before,
.practice-card::before,
.reason::before,
.blog-card::before,
.team-member-preview::before,
.team-full-card::before,
.form::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0.7;
  pointer-events: none;
}
[data-theme="dark"] .service-card::before,
[data-theme="dark"] .practice-card::before,
[data-theme="dark"] .reason::before,
[data-theme="dark"] .blog-card::before,
[data-theme="dark"] .team-member-preview::before,
[data-theme="dark"] .team-full-card::before,
[data-theme="dark"] .form::before,
[data-theme="dark"] .testimonial-card::before {
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.35), transparent);
  opacity: 0.5;
}

/* Glow on hover */
.service-card:hover,
.practice-card:hover,
.reason:hover,
.blog-card:hover,
.team-member-preview:hover,
.team-full-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--glass-shadow-hover) !important;
}

/* Service card */
.service-card { padding: 38px 28px !important; text-align: center; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px !important;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  font-size: 1.8rem !important;
  color: var(--secondary-color);
  transition: transform 0.5s var(--ease-out-back), box-shadow 0.5s ease;
}
[data-theme="dark"] .service-icon {
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 0 32px rgba(201, 162, 39, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  margin-bottom: 12px !important;
}

/* Don't fight per-page border customisations on hover */
.service-card:hover {
  border-top-color: rgba(201, 162, 39, 0.45);
}

/* Stat card */
.stat {
  padding: 32px 20px !important;
  text-align: center;
  border-radius: 16px !important;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem !important;
  background: linear-gradient(135deg, #0f7a57 0%, #e0c254 50%, #0f7a57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 30px var(--glow-gold-soft);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.stat-label {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--gray-text);
}
[data-theme="dark"] .stat-label { color: var(--muted-text) !important; }

/* Practice card */
.practice-card { padding: 36px 28px !important; }
.practice-card h3 { font-family: var(--font-display); font-size: 1.3rem !important; }
.practice-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  font-size: 1.5rem !important;
  margin-bottom: 16px !important;
  color: var(--secondary-color);
}

/* Blog card */
.blog-card { border-radius: 18px !important; }
.blog-image img { transition: transform 0.7s var(--ease-out-quart); }
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-content { padding: 24px !important; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.25rem !important; }
.blog-tag {
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(201,162,39,0.06)) !important;
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--secondary-color) !important;
}

/* Team member preview */
.team-member-preview { border-radius: 18px !important; }
.team-member-preview img { transition: transform 0.6s var(--ease-out-quart); }
.team-member-preview:hover img { transform: scale(1.06); }
.team-member-preview h4 { font-family: var(--font-display); }

/* Reason card */
.reason { padding: 30px 24px !important; }
.reason h4 { font-family: var(--font-display); font-size: 1.15rem !important; }

/* Testimonial card */
.testimonial-card {
  padding: 50px 40px !important;
  border-left: 4px solid transparent !important;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, rgba(255, 255, 255, 0.45) 100%) !important;
}
[data-theme="dark"] .testimonial-card {
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, rgba(26, 22, 18, 0.55) 100%) !important;
}
.quote-mark {
  font-size: 6rem !important;
  background: linear-gradient(135deg, #0f7a57, #12936a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  opacity: 0.55 !important;
  filter: drop-shadow(0 0 16px var(--glow-gold-soft));
}

/* ── EXPERTISE TAGS ─────────────────────────────────────────── */
.expertise-tags span, .expertise-tag {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.04)) !important;
  border: 1px solid rgba(201, 162, 39, 0.30) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.expertise-tags span:hover {
  border-color: rgba(201, 162, 39, 0.55) !important;
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.25);
  transform: translateY(-1px);
}

/* ── CTA SECTION REFRESH ────────────────────────────────────── */
.cta-section {
  border-radius: 28px;
  margin: 60px auto;
  max-width: 1100px;
  padding: 70px 40px !important;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(18, 147, 106, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #120f0c 0%, #0c0a08 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow:
    0 24px 60px -16px rgba(22, 20, 18, 0.45),
    0 0 50px rgba(201, 162, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-section h2 {
  background: linear-gradient(135deg, #ffffff 0%, #bfe6d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  font-size: 2.6rem !important;
}
.cta-section h2::after {
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  box-shadow: 0 0 12px var(--glow-gold);
}

/* ── FOOTER GLASS GLOW ──────────────────────────────────────── */
.footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0c0a08 0%, #040302 100%) !important;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0.5;
}
.footer-logo { filter: brightness(1.3) drop-shadow(0 0 10px var(--glow-gold-soft)); }
.footer-heading {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
.footer-links a {
  transition: color 0.25s ease, padding-left 0.25s ease, text-shadow 0.25s ease;
}
.footer-links a:hover {
  text-shadow: 0 0 8px var(--glow-gold-soft);
}

/* ── FORM ENHANCEMENTS ──────────────────────────────────────── */
.form { padding: 36px !important; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.20) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: rgba(28, 24, 20, 0.55) !important;
  border-color: rgba(201, 162, 39, 0.20) !important;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 3px var(--glow-gold-soft), 0 0 20px var(--glow-gold-soft) !important;
  outline: none;
}

/* ── SCROLL REVEAL (works with existing app.js) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .practice-card,
  .team-member-preview,
  .team-full-card,
  .stat,
  .reason,
  .blog-card {
    will-change: opacity, transform;
  }
}

/* Stagger the services grid */
.services-grid > * { animation: cardFadeIn 0.7s var(--ease-out-quart) both; }
.services-grid > *:nth-child(1) { animation-delay: 0.05s; }
.services-grid > *:nth-child(2) { animation-delay: 0.15s; }
.services-grid > *:nth-child(3) { animation-delay: 0.25s; }
.services-grid > *:nth-child(4) { animation-delay: 0.35s; }
.services-grid > *:nth-child(5) { animation-delay: 0.45s; }
.services-grid > *:nth-child(6) { animation-delay: 0.55s; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0f7a57, #0a5230);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #12936a, #0f7a57);
  background-clip: padding-box;
}

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: rgba(201, 162, 39, 0.32);
  color: #2a2a2a;
}
[data-theme="dark"] ::selection {
  background: rgba(201, 162, 39, 0.4);
  color: #ffffff;
}

/* ── DISCLAIMER MODAL: FULL-SCREEN GLASS POPUP ───────────────
   Belt-and-braces: force the overlay positioning so nothing else
   in the cascade (including our own grid rules above) can break it. */
.disclaimer-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;

  /* Frosted-glass overlay */
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(18, 147, 106, 0.08) 0%, transparent 55%),
    rgba(14, 10, 6, 0.78) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;

  /* Re-assert: when JS hides it, it must be gone */
  animation: disclaimerBackdropFadeIn 0.4s ease-out;
}
.disclaimer-modal.hidden {
  display: none !important;
}

/* Lock body scroll while the modal is open (JS already does this,
   but this is the visual safety net). */
body.disclaimer-open {
  overflow: hidden;
}

/* Subtle grid overlay inside the dim backdrop — keeps the
   futuristic feel even on the modal screen. */
.disclaimer-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Refined glass card with gold-glow ring */
.disclaimer-modal-content {
  position: relative !important;
  z-index: 1;
  width: min(620px, 95vw) !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  padding: 48px 44px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(201, 162, 39, 0.32) !important;

  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 247, 240, 0.94) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(201, 162, 39, 0.22),
    0 0 0 1px rgba(201, 162, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;

  animation: disclaimerModalSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="dark"] .disclaimer-modal-content {
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(28, 24, 20, 0.94) 0%, rgba(14, 12, 10, 0.96) 100%) !important;
  border-color: rgba(201, 162, 39, 0.28) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(201, 162, 39, 0.16),
    0 0 0 1px rgba(201, 162, 39, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Soft pulsing gold halo around the card (futuristic touch) */
.disclaimer-modal-content::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.25);
  opacity: 0.6;
  animation: disclaimerHaloPulse 2.8s ease-in-out infinite;
}
@keyframes disclaimerHaloPulse {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 36px rgba(201, 162, 39, 0.20); }
  50%      { opacity: 0.75; box-shadow: 0 0 60px rgba(201, 162, 39, 0.42); }
}

/* Make the modal headline scale a bit smaller for breathing room */
.disclaimer-modal-content h2 {
  font-size: 26px !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.01em;
}

/* Body text rhythm */
.disclaimer-modal-content p {
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  margin-bottom: 14px !important;
}

/* Logo: respect both light & dark variants */
.disclaimer-logo {
  margin-bottom: 22px !important;
}
.disclaimer-logo img { height: 46px !important; }

/* Mobile: tighter padding & smaller headline */
@media (max-width: 540px) {
  .disclaimer-modal-content {
    padding: 36px 24px !important;
    border-radius: 20px !important;
  }
  .disclaimer-modal-content h2 { font-size: 22px !important; }
  .disclaimer-modal-content p  { font-size: 13.5px !important; line-height: 1.75 !important; }
  .disclaimer-logo img         { height: 38px !important; }
}
@media (max-width: 380px) {
  .disclaimer-modal { padding: 12px !important; }
  .disclaimer-modal-content { padding: 28px 18px !important; }
  .disclaimer-modal-content h2 { font-size: 20px !important; }
}

/* Custom scrollbar inside modal — sometimes content overflows on small screens */
.disclaimer-modal-content::-webkit-scrollbar { width: 6px; }
.disclaimer-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0f7a57, #0a5230);
  border-radius: 6px;
}
.disclaimer-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

/* ── LOADING SCREEN: REDESIGNED ─────────────────────────────── */
.loading-screen {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(18, 147, 106, 0.10) 0%, transparent 60%),
    linear-gradient(135deg, #120f0c 0%, #080705 100%) !important;
}
.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.loading-logo {
  filter: brightness(1.2) drop-shadow(0 0 24px var(--glow-gold)) !important;
}
.loading-bar {
  width: 220px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.loading-progress {
  box-shadow: 0 0 12px var(--glow-gold);
}

/* ── ABOUT GLASS CARD ───────────────────────────────────────── */
.about-glass-card {
  background: var(--glass-bg-strong) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 26px !important;
  box-shadow:
    0 28px 70px -16px rgba(22, 20, 18, 0.18),
    0 0 60px rgba(201, 162, 39, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.92) !important;
}
[data-theme="dark"] .about-glass-card {
  background: rgba(22, 18, 14, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 28px 70px -16px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 162, 39, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

/* Coriolis (team carousel) card refresh */
.coriolis-card {
  background: var(--glass-bg-strong) !important;
  border-radius: 18px !important;
  border: 1px solid var(--glass-border) !important;
}
[data-theme="dark"] .coriolis-card {
  background: rgba(26, 22, 18, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
.coriolis-card:hover {
  box-shadow:
    0 28px 60px -10px rgba(22, 20, 18, 0.22),
    0 0 32px var(--glow-gold-soft),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.92) !important;
}

/* ── BACK-TO-TOP BUTTON (added via JS) ──────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 10px 30px -6px rgba(22, 20, 18, 0.20),
    0 0 24px rgba(201, 162, 39, 0.15);
  cursor: pointer;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease-out-back);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow:
    0 16px 38px -6px rgba(201, 162, 39, 0.5),
    0 0 32px rgba(201, 162, 39, 0.4);
}
[data-theme="dark"] .back-to-top {
  background: rgba(28, 24, 20, 0.7);
  border-color: rgba(201, 162, 39, 0.30);
}

/* ── REVEAL ON SCROLL HELPER ────────────────────────────────── */
/* Defaults: visible. JS adds `.js-reveal` to <html> which then hides them
   for the animation to trigger. This guarantees no content is hidden if JS fails. */
.fx-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
html.js-reveal .fx-reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js-reveal .fx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── REDUCED MOTION RESPECT ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero::after, .hero .hero-content::before { animation: none !important; }
}

/* ── MOBILE TUNING ──────────────────────────────────────────── */
@media (max-width: 768px) {
  body::before { background-size: 40px 40px; }
  .cta-section { margin: 30px 16px; padding: 50px 24px !important; border-radius: 22px; }
  .cta-section h2 { font-size: 1.8rem !important; }
  .hero .hero-content::before { font-size: 80px; top: -70px; }
  .stat-number { font-size: 2.2rem !important; }
  .testimonial-card { padding: 32px 24px !important; }
  .service-card { padding: 30px 22px !important; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }

  /* ── MOBILE NAVBAR FIXES ─────────────────────────────────── */
  /* Tighten the right-side gap so theme toggle + hamburger fit nicely */
  .navbar-right { gap: 8px !important; }

  /* Slimmer theme toggle, no jarring rotate on tap */
  .theme-toggle {
    width: 38px !important;
    height: 38px !important;
    padding: 6px !important;
    border-width: 1.5px !important;
  }
  .theme-toggle:hover {
    transform: none !important;       /* no rotate on mobile — feels janky on touch */
    box-shadow: 0 0 0 3px var(--glow-gold-soft), 0 0 14px var(--glow-gold-soft);
  }
  .theme-toggle svg { width: 20px !important; height: 20px !important; }

  /* Hamburger: square hit area, sized to match the theme toggle */
  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 8px !important;
    gap: 4px !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid rgba(201, 162, 39, 0.35) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  [data-theme="dark"] .menu-toggle {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(201, 162, 39, 0.3) !important;
  }
  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    border-color: var(--secondary-color) !important;
    background: rgba(201, 162, 39, 0.10) !important;
  }
  .menu-toggle span {
    width: 18px !important;
    height: 2px !important;
    background-color: var(--secondary-color) !important;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  /* Animate hamburger into an "X" when menu is open */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* ── MOBILE DROPDOWN MENU ────────────────────────────────── */
  .nav-menu {
    /* Anchor to the bottom of the navbar regardless of its exact height. */
    top: 100% !important;
    margin-top: 0;
    background: #ffffff !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(201, 162, 39, 0.25);
    border-bottom: 2px solid rgba(201, 162, 39, 0.45);
    box-shadow:
      0 16px 38px -8px rgba(22, 20, 18, 0.25),
      0 0 24px rgba(201, 162, 39, 0.10);
    padding: 4px 0;
    /* Make sure the menu sits ABOVE other content */
    z-index: 1000;
  }
  [data-theme="dark"] .nav-menu {
    background: #0a0908 !important;
    border-top-color: rgba(201, 162, 39, 0.22);
    border-bottom-color: rgba(201, 162, 39, 0.40);
    box-shadow:
      0 16px 38px -8px rgba(0, 0, 0, 0.55),
      0 0 24px rgba(201, 162, 39, 0.08);
  }

  /* Menu items: tappable, with subtle gold accent line on hover */
  .nav-menu li {
    border-bottom: 1px solid rgba(201, 162, 39, 0.10) !important;
  }
  .nav-menu li:last-child { border-bottom: none !important; }
  [data-theme="dark"] .nav-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  }
  .nav-menu a {
    padding: 14px 22px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  }
  .nav-menu a:hover,
  .nav-menu a:focus,
  .nav-menu a.active {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), transparent);
    color: var(--secondary-color);
    padding-left: 28px !important;
  }
  /* Mobile dropdown link underline shouldn't show (removes the gold underline
     bar from desktop nav-link::after) */
  .nav-menu a::after { display: none !important; }
}

@media (max-width: 480px) {
  .hero .hero-content::before { font-size: 60px; top: -55px; }
  .section-header h2::after,
  .about-content h2::after,
  .cta-section h2::after { width: 44px; }

  /* Even tighter at very small screens */
  .firm-name { font-size: 1.05rem !important; }
  .firm-tagline { font-size: 0.65rem !important; }
}

/* ── SCROLL PROGRESS BAR (top of viewport) ──────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 1001;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--gold) 100%);
  box-shadow: 0 0 10px var(--glow-gold), 0 0 4px var(--secondary-color);
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ── HERO TAGLINE LEAD (homepage) ───────────────────────────── */
.hero-tagline-lead {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin: -8px 0 18px;
  opacity: 0;
  animation: heroSubRise 1.1s var(--ease-out-quart) 0.08s both;
}
@media (max-width: 480px) {
  .hero-tagline-lead { letter-spacing: 0.18em; font-size: 0.72rem; }
}
