/* =====================================================
   Castro Rodriguez Advogados - CSS Design System
   ===================================================== */

/* ---------- CSS Custom Properties ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

:root {
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;

  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-amber-900: #78350f;

  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a8a;
  --color-blue-950: #172554;

  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;

  --color-purple-500: #a855f7;
  --color-pink-500: #ec4899;
  --color-white: #ffffff;

  --color-text: var(--color-slate-900);
  --color-text-muted: var(--color-slate-600);
  --color-text-light: var(--color-slate-400);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-slate-50);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif-logo: 'Cinzel', serif;
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-slate-100); }
::-webkit-scrollbar-thumb { background: var(--color-slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-slate-400); }
::selection { background: rgba(245, 158, 11, 0.3); color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

.section { padding: 5rem 0; }
@media (max-width: 639px) { .section { padding: 4rem 0; } }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: 2fr 3fr; }
}

/* ---------- Typography ---------- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ---------- Colors ---------- */
.text-white { color: var(--color-white); }
.text-slate-300 { color: var(--color-slate-300); }
.text-slate-400 { color: var(--color-slate-400); }
.text-slate-500 { color: var(--color-slate-500); }
.text-slate-600 { color: var(--color-slate-600); }
.text-slate-700 { color: var(--color-slate-700); }
.text-slate-800 { color: var(--color-slate-800); }
.text-slate-900 { color: var(--color-slate-900); }
.text-amber-300 { color: var(--color-amber-300); }
.text-amber-400 { color: var(--color-amber-400); }
.text-amber-500 { color: var(--color-amber-500); }
.text-amber-600 { color: var(--color-amber-600); }
.text-amber-700 { color: var(--color-amber-700); }
.text-amber-800 { color: var(--color-amber-800); }
.text-amber-900 { color: var(--color-amber-900); }
.text-blue-600 { color: var(--color-blue-600); }
.text-blue-700 { color: var(--color-blue-700); }
.text-blue-800 { color: var(--color-blue-800); }
.text-blue-900 { color: var(--color-blue-900); }
.text-green-500 { color: var(--color-green-500); }
.text-green-600 { color: var(--color-green-600); }
.text-green-800 { color: var(--color-green-800); }
.text-green-100 { color: var(--color-green-100); }

