:root {
  --blue-900: #071b4d;
  --blue-700: #0b2a6f;
  --blue-500: #1b4fd1;
  --orange: #ff8a1f;
  --orange-600: #e87100;
  --ink: #12213f;
  --muted: #5a6783;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e4e7ee;
  --display: "Archivo", system-ui, sans-serif;
  --narrow: "Archivo Narrow", "Archivo", sans-serif;
  --title: "Bangers", "Archivo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 720px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px;
  background: var(--blue-900);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mascot { width: 44px; height: 44px; }
.brand__logo { height: 52px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.nav a:hover { color: var(--orange); opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: #fff;
  padding: 72px 20px 88px;
}
.hero__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.hero__mascot {
  position: absolute; z-index: 1; right: max(24px, calc(50% - 520px)); bottom: -6px;
  width: min(360px, 32vw); height: auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.35));
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--narrow); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .85rem;
  color: var(--orange);
}
.eyebrow--orange { color: var(--orange-600); }
.hero__dates { margin: 0; font-size: 1.25rem; }
.hero__title { margin: 8px 0 28px; line-height: 0; }
.hero__vote { width: min(520px, 100%); height: auto; }
.hero__lema { width: min(400px, 78%); height: auto; margin-top: 10px; }

.countdown { display: flex; gap: 12px; margin-bottom: 28px; }
.countdown[hidden], .countdown__msg[hidden] { display: none; }
.countdown div {
  min-width: 72px; padding: 10px 8px; text-align: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
}
.countdown b { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.countdown__msg { font-weight: 800; font-size: 1.2rem; color: var(--orange); margin: 0 0 28px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--blue-900); }
.btn--primary:hover { background: #ffa04a; }
.btn--ghost { border: 2px solid #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Fotos */
.hero__photo { display: none; margin: 0; }
.hero--photo .hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero--photo .hero__photo {
  display: block; position: absolute; z-index: 1; right: max(20px, calc(50% - 540px)); top: 50%;
  transform: translateY(-50%) rotate(1.5deg); width: min(540px, 42vw);
  border-radius: 20px; overflow: hidden; border: 6px solid var(--orange);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.hero--photo .hero__inner { display: block; }
.hero--photo .hero__inner > * { max-width: 58%; }
.hero--photo .hero__vote { width: min(420px, 100%); }
.hero--photo .hero__lema { width: min(320px, 78%); }
.hero--photo .hero__mascot { width: min(210px, 17vw); right: auto; left: 54%; bottom: 14px; }
.carousel__track { position: relative; aspect-ratio: 3/2; background: var(--blue-900); }
.carousel__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .8s ease; }
.carousel__slide.is-active { opacity: 1; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(7,27,77,.65); color: #fff; font-size: 1.6rem; line-height: 1; padding: 0 0 4px;
  transition: background .15s;
}
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--orange); color: var(--blue-900); }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.carousel__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.55); }
.carousel__dot.is-active { background: var(--orange); transform: scale(1.25); }
.carousel__pause {
  position: absolute; top: 10px; right: 10px; height: 30px; min-width: 30px; padding: 0 9px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: .7rem; line-height: 1;
  background: rgba(7,27,77,.65); color: #fff;
}
.carousel__pause:hover, .carousel__pause:focus-visible { background: var(--orange); color: var(--blue-900); outline: none; }
.carousel--single .carousel__pause, .carousel--single .carousel__btn, .carousel--single .carousel__dots { display: none; }
.carousel__btn:focus-visible, .carousel__dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.groupphoto { margin: 0 0 48px; border-radius: 18px; overflow: hidden; border-bottom: 8px solid var(--orange); box-shadow: 0 16px 40px rgba(7,27,77,.18); }
.groupphoto[hidden], #galeria[hidden], .hero__photo[hidden] { display: none; }
.groupphoto img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.section--tint { background: #f1efe8; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__item { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }

/* Faixa Eleições: letreiro que passa */
.barra { background: #ef7f1a; overflow: hidden; }
.barra__track { display: flex; width: max-content; animation: barra-scroll 45s linear infinite; }
.barra:hover .barra__track { animation-play-state: paused; }
.barra__set { display: flex; align-items: center; flex: none; gap: 56px; padding: 14px 28px; }
.barra__set img { display: block; width: auto; flex: none; }
.barra__texto { height: 48px; }
.barra__logo { height: 54px; }
.barra__logo--lema { height: 60px; }
.barra__sep { height: 52px; padding: 6px; border-radius: 50%; background: var(--blue-900); box-sizing: border-box; aspect-ratio: 1; object-fit: contain; }
@keyframes barra-scroll { to { transform: translateX(-50%); } }

/* Apresentação */
.intro { max-width: 760px; margin: -12px 0 36px; }
.intro p { margin: 0 0 14px; font-size: 1.08rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.duo__item { padding: 28px; border-radius: 16px; background: var(--blue-700); color: #fff; }
.duo__item--alt { background: var(--orange); color: var(--blue-900); }
.duo__item h3 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.duo__item p { margin: 0; line-height: 1.55; }
.duo__lema { margin: 0 0 48px; text-align: center; font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--blue-700); }

/* Legado */
.section--white { background: #fff; }
.lead--dark { color: var(--ink); opacity: 1; margin: -12px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.stat { padding: 26px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--orange); }
.stat b { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; font-weight: 900; color: var(--blue-700); }
.stat h3 { margin: 12px 0 6px; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--narrow); color: var(--orange-600); }
.stat p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.stats__fonte { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.legado__texto { max-width: 760px; margin: 48px 0 0; }
.legado__texto p { margin: 0 0 18px; font-size: 1.08rem; }
.legado__fecho { font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.6rem) !important; line-height: 1.3; color: var(--blue-700); border-left: 6px solid var(--orange); padding-left: 18px; }

/* Sections */
.section { padding: 80px 0; }
.section--blue { background: var(--blue-700); color: #fff; }
.section h2 {
  margin: 0 0 40px; max-width: 900px;
  font-family: var(--title); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.08;
}
#quem-somos h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; }

/* Apoie (avatar) */
.apoie { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: stretch; }
.apoie__passos { counter-reset: passo; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.apoie__passos li { counter-increment: passo; position: relative; padding: 18px 20px 18px 68px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; }
.apoie__passos li::before { content: counter(passo); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-family: var(--title); font-size: 1.3rem; }
.apoie__side { position: relative; display: flex; flex-direction: column; }
.apoie__side .apoie__cta { flex: 1; }
.apoie__avatar { position: absolute; top: -150px; left: 50%; width: 200px; height: 200px; margin-left: -100px; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.apoie__cta { padding-top: 76px !important; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px; border-radius: 16px; background: var(--blue-700); color: #fff; }
.apoie__cta p { margin: 0; }
.apoie__cta .btn { text-align: center; }
@media (max-width: 860px) { .apoie { grid-template-columns: 1fr; } .apoie__avatar { position: static; margin: 0 auto -76px; } }

/* Team */
.team { display: grid; gap: 40px; }
.team__titulo { margin: 0 0 16px; font-family: var(--narrow); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--orange-600); }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.team__grid--featured { grid-template-columns: 1fr; }
.member { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; }
.member__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); }
.member--featured { padding: 28px 32px; background: var(--blue-700); border-color: var(--blue-700); border-left-color: var(--orange); color: #fff; }
.member--featured .member__avatar { width: 96px; height: 96px; }
.member p, .member h4 { margin: 0; }
.member .member__nome { font-size: 1.15rem; line-height: 1.25; margin-top: 2px; }
.member--featured .member__nome { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; }
.member__nome small { font-size: inherit; font-weight: 600; color: var(--muted); }
.member--featured .member__nome small { color: rgba(255,255,255,.75); }
.member__cargo { font-family: var(--narrow); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; line-height: 1.3; color: var(--orange-600); }
.member--featured .member__cargo { color: var(--orange); font-size: .9rem; }
.member .member__funcao { margin-top: 8px; font-size: .9rem; font-weight: 600; }
.member .member__lot { margin-top: 2px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.member--featured .member__lot { color: rgba(255,255,255,.8); }
.member .member__ing { margin-top: 8px; color: var(--blue-500); font-size: .78rem; font-weight: 700; }
.member--featured .member__ing { color: var(--orange); }

/* Proposals */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.card {
  padding: 26px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
}
.card__n { font-family: var(--narrow); font-weight: 700; font-size: 1.6rem; color: var(--orange); }
.card h3 { margin: 6px 0 0; font-size: 1.2rem; line-height: 1.3; }
.card__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card__list li { position: relative; padding-left: 20px; opacity: .92; line-height: 1.5; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; }
.section__head-logo { width: min(320px, 30vw); height: auto; justify-self: end; }
.lead { margin: -24px 0 36px; max-width: 720px; font-size: 1.1rem; opacity: .9; }

.carta {
  margin-top: 40px; padding: 28px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  border-radius: 14px; background: #fff; color: var(--ink);
  border-left: 8px solid var(--orange);
}
.carta h3 { margin: 0 0 4px; font-size: 1.3rem; }
.carta p { margin: 0; color: var(--muted); }

/* Contact */
.section--contato { padding-top: 40px; }
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 24px;
  padding: 56px 56px 56px 60px; border-radius: 28px; color: #fff;
  background: linear-gradient(150deg, var(--blue-700) 0%, var(--blue-900) 100%);
  box-shadow: 0 24px 60px rgba(7,27,77,.25);
}
.contact::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,31,.35) 0%, rgba(255,138,31,0) 70%);
}
.contact__text, .contact__art { position: relative; }
.contact h2 { margin: 0 0 12px; color: #fff; }
.contact__lead { margin: 0 0 20px; font-size: 1.1rem; opacity: .9; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  background: var(--orange); color: var(--blue-900);
  font-weight: 800; font-size: clamp(.95rem, 2.4vw, 1.25rem); overflow-wrap: anywhere;
  transition: transform .15s, background .15s;
}
.contact__mail svg { flex: none; }
.contact__mail:hover { background: #ffa04a; transform: translateY(-2px); }
.contact__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.contact__actions .btn { padding: 10px 22px; font-size: .9rem; background: transparent; font-family: inherit; cursor: pointer; }
.contact__actions .btn:hover { background: rgba(255,255,255,.12); }
.contact__feedback { font-weight: 700; color: var(--orange); font-size: .9rem; }
.contact__data { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); opacity: .9; }
.contact__art { display: grid; place-items: center; }
.contact__mascot { width: min(300px, 100%); height: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); }

/* Mascote que acompanha o scroll */
.floater {
  position: fixed; right: 16px; bottom: 16px; z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 104px; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.floater.is-visible { opacity: .9; transform: none; pointer-events: auto; }
.floater__vote { display: block; width: 100px; height: auto; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(7,27,77,.25); }
.floater__img { display: block; width: 64px; height: auto; transform-origin: 50% 90%; filter: drop-shadow(0 4px 8px rgba(7,27,77,.25)); will-change: transform; }
.floater:hover { opacity: 1; }
.floater:hover .floater__img { filter: drop-shadow(0 8px 14px rgba(255,138,31,.6)); }
.floater:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 12px; }

/* Footer */
.footer__vote { width: min(360px, 80%); height: auto; margin: 0 auto 28px; }
.footer { background: var(--blue-900); color: #fff; text-align: center; padding: 56px 20px 32px; }
.footer__lema { margin: 0 0 28px; font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.6rem); line-height: 1.4; }
.footer__social-titulo { margin: 0 0 12px; font-family: var(--narrow); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--orange); }
.footer__social { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid #fff; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.footer__social a:hover, .footer__social a:focus-visible { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.footer__small { margin: 0; font-size: .8rem; opacity: .6; }

/* Entrada suave */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Entrada do topo ao carregar a página */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(20px); } to { opacity: 1; transform: none; } }
.hero__dates, .hero__vote, .hero__lema, .countdown, .countdown__msg, .hero__cta { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__dates { animation-delay: .05s; }
.hero__vote { animation-delay: .15s; }
.hero__lema { animation-delay: .3s; }
.countdown, .countdown__msg { animation-delay: .45s; }
.hero__cta { animation-delay: .55s; }
.hero__photo { animation: fade 1s ease .35s both; }
.hero__mascot { animation: pop .9s cubic-bezier(.2,.7,.2,1) .7s both; }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--blue-900); max-height: 0; overflow: hidden; transition: max-height .25s;
  }
  .nav.is-open { max-height: 240px; }
  .nav a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .hero { padding: 48px 20px 72px; }
  .hero--photo .hero__inner > * { max-width: none; }
  .hero--photo .hero__photo { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 480px; margin: 36px auto 0; transform: none; }
  .hero__mascot, .hero--photo .hero__mascot { position: relative; inset: auto; display: block; width: 170px; margin: 36px auto 0; }
  .hero__title { margin-top: 36px; }
  .btn--ghost { background: var(--blue-900); }
  .section { padding: 56px 0; }
  .section__head { grid-template-columns: 1fr; }
  .section__head-logo { width: 170px; justify-self: start; order: 2; margin: -8px 0 28px; }
  .barra__set { gap: 36px; padding: 10px 18px; }
  .barra__texto { height: 34px; }
  .barra__logo { height: 38px; }
  .barra__logo--lema { height: 42px; }
  .barra__sep { height: 38px; padding: 4px; }
  .contact { grid-template-columns: 1fr; padding: 36px 22px 28px; border-radius: 22px; }
  .contact__art { order: -1; justify-self: start; }
  .contact__mascot { width: 120px; }
  .contact__mail { width: 100%; justify-content: center; text-align: center; padding: 14px 12px; border-radius: 22px; font-size: .85rem; }
  .contact__mail svg { display: none; }
  .contact__actions .btn { background: transparent; }
  .floater { width: 80px; right: 10px; bottom: 10px; }
  .floater__vote { width: 76px; padding: 5px 8px; }
  .floater__img { width: 48px; }
  .duo { grid-template-columns: 1fr; }
  .intro p { font-size: 1rem; }
  .member { padding: 16px 18px; }
  .member--featured { padding: 22px 20px; }
  .countdown div { min-width: 0; flex: 1; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__dates, .hero__vote, .hero__lema, .countdown, .countdown__msg, .hero__cta, .hero__photo, .hero__mascot { animation: none; }
  .barra__track { animation: none; width: auto; justify-content: center; }
  .barra__set[aria-hidden] { display: none; }
  .floater { transition: none; }
  .carousel__slide { transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
