/* ============================================
   Attorney Gabriella — V3 Design System
   Law Offices of Gabriella Bonfim Moraes
   ============================================

   V3 FEATURES:
   - Split hero layout (text + photo)
   - Glassmorphism nav & cards
   - Smooth entrance animations
   - Modern SaaS-meets-law aesthetic
   - Gradient accents & subtle glow effects
   - Strict brand palette adherence
   - Fluid responsive design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* — Brand Colors — */
  --color-gold: #C5A55A;
  --color-gold-light: #D4BA7A;
  --color-gold-dark: #8B7340;
  --color-gold-subtle: rgba(197, 165, 90, 0.08);
  --color-gold-glow: rgba(197, 165, 90, 0.15);
  --color-cream: #F7F4EE;
  --color-cream-dark: #EDE8DD;
  --color-champagne: #E8DCC8;
  --color-navy: #1A1A2E;
  --color-midnight: #2D2D44;
  --color-charcoal: #4A4A5A;
  --color-charcoal-light: #6B6B7B;
  --color-white: #FFFFFF;
  --color-red: #B8282E;
  --color-green: #25D366;

  /* — Gradients — */
  --gradient-gold: linear-gradient(135deg, #C5A55A 0%, #D4BA7A 50%, #C5A55A 100%);
  --gradient-navy: linear-gradient(180deg, #1A1A2E 0%, #2D2D44 100%);
  --gradient-cream: linear-gradient(180deg, #F7F4EE 0%, #EDE8DD 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(26,26,46,0.03) 0%, rgba(197,165,90,0.04) 100%);

  /* — Glass — */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(197, 165, 90, 0.12);
  --glass-blur: 20px;
  --glass-bg-dark: rgba(26, 26, 46, 0.85);
  --glass-border-dark: rgba(197, 165, 90, 0.15);

  /* — Typography — */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.75rem, 1rem + 2.3vw, 2.5rem);
  --text-4xl: clamp(2rem, 1rem + 3vw, 3rem);
  --text-5xl: clamp(2.5rem, 1rem + 4.5vw, 4rem);
  --text-display: clamp(2.75rem, 1rem + 5vw, 4.5rem);

  /* — Spacing (8pt grid) — */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* — Borders — */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.16);
  --shadow-gold: 0 4px 24px rgba(197, 165, 90, 0.25);
  --shadow-gold-lg: 0 8px 40px rgba(197, 165, 90, 0.3);
  --shadow-green: 0 4px 20px rgba(37, 211, 102, 0.35);

  /* — Transitions — */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --duration-slowest: 800ms;

  /* — Layout — */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --max-width-wide: 1400px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--color-gold-dark); }

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

::selection {
  background: rgba(197, 165, 90, 0.2);
  color: var(--color-navy);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: 0.02em;
}
h2 {
  font-size: var(--text-4xl);
  font-weight: 600;
}
h3 {
  font-size: var(--text-2xl);
  font-weight: 400;
}
h4 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

p {
  max-width: 720px;
  margin-bottom: var(--space-md);
}

.overline {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: var(--space-lg) 0;
  border: none;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-charcoal);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HEADER & NAVIGATION (Glass)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all var(--duration-slow) var(--ease-out);
}

.site-header.scrolled {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo img {
  height: 44px;
  transition: opacity var(--duration-fast) ease;
}
.header-logo:hover img { opacity: 0.85; }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--duration-base) var(--ease-out);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-white);
}
.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-cta .btn {
  font-size: 0.6875rem;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  margin: 5px auto;
  transition: all var(--duration-base) var(--ease-out);
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-navy);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
  flex-direction: column;
  gap: var(--space-sm);
  transition: right var(--duration-slow) var(--ease-out);
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
}
.mobile-nav.open {
  right: 0;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  transition: all var(--duration-fast) ease;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-gold);
  padding-left: var(--space-md);
}
.mobile-nav .mobile-nav-cta {
  margin-top: auto;
  padding-top: var(--space-2xl);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
}
.mobile-overlay.visible {
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  border: 1.5px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}

.btn-whatsapp {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.6875rem;
}
.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-sm);
}

/* ============================================
   HERO — Split Layout (V3)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

/* Subtle animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(197,165,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(197,165,90,0.04) 0%, transparent 50%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.hero-text {
  padding: var(--space-3xl) 0;
}

.hero-text .overline {
  color: var(--color-gold-light);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-text h1 {
  color: var(--color-white);
  max-width: 580px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-text .gold-rule {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroScaleIn 0.6s var(--ease-out) 0.6s forwards;
}

.hero-text .hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 1s var(--ease-out) 0.5s forwards;
}

.hero-photo-frame img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* Gold accent border behind the image */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  border: 2px solid rgba(197, 165, 90, 0.25);
  border-radius: var(--radius-2xl);
  z-index: -1;
}