.text-gradient {
  background: linear-gradient(to right, var(--color-amber-500), var(--color-amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-hero {
  background: linear-gradient(to right, var(--color-amber-400), var(--color-amber-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Spacing ---------- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Flex / Alignment ---------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* ---------- Width / Height ---------- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-md { max-width: 28rem; }
.min-h-screen { min-height: 100vh; }

/* ---------- Positioning ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* ---------- Border / Radius ---------- */
.rounded-full { border-radius: 9999px; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-t-xl { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

.border { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-2 { border-width: 2px; }
.border-slate-100 { border-color: var(--color-slate-100); }
.border-slate-200 { border-color: var(--color-slate-200); }
.border-slate-700\/50 { border-color: rgba(51, 65, 85, 0.5); }
.border-slate-700 { border-color: var(--color-slate-700); }
.border-slate-800 { border-color: var(--color-slate-800); }
.border-amber-200 { border-color: var(--color-amber-200); }
.border-amber-300 { border-color: var(--color-amber-300); }
.border-amber-500 { border-color: var(--color-amber-500); }
.border-amber-500\/20 { border-color: rgba(245, 158, 11, 0.2); }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
.border-blue-200 { border-color: var(--color-blue-200); }
.border-green-200 { border-color: var(--color-green-200); }
.border-green-600 { border-color: var(--color-green-600); }

/* ---------- Backgrounds ---------- */
.bg-white { background-color: var(--color-white); }
.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-100 { background-color: var(--color-slate-100); }
.bg-slate-200 { background-color: var(--color-slate-200); }
.bg-slate-800 { background-color: var(--color-slate-800); }
.bg-slate-900 { background-color: var(--color-slate-900); }
.bg-slate-950 { background-color: var(--color-slate-950); }
.bg-amber-50 { background-color: var(--color-amber-50); }
.bg-amber-100 { background-color: var(--color-amber-100); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-blue-50 { background-color: var(--color-blue-50); }
.bg-blue-100 { background-color: var(--color-blue-100); }
.bg-green-50 { background-color: var(--color-green-50); }
.bg-green-600 { background-color: var(--color-green-600); }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-slate-900\/95 { background-color: rgba(15, 23, 42, 0.95); }

/* ---------- Gradients ---------- */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }

.from-slate-900 { --tw-gradient-from: var(--color-slate-900); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15,23,42,0)); }
.via-blue-950 { --tw-gradient-stops: var(--tw-gradient-from), var(--color-blue-950), var(--tw-gradient-to, rgba(23,37,84,0)); }
.to-slate-900 { --tw-gradient-to: var(--color-slate-900); }
.from-amber-500 { --tw-gradient-from: var(--color-amber-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245,158,11,0)); }
.to-amber-600 { --tw-gradient-to: var(--color-amber-600); }
.from-green-500 { --tw-gradient-from: var(--color-green-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34,197,94,0)); }
.to-green-600 { --tw-gradient-to: var(--color-green-600); }
.from-green-600 { --tw-gradient-from: var(--color-green-600); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(22,163,74,0)); }
.to-green-700 { --tw-gradient-to: var(--color-green-700); }
.from-amber-500\/20 { --tw-gradient-from: rgba(245,158,11,0.2); }
.to-blue-500\/20 { --tw-gradient-to: rgba(59,130,246,0.2); }

/* ---------- Shadows ---------- */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-amber-500\/25 { box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.25); }

/* ---------- Padding ---------- */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }

/* ---------- Overflow ---------- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ---------- Transitions ---------- */
.transition { transition: all var(--transition); }
.transition-colors { transition: color var(--transition), background-color var(--transition), border-color var(--transition); }
.transition-all { transition: all var(--transition); }
.transition-transform { transition: transform var(--transition); }

/* ---------- Hover ---------- */
.hover\:border-amber-300:hover { border-color: var(--color-amber-300); }
.hover\:bg-slate-50:hover { background-color: var(--color-slate-50); }
.hover\:bg-slate-100:hover { background-color: var(--color-slate-100); }
.hover\:bg-slate-700:hover { background-color: var(--color-slate-700); }
.hover\:bg-slate-800:hover { background-color: var(--color-slate-800); }
.hover\:bg-green-600\/10:hover { background-color: rgba(22, 163, 74, 0.1); }
.hover\:bg-green-50:hover { background-color: var(--color-green-50); }
.hover\:bg-green-700:hover { background-color: var(--color-green-700); }
.hover\:bg-amber-50:hover { background-color: var(--color-amber-50); }
.hover\:bg-amber-500\/10:hover { background-color: rgba(245, 158, 11, 0.1); }
.hover\:bg-amber-500:hover { background-color: var(--color-amber-500); }
.hover\:bg-blue-600:hover { background-color: var(--color-blue-600); }
.hover\:bg-pink-600:hover { background-color: var(--color-pink-500); }
.hover\:text-white:hover { color: var(--color-white); }
.hover\:text-amber-300:hover { color: var(--color-amber-300); }
.hover\:text-amber-400:hover { color: var(--color-amber-400); }
.hover\:text-slate-700:hover { color: var(--color-slate-700); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:no-underline:hover { text-decoration: none; }

.group:hover .group-hover\:text-white { color: var(--color-white); }
.group:hover .group-hover\:text-slate-900 { color: var(--color-slate-900); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ---------- Opacity / Blur ---------- */
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.blur-3xl { filter: blur(64px); }
.blur-xl { filter: blur(24px); }

/* ---------- HR ---------- */
hr { border: none; border-top: 1px solid var(--color-slate-800); margin: 0.5rem 0; }

/* ---------- Underline ---------- */
.underline { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.btn-base { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.125rem; border-radius: var(--radius-xl); }
.btn-primary {
  background: linear-gradient(to right, var(--color-amber-500), var(--color-amber-600));
  color: var(--color-slate-900);
}
.btn-primary:hover {
  background: linear-gradient(to right, var(--color-amber-600), var(--color-amber-700));
}
.btn-whatsapp {
  background: linear-gradient(to right, var(--color-green-600), var(--color-green-700));
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background: linear-gradient(to right, var(--color-green-700), #14532d);
}
.btn-outline {
  background: transparent;
  border: 1px solid;
}
.btn-outline-amber {
  border-color: var(--color-amber-500);
  color: var(--color-amber-600);
}
.btn-outline-amber:hover { background: var(--color-amber-50); }
.btn-outline-green {
  border-color: var(--color-green-600);
  color: var(--color-green-500);
}
.btn-outline-green:hover { background: rgba(22, 163, 74, 0.1); }
.btn-ghost { color: var(--color-amber-400); }
.btn-ghost:hover { color: var(--color-amber-300); background: rgba(245, 158, 11, 0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- SVG Icons (inline) ---------- */
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 0.75rem; height: 0.75rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }
.icon-2xl { width: 2.5rem; height: 2.5rem; }

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-sm { padding: 0.125rem 0.5rem; font-size: 0.625rem; }
.badge-amber {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
}
.badge-amber-outline {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-amber-300);
}
.badge-blue {
  background: var(--color-blue-100);
  color: var(--color-blue-700);
}
.badge-amber-dark {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
  padding: 0.125rem 0.5rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
}
.card-shadow { box-shadow: var(--shadow-md); }
.card-shadow-hover:hover { box-shadow: var(--shadow-xl); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-800);
  height: 4rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.nav.visible { transform: translateY(0); }
.nav > .container { height: 100%; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text { display: none; }
@media (min-width: 640px) { .nav-logo-text { display: block; } }
.nav-logo-name {
  color: var(--color-white);
  font-family: var(--font-serif-logo);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-logo-sub {
  color: var(--color-amber-400);
  font-family: var(--font-serif-logo);
  font-weight: 600;
  font-size: 0.625rem;
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links { display: none; align-items: center; gap: 0.25rem; height: 100%; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  color: var(--color-slate-300);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--color-white); background: var(--color-slate-800); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-cta-calc { display: none; }
@media (min-width: 640px) { .nav-cta-calc { display: flex; } }
.nav-cta-wa-text { display: none; }
@media (min-width: 640px) { .nav-cta-wa-text { display: inline; } }

/* Mobile menu button */
.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-slate-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.nav-mobile-btn:hover { color: var(--color-white); background: var(--color-slate-800); }
@media (min-width: 1024px) { .nav-mobile-btn { display: none; } }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
}
.mobile-menu-panel {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--color-slate-900);
  border-bottom: 1px solid var(--color-slate-800);
  padding: 1rem;
  transform: translateY(-1rem);
  opacity: 0;
  transition: all 0.2s ease;
}
.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu-link {
  padding: 0.75rem 1rem;
  color: var(--color-slate-300);
  border-radius: var(--radius-lg);
  text-align: left;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-menu-link:hover { color: var(--color-white); background: var(--color-slate-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950), var(--color-slate-900));
  overflow: hidden;
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow-1 {
  position: absolute;
  top: 5rem;
  right: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 9999px;
  filter: blur(64px);
}
.hero-glow-2 {
  position: absolute;
  bottom: 5rem;
  left: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 9999px;
  filter: blur(64px);
}
.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: 4rem;
  padding-top: 4rem;
  min-height: calc(100vh - 5rem);
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.hero-text { text-align: center; order: 2; }
@media (min-width: 1024px) { .hero-text { text-align: left; order: 1; } }
.hero-image-wrap { order: 1; display: flex; justify-content: center; align-items: center; }
@media (min-width: 1024px) { .hero-image-wrap { order: 2; } }
.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 3.75rem; } }
.hero-title-sub {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--color-slate-300);
  margin-top: 0.5rem;
  line-height: 1.35;
}
@media (min-width: 640px) {
  .hero-title-sub {
    font-size: 0.52em;
    margin-top: 0.625rem;
  }
}
@media (min-width: 1024px) {
  .hero-title-sub {
    font-size: 0.55em;
    margin-top: 0.75rem;
  }
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--color-slate-300);
  margin-bottom: 2rem;
  max-width: 42rem;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.hero-stat {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) { .hero-stat { padding: 1rem; } }
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--color-white); }
@media (min-width: 640px) { .hero-stat-value { font-size: 1.875rem; } }
.hero-stat-label { font-size: 0.75rem; color: var(--color-slate-400); }
.hero-stat-icon { color: var(--color-amber-400); margin: 0 auto 0.5rem; }

/* Hero Image */
.hero-img-container {
  position: relative;
  width: 100%;
  max-width: 28rem;
}
@media (min-width: 1024px) { .hero-img-container { max-width: 32rem; } }
.hero-img-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom right, rgba(245,158,11,0.2), rgba(59,130,246,0.2));
  border-radius: var(--radius-3xl);
  filter: blur(24px);
}
.hero-img-frame {
  position: relative;
  background: linear-gradient(to bottom right, var(--color-slate-800), var(--color-slate-900));
  border-radius: var(--radius-3xl);
  padding: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 640px) { .hero-img-frame { border-radius: var(--radius-3xl); padding: 0.75rem; } }
.hero-img-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
@media (min-width: 640px) { .hero-img-inner { border-radius: var(--radius-2xl); } }
.hero-img-inner img { width: 100%; height: auto; object-fit: cover; }
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.3), transparent, transparent);
}

