/* Davi Valença 1414 — Missão Design System */
:root {
  --yellow: #FDBE21;
  --yellow-hover: #E5A800;
  --yellow-200: #FEE39A;
  --yellow-100: #FFF3D1;
  --black: #000;
  --ink-700: #1F1F1F;
  --border-dark: #2A2A2A;
  --text-light-2: #CFCFCF;
  --gray: #8A8A8A;
  --gray-666: #666;
  --body-on-light: #3A3A3A;
  --neutral-50: #F6F6F4;
  --neutral-100: #EDEDED;
  --neutral-300: #BDBDBD;
  --ochre: #E8A93A;
  --success: #1F9D55;
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-200); }
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.yellow { color: var(--yellow); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 112px 24px; }
.section--white { background: #fff; color: #000; }
.section--yellow { background: var(--yellow); color: #000; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.section--black { background: #000; color: #fff; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
}
.grid-2--center { align-items: center; }
.grid-2--start { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--16 { gap: 16px; }
.stack--40 { gap: 40px; }
.stack--48 { gap: 48px; }

.overline { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.overline--gray { color: var(--gray-666); }
.overline--yellow { color: var(--yellow); }

.h2 {
  margin: 0;
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
}
.h2--xl { font-size: clamp(48px, 7vw, 104px); line-height: 0.88; letter-spacing: -0.03em; }
.h2--about { font-size: clamp(44px, 5.5vw, 72px); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.h2--vote { font-size: clamp(48px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.03em; }

.body-dark { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body-on-light); text-wrap: pretty; }
.body-dark--narrow { max-width: 44ch; }
.body-light { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-light-2); max-width: 40ch; text-wrap: pretty; }

/* ---------- 1. Marquee ---------- */
.marquee {
  background: var(--yellow);
  color: #000;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: mq 28s linear infinite;
}
.marquee__item {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.marquee__item::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #000;
  display: inline-block;
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.no-marquee .marquee { display: none; }

/* ---------- 2. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
  border-bottom: 1px solid var(--border-dark);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand__logo { height: 40px; width: auto; display: block; background: #fff; padding: 3px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; font-stretch: 75%; }
.brand__num { font-weight: 900; font-size: 13px; color: var(--yellow); letter-spacing: 0.14em; }

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav__link { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__link:hover { color: var(--yellow); }
.nav__cta {
  background: var(--yellow);
  color: #000;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 2px solid var(--yellow);
}
.nav__cta:hover { background: #000; color: var(--yellow); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--border-dark);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border-dark);
    margin: 0 -24px -14px;
    width: calc(100% + 48px);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 18px 24px; border-bottom: 1px solid var(--border-dark); font-size: 14px; }
  .nav__cta { margin: 16px 24px 20px; text-align: center; padding: 16px 20px; font-size: 14px; }
}

/* ---------- 3. Hero ---------- */
.hero { position: relative; overflow: hidden; background: #000; border-bottom: 2px solid var(--yellow); }
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 70% 100%, rgba(253,190,33,.45) 0%, rgba(253,190,33,0) 70%);
}
.hero__grid {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
  align-items: end;
}
.hero__text { padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 12px; }
.tag--solid { background: var(--yellow); color: #000; font-weight: 900; }
.tag--outline { border: 1px solid #fff; color: #fff; font-weight: 700; }
.hero__title {
  margin: 0;
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.hero__lead { margin: 0; max-width: 30ch; font-size: 20px; line-height: 1.45; color: var(--text-light-2); text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.seal { display: flex; align-items: stretch; border: 2px solid var(--yellow); box-shadow: 6px 6px 0 var(--yellow); }
.seal__label {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 14px;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.seal__num {
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 88px;
  line-height: 1;
  padding: 6px 22px 2px;
  letter-spacing: -0.02em;
}
.underline-link {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
}
.underline-link:hover { color: var(--yellow); }

.hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero__ghost {
  position: absolute;
  right: 0;
  top: 12px;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(160px, 22vw, 320px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  letter-spacing: -0.04em;
  opacity: .55;
  user-select: none;
}
.hero__cutout { position: relative; display: block; width: 100%; max-width: 520px; height: auto; margin-bottom: -2px; }
.hero__portrait {
  position: relative;
  display: none;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--yellow);
  margin-bottom: 56px;
  box-shadow: 10px 10px 0 var(--yellow);
}
body[data-hero="retrato"] .hero__cutout { display: none; }
body[data-hero="retrato"] .hero__portrait { display: block; }

@media (max-width: 560px) {
  .hero__text { padding-bottom: 32px; }
  .hero__media { min-height: 0; }
  .seal__num { font-size: 72px; }
}

/* ---------- 4. Quem é ---------- */
.about__photo { position: relative; }
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid #000;
  box-shadow: 12px 12px 0 #000;
}
.about__badge {
  position: absolute;
  left: -2px;
  bottom: 32px;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 2px solid #000;
}
.quote {
  margin: 8px 0 0;
  padding: 0 0 0 20px;
  border-left: 6px solid var(--yellow);
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: #000;
}

/* ---------- 5. Bandeiras ---------- */
.flags__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.flags__intro { margin: 0; max-width: 36ch; font-size: 18px; line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.flag {
  background: #000;
  color: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  border: 2px solid #000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.flag:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 #fff; }
.flag__n { font-weight: 900; font-stretch: 75%; font-size: 56px; line-height: 1; color: var(--yellow); }
.flag__t { margin: 0; font-weight: 900; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em; }
.flag__d { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-light-2); text-wrap: pretty; }

/* ---------- 6. Na rua ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gallery__feature { grid-column: 1 / -1; position: relative; border: 2px solid var(--border-dark); overflow: hidden; margin: 0; }
.gallery__feature img { display: block; width: 100%; height: auto; aspect-ratio: 16/7; object-fit: cover; }
.gallery__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
}
.gallery__img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border: 2px solid var(--border-dark); }
.gallery__img--flag { object-position: center 35%; }
@media (max-width: 560px) {
  .gallery__feature img { aspect-ratio: 4/3; }
  .gallery__caption { font-size: 11px; padding: 8px 10px; }
}

/* ---------- 7. Como votar ---------- */
.section--votar { border-top: 2px solid var(--yellow); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  cursor: pointer;
  border: 2px solid #000;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 0;
}
.btn--black { background: #000; color: #fff; }
.btn--black:hover { background: var(--yellow); color: #000; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: var(--yellow-100); }

.urna {
  background: var(--ink-700);
  padding: 28px;
  border: 2px solid #000;
  box-shadow: 12px 12px 0 var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.urna__screen {
  background: var(--neutral-50);
  color: #000;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 20px;
  align-items: start;
  min-height: 260px;
}
.urna__info { display: flex; flex-direction: column; gap: 14px; }
.urna__office { font-weight: 900; font-size: 22px; text-transform: uppercase; }
.urna__digits { display: flex; gap: 8px; }
.urna__digit {
  width: 52px;
  height: 68px;
  border: 2px solid #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 40px;
}
.urna__candidate { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.urna__photo { width: 120px; height: 150px; border: 1px solid var(--neutral-300); background: var(--neutral-100); overflow: hidden; }
.urna__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.urna [data-candidate][hidden] { display: none; }
.urna__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { font-weight: 900; font-size: 13px; text-align: center; padding: 14px 0; text-transform: uppercase; }
.key--branco { background: #fff; color: #000; }
.key--corrige { background: var(--ochre); color: #000; }
.key--confirma { background: var(--success); color: #fff; }

@media (max-width: 480px) {
  .urna { padding: 16px; }
  .urna__screen { grid-template-columns: minmax(0, 1fr) 84px; padding: 16px; gap: 12px; }
  .urna__photo { width: 84px; height: 105px; }
  .urna__digit { width: 40px; height: 54px; font-size: 32px; }
  .urna__office { font-size: 18px; }
}

/* ---------- 8. Participe ---------- */
.section--participe { position: relative; overflow: hidden; }
.participe__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 100%, rgba(253,190,33,.4) 0%, rgba(253,190,33,0) 70%);
}
.participe__grid { position: relative; }
.social {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-start;
}
.social:hover { color: var(--yellow); }
.social__at { background: var(--yellow); color: #000; padding: 6px 8px; font-weight: 900; }
.participe__cta { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.big-cta {
  display: block;
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--yellow);
  color: #000;
  border: 2px solid var(--yellow);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 26px 24px;
  box-shadow: 8px 8px 0 #fff;
}
.big-cta:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: #000; }

/* ---------- 9. Footer ---------- */
.footer { background: #000; color: #fff; }
.footer__stripes { display: grid; grid-template-rows: 14px 14px 14px; }
.footer__stripes > div:nth-child(1) { background: #000; border-top: 1px solid var(--border-dark); }
.footer__stripes > div:nth-child(2) { background: #fff; }
.footer__stripes > div:nth-child(3) { background: var(--yellow); }
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 56px; width: auto; background: #fff; padding: 4px; }
.footer__names { display: flex; flex-direction: column; gap: 4px; }
.footer__name { font-weight: 900; font-stretch: 75%; font-size: 28px; text-transform: uppercase; line-height: 1; }
.footer__sub { font-size: 13px; color: var(--gray); letter-spacing: 0.04em; }
.footer__legal { font-size: 12px; color: var(--gray); max-width: 52ch; line-height: 1.5; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .flag { transition: none; }
}
