/* ============ Hávini Institucional — HVN Educação Sistêmica ============ */

:root {
  --bg-0: #0a0706;
  --bg-1: #110c0a;
  --bg-2: #1a110e;
  --bg-3: #241712;
  --ink: #f4ead8;
  --ink-dim: #a89a85;
  --ink-mute: #6c5f4e;
  --gold: #d4ad5b;
  --gold-2: #b48a3c;
  --gold-soft: #e9cf95;
  --red: #b3121e;
  --red-deep: #7a0b14;
  --line: rgba(212, 173, 91, 0.22);
  --line-soft: rgba(212, 173, 91, 0.12);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 173, 91, 0.07), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(179, 18, 30, 0.05), transparent 60%),
    var(--bg-0);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }

.serif { font-family: var(--serif); }

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; padding: 110px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-label.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-primary {
  background: linear-gradient(180deg, #e3c179 0%, #c19a45 100%);
  color: #1a0f08;
  box-shadow:
    0 1px 0 rgba(255, 240, 200, 0.4) inset,
    0 18px 38px -14px rgba(212, 173, 91, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 240, 200, 0.5) inset, 0 26px 48px -12px rgba(212, 173, 91, 0.55);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 7, 6, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo { height: 64px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.nav-links a { transition: color 0.25s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: #1a0f08; }
.nav-menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh;
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,6,0) 0%, rgba(10,7,6,0) 25%, rgba(10,7,6,0.55) 60%, var(--bg-0) 92%),
    linear-gradient(90deg, rgba(10,7,6,0.9) 0%, rgba(10,7,6,0.55) 48%, rgba(10,7,6,0.3) 72%, rgba(10,7,6,0.5) 100%);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-logo { height: 150px; width: auto; margin: 0 0 28px -8px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero h1 .gold { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--ink-dim);
}
.hero-trust .stars { color: var(--gold); letter-spacing: 2px; }
.hero-trust strong { color: var(--ink); font-weight: 500; }

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.hero-portrait img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}
.hero-portrait .halo {
  position: absolute;
  inset: 10% 0 0 4%;
  background: radial-gradient(50% 50% at 55% 50%, rgba(179,18,30,0.2), transparent 70%);
  z-index: 1;
}

/* ---------- Trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
}
.trustbar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0; padding-bottom: 0;
}
.trust-item {
  padding: 40px 28px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item .num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}
.trust-item .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.sobre-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
}
.sobre-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative; z-index: 2;
}
.sobre-portrait::before {
  content: "";
  position: absolute;
  inset: -18px -18px 24px 24px;
  border: 1px solid var(--line);
  z-index: 1;
}
.sobre-text h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 24px;
}
.sobre-text h2 .gold { color: var(--gold); font-style: italic; }
.sobre-text p {
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.sobre-text p strong { color: var(--ink); font-weight: 500; }
.sobre-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px) !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  margin-bottom: 26px !important;
}
.sobre-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.sobre-tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 40px;
}

/* ---------- O que fazemos ---------- */
.servicos { background: var(--bg-1); }
.servicos-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.servicos-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.servicos-head h2 .gold { color: var(--gold); font-style: italic; }
.servicos-head p { color: var(--ink-dim); font-size: 17px; line-height: 1.7; }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.servico {
  background: var(--bg-0);
  padding: 44px 34px;
  transition: background 0.3s ease;
}
.servico:hover { background: var(--bg-2); }
.servico .ico {
  width: 52px; height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 26px;
}
.servico h3 {
  font-size: 25px;
  margin-bottom: 14px;
  color: var(--ink);
}
.servico p { color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* ---------- Como funciona ---------- */
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}
.etapa { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.etapa .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 16px;
}
.etapa h3 { font-size: 24px; margin-bottom: 12px; }
.etapa p { color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* ---------- Valores / missão ---------- */
.valores { background: var(--bg-1); }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
}
.valor {
  padding: 40px 32px;
  border-right: 1px solid var(--line-soft);
}
.valor:last-child { border-right: none; }
.valor .tag {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.valor h3 { font-size: 26px; margin-bottom: 12px; color: var(--ink); }
.valor p { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }

/* ---------- Contato ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contato-head h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 20px; }
.contato-head h2 .gold { color: var(--gold); font-style: italic; }
.contato-head p { color: var(--ink-dim); font-size: 17px; line-height: 1.7; margin-bottom: 30px; }

.contato-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 12px 0;
}
.contato-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.contato-row:last-child { border-bottom: none; }
.contato-row .ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 16px;
}
.contato-row .info .k {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.contato-row .info .v {
  font-size: 16px; color: var(--ink); line-height: 1.45;
}
.contato-row .info .v a { color: var(--gold); }
.contato-row .info .v a:hover { text-decoration: underline; }
.contato-cta { padding: 24px 32px; }

/* ---------- Doc pages (privacidade / termos) ---------- */
.doc-hero {
  padding-top: 160px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-soft);
}
.doc-hero .kicker {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.doc-hero h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 16px; }
.doc-hero .updated { color: var(--ink-mute); font-size: 13px; letter-spacing: 0.04em; }
.doc-body { padding: 70px 0 110px; }
.doc-body h2 {
  font-size: 28px;
  color: var(--gold);
  margin: 48px 0 16px;
  font-style: italic;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.doc-body p, .doc-body li {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.doc-body ul { padding-left: 22px; margin-bottom: 18px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--ink); font-weight: 500; }
.doc-body a { color: var(--gold); text-decoration: underline; }
.doc-toc {
  border: 1px solid var(--line-soft);
  background: var(--bg-1);
  padding: 24px 28px;
  margin-bottom: 50px;
}
.doc-toc .t { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.doc-toc ol { margin: 0; padding-left: 18px; }
.doc-toc li { margin-bottom: 6px; font-size: 14px; }
.doc-toc a { color: var(--ink-dim); text-decoration: none; }
.doc-toc a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-logo { height: 110px; width: auto; margin-bottom: 18px; }
.footer-about { color: var(--ink-dim); font-size: 14px; line-height: 1.7; max-width: 360px; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-family: var(--sans); font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span {
  color: var(--ink-dim); font-size: 14px; line-height: 1.5;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
}
.footer-legal .biz { max-width: 640px; }
.footer-legal .biz strong { color: var(--ink-dim); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #e3c179, #c19a45);
  color: #1a0f08;
  padding: 14px 22px 14px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -12px rgba(0,0,0,0.7); }
.wa-float .dot {
  width: 36px; height: 36px;
  background: rgba(26,15,8,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  section { padding: 80px 0; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-portrait { max-width: 420px; margin: 0 auto; }
  .hero-logo { height: 120px; margin-left: -14px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 50px; }
  .sobre-portrait { max-width: 420px; margin: 0 auto; }
  .servicos-grid { grid-template-columns: 1fr; }
  .etapas-grid { grid-template-columns: 1fr; gap: 28px; }
  .valores-grid { grid-template-columns: 1fr; }
  .valor { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .valor:last-child { border-bottom: none; }
  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .trustbar .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: transparent; border: 1px solid var(--line);
    color: var(--gold); cursor: pointer;
  }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav { padding: 12px 20px; }
  .nav-logo { height: 50px; }
  .nav-cta { padding: 9px 14px; font-size: 10px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero-logo { height: 92px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .trustbar .container { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .trust-item:last-child { border-bottom: none; }
  .servico, .valor { padding: 32px 24px; }
  .contato-row { padding: 18px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-legal { flex-direction: column; gap: 16px; }
  .wa-float { bottom: 16px; right: 16px; padding: 12px 18px 12px 14px; font-size: 12px; }
  .doc-body h2 { font-size: 24px; }
}