/* Hero badges on image */
.hero-badge-lawyer {
  position: absolute;
  bottom: -1rem;
  right: -0.5rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}
@media (min-width: 640px) { .hero-badge-lawyer { bottom: -1.5rem; right: -1rem; padding: 0.75rem; border-radius: var(--radius-2xl); } }
.hero-badge-lawyer-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-amber-500);
}
@media (min-width: 640px) { .hero-badge-lawyer-avatar { width: 3.5rem; height: 3.5rem; } }
.hero-badge-lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-lawyer-name { color: var(--color-slate-900); font-weight: 700; font-size: 0.75rem; }
@media (min-width: 640px) { .hero-badge-lawyer-name { font-size: 0.875rem; } }
.hero-badge-lawyer-title { color: var(--color-slate-500); font-size: 0.625rem; }
@media (min-width: 640px) { .hero-badge-lawyer-title { font-size: 0.75rem; } }
.hero-badge-star {
  position: absolute;
  top: -0.75rem;
  left: -0.5rem;
  background: linear-gradient(to right, var(--color-green-500), var(--color-green-600));
  color: var(--color-white);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}
@media (min-width: 640px) { .hero-badge-star { top: -1rem; left: -1rem; padding: 0.5rem 1rem; font-size: 0.875rem; } }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-slate-400);
  cursor: pointer;
}
@media (min-width: 640px) { .hero-scroll { bottom: 2rem; } }
.hero-scroll-text { font-size: 0.75rem; margin-bottom: 0.25rem; }
@media (min-width: 640px) { .hero-scroll-text { font-size: 0.875rem; } }

/* ---------- Calculator ---------- */
.calc-section { padding: 5rem 0; background: linear-gradient(to bottom, var(--color-slate-50), var(--color-white)); }
.calc-header { margin-bottom: 3rem; }
.calc-card {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
}
.calc-progress-bar {
  background: var(--color-slate-100);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-slate-200);
}
.calc-progress-inner { height: 0.5rem; background: var(--color-slate-200); border-radius: 9999px; overflow: hidden; }
.calc-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-amber-500), var(--color-amber-600));
  border-radius: 9999px;
  transition: width 0.3s ease;
  width: 25%;
}
.calc-progress-info { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }
.calc-progress-step { font-weight: 500; color: var(--color-slate-600); }
.calc-progress-pct { color: var(--color-slate-500); }

.calc-body { padding: 1.5rem; min-height: 400px; }
@media (min-width: 640px) { .calc-body { padding: 2rem; } }
.calc-step { display: none; }
.calc-step.active { display: block; animation: fadeSlideIn 0.3s ease; }
.calc-step-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-blue-100);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-blue-600);
}
.calc-step-title { font-size: 1.5rem; font-weight: 700; color: var(--color-slate-900); margin-bottom: 0.5rem; }
.calc-step-desc { color: var(--color-slate-600); margin-bottom: 1.5rem; }

/* Slider */
.calc-slider-wrap {
  background: var(--color-slate-50);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.calc-slider-value {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-amber-600);
}
.calc-slider-value span { font-size: 1.25rem; color: var(--color-slate-500); margin-left: 0.5rem; }
.calc-slider-value-sm {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-amber-600);
}
.calc-slider-value-sm span { font-size: 1.125rem; color: var(--color-slate-500); margin-left: 0.5rem; }
.calc-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 0.5rem;
  background: var(--color-slate-200);
  border-radius: 9999px;
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.calc-range::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}
.calc-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-slate-500); margin-top: 0.5rem; }

