/* Página estática: CSS e JavaScript nativos, sem compilação. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f7f9f7;
  --green: #0b5732;
  --green-dark: #064b2c;
  --green-soft: #e9f1eb;
  --pink: #e80079;
  --text: #143d2b;
  --muted: #52665d;
  --line: #dde6df;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; isolation: isolate; min-width: 280px; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--paper); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { color: white; background: var(--green); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; border-radius: 10px; color: white; background: var(--green-dark); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Curvas do banner: acompanham o topo e desaparecem antes das inscrições. */
.scenery { position: absolute; z-index: -1; inset: 0 0 auto; height: 660px; overflow: hidden; pointer-events: none; animation: scene-in 900ms ease-out both; }
.edge-ribbon { position: absolute; top: 0; display: block; width: clamp(86px, 9.5vw, 136px); height: 100%; object-fit: fill; }
.edge-left { left: 0; transform: scaleX(-1); }
.edge-right { right: 0; }

.site-shell { position: relative; z-index: 1; width: min(calc(100% - 112px), 1200px); margin: 0 auto; }
.hero { padding-top: 56px; text-align: center; }
.event-editions { display: flex; align-items: start; justify-content: space-between; gap: 34px; max-width: 1096px; margin: 0 auto; }
.edition { display: flex; flex-direction: column; align-items: start; min-width: 0; text-align: left; }
.edition-number { display: grid; place-items: center; min-width: 88px; height: 73px; padding: 0 12px; color: white; background: var(--pink); font-family: var(--font-display); font-size: 43px; line-height: 1; font-weight: 800; }
.edition-label { position: relative; z-index: 1; max-width: 100%; margin-top: -11px; margin-left: 7px; padding: 6px 11px 7px; color: white; background: var(--green); font-family: var(--font-display); font-size: clamp(17px, 1.85vw, 29px); line-height: 1; font-weight: 700; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; }
.hero-heading { display: flex; align-items: center; justify-content: center; gap: 13px; width: fit-content; max-width: 100%; margin: clamp(70px, 7vw, 100px) auto 0; text-align: left; }
.title-accent { width: 8px; height: clamp(56px, 5.4vw, 76px); flex: 0 0 auto; background: var(--pink); }
h1 { color: var(--green); font-family: var(--font-display); font-size: clamp(38px, 3.85vw, 54px); line-height: 1.15; font-weight: 500; letter-spacing: -.018em; text-wrap: balance; }
.event-date { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(42px, 4.2vw, 60px); color: var(--pink); font-family: var(--font-display); font-size: clamp(22px, 2.15vw, 30px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.event-date .icon { width: 42px; height: 42px; stroke-width: 2; }
.hero-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; margin-top: 36px; padding: 5px 5px 5px 20px; border: 1px solid #cdded2; border-radius: 14px; color: var(--green); background: #fff; box-shadow: 0 9px 22px rgba(11, 87, 50, .09); font-size: 14px; line-height: 1.3; font-weight: 800; transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 300ms var(--ease); }
.cta-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: white; background: var(--pink); transition: background 220ms ease; }
.hero-cta .icon { width: 20px; height: 20px; transform: rotate(90deg); transition: transform 300ms var(--ease); }
.hero-cta:focus-visible { outline-color: var(--pink); }

.registration { margin-top: clamp(68px, 7vw, 100px); padding: 35px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.registration:focus { outline: none; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { margin-bottom: 9px; color: var(--pink); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.intro-copy h2 { color: var(--green); font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.intro-copy > p:last-child { margin-top: 11px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.modalities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.card-entrance { min-width: 0; }
.modality-card { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; width: 100%; height: 100%; min-height: 295px; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 10px 30px rgba(12, 71, 42, .05); transition: border-color 250ms ease, box-shadow 250ms ease, transform 350ms var(--ease), background 250ms ease; }
.modality-card::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(54, 154, 95, .13), transparent 70%); opacity: 0; transition: opacity 320ms ease; }
.modality-card > * { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--green); background: var(--green-soft); transition: background 300ms ease, box-shadow 300ms ease, transform 350ms var(--ease); }
.card-icon .icon { width: 27px; height: 27px; }
.card-number { color: #8fa298; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.modality-card h3 { margin-top: 23px; color: var(--green); font-family: var(--font-display); font-size: clamp(20px, 1.65vw, 24px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
.card-accent { display: block; width: 28px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--pink); transition: width 300ms var(--ease); }
.modality-card p { max-width: 26ch; margin-top: 13px; margin-bottom: 25px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--green); font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: .015em; text-transform: uppercase; }
.card-action .icon { width: 19px; height: 19px; transition: transform 300ms var(--ease); }
.modality-card:focus-visible { border-color: var(--pink); outline-offset: 3px; }
.modality-card:focus-visible .card-accent { width: 48px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; margin-top: 42px; padding: 20px 0 24px; border-top: 1px solid var(--line); }
.footer-event { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.footer-event .icon { width: 17px; height: 17px; }
.footer-separator { padding: 0 3px; }
.university-logo { display: block; justify-self: end; width: 132px; height: auto; }

/* Entrada gradual ao rolar, sem esconder conteúdo quando o script não carrega. */
.has-scroll-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 720ms var(--ease), transform 720ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.has-scroll-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-heading { --reveal-delay: 100ms; }
.event-date { --reveal-delay: 180ms; }
.hero-cta { --reveal-delay: 260ms; }
.card-entrance:nth-child(2) { --reveal-delay: 70ms; }
.card-entrance:nth-child(3) { --reveal-delay: 140ms; }
.card-entrance:nth-child(4) { --reveal-delay: 210ms; }
.has-scroll-reveal .hero-heading.is-visible .title-accent { transform-origin: center; animation: accent-grow 680ms var(--ease) 100ms both; }
.has-scroll-reveal .event-date.is-visible .icon { animation: icon-pop 620ms var(--ease) 230ms both; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes accent-grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes icon-pop { from { opacity: .4; transform: scale(.75); } to { opacity: 1; transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover { border-color: #90b69d; background: #f8fcf9; box-shadow: 0 15px 30px rgba(11, 87, 50, .14); transform: translateY(-3px); }
  .hero-cta:hover .cta-icon { background: #c90068; }
  .hero-cta:hover .icon { transform: rotate(90deg) translateX(3px); }
  .modality-card:hover { border-color: #a2c0ae; background: #fcfdfc; box-shadow: 0 13px 26px rgba(12, 71, 42, .09); transform: translateY(-4px); }
  .modality-card:hover::before, .modality-card:focus-visible::before { opacity: 1; }
  .modality-card:hover .card-icon { background: #dcefe2; box-shadow: 0 8px 18px rgba(11, 87, 50, .12); transform: translateY(-3px) scale(1.06); }
  .modality-card:hover .card-accent { width: 47px; }
  .modality-card:hover .card-action .icon { transform: translateX(4px); }
}

@media (max-width: 1100px) {
  .site-shell { width: min(calc(100% - 88px), 980px); }
  .event-editions { gap: 18px; }
  .edition-number { min-width: 72px; height: 61px; font-size: 35px; }
  .edition-label { font-size: clamp(15px, 2vw, 22px); }
  .hero-heading { margin-top: 75px; }
  .modality-card { padding: 21px 18px 17px; }
  .modality-card h3 { font-size: 20px; }
}

@media (max-width: 800px) {
  .scenery { height: 590px; }
  .site-shell { width: min(calc(100% - 52px), 680px); }
  .hero { padding-top: 37px; }
  .event-editions { justify-content: center; gap: 24px; }
  .edition-number { min-width: 58px; height: 53px; font-size: 29px; }
  .edition-label { margin-top: -7px; padding: 5px 8px 6px; font-size: clamp(11px, 1.95vw, 16px); line-height: 1.1; white-space: normal; }
  .hero-heading { margin-top: 78px; }
  h1 { font-size: clamp(37px, 5.8vw, 48px); }
  .event-date { margin-top: 48px; font-size: 23px; }
  .event-date .icon { width: 32px; height: 32px; }
  .registration { margin-top: 75px; }
  .modalities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modality-card { min-height: 265px; }
  .modality-card h3 { font-size: 23px; }
  .edge-ribbon { opacity: .32; }
  .university-logo { width: 116px; }
}

@media (max-width: 520px) {
  .scenery { height: 560px; }
  .site-shell { width: calc(100% - 36px); }
  .hero { padding-top: 28px; }
  .event-editions { flex-direction: column; align-items: center; gap: 15px; }
  .edition { width: min(100%, 310px); }
  .edition-number { min-width: 54px; height: 45px; font-size: 27px; }
  .edition-label { align-self: stretch; max-width: none; font-size: 15px; white-space: normal; }
  .hero-heading { align-items: stretch; gap: 12px; margin-top: 64px; }
  .title-accent { width: 5px; height: auto; min-height: 115px; }
  h1 { font-size: clamp(32px, 9.2vw, 42px); line-height: 1.14; }
  .event-date { gap: 11px; margin-top: 34px; font-size: clamp(18px, 4.8vw, 22px); }
  .event-date .icon { width: 28px; height: 28px; }
  .hero-cta { margin-top: 28px; }
  .registration { margin-top: 64px; padding-top: 29px; }
  .intro-copy h2 { font-size: 31px; }
  .intro-copy > p:last-child { font-size: 14px; }
  .modalities-grid { grid-template-columns: 1fr; gap: 13px; }
  .modality-card { min-height: 0; padding: 20px; }
  .card-icon { width: 44px; height: 44px; border-radius: 12px; }
  .modality-card h3 { margin-top: 17px; font-size: 23px; }
  .modality-card h3 br { display: none; }
  .modality-card p { max-width: none; margin-bottom: 18px; }
  .card-action { min-height: 45px; }
  .edge-ribbon { width: 72px; opacity: .18; }
  .site-footer { margin-top: 32px; }
  .footer-event { align-items: flex-start; font-size: 10px; }
  .footer-event .icon { margin-top: 1px; }
}

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