:root {
  /* Paleta de Cores */
  --navy-principal: #1B2A4A;
  --navy-secundario: #243558;
  --gold-principal: #B8972A;
  --gold-light: #D4AD40;
  --gold-pale: #F5EDD0;
  --cream: #F7F4EE;
  --branco: #FFFFFF;
  --slate: #4A5568;
  --muted: #8A94A6;

  /* Espaçamento Base-8 */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--slate);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Tipografia */
h1, h2, h3, .display {
  font-family: 'Playfair Display', serif;
  color: var(--navy-principal);
  line-height: 1.2;
}

.display { font-size: 64px; font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: 40px; font-weight: 600; }
.h3 { font-size: 32px; font-weight: 600; }
.lead { font-size: 20px; font-weight: 500; }
.body-base { font-size: 16px; font-weight: 400; }
.body-small { font-size: 14px; font-weight: 400; }
.caption { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

.text-navy { color: var(--navy-principal); }
.text-white { color: var(--branco); }
.text-gold { color: var(--gold-principal); }
.text-gold-light { color: var(--gold-light); }
.text-slate { color: var(--slate); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* Layout & Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.section-padding { padding: var(--sp-64) 0; }
@media (min-width: 1024px) {
  .section-padding { padding: var(--sp-96) 0; }
  .container { padding: 0 var(--sp-48); }
}

.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--branco); }
.bg-navy { background-color: var(--navy-principal); }
.bg-navy-sec { background-color: var(--navy-secundario); }
.bg-gold-pale { background-color: var(--gold-pale); }

.grid { display: grid; gap: var(--sp-24); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-48); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: var(--sp-8); }
.gap-16 { gap: var(--sp-16); }
.gap-24 { gap: var(--sp-24); }
.gap-32 { gap: var(--sp-32); }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--branco);
  border-bottom: 1px solid var(--navy-principal);
  z-index: 1000;
  padding: var(--sp-16) 0;
}
.nav-brand { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.nav-brand .logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy-principal); }
.nav-brand .tag { font-size: 12px; color: var(--slate); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-logo-symbol { height: 40px; width: auto; display: block; }
.footer-logo-full { height: 52px; width: auto; display: block; mix-blend-mode: screen; }

.nav-links { display: none; align-items: center; gap: var(--sp-32); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy-principal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 150ms ease-out;
  border: none;
}
.btn-primary { background: var(--navy-principal); color: var(--branco); }
.btn-primary:hover { background: var(--navy-secundario); color: var(--branco); }
.nav-links a.btn-primary { color: var(--branco); }
.btn-gold { background: var(--gold-principal); color: var(--navy-principal); font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; padding: 16px 40px; }
.btn-gold:hover { background: var(--gold-light); }
.link-arrow { color: var(--gold-principal); font-weight: 500; }
.link-arrow:hover { color: var(--gold-light); }

/* Components */
.card {
  background: var(--branco);
  border-radius: 8px;
  padding: var(--sp-32);
  transition: box-shadow 200ms ease-out, border-top-color 200ms ease-out;
  border-top: 3px solid transparent;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12);
  border-top-color: var(--gold-principal);
}
.card-navy { background: var(--navy-secundario); border-top: none; }
.card-navy:hover { border-top-color: transparent; }
.card-border { border: 1px solid var(--navy-principal); }
.card-quote { border-left: 4px solid var(--gold-principal); border-top: none; }
.card-quote:hover { border-top-color: transparent; border-left-color: var(--gold-light); }

.image-placeholder {
  background-color: var(--navy-secundario);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}
.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--navy-principal);
  opacity: 0.4;
}
.placeholder-circular { border-radius: 50%; min-height: 300px; width: 300px; margin: 0 auto; }