/* Stepper Component */
.calc-stepper { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
.stepper-btn {
  width: 4rem; height: 4rem; border-radius: var(--radius-lg); border: 2px solid var(--color-slate-200);
  background: var(--color-white); color: var(--color-slate-600); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.stepper-btn:hover { border-color: var(--color-amber-400); color: var(--color-amber-600); background: var(--color-amber-50); }
.stepper-input {
  width: 10rem; height: 4rem; text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--color-slate-900);
  border: 2px solid var(--color-slate-200); border-radius: var(--radius-lg); background: var(--color-white);
}
.stepper-input:focus { border-color: var(--color-amber-500); outline: none; box-shadow: 0 0 0 4px var(--color-amber-100); }

/* Profession / Disease select buttons */
.calc-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 639px) { .calc-options-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-option {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-slate-200);
  text-align: center;
  transition: all var(--transition);
  background: var(--color-white);
}
.calc-option:hover { border-color: var(--color-amber-300); background: var(--color-slate-50); }
.calc-option.selected { border-color: var(--color-amber-500); background: var(--color-amber-50); }
.calc-option.selected .calc-option-icon { color: var(--color-amber-600); }
.calc-option.selected .calc-option-label { color: var(--color-amber-900); }
.calc-option-icon { margin: 0 auto 0.5rem; color: var(--color-slate-400); }
.calc-option-label { font-weight: 500; color: var(--color-slate-700); }

/* Disease grid (smaller) */
.calc-disease-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem;
}
@media (min-width: 640px) { .calc-disease-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-disease-option {
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-slate-200);
  text-align: left;
  transition: all var(--transition);
  background: var(--color-white);
}
.calc-disease-option:hover { border-color: var(--color-amber-300); background: var(--color-slate-50); }
.calc-disease-option.selected { border-color: var(--color-amber-500); background: var(--color-amber-50); }
.calc-disease-option.selected .calc-option-icon { color: var(--color-amber-600); }
.calc-disease-option.selected .calc-option-label { color: var(--color-amber-900); }
.calc-disease-option .calc-option-icon { margin: 0 0 0.5rem; color: var(--color-slate-400); font-size: 1.25rem; }
.calc-disease-option .calc-option-label { font-size: 0.875rem; font-weight: 500; color: var(--color-slate-700); display: block; }

/* Info / Alert boxes */
.calc-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
}
.calc-alert-warning { background: var(--color-amber-50); border-color: var(--color-amber-200); color: var(--color-amber-800); }
.calc-alert-info { background: var(--color-blue-50); border-color: var(--color-blue-200); color: var(--color-blue-800); }
.calc-alert-success { background: var(--color-green-50); border-color: var(--color-green-200); color: var(--color-green-800); }
.calc-alert p { font-size: 0.875rem; }
.calc-alert strong { font-weight: 700; }

/* Calculator Footer */
.calc-footer {
  background: var(--color-slate-50);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: space-between;
}

/* ---------- Calculator Result ---------- */
.result-card {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
}
.result-header {
  background: linear-gradient(to bottom right, var(--color-green-500), var(--color-green-600));
  padding: 2rem;
  text-align: center;
  color: var(--color-white);
}
.result-header-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.result-header-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.result-header-subtitle { color: var(--color-green-100); margin-bottom: 1rem; }
.result-header-value { font-size: 3rem; font-weight: 700; }
.result-header-footnote { color: var(--color-green-100); margin-top: 0.5rem; }

.result-body { padding: 1.5rem; }
@media (min-width: 640px) { .result-body { padding: 2rem; } }
.result-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.result-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
.result-box {
  background: var(--color-slate-50);
  border-radius: var(--radius-xl);
  padding: 1rem;
}
.result-box-label { display: flex; align-items: center; gap: 0.5rem; color: var(--color-slate-500); font-size: 0.875rem; margin-bottom: 0.5rem; }
.result-box-value { font-size: 1.5rem; font-weight: 700; color: var(--color-slate-900); }

.result-benefits {
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.result-benefits-title { font-weight: 700; color: var(--color-blue-900); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.result-benefits-list { display: flex; flex-direction: column; gap: 0.5rem; }
.result-benefit { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--color-blue-800); }
.result-benefit svg { flex-shrink: 0; margin-top: 0.125rem; }

/* Lead form */
.result-lead-form { display: flex; flex-direction: column; gap: 1rem; }
.result-lead-form.hidden { display: none; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--color-slate-700); }
.form-input {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  background: var(--color-white);
}
.form-input:focus { outline: none; border-color: var(--color-amber-500); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1); }

/* Non-eligible result */
.result-non-eligible {
  text-align: center;
  padding: 2rem;
}
.result-non-eligible-icon {
  width: 5rem;
  height: 5rem;
  background: var(--color-amber-100);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-amber-600);
}
.result-non-eligible-title { font-size: 1.5rem; font-weight: 700; color: var(--color-slate-900); margin-bottom: 1rem; }
.result-non-eligible-text { color: var(--color-slate-600); margin-bottom: 1.5rem; }

