/**
 * Ricardo Pessoa Advocacia & Consultoria Jurídica
 * Design System - White Institutional Chancery & Editorial Prestige
 * OAB/AM 14.073 | Manaus - Amazonas
 */

:root {
  /* Color Palette - White Institutional Chancery */
  --bg-page: #ffffff;
  --bg-darkest: #ffffff;
  --bg-dark: #f8fafc;          /* subtle slate-tinted section */
  --bg-surface: #fbfbfb;       /* soft pearl surface */
  --bg-card: #ffffff;          /* crisp white card */
  --bg-card-hover: #fbfbfb;    /* hover card */
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-warm: #faf8f5;          /* warm ivory / parchment highlight */

  /* Antique Gold Metallics (Exact extraction from Official Logo) */
  --gold-primary: #b89047;     /* official logo antique gold */
  --gold-dark: #8e6823;        /* high-contrast burnished gold (4.7:1 on white) */
  --gold-light: #d4af37;       /* classic gold accent */
  --gold-lighter: #fbf9f4;     /* parchment ivory tint */
  --gold-foil: linear-gradient(135deg, #c5a059 0%, #b89047 50%, #9a7834 100%);
  --gold-foil-soft: linear-gradient(135deg, rgba(184, 144, 71, 0.08) 0%, rgba(142, 104, 35, 0.03) 100%);

  /* Hairline Borders */
  --border-subtle: #e2e8f0;
  --border-card: #edf2f7;
  --border-gold: rgba(184, 144, 71, 0.35);
  --border-gold-bright: #b89047;
  --border-divider: #f1f5f9;

  /* Typography Colors (WCAG AA High Contrast on White) */
  --text-white: #0f172a;       /* titles/headings in Deep Onyx */
  --text-primary: #0f172a;     /* Deep Onyx 900 */
  --text-secondary: #334155;   /* Slate 700 body text */
  --text-muted: #64748b;       /* Slate 500 metadata */
  --text-dim: #94a3b8;         /* Slate 400 hints */
  --text-inverse: #ffffff;

  /* Institutional WhatsApp Branding Colors (Soft & Prestigious) */
  --whatsapp-green: #1e6645;
  --whatsapp-hover: #165035;
  --whatsapp-deep: #113c28;
  --whatsapp-shadow: 0 4px 14px rgba(30, 102, 69, 0.22);
  --whatsapp-shadow-hover: 0 8px 24px rgba(30, 102, 69, 0.32);

  /* Fonts - Modern Institutional Typography */
  --font-quicksand: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-nunito: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: var(--font-nunito);
  --font-editorial: var(--font-nunito);
  --font-sans: var(--font-nunito);
  --font-serif: var(--font-nunito);

  /* Layout Spacings */
  --container-max: 1220px;
  --nav-height: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows on White Surfaces */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 6px 20px rgba(184, 144, 71, 0.12);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Mode System (Chancery Midnight Obsidian)
   ========================================================================== */
[data-theme="dark"] {
  /* Color Palette - Midnight Obsidian Court */
  --bg-page: #070b14;
  --bg-darkest: #04070d;
  --bg-dark: #0a0f1d;
  --bg-surface: #0e1526;
  --bg-card: #0f182c;
  --bg-card-hover: #142038;
  --bg-glass: rgba(7, 11, 20, 0.94);
  --bg-warm: #0b1222;

  /* Antique Gold Metallics (Gleaming on dark obsidian) */
  --gold-primary: #dfba73;
  --gold-dark: #f0cf88;
  --gold-light: #f5dfa8;
  --gold-lighter: #162033;
  --gold-foil: linear-gradient(135deg, #e6c587 0%, #dfba73 50%, #b89047 100%);
  --gold-foil-soft: linear-gradient(135deg, rgba(223, 186, 115, 0.12) 0%, rgba(184, 144, 71, 0.04) 100%);

  /* Hairline Borders in Dark Mode */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(184, 144, 71, 0.25);
  --border-gold: rgba(223, 186, 115, 0.35);
  --border-gold-bright: #dfba73;
  --border-divider: rgba(255, 255, 255, 0.07);

  /* Typography Colors in Dark Mode */
  --text-white: #f8fafc;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #070b14;

  /* Shadows in Dark Mode */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 6px 20px rgba(223, 186, 115, 0.15);

  /* WhatsApp Institutional Green in Dark Mode */
  --whatsapp-green: #237b54;
  --whatsapp-hover: #1c6444;
  --whatsapp-shadow: 0 4px 18px rgba(35, 123, 84, 0.35);
  --whatsapp-shadow-hover: 0 8px 26px rgba(35, 123, 84, 0.45);
}

/* ==========================================================================
   Browser Surfaces (Craft Floor Excellence)
   ========================================================================== */
::selection {
  background: rgba(184, 144, 71, 0.22);
  color: #0f172a;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 144, 71, 0.35);
  border-radius: var(--radius-xs);
  border: 2px solid #f8fafc;
}

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

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 38px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-editorial);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  caret-color: var(--gold-dark);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Institutional Typography & Layout
   ========================================================================== */
.font-title {
  font-family: var(--font-title);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-editorial {
  font-family: var(--font-editorial);
}

.gold-gradient-text {
  color: var(--gold-dark);
  font-weight: 700;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #fdfbf7;
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag svg {
  width: 13px;
  height: 13px;
  fill: var(--gold-primary);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-editorial);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 52px auto;
  line-height: 1.75;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

/* Institutional Hairline Ornament Divider */
.institutional-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto 32px auto;
  max-width: 200px;
}

.institutional-divider::before,
.institutional-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-gold);
}

.institutional-divider svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-primary);
}

