/* Ivan Júnior 15.222 — versão HTML/CSS/JS/PHP (espelho da versão React) */
:root {
  --navy: #002e73;
  --navy-deep: #001a52;
  --cyan: #00b3f2;
  --cyan-light: #6dd3fb;
  --yellow: #ffc921;
  --yellow-deep: #eaa000;
  --shadow-card: 0 18px 40px -22px rgba(0, 26, 82, 0.55);
  --max: 1152px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  background: #fff;
  color: #0b1220;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
section[id] { scroll-margin-top: 72px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(0, 26, 82, .95);
  border-bottom: 1px solid rgba(0, 179, 242, .2);
  backdrop-filter: blur(8px);
}
.header-bar {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
}
.logo img { height: 48px; width: auto; object-fit: contain; }
.nav-desktop { display: none; align-items: center; gap: 24px; }
.nav-desktop a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); transition: color .2s; }
.nav-desktop a:hover { color: var(--yellow); }
.btn-vote {
  border-radius: 999px; background: var(--yellow); color: var(--navy-deep);
  padding: 10px 20px; font-weight: 900; font-size: 14px; transition: transform .2s;
}
.btn-vote:hover { transform: scale(1.05); }
.menu-toggle {
  height: 44px; width: 44px; display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 12px; background: rgba(0, 179, 242, .2); color: #fff;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-close { display: block; }
.menu-toggle.is-open .icon-open { display: none; }
.nav-mobile { display: none; background: var(--navy-deep); border-top: 1px solid rgba(0,179,242,.2); padding: 0 20px 20px; }
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: 16px 0; font-size: 18px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-mobile .btn-vote { display: block; margin-top: 20px; text-align: center; padding: 16px; font-size: 18px; border-bottom: 0; color: var(--navy-deep); }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .logo img { height: 56px; }
}

/* Hero */
.hero { background: var(--navy-deep); padding-top: 80px; }
.hero img { width: 100%; }

/* Quem é Ivan */
.section { padding: 80px 0; }
.quem { background: #fff; }
.title { font-size: 36px; color: var(--navy); }
.title .accent-cyan { color: var(--cyan); }
.title .accent-yellow { color: var(--yellow); }
.title .accent-white { color: #fff; }
@media (min-width: 640px) { .title { font-size: 48px; } }
.grid-2 { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.bio p { font-size: 18px; line-height: 1.7; color: rgba(0, 46, 115, .8); margin-bottom: 16px; }
.foto-wrap { overflow: hidden; border-radius: 24px; background: var(--navy); box-shadow: var(--shadow-card); }
.foto-wrap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #fff; }
.stats { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { height: 100%; border-radius: 24px; padding: 28px; }
.stat .big { font-size: 48px; font-weight: 900; }
.stat .mid { font-size: 30px; font-weight: 900; }
.stat p + p { margin-top: 8px; font-size: 18px; font-weight: 600; }
.stat-navy { background: var(--navy); color: #fff; }
.stat-navy .big { color: var(--yellow); }
.stat-cyan { background: var(--cyan); color: var(--navy-deep); }
.stat-yellow { background: var(--yellow); color: var(--navy-deep); }
.stat-cyanlight { background: var(--cyan-light); color: var(--navy-deep); }

/* Bandeiras */
.bandeiras { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.bandeiras .rn-map { position: absolute; right: -80px; top: 40px; width: 480px; color: rgba(255,255,255,.05); pointer-events: none; }
.bandeiras .container { position: relative; }
.bandeiras .title { color: #fff; }
.subtitle { margin-top: 12px; max-width: 42rem; font-size: 18px; color: var(--cyan-light); }
.cards { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  height: 100%; border-radius: 24px; padding: 28px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  transition: transform .3s, background .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,201,33,.6); background: rgba(255,255,255,.1); }
.card .ico { display: grid; place-items: center; height: 56px; width: 56px; border-radius: 16px; background: var(--yellow); color: var(--navy-deep); transition: transform .3s; }
.card:hover .ico { transform: scale(1.1); }
.card h3 { margin-top: 20px; font-size: 24px; color: var(--cyan-light); text-transform: uppercase; }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.8); }

/* Vale */
.vale { background: var(--cyan-light); color: var(--navy-deep); }
.vale .title { color: var(--navy-deep); }
.vale .lead { margin-top: 16px; max-width: 48rem; font-size: 18px; font-weight: 600; color: var(--navy); }
.videos {
  margin: 40px -20px 0; display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0 20px 16px;
}
.videos > * { width: 78vw; flex: 0 0 auto; scroll-snap-align: center; }
@media (min-width: 640px) {
  .videos { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; padding: 0; }
  .videos > * { width: auto; }
}
@media (min-width: 1024px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 9 / 16; overflow: hidden; border-radius: 24px; background: var(--navy);
  padding: 24px; color: #fff; box-shadow: var(--shadow-card); transition: transform .3s;
}
.video-card:hover { transform: translateY(-6px); }
.video-card > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover > img { transform: scale(1.05); }
.video-card .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,26,82,.9), rgba(0,26,82,.25) 55%, rgba(0,26,82,.1)); }
.video-card .num { position: absolute; top: 20px; left: 20px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); padding: 4px 12px; font-size: 12px; font-weight: 900; }
.video-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; height: 64px; width: 64px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-deep); transition: transform .3s;
}
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-card .vtitle { position: relative; font-size: 20px; font-weight: 900; }
.video-card .vlink { position: relative; margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cyan-light); }

/* Redes */
.redes { background: var(--navy-deep); color: #fff; padding: 64px 0; }
.redes img.banner { width: 100%; border-radius: 16px; }
.social-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-buttons a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: var(--yellow); color: var(--navy-deep);
  padding: 12px 24px; font-size: 14px; font-weight: 900; transition: transform .2s;
}
.social-buttons a:hover { transform: scale(1.03); }
@media (min-width: 640px) { .social-buttons { gap: 16px; } .social-buttons a { padding: 16px 28px; font-size: 16px; } }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 48px 0; }
.site-footer .brand { font-size: 20px; font-weight: 900; }
.site-footer .brand .sep { color: var(--cyan-light); }
.site-footer .brand .num { color: var(--yellow); }
.footer-links { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--yellow); }
@media (min-width: 640px) { .footer-links { flex-direction: row; gap: 24px; } }
.legal { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; font-size: 14px; color: rgba(255,255,255,.7); }
.legal p + p { margin-top: 4px; }
.legal .strong { font-weight: 600; color: #fff; }