/* ---------- Specialist ---------- */
.specialist-section { padding: 5rem 0; background: var(--color-white); overflow: hidden; }
.specialist-grid { display: grid; gap: 2rem; align-items: flex-start; }
@media (min-width: 1024px) { .specialist-grid { grid-template-columns: 2fr 3fr; gap: 3rem; } }
.specialist-photo-wrap { position: relative; }
.specialist-photo-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom right, rgba(245,158,11,0.1), rgba(59,130,246,0.1));
  border-radius: var(--radius-3xl);
  filter: blur(24px);
}
.specialist-photo-frame {
  position: relative;
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950));
  border-radius: var(--radius-3xl);
  padding: 0.5rem;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 640px) { .specialist-photo-frame { padding: 0.75rem; } }
.specialist-photo-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}
.specialist-photo-inner img { width: 100%; height: auto; object-fit: cover; }
.specialist-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.6), transparent, transparent);
}
.specialist-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .specialist-badge { padding: 1rem; } }
.specialist-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
}
@media (min-width: 640px) { .specialist-badge-icon { width: 3rem; height: 3rem; } }
.specialist-badge-name { color: var(--color-slate-900); font-weight: 700; font-size: 0.875rem; }
@media (min-width: 640px) { .specialist-badge-name { font-size: 1rem; } }
.specialist-badge-title { color: var(--color-slate-500); font-size: 0.75rem; }
@media (min-width: 640px) { .specialist-badge-title { font-size: 0.875rem; } }

/* Social links */
.specialist-social { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-slate-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--color-slate-600);
}
@media (min-width: 640px) { .social-btn { width: 3rem; height: 3rem; } }
.social-btn:hover { color: var(--color-white); }
.social-btn:hover.social-linkedin { background: var(--color-blue-600); }
.social-btn:hover.social-instagram { background: var(--color-pink-500); }
.social-btn:hover.social-whatsapp { background: var(--color-green-600); }

/* Specialist content sections */
.spec-info-box {
  background: var(--color-slate-50);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  border: 1px solid var(--color-slate-100);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .spec-info-box { padding: 1.5rem; } }
.spec-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) { .spec-section-title { font-size: 1.25rem; } }
.spec-text { color: var(--color-slate-600); font-size: 0.875rem; line-height: 1.625; }
@media (min-width: 640px) { .spec-text { font-size: 1rem; } }
.spec-text + .spec-text { margin-top: 0.75rem; }

.spec-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .spec-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.spec-stat {
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950));
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) { .spec-stat { padding: 1rem; } }
.spec-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--color-white); }
@media (min-width: 640px) { .spec-stat-value { font-size: 1.875rem; } }
.spec-stat-label { font-size: 0.625rem; color: var(--color-slate-400); }
@media (min-width: 640px) { .spec-stat-label { font-size: 0.75rem; } }

/* Education list */
.spec-edu-list { display: flex; flex-direction: column; gap: 0.75rem; }
.spec-edu-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.spec-edu-icon {
  width: 2rem;
  height: 2rem;
  background: var(--color-amber-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-amber-600);
}
.spec-edu-name { color: var(--color-slate-900); font-weight: 500; font-size: 0.875rem; }
@media (min-width: 640px) { .spec-edu-name { font-size: 1rem; } }
.spec-edu-detail { color: var(--color-slate-500); font-size: 0.75rem; }
@media (min-width: 640px) { .spec-edu-detail { font-size: 0.875rem; } }

/* Areas tag pills */
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-blue-50);
  color: var(--color-blue-700);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 640px) { .spec-tag { padding: 0.5rem 1rem; font-size: 0.875rem; } }

.spec-ctas { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
@media (min-width: 640px) { .spec-ctas { flex-direction: row; gap: 1rem; } }
.spec-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-slate-500);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
@media (min-width: 640px) { .spec-trust { font-size: 0.875rem; } }

/* ---------- How It Works ---------- */
.how-section { padding: 5rem 0; background: var(--color-white); }
.how-header { margin-bottom: 4rem; }
.how-steps { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-step {
  position: relative;
  background: var(--color-slate-50);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--color-slate-100);
  transition: all var(--transition);
  height: 100%;
}
.how-step:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-lg); }
.how-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-white);
  transition: transform var(--transition);
}
.how-step:hover .how-step-number { transform: scale(1.1); }
.how-step-num-text { font-size: 2.25rem; font-weight: 700; color: var(--color-slate-200); margin-bottom: 0.75rem; }
.how-step-title { font-size: 1.25rem; font-weight: 700; color: var(--color-slate-900); margin-bottom: 0.75rem; }
.how-step-desc { color: var(--color-slate-600); font-size: 0.875rem; line-height: 1.625; }

/* Connector line between steps */
@media (min-width: 1024px) {
  .how-steps { position: relative; }
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3rem;
    left: 100%;
    width: 100%;
    height: 2px;
    background: var(--color-slate-200);
    transform: translateX(-50%);
    z-index: 0;
  }
}

.how-cta {
  background: linear-gradient(to right, var(--color-slate-900), var(--color-blue-950));
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.how-cta-title { font-size: 1.5rem; font-weight: 700; color: var(--color-white); margin-bottom: 1rem; }
.how-cta-text { color: var(--color-slate-300); margin-bottom: 1.5rem; }

/* ---------- Services ---------- */
.services-section { padding: 5rem 0; background: var(--color-slate-50); }
.services-header { margin-bottom: 4rem; }
.services-grid { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-xl); }
.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  transition: transform var(--transition);
}
.service-card:hover .service-card-icon { transform: scale(1.1); }
.service-card-title { font-size: 1.25rem; font-weight: 700; color: var(--color-slate-900); margin-bottom: 0.75rem; }
.service-card-desc { color: var(--color-slate-600); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.25rem; }
.service-card-benefits { display: flex; flex-direction: column; gap: 0.5rem; }
.service-card-benefit { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-slate-700); }
.service-card-benefit-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-amber-500);
  border-radius: 9999px;
  flex-shrink: 0;
}