/* Classical Cantoneiras (Gold Corner Brackets) */
.card-cantoneira {
  position: relative;
}

.card-cantoneira::before,
.card-cantoneira::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: var(--gold-primary);
  border-style: solid;
  transition: var(--transition-normal);
  z-index: 2;
}

.card-cantoneira::before {
  top: 8px;
  left: 8px;
  border-width: 1.5px 0 0 1.5px;
}

.card-cantoneira::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1.5px 1.5px 0;
}

.card-cantoneira:hover::before,
.card-cantoneira:hover::after {
  border-color: var(--gold-dark);
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Buttons & CTAs (Official WhatsApp & Luxury Chancery Styling)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* Official WhatsApp Button */
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
  border: none;
  box-shadow: var(--whatsapp-shadow);
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--whatsapp-shadow-hover);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Header WhatsApp Button */
.btn-whatsapp-header {
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(30, 102, 69, 0.25);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-whatsapp-header span {
  white-space: nowrap !important;
}

.btn-whatsapp-header svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Hero WhatsApp Button */
.btn-hero-wa {
  padding: 16px 32px;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
}

.btn-hero-wa svg {
  width: 22px;
  height: 22px;
}

/* Secondary Button */
.btn-secondary,
.btn-hero-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}

.btn-secondary:hover,
.btn-hero-secondary:hover {
  background: #faf8f5;
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-hero-secondary {
  padding: 16px 30px;
  font-size: 0.95rem;
}

.btn-secondary svg,
.btn-hero-secondary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Primary Gold Button */
.btn-primary {
  background: var(--gold-foil);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(184, 144, 71, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 144, 71, 0.35);
  filter: brightness(1.05);
}

.btn-primary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 0.96rem;
}

/* ==========================================================================
   Header & Top Bar (Streamlined 2-Tier Architecture)
   ========================================================================== */
.top-notice-bar {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  z-index: 101;
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.top-notice-badge span.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  box-shadow: 0 0 6px var(--whatsapp-green);
}

.top-notice-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-notice-item,
.top-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-size: 0.78rem;
  font-weight: 500;
}

.top-notice-link:hover {
  color: var(--gold-dark);
}

.top-notice-link svg,
.top-notice-item svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.top-notice-wa {
  color: var(--whatsapp-deep);
  font-weight: 600;
}

.top-notice-wa:hover {
  color: var(--whatsapp-green);
}

/* Fluid Full-Width Container for Header and Top Utility Bar */
.header-fluid-container {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(16px, 3.2vw, 48px);
  padding-right: clamp(16px, 3.2vw, 48px);
  margin: 0 auto;
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(184, 144, 71, 0.25);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  width: 100%;
  gap: clamp(12px, 1.8vw, 36px);
}

.header-brand {
  display: flex;
  align-items: center;
  padding: 4px 0;
  flex-shrink: 0;
}

.header-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.header-brand:hover .header-logo {
  transform: translateY(-1px);
}

/* Logo Switching for Light & Dark Mode */
.logo-dark {
  display: none !important;
}
.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}
[data-theme="dark"] .logo-light {
  display: none !important;
}

/* Desktop Navigation Menu (Horizontally Aligned, Full Width Utilization) */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 22px);
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-nunito);
  font-size: clamp(0.74rem, 0.8vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  padding: 7px clamp(5px, 0.6vw, 10px);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2.5px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--gold-dark);
  background: rgba(184, 144, 71, 0.05);
}

.nav-link.active {
  color: #0f172a;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 75%;
}

.nav-link-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
}

.nav-link-ai span {
  white-space: nowrap !important;
}

.nav-ai-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(184, 144, 71, 0.12);
  color: #8e6823;
  border: 1px solid rgba(184, 144, 71, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex-shrink: 0;
}

/* Theme Toggle Button (Desktop & Header) */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

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

.theme-toggle-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(20deg);
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .theme-icon-sun {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  color: #dfba73;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: #142038;
  border-color: #dfba73;
  color: #f5dfa8;
}

/* Mobile Theme Toggle Row */
.mobile-theme-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all var(--transition-fast);
}

.mobile-theme-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

[data-theme="dark"] .mobile-theme-row {
  background: rgba(223, 186, 115, 0.12);
  border-color: rgba(223, 186, 115, 0.4);
  color: #dfba73;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #0f172a;
  transition: var(--transition-fast);
}

[data-theme="dark"] .mobile-toggle span {
  background-color: #f8fafc;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0;
}

.mobile-nav-link {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mobile-nav-link:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   Hero Section (Modern Executive Editorial)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 80px 0;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(184, 144, 71, 0.06) 0%, rgba(248, 250, 252, 0.6) 40%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  box-shadow: 0 0 6px var(--whatsapp-green);
}

.hero-badge-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-quicksand);
  font-size: 60px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-title-accent {
  color: var(--gold-dark);
  font-weight: 700;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-actions-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Horizontal Credentials Ticker */
.hero-credentials-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hero-cred-item {
  display: flex;
  flex-direction: column;
}

.hero-cred-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hero-cred-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cred-sep {
  width: 1px;
  height: 26px;
  background: #e2e8f0;
}

/* Hero Portrait Column */
.hero-media-col,
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-portrait-frame,
.hero-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(184, 144, 71, 0.3);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14);
  transition: transform var(--transition-normal);
  max-width: 480px;
  width: 100%;
}