/* Subtle gold glow */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(197,165,90,0.15) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* ============================================
   TRUST BAR (Glass style)
   ============================================ */
.trust-bar {
  position: relative;
  z-index: 3;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-champagne);
  padding: var(--space-lg) 0;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.trust-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-out);
}

.trust-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item:hover .trust-item-icon {
  background: var(--color-gold);
  transform: scale(1.05);
}
.trust-item:hover .trust-item-icon svg {
  stroke: var(--color-white);
}

.trust-item-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}
.trust-item-text span {
  font-size: var(--text-xs);
  color: var(--color-charcoal-light);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-5xl) 0;
}
.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}
.section-dark p {
  color: rgba(255,255,255,0.7);
}
.section-dark .overline {
  color: var(--color-gold-light);
}

.section-champagne {
  background: var(--color-champagne);
}

.section-gradient {
  background: var(--gradient-cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header .overline { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header .gold-rule { margin: var(--space-lg) auto; }
.section-header p {
  margin: 0 auto;
  max-width: 600px;
  font-size: var(--text-md);
}

/* ============================================
   CARDS (V3 — glass + gradient border)
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  border: 1px solid rgba(197, 165, 90, 0.06);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(197, 165, 90, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.card-grid.card-grid-centered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: var(--space-lg);
}
.card-grid.card-grid-3col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}
.card-grid.card-grid-3col > * {
  width: calc((100% - 2 * var(--space-lg)) / 3);
  min-width: 280px;
  flex: 0 0 auto;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: all var(--duration-base) var(--ease-out);
}
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card-icon {
  background: var(--color-gold);
  transform: scale(1.05);
}
.card:hover .card-icon svg {
  stroke: var(--color-white);
}

.card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.card-link {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gold);
  transition: all var(--duration-fast) ease;
}
.card-link:hover {
  gap: 12px;
  color: var(--color-gold-dark);
}

/* ============================================
   ABOUT TEASER (V3 — split with offset)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(197, 165, 90, 0.2);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-content .overline { margin-bottom: var(--space-sm); }
.about-content h2 { margin-bottom: var(--space-sm); }
.about-content .gold-rule { margin: var(--space-lg) 0; }

/* ============================================
   STATISTICS (V3 — glass cards)
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.stat-item {
  padding: var(--space-xl) var(--space-lg);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 165, 90, 0.1);
  transition: all var(--duration-base) var(--ease-out);
}
.stat-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(197, 165, 90, 0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   TESTIMONIALS — Carousel
   ============================================ */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-md);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(197, 165, 90, 0.06);
  transition: all var(--duration-base) var(--ease-out);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-lg);
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-gold);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-gold);
  max-width: none;
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-charcoal-light);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-champagne);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  color: var(--color-navy);
}
.carousel-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-subtle);
}
.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-champagne);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-gold);
  width: 24px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  text-align: center;
  padding: var(--space-5xl) var(--gutter);
}
.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-md);
}
.cta-banner .btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-champagne);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-navy);
  background: var(--color-white);
  transition: all var(--duration-fast) ease;
}
.form-input::placeholder {
  color: var(--color-charcoal-light);
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.12);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--color-charcoal-light);
  margin-top: var(--space-xs);
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
}
.contact-info-item h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xs);
}
.contact-info-item a,
.contact-info-item p {
  color: var(--color-charcoal);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.55);
  padding: var(--space-4xl) 0 var(--space-lg);
}

.footer-brand-centered {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--gutter);
}
.footer-brand-centered img {
  height: 120px;
  margin: 0 auto var(--space-lg);
  opacity: 0.9;
}
.footer-brand-centered p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-2xl) var(--space-4xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  justify-content: center;
}

.footer-brand img {
  height: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) ease;
}
.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: var(--space-xs);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-3xl) auto 0;
  padding: var(--space-lg) var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.footer-social a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.footer-social a:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
