/* ===================================================
   Hoffman Legal — Custom Styles (Light Theme)
   Zero-build static architecture
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --gold: #c9a96e;
  --gold-light: #d4b97e;
  --gold-dark: #92722e;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #9ca3af;
}

/* ===== BASE RESETS ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--gold);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ===== GLASSMORPHISM (Light Theme) ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATED BACKGROUND ORBS ===== */
.orb {
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  animation-delay: 0s;
}

.orb-2 {
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}


/* ===== SCROLL-TRIGGERED FADE-IN ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }

/* ===== COMPARISON SECTION SLIDE ANIMATIONS ===== */
.comparison-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.comparison-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.comparison-left {
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-right {
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

/* ===== GLOW EFFECTS ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.2); }
  50% { box-shadow: 0 0 24px 4px rgba(201, 169, 110, 0.1); }
}

.glow-pulse {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 110, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}


/* ===== MARQUEE ANIMATION ===== */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.025em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ===== CTA GRADIENT BACKGROUND ===== */
.cta-gradient-bg {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, transparent 50%, rgba(201, 169, 110, 0.03) 100%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== FLOATING PARTICLES ===== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 60%; left: 80%; animation-delay: -1s; animation-duration: 8s; }
.particle-3 { top: 30%; left: 60%; animation-delay: -2s; animation-duration: 7s; }
.particle-4 { top: 70%; left: 30%; animation-delay: -3s; animation-duration: 9s; }
.particle-5 { top: 40%; left: 90%; animation-delay: -4s; animation-duration: 6s; }
.particle-6 { top: 80%; left: 50%; animation-delay: -5s; animation-duration: 10s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.5; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.2; }
  75% { transform: translateY(-30px) translateX(5px); opacity: 0.4; }
}


/* ===== FAQ ACCORDION ANIMATION ===== */
.faq-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  overflow: hidden;
}

.faq-content.open {
  max-height: 500px;
  opacity: 1;
  display: block;
}

.faq-chevron.rotated {
  transform: rotate(180deg);
  color: var(--gold);
}

/* ===== FORM RADIO BUTTONS ===== */
.case-option input:checked ~ .radio-dot {
  border-color: var(--gold);
}

.case-option input:checked ~ .radio-dot div {
  transform: scale(1);
}

.case-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.03);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  display: flex;
  opacity: 1;
}

/* ===== STICKY CTA ===== */
#sticky-cta.visible {
  transform: translateY(0);
}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  transform-origin: left;
  will-change: width;
}

/* ===== LINK UNDERLINE ANIMATION ===== */
.nav-link span {
  transform-origin: left;
}

/* ===== COUNT-UP NUMBER STYLING ===== */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* ===== TESTIMONIAL TRANSITIONS ===== */
#testimonial-container {
  transition: opacity 0.3s ease;
}

#testimonial-container.fading {
  opacity: 0;
}

/* ===== SMOOTH SECTION SEPARATOR ===== */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.2),
    transparent
  );
}


/* ===== REDUCED MOTION ===== */
@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;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

  .comparison-left,
  .comparison-right {
    opacity: 1;
    transform: none;
  }

  .orb {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .particle {
    animation: none;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}



/* ===== CALL NOW BUTTON GLOW ===== */
.call-now-btn {
  animation: callGlow 2s ease-in-out infinite;
}

@keyframes callGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.15); }
}