.hero-portrait-frame:hover,
.hero-image-card:hover {
  transform: translateY(-3px);
}

.hero-portrait-img,
.hero-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-badge-location {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.hero-badge-location svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-dark);
}

.hero-counsel-card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.hero-counsel-name {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-counsel-oab {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hero-counsel-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp-green);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-counsel-cta:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.hero-counsel-cta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ==========================================================================
   Trust Bar / Institutional Indicators
   ========================================================================== */
.trust-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding: 34px 0;
  position: relative;
  z-index: 2;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.trust-icon-box svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-dark);
}

.trust-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Dores & Soluções Jurídicas (Casos Típicos)
   ========================================================================== */
.pains-section {
  padding: 95px 0;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pain-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 144, 71, 0.4);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-card-header {
  margin-bottom: 20px;
}

.pain-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: #faf8f5;
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pain-question {
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pain-explanation {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pain-solution-box {
  background: #faf8f5;
  border: 1px solid var(--border-gold);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.pain-solution-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.pain-solution-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.pain-card-btn {
  width: 100%;
}

/* ==========================================================================
   Áreas de Atuação (Especialidades Estratégicas)
   ========================================================================== */
.areas-section {
  padding: 95px 0;
  background: var(--bg-dark);
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.area-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.area-card:hover {
  border-color: rgba(184, 144, 71, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.area-card:hover::before {
  opacity: 1;
}

.area-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.area-roman-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(184, 144, 71, 0.35);
  line-height: 1;
}

.area-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: #faf8f5;
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.area-card-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.area-card-subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.65;
}

.area-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.area-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.area-check-item svg {
  width: 16px;
  height: 16px;
  fill: var(--whatsapp-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Triagem Prévia & Quiz Institucional
   ========================================================================== */
.quiz-section {
  padding: 95px 0;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.quiz-container {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  padding: 46px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.quiz-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.quiz-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
  z-index: 1;
}

.quiz-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 33%;
  height: 2px;
  background: var(--gold-foil);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s ease;
}

.quiz-step-indicator {
  position: relative;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.quiz-step-indicator.active {
  border-color: var(--gold-primary);
  color: #ffffff;
  background: #0f172a;
}

.quiz-step-indicator.completed {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #ffffff;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.015em;
}

.quiz-step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quiz-option-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.quiz-option-btn:hover {
  background: #faf8f5;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quiz-option-btn.selected {
  background: #faf8f5;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(184, 144, 71, 0.25);
}

.quiz-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #faf8f5;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-option-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-dark);
}

.quiz-option-title {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.quiz-option-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.quiz-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   Procedimento de Atendimento em 4 Etapas
   ========================================================================== */
.steps-section {
  padding: 95px 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.step-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ==========================================================================
   Sobre o Titular & O Escritório
   ========================================================================== */
.about-section {
  padding: 100px 0;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.about-photo-wrapper {
  position: relative;
}

.about-photo-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #ffffff;
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(184, 144, 71, 0.12);
  padding: clamp(36px, 5vw, 52px) clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: clamp(220px, 28vw, 300px);
}

[data-theme="dark"] .about-photo-card {
  background: var(--bg-card);
  border-color: rgba(223, 186, 115, 0.35);
}

.about-photo-card img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-floating-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-dark);
}

.about-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.about-badge-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.about-content {
  padding-left: 10px;
}

.about-motto-quote {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--gold-primary);
  line-height: 1.45;
}

.about-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.about-pillar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.about-pillar-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-dark);
  flex-shrink: 0;
}

/* ==========================================================================
   Diferenciais Institucionais
   ========================================================================== */
.diff-section {
  padding: 95px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.diff-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(184, 144, 71, 0.12);
  transform: translateY(-3px);
}

.diff-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.diff-icon-box svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-dark);
}

.diff-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.diff-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Depoimentos & Experiência de Clientes
   ========================================================================== */
.testimonials-section {
  padding: 95px 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md), 0 6px 20px rgba(184, 144, 71, 0.1);
  transform: translateY(-3px);
}

.test-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.test-stars svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-primary);
}

