/* ==========================================================================
   SANTOSHBDIA.COM.BR • DESIGN SYSTEM
   Dr. Santos Henrique Brant Dias (Doutor em Agronomia, Perito & Professor)
   Paleta Oficial: Dark Forest + Esmeralda Vibrante + Dourado Pericial
   ========================================================================== */

:root {
  --color-primary: #10b981;
  --color-primary-light: #34d399;
  --color-primary-dark: #059669;
  --color-accent: #f59e0b;        /* Dourado pericial / ABNT */
  --color-accent-light: #fbbf24;
  --color-bg-dark: #060e0a;
  --color-bg-darker: #040906;
  --color-surface-dark: #112219;
  --color-surface-hover: #162c20;
  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-border-gold: rgba(245, 158, 11, 0.35);
  --color-border-emerald: rgba(16, 185, 129, 0.35);
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Top Switcher Bar for Local Preview */
.preview-switcher {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(4, 9, 6, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.85rem;
}

.preview-switcher .label {
  color: var(--color-accent-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.preview-switcher .options-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-switcher .pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
}

.preview-switcher .pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.preview-switcher .pill.active {
  background: var(--color-primary);
  color: #042f1a;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.preview-switcher .pill.active-gold {
  background: var(--color-accent);
  color: #1a0f02;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.preview-switcher .hub-link {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.preview-switcher .hub-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(6, 14, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  width: 44px;
  height: 48px;
}

.brand-text .title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.brand-text .subtitle {
  color: var(--color-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0f02;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  font-weight: 800;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 14, 10, 0.94) 0%, rgba(9, 20, 14, 0.82) 52%, rgba(9, 20, 14, 0.4) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-content {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .highlight-gold {
  color: var(--color-accent-light);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-emerald {
  color: var(--color-primary-light);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-credentials {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  flex-direction: column;
}

.cred-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
}

.cred-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-tag {
  color: var(--color-accent-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* Section Sobre o Perito */
.section-sobre {
  padding: 100px 24px;
  background: var(--color-bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #112219 0%, #060e0a 100%);
  border: 1px solid var(--color-border-emerald);
}

.sobre-image-card img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(6, 14, 10, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.floating-badge .badge-title {
  font-size: 0.78rem;
  color: var(--color-accent-light);
  font-weight: 700;
  text-transform: uppercase;
}

.floating-badge .badge-text {
  font-size: 0.95rem;
  font-weight: 800;
}

.sobre-bio {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.pills-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.skill-tag {
  background: rgba(17, 34, 25, 0.8);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-border-emerald);
}

/* Cards Section */
.section-areas {
  padding: 100px 24px;
  background: var(--color-bg-dark);
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.area-card {
  background: var(--color-surface-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.area-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow-gold);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Perícia 4 Pillars */
.section-pericia-dark {
  padding: 100px 24px;
  background-color: var(--color-bg-darker);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-pericia-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 6, 0.92);
}

.dark-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

.pericia-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-box {
  background: rgba(17, 34, 25, 0.7);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pillar-box:hover {
  border-color: var(--color-accent-light);
  background: rgba(17, 34, 25, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pillar-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent-light);
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

/* CTA Box */
.section-diagnostico {
  padding: 100px 24px;
  background: var(--color-bg-dark);
}

.cta-box-gradient {
  background: linear-gradient(135deg, #112219 0%, #060e0a 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--color-border-gold);
}

.quick-form {
  background: rgba(4, 9, 6, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(6, 14, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Footer */
.site-footer {
  background: #040906;
  color: var(--color-text-muted);
  padding: 80px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col .title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--color-accent);
}

.social-btn img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1024px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-box-gradient { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-section { min-height: auto; padding: 60px 0; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .preview-switcher { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Duo Photos Stacked Component (Autoridade de Rigor Cientifico)
   ========================================================================== */
.sobre-duo-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
  width: 100%;
}

.photo-card-stacked {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.photo-card-stacked:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(212, 160, 23, 0.22);
}

.photo-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #060e0a;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-tag-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(6, 14, 10, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.photo-tag-yt {
  border-color: #ef4444;
  color: #ff8888;
}

.photo-caption {
  padding: 12px 16px;
  background: rgba(10, 18, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.photo-caption strong {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
}

.photo-caption span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}


/* ==========================================================================
   SISTEMA DE TEMAS (DARK / LIGHT) & MENU MOBILE DRAWER
   Dr. Santos H. B. Dias | santoshbdias.com.br
   Conformidade WCAG AAA Integral (ERR-UI-003)
   ========================================================================== */

.quick-form h3 {
  color: #ffffff;
}

/* 1. TEMA CLARO (LIGHT MODE) - COBERTURA COMPLETA DE COMPONENTES */
[data-theme="light"] {
  --color-bg-dark: #f8fafc;
  --color-bg-darker: #f1f5f9;
  --color-surface-dark: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border-dark: rgba(15, 23, 42, 0.12);
  --color-border-gold: rgba(180, 83, 9, 0.35);
  --color-border-emerald: rgba(5, 150, 105, 0.35);
  --color-text-main: #0f172a;
  --color-text-muted: #334155;
  --color-text-dim: #475569;
  --shadow-glow: 0 8px 24px rgba(5, 150, 105, 0.12);
  --shadow-glow-gold: 0 8px 24px rgba(217, 119, 6, 0.15);
}

[data-theme="light"] html,
[data-theme="light"] body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
}

/* Header & Navegacao no Tema Claro */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .brand-text .title,
[data-theme="light"] .brand-logo .title {
  color: #0f172a !important;
}

[data-theme="light"] .brand-text .subtitle,
[data-theme="light"] .brand-logo .subtitle {
  color: #b45309 !important;
}

[data-theme="light"] .nav-link {
  color: #334155;
  font-weight: 600;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #047857;
}

/* Botoes no Tema Claro (Alto Contraste Garantido) */
[data-theme="light"] .btn-secondary {
  background: #065f46 !important;
  color: #ffffff !important;
  border: 1.5px solid #047857 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22);
}

[data-theme="light"] .btn-secondary:hover {
  background: #047857 !important;
  color: #ffffff !important;
  border-color: #065f46 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
}

[data-theme="light"] .btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
}

/* Hero Section no Tema Claro */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.93) 55%, rgba(248, 250, 252, 0.72) 100%) !important;
}

@media (max-width: 768px) {
  [data-theme="light"] .hero-overlay {
    background: rgba(248, 250, 252, 0.97) !important;
  }
}

[data-theme="light"] .hero-badge {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(180, 83, 9, 0.4);
  color: #92400e !important;
}

[data-theme="light"] .hero-title {
  color: #0f172a !important;
}

[data-theme="light"] .hero-title .highlight-gold {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #92400e;
}

[data-theme="light"] .hero-subtitle {
  color: #334155 !important;
}

[data-theme="light"] .hero-credentials {
  border-top-color: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .cred-number {
  color: #047857 !important;
}

[data-theme="light"] .cred-label {
  color: #334155 !important;
  font-weight: 600;
}

/* Secao Sobre & Fotos no Tema Claro */
[data-theme="light"] .section-tag {
  color: #b45309 !important;
}

[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .sobre-bio {
  color: #334155 !important;
}

[data-theme="light"] .skill-tag {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
  color: #065f46 !important;
  font-weight: 600;
}

[data-theme="light"] .photo-card-stacked {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .photo-caption {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .photo-caption strong {
  color: #0f172a !important;
}

[data-theme="light"] .photo-caption span {
  color: #475569 !important;
}

/* Secao Areas de Atuacao (.area-card) no Tema Claro */
[data-theme="light"] .section-areas {
  background: var(--color-bg-dark);
}

[data-theme="light"] .area-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .area-card:hover {
  border-color: #059669 !important;
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.15) !important;
}

[data-theme="light"] .card-icon {
  background: rgba(5, 150, 105, 0.12) !important;
  color: #047857 !important;
}

[data-theme="light"] .card-title {
  color: #0f172a !important;
}

[data-theme="light"] .card-desc {
  color: #334155 !important;
}

/* Secao Pericia Agricola (.section-pericia-dark & .pillar-box) no Tema Claro */
[data-theme="light"] .section-pericia-dark {
  border-top-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .section-pericia-dark::before {
  background: rgba(241, 245, 249, 0.95) !important;
}

[data-theme="light"] .pillar-box {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .pillar-box:hover {
  border-color: #059669 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.14) !important;
}

[data-theme="light"] .pillar-number {
  color: #b45309 !important;
}

[data-theme="light"] .pillar-title,
[data-theme="light"] .pillar-box h3,
[data-theme="light"] .pillar-box h4 {
  color: #0f172a !important;
}

[data-theme="light"] .pillar-box p {
  color: #334155 !important;
}

/* Secao Diagnostico Preliminar (.cta-box-gradient & .quick-form) no Tema Claro */
[data-theme="light"] .section-diagnostico {
  background: var(--color-bg-dark);
}

[data-theme="light"] .cta-box-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1.5px solid rgba(5, 150, 105, 0.35) !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="light"] .cta-box-gradient .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .cta-box-gradient p {
  color: #334155 !important;
}

[data-theme="light"] .quick-form {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .quick-form h3 {
  color: #0f172a !important;
}

[data-theme="light"] .form-group label {
  color: #1e293b !important;
  font-weight: 700;
}

[data-theme="light"] .form-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-input::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .form-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

/* Rodape Institucional no Tema Claro */
[data-theme="light"] .site-footer {
  background: #f1f5f9 !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .site-footer .title {
  color: #0f172a !important;
}

[data-theme="light"] .site-footer p {
  color: #334155 !important;
}

[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-links span {
  color: #334155 !important;
}

[data-theme="light"] .footer-links a:hover {
  color: #047857 !important;
}

[data-theme="light"] .footer-links li {
  color: #b45309 !important;
}

[data-theme="light"] .social-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .social-btn:hover {
  background: #10b981 !important;
  border-color: #059669 !important;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* 2. BOTAO DE ALTERNANCIA DE TEMA (THEME TOGGLE) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.15rem;
  padding: 0;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f1f5f9;
  border-color: var(--color-primary-dark);
}

/* 3. BOTAO HAMBURGUER (MENU MOBILE) */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: var(--transition);
}

.menu-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f8fafc;
  border-radius: 2px;
  transition: var(--transition);
}

[data-theme="light"] .menu-toggle-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .menu-toggle-btn span {
  background-color: #0f172a;
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: inline-flex;
  }
  .header-actions .btn-sm {
    display: none;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* 4. GAVETA LATERAL DO MENU MOBILE (DRAWER) */
body.drawer-locked {
  overflow: hidden !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--color-surface-dark);
  border-left: 1px solid var(--color-border-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border-dark);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand img {
  width: 34px;
  height: 38px;
}

.drawer-brand-text .drawer-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.drawer-brand-text .drawer-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-main);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .drawer-close-btn {
  background: #f1f5f9;
}

/* CAIXA DE TEMA NO DRAWER */
.drawer-theme-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border-dark);
}

[data-theme="light"] .drawer-theme-box {
  background: #f8fafc;
}

.drawer-theme-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.drawer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .drawer-theme-toggle {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

.theme-switch-pill {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: var(--transition);
}

.theme-switch-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
  transform: translateX(14px);
}

.drawer-theme-toggle.is-light .theme-switch-pill {
  background: #f59e0b;
}

.drawer-theme-toggle.is-light .theme-switch-knob {
  transform: translateX(0);
}

/* LINKS DO DRAWER */
.drawer-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  min-height: 48px;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-primary-light);
}

[data-theme="light"] .drawer-nav a:hover,
[data-theme="light"] .drawer-nav a.active {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.drawer-nav .nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-accent);
}

[data-theme="light"] .drawer-nav .nav-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-border-dark);
}

.btn-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  min-height: 48px;
}
