/* =========================================================
   AGSAW — Estilos
   ========================================================= */
:root {
  --bg: #0b0a1a;
  --bg-2: #110f26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(240, 217, 164, 0.14);
  --gold: #d4af6a;
  --gold-2: #f0d9a4;
  --gold-3: #b8893f;
  --violet: #7c6cf0;
  --text: #ece8f6;
  --muted: #a8a2c0;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

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

.section__title, .hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section__title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 1.25rem; }
.section__title em, .hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__sub { color: var(--muted); max-width: 620px; margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  color: #1a1426;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 106, .6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(212, 175, 106, .75); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 10, 26, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: flex; align-items: center; gap: .7rem; color: var(--gold); }
.logo__mark { width: 40px; height: 40px; transition: transform .6s ease; }
.logo:hover .logo__mark { transform: rotate(45deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .08em; color: var(--text); }
.logo__text small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { font-size: .9rem; color: var(--muted); position: relative; padding: .25rem 0; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden; isolation: isolate;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow {
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(124, 108, 240, .22), transparent 70%),
    radial-gradient(500px 360px at 20% 80%, rgba(212, 175, 106, .12), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg));
}
.hero__content { text-align: center; max-width: 900px; }
.hero__content .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title { font-size: clamp(3rem, 8vw, 6.2rem); margin-bottom: 1.5rem; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto 2.4rem; }
.hero__lead strong { color: var(--gold-2); font-weight: 600; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stats li { background: rgba(17, 15, 38, .75); backdrop-filter: blur(8px); padding: 1.5rem 1rem; }
.stats__num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--gold-2); line-height: 1.1; }
.stats__label { font-size: .82rem; color: var(--muted); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--border); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 1.5rem; flex-wrap: wrap; }
.section__head--row .section__title { margin-bottom: 0; }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.emblem {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 12%;
  background: radial-gradient(circle at 50% 40%, rgba(124, 108, 240, .25), transparent 65%), var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 80px rgba(212, 175, 106, .08), var(--shadow);
}
.emblem svg { width: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__badge {
  position: absolute; right: 0; bottom: 8%;
  padding: 1rem 1.3rem; border-radius: 14px;
  background: rgba(17, 15, 38, .9); border: 1px solid var(--border); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.about__badge span { font-size: .8rem; color: var(--gold); }
.about__text p { color: var(--muted); margin-bottom: 1.1rem; }
.about__text p strong { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .4rem; }
.chips li {
  padding: .45rem 1rem; border-radius: 999px; font-size: .85rem;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Cards de curso ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 2.2rem 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 106, .4); background: var(--surface-2); }
.card--featured {
  background: linear-gradient(160deg, rgba(124, 108, 240, .18), rgba(212, 175, 106, .06));
  border-color: rgba(212, 175, 106, .4);
}
.card__ribbon {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--gold); color: #1a1426;
}
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(212, 175, 106, .1); border: 1px solid var(--border); margin-bottom: 1.4rem;
}
.card__icon svg, .info-list__icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.1; }
.card__tag { font-size: .8rem; color: var(--gold); letter-spacing: .05em; margin: .3rem 0 1rem; }
.card > p:not(.card__tag) { color: var(--muted); font-size: .95rem; }
.card__list { margin: 1.3rem 0 1.6rem; display: grid; gap: .6rem; font-size: .9rem; color: var(--muted); flex: 1; }
.card__list li { padding-left: 1.2rem; position: relative; }
.card__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: .25rem; }
.card__list b { color: var(--text); font-weight: 600; }
.card__link { color: var(--gold-2); font-weight: 600; font-size: .92rem; transition: letter-spacing .25s; display: inline-block; }
.card__link:hover { letter-spacing: .02em; }

