/* ============================================================
   Bison Law Firm — Development Overrides & Custom CSS
   ============================================================ */

/* ── Self-Hosted Fonts (Inter + Lora) ── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lora-400.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/lora-500.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/lora-600.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lora-700.woff2') format('woff2'); }

html, body {
  height: 100%;
}

/* ── CSS Custom Properties ── */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Lora", ui-serif, Georgia, serif;
  --brand: #3575a9;
  --brand-light: #4a8bbf;
  --cream: #faf7f2;
  --gold: #c8a96e;
  --sand: #e8ddd0;
  --warm: #3a2e26;
  --warm-light: #5a4a3e;
}

/* ── No-Scrollbar Utility ── */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Menu Region States ── */
#menuRegion {
  background-color: rgba(250, 247, 242, 0.97);
}
#menuRegion[data-armed="false"] {
  display: none;
}
#menuRegion[data-open="false"] {
  pointer-events: none;
}

/* ── Mega-Menu Item Stagger Animation ── */
.menu-panel .menu-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu-panel:not(.hidden) .menu-item {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays — 30ms per item */
.menu-panel:not(.hidden) .menu-item:nth-child(1)  { transition-delay: 0ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(2)  { transition-delay: 30ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(3)  { transition-delay: 60ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(4)  { transition-delay: 90ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(5)  { transition-delay: 120ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(6)  { transition-delay: 150ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(7)  { transition-delay: 180ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(8)  { transition-delay: 210ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(9)  { transition-delay: 240ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(10) { transition-delay: 270ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(11) { transition-delay: 300ms; }
.menu-panel:not(.hidden) .menu-item:nth-child(12) { transition-delay: 330ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-panel .menu-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Header Scroll Transition (Home Page) ── */
#siteHeader {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
#siteHeader.is-scrolled {
  background-color: rgba(250, 247, 242, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(232, 221, 208, 0.8) !important;
}
#siteHeader.is-scrolled .nav-link-home {
  color: #3a2e26 !important;
}
#siteHeader.is-scrolled .nav-link-home:hover {
  color: #3575a9 !important;
}
#siteHeader.is-scrolled #mobileMenuOpen svg {
  stroke: #3a2e26;
}

/* ── Glass Panel (Hero Form) ── */
.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(53, 117, 169, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-panel {
    background: #3575a9;
  }
}

/* ── Form Focus State ── */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--gold);
}

/* ── Reveal Animations (Scroll-triggered) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Admin Dashboard: Glass Cards ── */
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}
@supports not (backdrop-filter: blur(16px)) {
  .glass-card { background: rgba(30, 50, 70, 0.92); }
}

.glass-card-light {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
}
@supports not (backdrop-filter: blur(12px)) {
  .glass-card-light { background: rgba(30, 50, 70, 0.88); }
}

/* ── Admin Dashboard: Form Inputs ── */
.admin-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.admin-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.3);
}
.admin-input option { background: #1a3a5c; color: white; }

/* ── Admin Dashboard: Table ── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

/* ── Parallax Hero ── */
.parallax-hero {
  will-change: transform;
}

/* ── Verdict Ticker (CSS Infinite Scroll) ── */
@keyframes verdict-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.verdict-scroll {
  animation: verdict-scroll 30s linear infinite;
}
.verdict-scroll:hover {
  animation-play-state: paused;
}