.test-quote {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.test-author-box {
  border-top: 1px solid var(--border-divider);
  padding-top: 14px;
}

.test-author-name {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.test-author-city {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.test-author-case {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Institucional (Accordion)
   ========================================================================== */
.faq-section {
  padding: 95px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(184, 144, 71, 0.12);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.faq-question-text {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(184, 144, 71, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-dark);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  background: var(--gold-primary);
}

.faq-item.active .faq-icon svg {
  fill: #ffffff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  padding-bottom: 24px;
}

.faq-answer-inner {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border-divider);
  padding-top: 16px;
}

/* ==========================================================================
   Formulário de Atendimento & Canais
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-info-col {
  padding-right: 20px;
}

.contact-direct-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--shadow-md);
}

.contact-direct-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-dark);
}

.contact-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.contact-item-value {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 600;
}

.contact-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.contact-mini-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.contact-mini-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 10px 35px rgba(184, 144, 71, 0.08);
  position: relative;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-area-urgency {
  grid-template-columns: 1.2fr 0.8fr;
}

.pains-cta-card {
  margin-top: 48px;
  background: var(--bg-warm);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.about-actions-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #0f172a;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.15);
  background: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-privacy-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
  text-align: center;
}

.form-privacy-note svg {
  display: inline;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  fill: var(--gold-dark);
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #065f46;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
.main-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(184, 144, 71, 0.25);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-col p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 18px 0 24px 0;
  line-height: 1.7;
  max-width: 330px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold-dark);
  padding-left: 4px;
}

.footer-oab-disclaimer {
  background: #ffffff;
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 22px 26px;
  border-radius: var(--radius-xs);
  margin-bottom: 36px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-divider);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Actions Hub: Back to Top & Official WhatsApp
   ========================================================================== */
.floating-actions-hub {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-back-to-top {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transform: translateY(-2px) scale(1.05);
}

.floating-back-to-top:active {
  transform: scale(0.95);
}

.floating-back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.floating-back-to-top:hover svg {
  transform: translateY(-2px);
}

.floating-whatsapp {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  position: relative;
}

.floating-tooltip {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(184, 144, 71, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  animation: floatTooltipPulse 4s infinite ease-in-out;
}

@keyframes floatTooltipPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.floating-tooltip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(184, 144, 71, 0.2);
}

.floating-tooltip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.floating-tooltip-text {
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.4;
}

.floating-tooltip-text strong {
  color: #0f172a;
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
}

.floating-whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.floating-whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-btn:active {
  transform: scale(0.96);
}

.floating-whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.floating-online-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.floating-online-badge::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   Modal Privacidade
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.modal-body h4 {
  color: var(--gold-dark);
  margin: 18px 0 8px 0;
  font-family: var(--font-title);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Master Responsive System (Multi-Device & Mobile-First Excellence)
   ========================================================================== */

/* 1. Laptops and Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .nav-menu {
    gap: clamp(8px, 1.1vw, 14px);
  }

  .nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    padding: 6px clamp(4px, 0.5vw, 8px);
    white-space: nowrap !important;
  }

  .footer-grid {
    gap: 32px;
  }
}

/* 2. Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
  /* Header switches to mobile drawer navigation on tablets and below */
  .nav-menu,
  .header-cta-desktop,
  .top-notice-links {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 14px;
  }

  .areas-grid,
  .pains-grid,
  .steps-grid,
  .diff-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* 3. Tablets Portrait & Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Compact section vertical rhythms */
  .hero-section {
    padding: 36px 0 56px 0;
  }

  .areas-section,
  .pains-section,
  .steps-section,
  .about-section,
  .diff-section,
  .testimonials-section,
  .faq-section,
  .contact-section,
  .ai-agent-section {
    padding: 64px 0;
  }

  .section-title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.98rem;
    margin-bottom: 36px;
    line-height: 1.65;
  }

  /* Header adjustments */
  .nav-menu,
  .header-cta-desktop,
  .top-notice-links {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .header-logo {
    height: 40px;
    max-width: 195px;
  }

  .header-inner {
    height: 68px;
  }

  .top-notice-inner {
    justify-content: center;
    text-align: center;
    padding: 6px 14px;
  }

  .top-notice-badge {
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
  }

  /* Hero Section */
  .hero-description {
    font-size: 0.98rem;
    line-height: 1.68;
    margin-bottom: 24px;
  }

  .hero-credentials-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px 18px;
  }

  .hero-cred-sep {
    display: none;
  }

  .hero-portrait-frame {
    border-radius: 14px;
  }

  /* Single Column Card Stacks */
  .areas-grid,
  .pains-grid,
  .steps-grid,
  .diff-grid,
  .testimonials-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Pains Reassurance Card */
  .pains-cta-card {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .pains-cta-card .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* About Section */
  .about-actions-row {
    flex-direction: column;
    gap: 12px;
  }

  .about-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Form & Contact */
  .form-row-2col,
  .form-row-area-urgency {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-box {
    padding: 28px 20px;
  }

  /* Quiz Container */
  .quiz-container {
    padding: 24px 18px;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz-progress-bar {
    max-width: 260px;
    margin: 0 auto 28px auto;
  }

  /* AI Legal Agent */
  .ai-box {
    padding: 24px 18px;
  }

  .ai-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ai-tabs-nav {
    flex-direction: column;
    gap: 8px;
  }

  .ai-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .ai-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .ai-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .ai-actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .ai-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating Actions Hub */
  .floating-tooltip {
    display: none !important;
  }

  .floating-actions-hub {
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }

  .floating-whatsapp-btn {
    width: 54px;
    height: 54px;
  }

  .floating-back-to-top {
    width: 42px;
    height: 42px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* 4. Large Phones & Phablets (<= 640px) */
@media (max-width: 640px) {
  .hero-actions-cluster {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-hero-wa,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero-media-wrapper {
    max-width: 100%;
  }

  .faq-question {
    padding: 18px 20px;
  }
}

/* 5. Standard Smartphones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 24px 0 44px 0;
  }

  .areas-section,
  .pains-section,
  .steps-section,
  .about-section,
  .diff-section,
  .testimonials-section,
  .faq-section,
  .contact-section,
  .ai-agent-section {
    padding: 50px 0;
  }

  .header-logo {
    height: 36px;
    max-width: 170px;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }

  .hero-badge-pill {
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-badge-label {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
    line-height: 1.2;
  }

  .hero-credentials-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 12px;
  }

  .hero-cred-val {
    font-size: 0.88rem;
  }

  .hero-cred-lbl {
    font-size: 0.66rem;
  }

  .hero-counsel-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .hero-counsel-name {
    font-size: 0.82rem;
  }

  .hero-counsel-oab {
    font-size: 0.68rem;
  }

  .hero-counsel-cta {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .hero-counsel-cta svg {
    width: 13px;
    height: 13px;
  }

  .trust-bar {
    padding: 20px 0;
  }

  .trust-item {
    gap: 12px;
    padding: 10px 0;
  }

  .trust-icon-box {
    width: 36px;
    height: 36px;
  }

  .trust-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .trust-title {
    font-size: 0.88rem;
  }

  .trust-desc {
    font-size: 0.75rem;
  }

  .pain-card,
  .area-card,
  .step-card,
  .diff-card,
  .testimonial-card {
    padding: 22px 16px;
  }

  .quiz-container {
    padding: 20px 14px;
  }

  .quiz-step-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .quiz-option-btn {
    padding: 12px 14px;
    gap: 12px;
  }

  .quiz-option-icon {
    width: 36px;
    height: 36px;
  }

  .quiz-option-title {
    font-size: 0.9rem;
  }

  .quiz-option-detail {
    font-size: 0.78rem;
  }

  .faq-question {
    padding: 16px 14px;
    font-size: 0.94rem;
  }

  .faq-answer-inner {
    font-size: 0.88rem;
  }

  .contact-form-box {
    padding: 22px 14px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  .floating-back-to-top {
    width: 40px;
    height: 40px;
  }
}

/* 6. Compact / Narrow Phones (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-logo {
    height: 30px;
    max-width: 140px;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .mobile-toggle {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-credentials-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .hero-counsel-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-counsel-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   AI Legal Agent Section (ctresb/leis)
   ========================================================================== */
.ai-agent-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(184, 144, 71, 0.08);
  position: relative;
  overflow: hidden;
}

.ai-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-foil);
}

.ai-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-divider);
  margin-bottom: 28px;
}

.ai-header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ai-status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  box-shadow: 0 0 8px var(--whatsapp-green);
  animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.ai-github-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.ai-github-badge:hover {
  background: rgba(184, 144, 71, 0.16);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.ai-presets-wrapper {
  margin-bottom: 28px;
}

.ai-presets-label {
  font-size: 0.86rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ai-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ai-preset-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbf9f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1.4;
}

.ai-preset-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-dark);
  flex-shrink: 0;
}

.ai-preset-btn:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ai-input-form {
  margin-bottom: 24px;
}

.ai-input-wrapper {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.ai-input-wrapper:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.15);
}

.ai-input-wrapper textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #0f172a;
  padding: 8px 12px;
  font-size: 0.96rem;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.ai-input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.ai-submit-btn {
  align-self: flex-end;
  white-space: nowrap;
  padding: 14px 24px;
}

/* Loading Box */
.ai-loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 20px;
  background: #fbf9f5;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.ai-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(184, 144, 71, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loading-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* AI Results Box */
.ai-response-wrapper {
  margin-top: 30px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-result-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.ai-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-divider);
  margin-bottom: 24px;
}

.ai-result-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-dark);
  background: rgba(184, 144, 71, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.ai-result-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ai-result-summary {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ai-section-subtitle-gold {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.ai-section-subtitle-gold svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-dark);
}

.ai-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ai-article-card {
  background: #fbf9f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.ai-article-card:hover {
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ai-article-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(184, 144, 71, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.ai-article-title {
  font-family: var(--font-title);
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 6px;
}

.ai-article-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ai-article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.ai-article-link:hover {
  color: #0f172a;
}

.ai-remedies-box {
  background: #faf8f5;
  border: 1px solid var(--border-gold);
  padding: 18px 22px;
  border-radius: var(--radius-xs);
  margin-bottom: 24px;
}

.ai-remedy-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ai-remedy-item:last-child {
  margin-bottom: 0;
}

.ai-remedy-item svg {
  width: 17px;
  height: 17px;
  fill: var(--whatsapp-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-doctor-advice {
  background: #faf8f5;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.ai-doctor-advice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-doctor-advice-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
}

.ai-doctor-advice-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.ai-doctor-advice-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-doctor-advice-text {
  font-family: var(--font-editorial);
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
}

.ai-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-divider);
}

/* Floating AI Badge */
.floating-ai-launcher {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 99;
}

.floating-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--gold-primary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12), 0 0 12px rgba(184, 144, 71, 0.2);
  transition: var(--transition-fast);
  text-decoration: none;
}

.floating-ai-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-dark);
}

