:root {
  --fg: #ffffff;
  --fg-soft: #f2f2f2;
  --fg-mute: #b3aca6;
  --bg: #0d0d0d;
  --bg-alt: #1a1310;
  --rule: #2a2622;
  --accent: #3e1809;
  --accent-hover: #52220c;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --fg: #0d0d0d;
  --fg-soft: #1f1b18;
  --fg-mute: #5c5c5c;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --rule: #d8d6d2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-soft);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--fg);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--fg-mute); }

a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 9999px;
  background: var(--bg);
  opacity: 0.97;
  backdrop-filter: blur(20px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.brand { font-family: var(--font-serif); font-size: 20px; color: var(--fg); white-space: nowrap; }

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--fg-mute);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: none;
  background: none;
  color: var(--fg-mute);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { background: var(--bg-alt); color: var(--fg); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.btn.btn-small { padding: 10px 20px; font-size: 12px; white-space: nowrap; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--fg); display: block; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-small { display: none; }
  .menu-toggle { display: flex; }
}

/* MOBILE NAV PANEL */
.mobile-nav {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 49;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a { font-family: var(--font-serif); font-size: 22px; color: var(--fg); }
.mobile-nav[hidden] { display: none; }

@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--bg);
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); }
.hero-sub { font-size: 18px; color: var(--fg-mute); margin-bottom: 32px; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--fg); }
.btn-primary:hover { background: var(--accent-hover); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; }

/* SECTIONS */
.section { padding: 96px 24px; border-top: 1px solid var(--rule); }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1040px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 4vw, 36px); }
.section-lead { max-width: 640px; font-size: 17px; }

/* AREAS DE ATUACAO */
.areas-list { margin-top: 48px; display: flex; flex-direction: column; }
.area-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.area-item:first-child { border-top: none; }
.area-number {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--fg-mute);
  min-width: 48px;
}
.area-body h3 { font-size: 22px; margin-bottom: 12px; }
.area-body p { max-width: 640px; }

/* STEPS */
.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-label { font-size: 12px; letter-spacing: 0.1em; color: var(--fg-mute); }
.step h3 { font-size: 20px; margin-top: 8px; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* PROFILE */
.profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}
.profile-reverse { grid-template-columns: 1fr 360px; }
.profile-reverse .profile-photo { order: 2; }
.profile-photo {
  aspect-ratio: 4 / 5;
  background: var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.profile-meta { font-size: 13px; color: var(--fg-mute); margin: 24px 0; }

@media (max-width: 768px) {
  .profile, .profile-reverse { grid-template-columns: 1fr; }
  .profile-reverse .profile-photo { order: 0; }
}

/* CTA BAND */
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }

/* VALUES GRID */
.values-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-number { font-family: var(--font-serif); font-size: 28px; color: var(--fg-mute); }
.value-item h3 { font-size: 20px; margin-top: 8px; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--rule); padding: 80px 24px 32px; }
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; color: var(--fg-mute); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.footer-cnpj, .footer-address, .footer-hours { font-size: 13px; color: var(--fg-mute); }
.footer-legal {
  max-width: 1040px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--fg-mute);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* MODAL DE CONTATO */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 40px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: none;
  background: none;
  color: var(--fg-mute);
  font-size: 20px;
  cursor: pointer;
}
.modal-close:hover { background: var(--rule); color: var(--fg); }

.modal-step[hidden] { display: none; }
.modal-sub { font-size: 14px; }

.modal-areas-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-area-btn {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.modal-area-btn:hover { border-color: var(--accent); background: var(--bg); }

.modal-back {
  background: none;
  border: none;
  color: var(--fg-mute);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.modal-back:hover { color: var(--fg); }

.modal-step form label,
form.modal-step label {
  display: block;
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.modal-step input,
.modal-step textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
}
.modal-step input:focus,
.modal-step textarea:focus { outline: 1px solid var(--accent); }
.modal-step form button[type="submit"] { width: 100%; margin-top: 8px; border: none; cursor: pointer; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; color: var(--fg); }
.cookie-actions { display: flex; align-items: center; gap: 8px; }
.cookie-close {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: none;
  background: none;
  color: var(--fg-mute);
  font-size: 18px;
  cursor: pointer;
}
.cookie-close:hover { background: var(--rule); color: var(--fg); }