/* ---------- Temário ---------- */
.tabs {
  display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem;
  padding: .4rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  width: fit-content; margin-inline: auto; flex-wrap: wrap;
}
.tab { padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background .25s, color .25s; }
.tab small { font-weight: 500; opacity: .7; margin-left: .3rem; }
.tab:hover { color: var(--text); }
.tab.is-active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1426; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.topic {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.1rem; border-radius: 14px; min-height: 92px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, background .25s;
  animation: fadeUp .45s both;
}
.topic:hover { transform: translateY(-3px); border-color: var(--gold); background: var(--surface-2); }
.topic__num { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.topic__title { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.topic--highlight { background: linear-gradient(150deg, rgba(124, 108, 240, .2), rgba(212, 175, 106, .07)); border-color: rgba(212, 175, 106, .35); }
.topic--highlight .topic__title { color: var(--text); font-weight: 500; }
.topic__video { font-size: .7rem; color: var(--gold-2); letter-spacing: .06em; text-transform: uppercase; margin-top: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Biblioteca ---------- */
.library { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.library__intro p { color: var(--muted); }
.library__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.note { padding: 1.4rem 1.5rem; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; }
.note strong { font-family: var(--font-display); font-size: 1.25rem; }
.note p { font-size: .92rem; margin-top: .3rem; }

.timeline { padding: 2.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.timeline__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.timeline ol { position: relative; margin-bottom: 1.5rem; }
.timeline ol::before { content: ""; position: absolute; left: 50px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline li { display: flex; align-items: baseline; gap: 1.6rem; padding: .55rem 0; font-size: .95rem; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 47px; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold);
}
.timeline li:hover::after { background: var(--gold); }
.timeline li span { width: 40px; flex: none; font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; }

/* ---------- Vídeos (slider) ---------- */
.slider-nav { display: flex; gap: .6rem; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  font-size: 1.1rem; transition: border-color .2s, background .2s;
}
.slider-btn:hover { border-color: var(--gold); background: var(--surface-2); }
.videos {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 3rem) / 3)); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent;
}
.videos > * { min-width: 0; scroll-snap-align: start; }
.video {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: transform .3s, border-color .3s;
}
.video:hover { transform: translateY(-5px); border-color: rgba(212, 175, 106, .45); }
.video__thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 108, 240, .45), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 106, .3), transparent 55%),
    var(--bg-2);
}
.video__thumb::before {
  content: attr(data-num); position: absolute; left: 1.2rem; bottom: .4rem;
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; color: rgba(255, 255, 255, .08); line-height: 1;
}
.video__play {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(240, 217, 164, .95); color: #1a1426; transition: transform .3s;
  box-shadow: 0 0 0 10px rgba(240, 217, 164, .12);
}
.video:hover .video__play { transform: scale(1.1); }
.video__play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video__body { padding: 1.3rem 1.4rem 1.5rem; }
.video__meta { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.video__body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin-top: .3rem; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.info-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 175, 106, .1); border: 1px solid var(--border);
}
.info-list__icon svg { width: 22px; height: 22px; }
.info-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .1rem; }
.info-list div { color: var(--muted); font-size: .95rem; }
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--gold-2); }

.form {
  padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.form h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: .3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(11, 10, 26, .6); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .15); }
.field.is-invalid input, .field.is-invalid select { border-color: #e2726e; }
.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: #8fd6a8; }
.form__status.is-error { color: #f0a29f; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 1.5rem; background: #08071300; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__about { color: var(--muted); font-size: .9rem; margin-top: 1.2rem; max-width: 320px; }
.footer h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; font-size: .9rem; color: var(--muted); }
.footer ul a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.to-top { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.to-top:hover { border-color: var(--gold); transform: translateY(-3px); }

/* ---------- Animação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(340px, 100%);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 1.5rem;
    background: rgba(11, 10, 26, .97); backdrop-filter: blur(16px); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav__link { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.5rem; width: 100%; }
  .menu-toggle { display: flex; }
  .header { background: rgba(11, 10, 26, .78); backdrop-filter: blur(14px); }
}

@media (max-width: 900px) {
  .about, .library, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .videos { grid-auto-columns: minmax(260px, 80%); }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .tab { padding: .6rem 1rem; }
  .tab small { display: none; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