.footer-social a[aria-label="Instagram"] { color: #E4405F; }
.footer-social a[aria-label="YouTube"] { color: #FF0000; }
.footer-social a[aria-label="Facebook"] { color: #1877F2; }

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  background: var(--color-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  z-index: 900;
  transition: all var(--duration-base) var(--ease-out);
  color: white;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  color: white;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float::before {
  content: 'Chat with us';
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) ease;
}
.whatsapp-float:hover::before {
  opacity: 1;
}

/* ============================================
   HERO SHORT (Interior pages)
   ============================================ */
.hero-short {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  background: var(--color-navy);
  overflow: hidden;
}

.hero-short::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(197,165,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(197,165,90,0.04) 0%, transparent 50%);
}

.hero-short-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--gutter);
}

.hero-short h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-short p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero-short .overline {
  color: var(--color-gold-light);
}
.hero-short .gold-rule {
  margin: var(--space-lg) auto;
  opacity: 0;
  transform: scaleX(0);
  animation: heroScaleIn 0.6s var(--ease-out) 0.3s forwards;
}

/* ============================================
   PAGE-SPECIFIC: About
   ============================================ */
.bio-pullquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-gold-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.5;
  margin: var(--space-xl) 0;
  max-width: none;
}

.timeline {
  position: relative;
  padding-left: 48px;
  margin: var(--space-xl) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-champagne);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-year {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}
.timeline-title {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  line-height: 1.65;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.photo-gallery {
  columns: 3;
  column-gap: var(--space-md);
}
.photo-gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease-out);
  break-inside: avoid;
}
.photo-gallery img:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

/* ============================================
   PAGE-SPECIFIC: Practice Areas
   ============================================ */
.practice-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-champagne);
}
.practice-detail:last-child {
  border-bottom: none;
}
.practice-detail:nth-child(even) {
  direction: rtl;
}
.practice-detail:nth-child(even) > * {
  direction: ltr;
}

.service-list {
  list-style: none;
  padding: 0;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}
.service-list li:last-child {
  border-bottom: none;
}
.service-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   NAV CONTRAST — Interior pages
   On interior pages with hero-short, once scrolled
   past the hero the header needs to be dark early.
   We also give the non-scrolled header a dark base
   for interior pages via body.interior-page.
   ============================================ */
body.interior-page .site-header {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ============================================
   PRACTICE AREAS — Sidebar Navigation
   ============================================ */
.pa-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pa-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  align-self: start;
}

.pa-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pa-sidebar-nav li {
  margin-bottom: var(--space-xs);
}

.pa-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal);
  transition: all var(--duration-fast) ease;
  border-left: 3px solid transparent;
}
.pa-sidebar-nav a:hover {
  background: var(--color-gold-subtle);
  color: var(--color-navy);
  border-left-color: var(--color-gold-light);
}
.pa-sidebar-nav a.active {
  background: var(--color-gold-subtle);
  color: var(--color-gold-dark);
  font-weight: 600;
  border-left-color: var(--color-gold);
}

.pa-sidebar-nav a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.pa-sidebar-cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-champagne);
}

.pa-content {
  min-width: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroScaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slower) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-slower) var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(n+6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }
.text-charcoal { color: var(--color-charcoal); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: auto; padding-top: calc(var(--header-height) + var(--space-2xl)); }
  .hero-text { padding: var(--space-xl) 0 0; text-align: center; }
  .hero-text h1 { max-width: 100%; margin: 0 auto var(--space-lg); }
  .hero-text .hero-subtitle { max-width: 100%; margin: 0 auto var(--space-xl); }
  .hero-text .gold-rule { margin: var(--space-lg) auto; }
  .hero-buttons { justify-content: center; }
  .hero-photo { padding: var(--space-xl) 0 var(--space-2xl); }
  .hero-photo-frame { max-width: 360px; }

  .about-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-grid { grid-template-columns: repeat(2, auto); gap: var(--space-2xl) var(--space-4xl); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
  .photo-gallery { columns: 2; }
  .trust-bar-inner { gap: var(--space-xl); }
  .practice-detail { grid-template-columns: 1fr; }
  .practice-detail:nth-child(even) { direction: ltr; }
  .pa-layout { grid-template-columns: 1fr; }
  .pa-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; }

  .hero { min-height: auto; }

  .trust-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    max-width: 320px;
    margin: 0 auto;
  }

  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }

  .section { padding: var(--space-3xl) 0; }
  .section-header { margin-bottom: var(--space-2xl); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); text-align: center; justify-content: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .photo-gallery { columns: 1; }
  .whatsapp-float::before { display: none; }

  .hero-short { min-height: auto; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .trust-bar-inner { padding: 0 var(--space-md); }
  .stats-grid { grid-template-columns: 1fr; }
}