/* ---------- FAQ ---------- */
.faq-section { padding: 5rem 0; background: var(--color-white); }
.faq-header { margin-bottom: 4rem; }
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--color-slate-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  padding: 0 1.5rem;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--color-amber-300); background: rgba(254, 243, 199, 0.15); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--color-slate-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}
.faq-question:hover { text-decoration: none; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-slate-400);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-amber-600); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 20rem;
  padding-bottom: 1rem;
}
.faq-answer p { color: var(--color-slate-600); line-height: 1.625; }

.faq-cta {
  background: linear-gradient(to right, var(--color-slate-900), var(--color-blue-950));
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: center;
  max-width: 42rem;
  margin: 3rem auto 0;
}
.faq-cta-title { font-size: 1.25rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.5rem; }
.faq-cta-text { color: var(--color-slate-300); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-slate-900);
  color: var(--color-slate-300);
}
.footer-main { padding-top: 4rem; padding-bottom: 4rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; gap: 4rem; } }

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-900);
}
.footer-logo-name { 
  color: var(--color-white); 
  font-family: var(--font-serif-logo);
  font-weight: 700; 
  font-size: 1.125rem; 
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-logo-sub { 
  color: var(--color-amber-400); 
  font-family: var(--font-serif-logo);
  font-size: 0.625rem; 
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-desc { color: var(--color-slate-400); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-slate-800);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--color-slate-400);
}
.footer-social-btn:hover { background: var(--color-amber-500); color: var(--color-slate-900); }

.footer-heading { color: var(--color-white); font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link {
  color: var(--color-slate-400);
  font-size: 0.875rem;
  transition: color var(--transition);
  background: none;
  border: none;
  font-family: var(--font-sans);
  text-align: left;
  padding: 0;
}
.footer-link:hover { color: var(--color-amber-400); }

.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--color-slate-400); }
.footer-contact-item svg { color: var(--color-amber-500); flex-shrink: 0; margin-top: 0.125rem; }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
  transition: color var(--transition);
}
.footer-contact-link svg { color: var(--color-amber-500); flex-shrink: 0; }
.footer-contact-link:hover { color: var(--color-amber-400); }

.footer-bottom {
  border-top: 1px solid var(--color-slate-800);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }
.footer-copyright { color: var(--color-slate-500); font-size: 0.875rem; text-align: center; }
@media (min-width: 768px) { .footer-copyright { text-align: left; } }
.footer-legal { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer-legal-link { color: var(--color-slate-500); transition: color var(--transition); }
.footer-legal-link:hover { color: var(--color-amber-400); }

.footer-oab {
  background: var(--color-slate-950);
  padding: 1rem 0;
  text-align: center;
  color: var(--color-slate-600);
  font-size: 0.75rem;
}

/* ---------- Animations ---------- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDownIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.reveal { opacity: 0; }
.reveal.reveal-visible { animation: fadeUpIn 0.6s ease forwards; }
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }
.reveal-delay-6 { animation-delay: 0.6s; }
.reveal-delay-7 { animation-delay: 0.7s; }

.animate-bounce { animation: bounceDown 2s infinite ease-in-out; }
.animate-bounce-in { animation: bounceIn 0.5s ease; }
.animate-scale-in { animation: scaleIn 0.5s ease; }

/* ---------- Hidden ---------- */
.hidden { display: none; }
@media (min-width: 640px) { .sm\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:hidden { display: none; } }
@media (max-width: 639px) { .max-sm\:hidden { display: none; } }

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Tooltip ---------- */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-slate-900);
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 0.5rem;
}
.tooltip-wrap:hover .tooltip-content { display: block; }

/* =====================================================
   HOME PAGE SECTIONS
   ===================================================== */

/* ---------- Home Hero ---------- */
.home-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950), var(--color-slate-900));
  overflow: hidden;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 5rem);
}
@media (min-width: 1024px) {
  .home-hero-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.home-hero-text { text-align: left; order: 1; }
@media (min-width: 1024px) { .home-hero-text { text-align: left; order: 1; } }
.home-hero-image { order: 1; display: flex; justify-content: center; align-items: center; }
@media (min-width: 1024px) { .home-hero-image { order: 2; } }

.home-hero-img-frame {
  position: relative;
  background: linear-gradient(to bottom right, var(--color-slate-800), var(--color-slate-900));
  border-radius: var(--radius-3xl);
  padding: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: var(--shadow-2xl);
}
.home-hero-img-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}
.home-hero-img-inner img { width: 100%; height: auto; object-fit: cover; }

.home-hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .home-hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .home-hero-title { font-size: 3rem; } }
.home-hero-subtitle {
  font-size: 1rem;
  color: var(--color-slate-300);
  margin-bottom: 2rem;
  max-width: 42rem;
}
@media (min-width: 640px) { .home-hero-subtitle { font-size: 1.125rem; } }

.home-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .home-hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.home-hero-stat {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) { .home-hero-stat { padding: 1rem; } }
.home-hero-stat .home-hero-stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.5rem;
  color: var(--color-amber-400);
}
@media (min-width: 640px) { .home-hero-stat .home-hero-stat-icon { width: 2rem; height: 2rem; } }

/* ---------- About Section ---------- */
.about-section { padding: 5rem 0; background: var(--color-white); }
.about-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-text { color: var(--color-slate-600); font-size: 0.875rem; line-height: 1.75; }
@media (min-width: 640px) { .about-text { font-size: 1rem; } }
.about-text + .about-text { margin-top: 1rem; }
.about-values { display: grid; gap: 1rem; }
.about-value-card {
  background: var(--color-slate-50);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--color-slate-100);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.about-value-card:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-md); }
