/* ==========================================================================
   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;
}