/* Forms */
.form-group { margin-bottom: var(--sp-16); }
.form-label { display: block; font-size: 14px; color: var(--navy-principal); margin-bottom: var(--sp-8); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--branco);
}
.form-control:focus { outline: 2px solid var(--gold-principal); border-color: transparent; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Accordion */
.accordion-item {
  background: var(--branco);
  border: 1px solid var(--navy-principal);
  border-radius: 8px;
  margin-bottom: var(--sp-16);
  overflow: hidden;
}
.accordion-header {
  padding: var(--sp-24);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--navy-principal);
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  width: 100%;
  text-align: left;
}
.accordion-content {
  padding: 0 var(--sp-24);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion-item.active .accordion-content {
  padding-bottom: var(--sp-24);
  max-height: 500px;
}
.accordion-icon { transition: transform 200ms ease-out; display: inline-block; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

/* Footer */
footer { padding: var(--sp-64) 0 var(--sp-32); }
.footer-bottom { border-top: 1px solid var(--slate); margin-top: var(--sp-48); padding-top: var(--sp-24); text-align: center; }

/* Acessibility Focus */
:focus-visible { outline: 2px solid var(--gold-principal); outline-offset: 2px; }

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 150ms; }
.stagger > *:nth-child(3) { transition-delay: 300ms; }
.stagger > *:nth-child(4) { transition-delay: 450ms; }

/* Mobile Menu */
.hamburger { display: block; cursor: pointer; background: none; border: none; font-size: 24px; color: var(--navy-principal); }
@media (min-width: 1024px) { .hamburger { display: none; } }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--navy-principal); padding: var(--sp-32);
  transition: right 0.3s ease; z-index: 1001;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; color: var(--branco); margin-bottom: var(--sp-24); font-size: 18px; }
.close-menu { color: var(--branco); background: none; border: none; font-size: 24px; cursor: pointer; margin-bottom: var(--sp-32); }

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== ADDITIONAL UTILITIES ===== */
.gap-48 { gap: var(--sp-48); }
.gap-64 { gap: var(--sp-64); }
.p-32 { padding: var(--sp-32); }
.p-48 { padding: var(--sp-48); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-16 { margin-bottom: var(--sp-16); }
.mb-24 { margin-bottom: var(--sp-24); }
.mt-8  { margin-top: var(--sp-8); }
.mt-16 { margin-top: var(--sp-16); }
.mt-24 { margin-top: var(--sp-24); }
.pt-16 { padding-top: var(--sp-16); }
.font-bold { font-weight: 700; }

/* ===== SKIP LINK (acessibilidade) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold-principal);
  color: var(--navy-principal);
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== GRID HERO 55/45 ===== */
.grid-hero {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-hero { grid-template-columns: 55fr 45fr; gap: var(--sp-48); }
}

/* ===== GRID CREDENCIAL 60/40 ===== */
.grid-credencial {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .grid-credencial { grid-template-columns: 60fr 40fr; gap: var(--sp-64); }
}

/* ===== STATS ROW COM DIVISORES ===== */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stats-row > * + * { border-left: 1px solid var(--navy-principal); }
}
.stat-item { padding: var(--sp-32) var(--sp-24); text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy-principal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 14px; color: var(--slate); margin-top: var(--sp-8); line-height: 1.4; }

/* ===== SERVICE CARD (full-width, 2 colunas) ===== */
.service-card {
  background: var(--branco);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 3px solid transparent;
  transition: border-top-color 200ms ease-out, box-shadow 200ms ease-out;
}
.service-card:hover {
  border-top-color: var(--gold-principal);
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12);
}
@media (min-width: 768px) {
  .service-card { grid-template-columns: 1fr 260px; }
}
.service-content { padding: var(--sp-32); display: flex; flex-direction: column; gap: var(--sp-16); }
.service-sidebar {
  background: var(--navy-secundario);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.service-sidebar-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-principal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-8);
}
.service-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-8); }
.service-sidebar li { font-size: 14px; color: var(--branco); padding-left: 16px; position: relative; }
.service-sidebar li::before { content: '•'; position: absolute; left: 0; color: var(--gold-principal); }

/* ===== BADGE (credenciais) ===== */
.badge {
  background: var(--branco);
  border: 1px solid var(--navy-principal);
  border-top: 3px solid transparent;
  border-radius: 8px;
  padding: var(--sp-24);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-principal);
  transition: border-top-color 200ms ease-out, box-shadow 200ms ease-out;
  line-height: 1.4;
}
.badge:hover {
  border-top-color: var(--gold-principal);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.1);
}

/* ===== QUOTE EDITORIAL ===== */
.quote-editorial {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--branco);
  line-height: 1.3;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== PLACEHOLDER FUNDADOR (sobre.html) ===== */
.placeholder-founder {
  background-color: var(--navy-secundario);
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}
.placeholder-founder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--navy-principal);
  opacity: 0.4;
}

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--navy-secundario); margin: var(--sp-24) 0; }