.about-value-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
}
.about-value-title { font-weight: 700; color: var(--color-slate-900); margin-bottom: 0.25rem; font-size: 1rem; }
.about-value-desc { color: var(--color-slate-500); font-size: 0.875rem; line-height: 1.5; }

/* ---------- Impact Stats ---------- */
.impact-section { padding: 5rem 0; background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950), var(--color-slate-900)); }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .impact-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.impact-card { text-align: center; padding: 1.5rem 1rem; }
.impact-card-icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--color-amber-400); }
@media (min-width: 640px) { .impact-card-icon { width: 3.5rem; height: 3.5rem; } }
.impact-card-value { font-size: 2.5rem; font-weight: 700; color: var(--color-white); }
@media (min-width: 640px) { .impact-card-value { font-size: 3rem; } }
.impact-card-label { color: var(--color-slate-400); font-size: 0.875rem; margin-top: 0.25rem; }

/* ---------- Atuacao Section ---------- */
.atuacao-section { padding: 5rem 0; background: var(--color-slate-50); }
.atuacao-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
  transition: all var(--transition);
}
.atuacao-card:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-xl); }
.atuacao-card-body { padding: 2rem; }
@media (min-width: 640px) { .atuacao-card-body { padding: 3rem; } }
.atuacao-card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-amber-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}
.atuacao-card-title { font-size: 1.5rem; font-weight: 700; color: var(--color-slate-900); margin-bottom: 1rem; }
.atuacao-card-desc { color: var(--color-slate-600); line-height: 1.625; margin-bottom: 1.5rem; }
.atuacao-highlights { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .atuacao-highlights { grid-template-columns: repeat(3, 1fr); } }
.atuacao-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-slate-50);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-700);
}
.atuacao-highlight svg { color: var(--color-green-500); flex-shrink: 0; }

/* ---------- Why Us Section ---------- */
.why-us-section { padding: 5rem 0; background: var(--color-white); }
.why-us-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .why-us-grid { grid-template-columns: repeat(2, 1fr); } }
.why-us-card {
  background: var(--color-slate-50);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--color-slate-100);
  transition: all var(--transition);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-us-card:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-lg); }
.why-us-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-amber-400);
}
.why-us-title { font-weight: 700; color: var(--color-slate-900); margin-bottom: 0.25rem; font-size: 1.0625rem; }
.why-us-desc { color: var(--color-slate-500); font-size: 0.875rem; line-height: 1.5; }

/* ---------- Contact Section ---------- */
.contact-section { padding: 5rem 0; background: var(--color-slate-50); }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-md);
}
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}
.contact-form .form-input:focus { outline: none; border-color: var(--color-amber-500); box-shadow: 0 0 0 2px rgba(245,158,11,0.1); }
.contact-form textarea.form-input { resize: vertical; min-height: 120px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--color-slate-200);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--color-amber-300); box-shadow: var(--shadow-md); }
.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-amber-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-amber-600);
}
.contact-info-label { font-weight: 600; color: var(--color-slate-900); font-size: 0.875rem; margin-bottom: 0.25rem; }
.contact-info-value { color: var(--color-slate-500); font-size: 0.875rem; line-height: 1.4; }
.contact-info-link { color: var(--color-slate-500); font-size: 0.875rem; transition: color var(--transition); }
.contact-info-link:hover { color: var(--color-amber-600); }

/* ---------- IRPF Banner ---------- */
.irpf-banner {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, var(--color-slate-900), var(--color-blue-950), var(--color-slate-900));
}
.irpf-banner-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .irpf-banner-card { padding: 3rem 4rem; } }
.irpf-banner-title { font-size: 1.5rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.75rem; }
@media (min-width: 640px) { .irpf-banner-title { font-size: 1.875rem; } }
.irpf-banner-text { color: var(--color-slate-300); margin-bottom: 1.5rem; }
.irpf-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--color-amber-300);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ---------- Home Section Header ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 640px) { .section-header { margin-bottom: 4rem; } }
.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p {
  color: var(--color-slate-600);
  max-width: 42rem;
  margin: 0 auto;
}
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: waPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
}
@media (max-width: 639px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
}

.atuacao-layout-split {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .atuacao-layout-split {
    grid-template-columns: 1fr 1fr;
  }
  .atuacao-layout-split .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 0;
  }
}
.atuacao-layout-split .atuacao-card {
  margin: 0;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Feature Cards ---------- */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}