.floating-ai-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18), 0 0 20px rgba(184, 144, 71, 0.3);
  background: #fbf9f5;
  color: var(--gold-dark);
}

@media (max-width: 768px) {
  .ai-box {
    padding: 24px 18px;
  }

  .ai-input-wrapper {
    flex-direction: column;
  }

  .ai-submit-btn {
    width: 100%;
  }

  .ai-result-card {
    padding: 20px 16px;
  }

  .floating-ai-launcher {
    bottom: 92px;
    right: 18px;
  }
}

/* ==========================================================================
   Dark Mode Component Styles (Chancery Midnight Obsidian)
   ========================================================================== */
[data-theme="dark"] body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

/* Header & Navigation in Dark Mode */
[data-theme="dark"] .top-notice-bar {
  background: #04070d;
  border-bottom: 1px solid rgba(223, 186, 115, 0.2);
}

[data-theme="dark"] .main-header {
  background: rgba(7, 11, 20, 0.94);
  border-bottom: 1px solid rgba(223, 186, 115, 0.2);
}

[data-theme="dark"] .main-header.scrolled {
  background: rgba(6, 10, 18, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #dfba73;
}

[data-theme="dark"] .mobile-nav {
  background: #070b14;
  border-left: 1px solid rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .mobile-nav-link {
  color: #cbd5e1;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mobile-nav-close {
  color: #f8fafc;
}

/* Hero Section in Dark Mode */
[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 85% 20%, rgba(223, 186, 115, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(35, 123, 84, 0.06) 0%, transparent 50%),
              var(--bg-page);
}

[data-theme="dark"] .hero-title {
  color: #f8fafc;
}

[data-theme="dark"] .hero-title-accent {
  color: #dfba73;
}

[data-theme="dark"] .hero-subtitle {
  color: #cbd5e1;
}

[data-theme="dark"] .hero-badge-pill {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  color: #cbd5e1;
}

[data-theme="dark"] .btn-hero-secondary {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  color: #f8fafc;
}

[data-theme="dark"] .btn-hero-secondary:hover {
  background: #142038;
  border-color: #dfba73;
  color: #dfba73;
}

[data-theme="dark"] .hero-credentials-bar {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .hero-cred-val {
  color: #dfba73;
}

[data-theme="dark"] .hero-cred-label {
  color: #94a3b8;
}

[data-theme="dark"] .hero-counsel-card {
  background: rgba(14, 23, 44, 0.96);
  border-color: rgba(223, 186, 115, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .hero-counsel-title {
  color: #f8fafc;
}

[data-theme="dark"] .hero-counsel-sub {
  color: #94a3b8;
}

[data-theme="dark"] .hero-badge-location {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.35);
  color: #dfba73;
}

/* Trust Bar in Dark Mode */
[data-theme="dark"] .trust-bar {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.2);
}

[data-theme="dark"] .trust-item {
  border-right-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .trust-title {
  color: #f8fafc;
}

[data-theme="dark"] .trust-desc {
  color: #94a3b8;
}

[data-theme="dark"] .trust-icon-box {
  background: rgba(223, 186, 115, 0.1);
  border-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .trust-icon-box svg {
  fill: #dfba73;
}

/* Pains / Soluções in Dark Mode */
[data-theme="dark"] .pains-section {
  background: var(--bg-page);
}

[data-theme="dark"] .pain-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .pain-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
}

[data-theme="dark"] .pain-question {
  color: #f8fafc;
}

[data-theme="dark"] .pain-explanation {
  color: #cbd5e1;
}

[data-theme="dark"] .pain-solution-box {
  background: rgba(223, 186, 115, 0.08);
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .pain-solution-text {
  color: #f8fafc;
}

/* Areas Section in Dark Mode */
[data-theme="dark"] .areas-section {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .area-card {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .area-card:hover {
  background: #131f38;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .area-card-title {
  color: #f8fafc;
}

[data-theme="dark"] .area-card-subtitle {
  color: #cbd5e1;
}

[data-theme="dark"] .area-check-item {
  color: #cbd5e1;
}

[data-theme="dark"] .area-check-item svg {
  fill: #dfba73;
}

/* AI Agent Gabinete in Dark Mode */
[data-theme="dark"] .ai-agent-section {
  background: var(--bg-page);
}

[data-theme="dark"] .ai-box {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ai-header-bar {
  background: #080d1a;
  border-bottom-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .ai-header-status {
  color: #cbd5e1;
}

[data-theme="dark"] .ai-tab-btn {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .ai-tab-btn.active {
  background: rgba(223, 186, 115, 0.15) !important;
  border-color: var(--gold-primary) !important;
  color: #dfba73 !important;
}

[data-theme="dark"] .ai-preset-btn {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
  color: #cbd5e1;
}

[data-theme="dark"] .ai-preset-btn:hover {
  background: rgba(223, 186, 115, 0.12);
  border-color: var(--gold-primary);
  color: #dfba73;
}

[data-theme="dark"] .ai-article-card {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .ai-article-title {
  color: #f8fafc;
}

[data-theme="dark"] .ai-article-text {
  color: #cbd5e1;
}

[data-theme="dark"] .ai-remedies-box {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
  color: #cbd5e1;
}

[data-theme="dark"] .ai-doctor-advice {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .ai-doctor-advice-title {
  color: #f8fafc;
}

[data-theme="dark"] .ai-doctor-advice-text {
  color: #e2e8f0;
}

[data-theme="dark"] textarea#aiQueryInput {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.3);
  color: #f8fafc;
}

/* Quiz Section in Dark Mode */
[data-theme="dark"] .quiz-section {
  background: #0a0f1d;
}

[data-theme="dark"] .quiz-container {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .quiz-step-title {
  color: #f8fafc;
}

[data-theme="dark"] .quiz-step-desc {
  color: #cbd5e1;
}

[data-theme="dark"] .quiz-option-btn {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quiz-option-btn:hover,
[data-theme="dark"] .quiz-option-btn.selected {
  background: #131f38;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .quiz-option-title {
  color: #f8fafc;
}

[data-theme="dark"] .quiz-option-detail {
  color: #94a3b8;
}

/* Steps Section in Dark Mode */
[data-theme="dark"] .steps-section {
  background: var(--bg-page);
}

[data-theme="dark"] .step-card {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .step-card:hover {
  background: #142038;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .step-title {
  color: #f8fafc;
}

[data-theme="dark"] .step-desc {
  color: #cbd5e1;
}

/* About Section in Dark Mode */
[data-theme="dark"] .about-section {
  background: #0a0f1d;
}

[data-theme="dark"] .about-text {
  color: #cbd5e1;
}

[data-theme="dark"] .about-pillar-item {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.25);
  color: #f8fafc;
}

[data-theme="dark"] .about-floating-badge {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
}

[data-theme="dark"] .about-badge-val {
  color: #f8fafc;
}

/* Differentials in Dark Mode */
[data-theme="dark"] .diff-section {
  background: var(--bg-page);
}

[data-theme="dark"] .diff-card {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .diff-card:hover {
  background: #131f38;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .diff-title {
  color: #f8fafc;
}

[data-theme="dark"] .diff-desc {
  color: #cbd5e1;
}

/* Testimonials in Dark Mode */
[data-theme="dark"] .testimonials-section {
  background: #0a0f1d;
}

[data-theme="dark"] .testimonial-card {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .test-quote {
  color: #cbd5e1;
}

[data-theme="dark"] .test-author-name {
  color: #f8fafc;
}

/* FAQ Section in Dark Mode */
[data-theme="dark"] .faq-section {
  background: var(--bg-page);
}

[data-theme="dark"] .faq-question {
  background: #0e172a;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

[data-theme="dark"] .faq-item.active .faq-question {
  background: #121d33;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .faq-answer {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .faq-question-text {
  color: #f8fafc;
}

/* Contact Form in Dark Mode */
[data-theme="dark"] .contact-section {
  background: #0a0f1d;
}

[data-theme="dark"] .contact-direct-card {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .contact-item-icon {
  background: rgba(223, 186, 115, 0.1);
  border-color: rgba(223, 186, 115, 0.3);
}

[data-theme="dark"] .contact-item-value {
  color: #f8fafc;
}

[data-theme="dark"] .contact-form-box {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .form-label {
  color: #f8fafc;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
  color: #f8fafc;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  background: #0f182c;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(223, 186, 115, 0.18);
}

/* Footer in Dark Mode */
[data-theme="dark"] .main-footer {
  background: #04070d;
  border-top-color: rgba(223, 186, 115, 0.25);
}

[data-theme="dark"] .footer-brand-col p {
  color: #cbd5e1;
}

[data-theme="dark"] .footer-social-btn {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.3);
  color: #f8fafc;
}

[data-theme="dark"] .footer-col-title {
  color: #f8fafc;
}

[data-theme="dark"] .footer-link {
  color: #94a3b8;
}

[data-theme="dark"] .footer-link:hover {
  color: #dfba73;
}

[data-theme="dark"] .footer-oab-disclaimer {
  background: #0a0f1d;
  border-color: rgba(223, 186, 115, 0.25);
  color: #94a3b8;
}

/* Modal in Dark Mode */
[data-theme="dark"] .modal-content {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  color: #cbd5e1;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modal-close {
  color: #f8fafc;
}

/* Floating Actions Hub in Dark Mode */
[data-theme="dark"] .floating-back-to-top {
  background: #0e172a;
  color: #f8fafc;
  border-color: rgba(223, 186, 115, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .floating-back-to-top:hover {
  background: var(--gold-primary);
  color: #070b14;
  border-color: var(--gold-primary);
}

[data-theme="dark"] .floating-tooltip {
  background: rgba(14, 23, 44, 0.96);
  border-color: rgba(223, 186, 115, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .floating-tooltip-text {
  color: #cbd5e1;
}

[data-theme="dark"] .floating-tooltip-text strong {
  color: #f8fafc;
}

[data-theme="dark"] .floating-ai-btn {
  background: #0e172a;
  border-color: rgba(223, 186, 115, 0.35);
  color: #f8fafc;
}

[data-theme="dark"] .floating-ai-btn:hover {
  background: #142038;
  border-color: var(--gold-primary);
  color: #dfba73;
}

/* ==========================================================================
   Bio Link Page (Mobile-First Hub for Instagram @ricardopessoa.7)
   ========================================================================== */
.mobile-nav-link-bio {
  background: rgba(184, 144, 71, 0.08) !important;
  border: 1px dashed rgba(184, 144, 71, 0.45) !important;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px !important;
  color: var(--gold-dark) !important;
  font-weight: 700 !important;
}

.mobile-bio-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.mobile-bio-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-dark);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .mobile-nav-link-bio {
  background: rgba(223, 186, 115, 0.12) !important;
  border-color: rgba(223, 186, 115, 0.4) !important;
  color: var(--gold-light) !important;
}

[data-theme="dark"] .mobile-bio-badge {
  background: var(--gold-primary);
  color: #070b14;
}

/* Biolink Shell & Architecture */
.biolink-body {
  background: radial-gradient(circle at 50% 0%, rgba(184, 144, 71, 0.05) 0%, rgba(255, 255, 255, 0) 45%), var(--bg-page);
  color: var(--text-secondary);
  min-height: 100vh;
  font-family: var(--font-nunito);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.biolink-topbar {
  width: 100%;
  max-width: 520px;
  padding: 16px 18px 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.biolink-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.biolink-back-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.biolink-back-btn:hover {
  color: var(--gold-dark);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.biolink-theme-btn {
  width: 38px;
  height: 38px;
}

.biolink-container {
  width: 100%;
  max-width: 520px;
  padding: 8px 16px 56px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Biolink Profile Card */
.biolink-profile-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(184, 144, 71, 0.08);
  position: relative;
}

.biolink-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 14px;
}

.biolink-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 14px rgba(184, 144, 71, 0.28);
}

.biolink-badge-verified {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e6645;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.biolink-badge-verified svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.biolink-name {
  font-family: var(--font-quicksand);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.2;
}

.biolink-credential {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.biolink-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(30, 102, 69, 0.07);
  color: var(--whatsapp-deep);
  border: 1px solid rgba(30, 102, 69, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.biolink-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e6645;
  box-shadow: 0 0 6px #1e6645;
}

.biolink-bio-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 420px;
}

/* Biolink Primary Call to Action */
.biolink-cta-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--whatsapp-green);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--whatsapp-shadow);
  transition: all var(--transition-fast);
  text-align: left;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.biolink-cta-primary:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--whatsapp-shadow-hover);
}

.biolink-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.biolink-cta-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.biolink-cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.biolink-cta-title {
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.25;
}

.biolink-cta-subtitle {
  font-size: 0.74rem;
  opacity: 0.92;
  font-weight: 500;
}

.biolink-cta-arrow svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.8);
}

.biolink-cta-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(184, 144, 71, 0.05);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.biolink-cta-secondary svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.biolink-cta-secondary:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Sections */
.biolink-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biolink-section-header {
  text-align: left;
  padding: 0 4px;
}

.biolink-section-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: 2px;
}

.biolink-section-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.biolink-section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Topic Cards */
.biolink-topics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biolink-topic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.biolink-topic-card:hover {
  border-color: rgba(184, 144, 71, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.biolink-topic-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
}

.biolink-topic-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.biolink-topic-info {
  flex: 1;
  min-width: 0;
}

.biolink-topic-badge-row {
  margin-bottom: 3px;
}

.biolink-topic-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  background: rgba(184, 144, 71, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.biolink-topic-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.3;
}

.biolink-topic-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.biolink-topic-action svg {
  width: 17px;
  height: 17px;
  fill: var(--text-dim);
  transition: transform var(--transition-fast);
}

.biolink-topic-card:hover .biolink-topic-action svg {
  transform: translateX(3px);
  fill: var(--gold-dark);
}

/* Tools Grid */
.biolink-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biolink-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.biolink-tool-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 144, 71, 0.1);
}

.biolink-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
}

.biolink-tool-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.biolink-tool-icon.ai-glow {
  background: rgba(184, 144, 71, 0.12);
  border: 1px solid rgba(184, 144, 71, 0.3);
}

.biolink-tool-content {
  flex: 1;
  min-width: 0;
}

.biolink-tool-title {
  font-weight: 800;
  font-size: 0.86rem;
  color: #0f172a;
  line-height: 1.25;
}

.biolink-tool-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.biolink-tool-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Location Card */
.biolink-location-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.biolink-location-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.biolink-location-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(184, 144, 71, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.biolink-location-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.biolink-location-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.biolink-location-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.biolink-location-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.biolink-location-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.biolink-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fdfbf7;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-dark);
  transition: var(--transition-fast);
}

.biolink-map-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.biolink-map-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Channels */
.biolink-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.biolink-channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.biolink-channel-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.biolink-channel-item:hover {
  color: var(--gold-dark);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  background: #fdfbf7;
}

/* Footer */
.biolink-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biolink-footer-oab {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.biolink-footer-motto {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.biolink-footer-deontologia {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 4px;
}

.biolink-footer-copy {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Toast */
.biolink-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.biolink-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Bio Link Dark Mode Overrides
   ========================================================================== */
[data-theme="dark"] .biolink-body {
  background: radial-gradient(circle at 50% 0%, rgba(223, 186, 115, 0.08) 0%, rgba(7, 11, 20, 0) 45%), var(--bg-page);
}

[data-theme="dark"] .biolink-back-btn {
  background: #0e1526;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="dark"] .biolink-back-btn:hover {
  background: #142038;
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

[data-theme="dark"] .biolink-profile-card,
[data-theme="dark"] .biolink-topic-card,
[data-theme="dark"] .biolink-tool-card,
[data-theme="dark"] .biolink-location-card,
[data-theme="dark"] .biolink-channel-item {
  background: #0f182c;
  border-color: rgba(223, 186, 115, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .biolink-name,
[data-theme="dark"] .biolink-section-title,
[data-theme="dark"] .biolink-topic-title,
[data-theme="dark"] .biolink-tool-title,
[data-theme="dark"] .biolink-location-title {
  color: #f8fafc;
}

[data-theme="dark"] .biolink-bio-text,
[data-theme="dark"] .biolink-location-desc,
[data-theme="dark"] .biolink-channel-item {
  color: #cbd5e1;
}

[data-theme="dark"] .biolink-badge-verified {
  border-color: #0f182c;
}

[data-theme="dark"] .biolink-cta-secondary {
  background: rgba(223, 186, 115, 0.1);
  border-color: rgba(223, 186, 115, 0.35);
  color: var(--gold-light);
}

[data-theme="dark"] .biolink-cta-secondary:hover {
  background: rgba(223, 186, 115, 0.18);
  color: #ffffff;
}

[data-theme="dark"] .biolink-status-pill {
  background: rgba(30, 102, 69, 0.2);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .biolink-status-dot {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

[data-theme="dark"] .biolink-map-btn {
  background: #142038;
  border-color: rgba(223, 186, 115, 0.3);
  color: var(--gold-light);
}

[data-theme="dark"] .biolink-map-btn:hover {
  background: #192742;
  color: #ffffff;
}

[data-theme="dark"] .biolink-toast {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid var(--border-gold);
}



