/* ===== Base ===== */
:root {
  --navy: #0f1f3a;
  --navy-2: #172b4d;
  --navy-3: #22385f;
  --gold: #c9a45c;
  --gold-2: #e0c48a;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4e1da;
  --bg: #ffffff;
  --bg-alt: #f7f4ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 58, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8em; display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost.light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost.light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.link-arrow { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow.light { color: var(--gold-2); }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,31,58,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(201,164,92,.16), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-alt));
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.photo-frame { margin: 0; position: relative; }
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo-frame figcaption {
  position: absolute; z-index: 2; left: -24px; bottom: 28px;
  background: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.3;
}
.photo-frame figcaption strong { color: var(--navy); font-family: var(--serif); font-size: 1.2rem; }
.photo-frame figcaption span { font-size: .8rem; color: var(--muted); }

.stats {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 24px 26px; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }

/* ===== Seções ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d8deea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p:not(.eyebrow) { color: #b9c3d6; }
.muted-light { color: #b9c3d6; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.two-col.top { grid-template-columns: 1fr 1fr; }
.two-col > *, .hero-grid > *, .docs > *, .course-feature > * { min-width: 0; }
.contact-form select { width: 100%; max-width: 100%; }
.prose p { color: var(--muted); }
.about-photo { margin-top: 28px; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Galeria de palestras */
.gallery-head { margin: 8px 0 18px; }
.gallery-head p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 14px; margin-bottom: 40px; }
.gallery button { padding: 0; border: 0; background: var(--bg-alt); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.gallery button.g-tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }

/* Cards de atuação */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0 0 64px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 1px; background: rgba(201,164,92,.4); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding: 0 0 34px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 104px; top: 8px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
}
.tl-year { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 600; line-height: 1.2; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { margin: 0 0 .6em; color: #b9c3d6; max-width: 70ch; }

/* Documentos */
.docs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.doc-card { margin: 0; }
.doc-thumb {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%;
  border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .3s;
}
.doc-thumb:hover { transform: scale(1.02) rotate(-.5deg); }
.doc-card figcaption { margin-top: 14px; display: flex; flex-direction: column; font-size: .88rem; color: #b9c3d6; }
.doc-facts { background: var(--navy-2); border: 1px solid rgba(201,164,92,.25); border-radius: var(--radius); padding: 32px; }
.doc-facts dl { margin: 0; }
.doc-facts dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.doc-facts dl div:last-child { border-bottom: 0; }
.doc-facts dt { color: var(--gold-2); font-size: .85rem; font-weight: 600; }
.doc-facts dd { margin: 0; color: #e6ebf3; font-size: .95rem; }

/* Treinamentos */
.course-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #d8deea;
  border-radius: 20px; padding: 44px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.course-feature h3 { color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.course-feature p { color: #b9c3d6; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; }
.meta strong { color: #fff; }

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.partner {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
  transition: border-color .25s, transform .25s;
}
.partner:hover { border-color: var(--gold); transform: translateY(-3px); }
.partner strong { color: var(--navy); font-size: 1.05rem; }
.partner strong::after { content: " ↗"; color: var(--gold); }
.partner span { color: var(--muted); font-size: .92rem; }

.topics { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 32px; }
.topics ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.topics li { padding-left: 26px; position: relative; color: var(--ink); font-size: .95rem; }
.topics li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Formação */
.edu { list-style: none; padding: 0; margin: 10px 0 0; }
.edu li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.edu li > span { font-size: .85rem; font-weight: 600; color: var(--gold); padding-top: 2px; }
.edu strong { display: block; color: var(--navy); }
.edu small { color: var(--muted); font-size: .9rem; }

.honors { margin-top: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.honors ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.honors li { background: var(--bg-alt); border-radius: 10px; padding: 16px 18px; font-size: .92rem; border-left: 3px solid var(--gold); }
.honors li span { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 700; }

/* Contato */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.contact-list a, .contact-list em { color: #fff; text-decoration: none; font-style: normal; font-size: 1.05rem; word-break: break-word; }
.contact-list a:hover { color: var(--gold-2); }

.contact-form { background: var(--navy-2); border: 1px solid rgba(201,164,92,.25); border-radius: 18px; padding: 32px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; color: #cfd7e5; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff;
}
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form :disabled { opacity: .5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { margin: 0; font-size: .9rem; color: var(--gold-2); min-height: 1.4em; }

/* Rodapé */
.site-footer { background: #0a1528; color: #8e9ab0; padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; }
.social { display: flex; gap: 12px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #cfd7e5; transition: color .2s, border-color .2s; }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,10,20,.9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 6px; cursor: default; }
.lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Animações */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .partner, .doc-thumb { transition: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 1000px) {
  .cards, .partners { grid-template-columns: repeat(2, 1fr); }
  .topics ul { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s; overflow-y: auto;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }
  .hero { padding-top: 40px; }
  .hero-grid, .two-col, .two-col.top, .docs, .course-feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-photo { max-width: 380px; margin: 0 auto; width: calc(100% - 24px); }
  .photo-frame figcaption { left: -8px; }
  .section { padding: 72px 0; }
  .course-feature { padding: 30px 24px; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand-text small { display: none; }
  .cards, .partners, .topics ul { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery button.g-tall { grid-row: auto; }
  .about-photo { max-width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 18px; }
  .stats strong { font-size: 1.8rem; }
  .hero-actions .btn { width: 100%; }
  .doc-facts { padding: 22px; }
  .doc-facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .edu li { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 22px; }
  .form-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}