@media (min-width: 640px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .feature-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}
.feature-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber-400);
  border-radius: 0.75rem;
}
.feature-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.feature-card-title {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card-text {
  color: var(--color-slate-300);
  font-size: 0.875rem;
  line-height: 1.5;
}

.spec-features-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .spec-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =====================================================================
   OTIMIZAÇÃO MOBILE / RESPONSIVO
   ===================================================================== */

/* ---- Tablet e mobile (< 1024px): IRPF mostra a imagem do hero antes do texto ---- */
@media (max-width: 1023px) {
  .hero-image-wrap { order: 1; }
  .hero-text { order: 2; }
}

/* ---- Mobile (< 640px) ---- */
@media (max-width: 639px) {

  /* Header: o botão flutuante de WhatsApp já cumpre essa função */
  .nav-actions #navWaBtn { display: none; }

  /* Inputs com 16px evitam o zoom automático do iOS ao focar */
  .form-input,
  .contact-form .form-input { font-size: 1rem; }

  /* Seções: menos espaço vertical */
  .section-header { margin-bottom: 2rem; }
  .how-section, .faq-section, .atuacao-section, .contact-section,
  .specialist-section, .impact-section, .calc-section, .reviews-section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  /* ---------- HERO (home) ---------- */
  .home-hero { min-height: 0; padding-top: 4rem; }
  .home-hero-content { min-height: 0; padding-top: 2rem; padding-bottom: 3rem; gap: 2.25rem; }
  .home-hero-text .badge { margin-bottom: 1.25rem; }
  .hero-pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-pills .badge {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.6rem !important;
    justify-content: flex-start;
    line-height: 1.25;
  }
  .hero-pills .badge svg { flex-shrink: 0; }
  .home-hero-img-inner img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
  }

  /* ---------- HERO (IRPF) ---------- */
  .hero { min-height: 0; padding-top: 4rem; }
  .hero-content { min-height: 0; padding-top: 2rem; padding-bottom: 3rem; gap: 2.25rem; }
  .hero-text .badge { margin-bottom: 1.25rem; }
  .hero-img-inner img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 25%;
  }
  .hero-image-wrap { margin-bottom: 0.25rem; }
  .hero-scroll { display: none; }

  /* ---------- Área de atuação principal ---------- */
  .atuacao-card-body { padding: 1.5rem; }
  .atuacao-card-title { font-size: 1.3rem; }
  .atuacao-card .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
  }

  /* ---------- Cards de áreas / diferenciais: formato compacto (ícone ao lado) ---------- */
  .feature-cards-grid { gap: 0.75rem !important; margin-top: 2rem !important; }
  .feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    text-align: left !important;
    padding: 1.1rem 1.1rem !important;
  }
  .feature-card-icon {
    grid-row: span 2;
    margin: 0 !important;
    width: 2.75rem;
    height: 2.75rem;
  }
  .feature-card-title { font-size: 1.05rem !important; margin-bottom: 0.3rem !important; }
  .feature-card-text { font-size: 0.9rem !important; }

  /* ---------- Passos / requisitos (IRPF): formato compacto ---------- */
  .how-steps { gap: 0.75rem; margin-bottom: 2rem; }
  .how-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.1rem;
  }
  .how-step > * { grid-column: 2; }
  .how-step > .how-step-number {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
  }
  .how-step-num-text { font-size: 0.8rem; font-weight: 700; color: var(--color-amber-600); margin-bottom: 0.15rem; letter-spacing: 0.05em; }
  .how-step-title { font-size: 1.1rem; margin-bottom: 0.35rem; }
  #quem-tem-direito .req-direct { margin-top: 0; font-size: 1rem; align-self: center; }

  /* (Avaliações: ajustes mobile ficam no <style> da própria seção em index.html) */

  /* ---------- Diagnóstico (calculadora) ---------- */
  .calc-body { padding: 1.25rem; min-height: 0; }
  .calc-progress-bar { padding: 1rem 1.25rem; }
  .calc-step-icon { width: 3rem; height: 3rem; margin-bottom: 0.75rem; }
  .calc-step-icon svg { width: 24px; height: 24px; }
  .calc-step-title { font-size: 1.25rem; line-height: 1.3; }
  .calc-step-desc { font-size: 0.9rem; margin-bottom: 1.25rem; }

  /* Categorias: lista vertical com caixa de seleção (mais fácil de tocar) */
  .calc-options-grid { grid-template-columns: 1fr !important; gap: 0.625rem; }
  .calc-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    text-align: left;
    min-height: 3.5rem;
  }
  .calc-option-icon { margin: 0; flex-shrink: 0; display: flex; }
  .calc-option-icon svg { width: 24px; height: 24px; }
  .calc-option-label { flex: 1; font-size: 1rem; }
  .calc-option::after {
    content: '';
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border: 2px solid var(--color-slate-300);
    border-radius: 0.375rem;
    background: var(--color-white) center / 0.9rem no-repeat;
    transition: all var(--transition);
  }
  .calc-option.selected::after {
    border-color: var(--color-amber-500);
    background-color: var(--color-amber-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  }

  /* Doenças: 2 colunas compactas, sem rolagem interna */
  .calc-disease-grid { max-height: none; overflow: visible; gap: 0.5rem; padding: 0; }
  .calc-disease-option {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.75rem;
    min-height: 3.5rem;
  }
  .calc-disease-option .calc-option-icon { display: none; }
  .calc-disease-option .calc-option-label { font-size: 0.85rem; line-height: 1.3; }

  /* Steppers (números) */
  .calc-stepper { gap: 0.75rem; margin: 1.5rem 0; }
  .stepper-btn { width: 3.25rem; height: 3.25rem; }
  .stepper-input { width: 8rem; height: 3.25rem; font-size: 1.5rem; }

  .calc-footer { padding: 0.875rem 1.25rem; }
  .result-header { padding: 1.5rem 1.25rem; }
  .result-body { padding: 1.25rem; }

  /* Botão flutuante some enquanto o diagnóstico está na tela (não cobre "Continuar") */
  .whatsapp-float { transition: opacity 0.2s ease, transform 0.2s ease; }
  body.calc-in-view .whatsapp-float { opacity: 0; pointer-events: none; transform: scale(0.8); }

  /* ---------- Rodapé ---------- */
  .footer-main { padding-top: 3rem; padding-bottom: 2.5rem; }
}

/* Em telas touch, o :hover fica "grudado" após o toque: neutraliza nas opções não selecionadas */
@media (hover: none) {
  .calc-option:not(.selected):hover,
  .calc-disease-option:not(.selected):hover { border-color: var(--color-slate-200); background: var(--color-white); }
}
