/* ==========================================================================
   Az Abogados · Despacho Jurídico
   High-Contrast Luxury Graphite Design System & Motion Engine
   Strict Verdictly Layout Alignment
   ========================================================================== */

:root {
  /* High-Contrast Luxury Graphite Palette */
  --bg-canvas: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-obsidian: #0D0F12;
  --bg-graphite-card: #12151A;
  --bg-graphite-elevated: #1A1D24;
  
  --text-dark: #0E1013;
  --text-secondary: #4A5160;
  --text-muted: #64748B;
  
  --graphite-primary: #121418;
  --graphite-hover: #22262F;
  --graphite-accent: #2D333F;
  
  --border-crisp: #D1D5DC;
  --border-light: #E2E5EB;
  --border-dark: #22262E;
  --border-sheen: rgba(255, 255, 255, 0.12);

  /* Apple / Framer Luxury Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base page smoothing */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   MOTION ENGINE: Scroll-Driven Entrance Animations (IntersectionObserver)
   ========================================================================== */

.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay utility classes */
.delay-75  { transition-delay: 75ms; }
.delay-150 { transition-delay: 150ms; }
.delay-225 { transition-delay: 225ms; }
.delay-300 { transition-delay: 300ms; }
.delay-375 { transition-delay: 375ms; }
.delay-450 { transition-delay: 450ms; }

/* Scale entrance for key imagery */
.reveal-scale-init {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-scale-init.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   LUXURY GRAPHITE BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Signature High-Contrast Graphite Button with Metallic Sheen */
.btn-luxury-graphite {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #22262E 0%, #101216 100%);
  color: #FFFFFF;
  border: 1px solid #2B303A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -4px rgba(14, 16, 19, 0.35);
  transition: all 0.35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-luxury-graphite::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s var(--ease-out-expo);
}

.btn-luxury-graphite:hover {
  background: linear-gradient(180deg, #2C323E 0%, #15181E 100%);
  border-color: #3B4250;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px -6px rgba(14, 16, 19, 0.45);
  transform: translateY(-2px);
}

.btn-luxury-graphite:hover::before {
  left: 150%;
}

.btn-luxury-graphite:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px -2px rgba(14, 16, 19, 0.25);
}

/* Secondary High-Contrast Crisp Button */
.btn-luxury-white {
  background: #FFFFFF;
  color: #0E1013;
  border: 1.5px solid #14171C;
  box-shadow: 0 4px 12px -2px rgba(14, 16, 19, 0.08);
  transition: all 0.35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-luxury-white:hover {
  background: #14171C;
  color: #FFFFFF;
  border-color: #14171C;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(14, 16, 19, 0.2);
}

.btn-luxury-white:active {
  transform: translateY(0);
}

/* ==========================================================================
   HIGH-CONTRAST CARDS & HOVER LIFTS
   ========================================================================== */

.card-luxury {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(14, 16, 19, 0.06), 0 1px 3px rgba(14, 16, 19, 0.03);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.card-luxury:hover {
  transform: translateY(-6px);
  border-color: #121418;
  box-shadow: 0 24px 50px -12px rgba(14, 16, 19, 0.16), 0 0 0 1px rgba(14, 16, 19, 0.08);
}

/* Dark Obsidian Card Variant */
.card-obsidian-luxury {
  background: linear-gradient(145deg, #171A21 0%, #0D0F13 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.card-obsidian-luxury:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 32px 70px -15px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   PRACTICE AREAS INTERACTIVE BEHAVIOR
   ========================================================================== */

.practice-item {
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  transition: all 0.35s var(--ease-out-expo);
}

.practice-item:hover {
  transform: translateX(6px);
  border-color: #121418;
  box-shadow: 0 16px 36px -10px rgba(14, 16, 19, 0.1);
}

.practice-item.active-practice {
  transform: translateX(8px);
  border-color: #121418;
  background: #FFFFFF;
  box-shadow: 0 20px 45px -10px rgba(14, 16, 19, 0.14), inset 4px 0 0 #121418;
}

.practice-item.active-practice .practice-number {
  color: #121418;
  font-weight: 600;
  transform: scale(1.08);
}

.practice-item.active-practice .practice-arrow-btn {
  background-color: #121418;
  border-color: #121418;
  color: #FFFFFF;
  transform: translateX(3px);
}

.practice-arrow-btn {
  transition: all 0.3s var(--ease-out-expo);
}

/* Smooth Image Transition for Practice Preview */
#practiceFeaturedImg {
  transition: opacity 0.4s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

/* ==========================================================================
   FAQ ACCORDION SMOOTH EXPANSION (CSS GRID)
   ========================================================================== */

.faq-item {
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  transition: all 0.35s var(--ease-out-expo);
}

.faq-item:hover {
  border-color: #121418;
  box-shadow: 0 8px 24px -6px rgba(14, 16, 19, 0.08);
}

.faq-item.active {
  border-color: #121418;
  box-shadow: 0 16px 36px -10px rgba(14, 16, 19, 0.12);
}

.faq-item .faq-arrow-circle {
  transition: all 0.35s var(--ease-spring);
}

.faq-item.active .faq-arrow-circle {
  background-color: #121418;
  color: #FFFFFF;
  border-color: #121418;
  transform: rotate(180deg);
}

.faq-body-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out-expo);
}

.faq-item.active .faq-body-grid {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

/* ==========================================================================
   IMAGE ZOOM CONTAINERS
   ========================================================================== */

.img-zoom-wrap {
  overflow: hidden;
}

.img-zoom-wrap img {
  transition: transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.card-luxury:hover .img-zoom-wrap img,
.img-zoom-wrap:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   STAT CIRCLES (4 SIGNATURE VERDICTLY CIRCLES)
   ========================================================================== */

.stat-circle-luxury {
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  box-shadow: 0 8px 24px -6px rgba(14, 16, 19, 0.06);
  transition: all 0.4s var(--ease-out-expo);
}

.stat-circle-luxury:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: #121418;
  box-shadow: 0 24px 50px -12px rgba(14, 16, 19, 0.16);
}

/* ==========================================================================
   VERDICTLY ARCHITECTURAL CONTINUOUS WAVE ARCHES
   ========================================================================== */

.process-step-item {
  transition: transform 0.4s var(--ease-out-expo);
}

.process-step-item:hover {
  transform: translateY(-4px);
}

.process-apex-icon {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out-expo);
}

.process-step-item:hover .process-apex-icon {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 14px 30px -4px rgba(18, 20, 24, 0.45);
}

.process-arc-line {
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.process-step-item:hover .process-arc-line {
  stroke: #121418;
  stroke-width: 1.8px;
}

/* ==========================================================================
   CUSTOM GRAPHITE SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ECEFF3;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #121418;
}

/* ==========================================================================
   SMOOTH FLOATING ACTIONS & TICKER PULSE
   ========================================================================== */

@keyframes pulse-sheen {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.live-pulse {
  animation: pulse-sheen 2.5s infinite var(--ease-out-expo);
}
