@import "tailwindcss";

:root {
  --yellow: #ffd313;
  --orange: #f56312;
  --turquoise: #2bb3b7;
  --cream: #f7f5ed;
  --ink: #25282a;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: var(--body); }
img { display: block; max-width: 100%; }
.campaign-page { width: 100%; overflow: hidden; background: var(--cream); }
.desktop-reference { position: relative; width: 100%; background: #fff; }
.desktop-reference img { width: 100%; height: auto; }
.desktop-bio-panel {
  position: absolute;
  z-index: 3;
  left: 52.5%;
  top: 27%;
  width: 27%;
  height: 18.8%;
  padding: .6% 1.1% .6% .5%;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #fff;
  font-size: clamp(8px, .72vw, 14px);
  line-height: 1.2;
  scrollbar-gutter: stable;
  box-shadow: -1vw -1vw 0 #fff, 2vw -1vw 0 #fff, -1vw 2.7vw 0 #fff, 2vw 2.7vw 0 #fff;
}
.desktop-bio-panel p { margin: 0 0 1em; }
.desktop-women-overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 49%;
  width: 100%;
  height: 25.65%;
  overflow: hidden;
  background: var(--yellow);
}
.desktop-women-composition { position: absolute; left: 50%; top: 6%; width: 42%; height: 88%; transform: translateX(-50%); }
.desktop-women-polaroid { position: absolute; left: 0; bottom: 0; width: auto !important; height: 100% !important; max-width: 77%; object-fit: contain; object-position: left bottom; filter: drop-shadow(12px 17px 14px rgba(36,45,51,.18)); }
.desktop-women-title { position: absolute; z-index: 2; right: 0; top: 23%; width: 55% !important; }
.desktop-women-values { position: absolute; z-index: 3; right: 0; top: 50%; width: 53% !important; }
.desktop-reference::after {
  content: "ELEIÇÕES 2026: JEANE ALVES DE OLIVEIRA: 68.492.177/0001-96";
  position: absolute;
  right: 7%;
  bottom: 1.55%;
  width: 48%;
  height: 3.9%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: #fff;
  font-size: clamp(8px, .72vw, 14px);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
}
.responsive-reference { display: none; }
.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; }

.ref-hero {
  position: relative;
  min-height: clamp(455px, 47vw, 655px);
  overflow: hidden;
  background: var(--cream) url('/assets/jeane/offwhite-background.png') center/cover;
  isolation: isolate;
}
.hero-layout { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { position: relative; width: min(100% - 44px, 1080px); min-height: clamp(455px, 47vw, 655px); margin: 0 auto; }
.hero-brand { position: absolute; z-index: 3; left: 3%; top: 35%; width: 28%; }
.hero-brand > img:first-child { width: 100%; height: auto; }
.hero-social { width: 62%; margin: 35% 0 0 10%; }
.hero-jeane { position: absolute; z-index: 2; bottom: 0; left: 44%; width: 35.5%; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(4px 5px 0 rgba(239,96,16,.08)); }
.color-rule { position: absolute; z-index: 10; left: 0; bottom: 0; display: flex; width: 100%; height: 10px; }
.color-rule i:nth-child(1) { width: 8%; background: var(--yellow); }
.color-rule i:nth-child(2) { width: 36%; background: var(--orange); }
.color-rule i:nth-child(3) { width: 40%; background: var(--yellow); }
.color-rule i:nth-child(4) { flex: 1; background: var(--turquoise); }

.ref-intro { position: relative; min-height: 535px; padding: 32px 22px 0; background: #fff; }
.intro-inner { width: min(100%, 1040px); min-height: 503px; margin: 0 auto; display: grid; grid-template-columns: 53% 47%; align-items: center; }
.intro-art { position: relative; align-self: stretch; overflow: visible; }
.intro-character { position: absolute; left: 16%; top: 4%; width: 49%; max-height: 64%; object-fit: contain; object-position: top; }
.intro-lockup { position: absolute; z-index: 2; left: 1%; bottom: 0; width: 94%; height: 45%; color: #fff; text-transform: uppercase; font-family: var(--display); font-style: italic; letter-spacing: -2px; }
.intro-lockup::before { content: ""; position: absolute; z-index: -2; inset: 1% -2% 12% -10%; background: var(--turquoise); clip-path: polygon(24% 0,100% 0,95% 100%,0 100%); }
.intro-lockup::after { content: ""; position: absolute; z-index: -1; left: 15%; right: 0; bottom: 0; height: 58%; background: var(--orange) url('/assets/jeane/orange-paper.png') center/cover; clip-path: polygon(14% 0,100% 0,93% 100%,0 100%); }
.intro-lockup span { position: absolute; left: 23%; top: 0; font-size: clamp(70px,7.5vw,108px); line-height: .82; }
.intro-lockup small { position: absolute; z-index: 2; left: 27%; bottom: 25%; font-size: clamp(24px,2.5vw,38px); line-height: .8; }
.intro-lockup strong { position: absolute; z-index: 2; left: 42%; bottom: 7%; color: var(--yellow); font-size: clamp(74px,8vw,116px); line-height: .76; }
.intro-copy { max-width: 420px; padding: 42px 24px 34px 30px; font-size: 14px; line-height: 1.19; }
.intro-copy p { margin: 0 0 16px; }
.bio-scroll { scrollbar-width: thin; scrollbar-color: var(--turquoise) rgba(43,179,183,.14); }
.bio-scroll::-webkit-scrollbar { width: 8px; }
.bio-scroll::-webkit-scrollbar-track { background: rgba(43,179,183,.14); border-radius: 999px; }
.bio-scroll::-webkit-scrollbar-thumb { background: var(--turquoise); border-radius: 999px; }
.bio-scroll:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.ref-women { position: relative; height: clamp(500px, 48vw, 690px); overflow: hidden; background: var(--yellow); }
.women-composition { position: absolute; left: 50%; top: 7%; width: min(48%, 560px); height: 86%; transform: translateX(-50%); }
.women-polaroid { position: absolute; left: 0; bottom: 0; width: auto; height: 100%; max-width: 77%; object-fit: contain; object-position: left bottom; filter: drop-shadow(12px 17px 14px rgba(36,45,51,.18)); }
.women-title { position: absolute; z-index: 2; right: 0; top: 23%; width: 55%; }
.women-values { position: absolute; z-index: 3; right: 0; top: 50%; width: 53%; }

.tag-reveal { opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity, filter; }
.women-reveal-scope.is-visible .women-title,
.women-reveal-scope.is-visible .desktop-women-title {
  animation: tag-pop-in .68s cubic-bezier(.2,.9,.25,1.18) .08s both;
}
.women-reveal-scope.is-visible .women-values,
.women-reveal-scope.is-visible .desktop-women-values {
  animation: tag-pop-in .68s cubic-bezier(.2,.9,.25,1.18) .28s both;
}

@keyframes tag-pop-in {
  0% { opacity: 0; transform: translate3d(54px,20px,0) rotate(5deg) scale(.78); filter: blur(4px); }
  68% { opacity: 1; transform: translate3d(-5px,-2px,0) rotate(-1.2deg) scale(1.045); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) rotate(0) scale(1); filter: blur(0); }
}

.ref-coalition { position: relative; min-height: clamp(350px, 31vw, 455px); overflow: hidden; background: var(--cream) url('/assets/jeane/offwhite-background.png') center/cover; isolation: isolate; }
.coalition-layout { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.coalition-inner { position: relative; width: min(100% - 40px, 1160px); min-height: clamp(350px, 31vw, 455px); margin: 0 auto; display: grid; grid-template-columns: 39% 61%; align-items: center; }
.coalition-brand { align-self: stretch; display: flex; align-items: center; padding-top: 6%; }
.coalition-brand img { width: 98%; transform: translateX(-5%); }
.candidate-group { position: relative; align-self: stretch; }
.people { position: absolute; left: 0; right: 0; top: 7%; height: 66%; }
.person { position: absolute; bottom: 0; width: auto; object-fit: contain; object-position: bottom; filter: drop-shadow(4px 5px 0 rgba(0,0,0,.08)); }
.person-jeane { left: 1%; height: 88%; }
.person-roberto { left: 24%; height: 91%; }
.person-joao { left: 48%; height: 84%; }
.person-lucas { left: 73%; height: 88%; }
.candidate-logos { position: absolute; left: 0; right: 0; bottom: 7%; height: 25%; display: grid; grid-template-columns: 1.3fr 1fr .8fr .8fr; align-items: center; gap: 14px; padding: 2% 2% 0; background: rgba(247,245,237,.95); }
.candidate-logos > img { width: 92%; max-height: 78px; object-fit: contain; justify-self: center; }
.candidate-mark { position: relative; min-height: 58px; font-family: Arial, sans-serif; line-height: .82; text-align: center; text-transform: uppercase; }
.candidate-mark small { display: block; margin-bottom: 4px; font-size: 7px; font-weight: 900; }
.candidate-mark b { display: inline-block; font-size: 15px; font-weight: 950; }
.candidate-mark strong { display: block; font: 900 32px/.82 var(--display); }
.mark-roberto strong { color: #111; }
.mark-joao b { color: var(--orange); font-size: 20px; }
.mark-joao strong { color: #177f93; }
.mark-lucas b { color: #1d4a84; font-size: 18px; }
.mark-lucas strong { display: inline-block; margin-left: 4px; padding: 3px; color: #1d4a84; background: var(--yellow); }
.color-rule--bottom { height: 8px; }

.ref-footer { min-height: 150px; padding: 34px max(22px,calc((100vw - 760px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 60px; background: #fff; }
.ref-footer img { width: 170px; height: 95px; object-fit: contain; }
.ref-footer p { margin: 0; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: 2px; }

@media (max-width: 1099px) {
  .desktop-reference { display: none; }
  .responsive-reference { display: block; }
  .ref-hero::before { content: ""; position: absolute; z-index: -3; top: -8%; right: -32%; width: 88%; height: 112%; background: var(--yellow) url('/assets/jeane/yellow-map.png') center/cover; clip-path: polygon(36% 0,100% 0,100% 100%,0 100%); }
  .ref-hero::after { content: ""; position: absolute; z-index: -2; left: 39%; top: 12%; width: 62%; height: 76%; background: url('/assets/jeane/map-orange.png') center/contain no-repeat; }
  .hero-layout { display: none; }
  .intro-inner { grid-template-columns: 50% 50%; }
  .intro-character { left: 19%; top: 7%; width: 48%; max-height: 58%; }
  .intro-lockup { left: 7%; bottom: 4%; width: 88%; height: 40%; }
  .intro-lockup span { left: 22%; font-size: clamp(58px,6vw,82px); }
  .intro-lockup small { left: 25%; bottom: 24%; font-size: clamp(20px,2.2vw,30px); }
  .intro-lockup strong { left: 41%; bottom: 8%; font-size: clamp(62px,6.7vw,92px); }
  .intro-copy { padding-inline: 24px 18px; font-size: 13px; }
  .intro-copy { max-height: 445px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .candidate-logos { gap: 7px; }
  .candidate-mark b { font-size: 12px; }
  .candidate-mark strong { font-size: 27px; }
  .mark-joao b, .mark-lucas b { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-reveal { opacity: 1; animation: none !important; transform: none; filter: none; }
}

@media (max-width: 820px) {
  .ref-hero, .hero-inner { min-height: 640px; }
  .ref-hero::before { display: none; }
  .ref-hero::after { display: none; }
  .hero-brand { left: 50%; top: 7%; width: min(72%, 360px); transform: translateX(-50%); text-align: center; }
  .hero-social { width: 72%; margin: 16px auto 0; }
  .hero-jeane { left: 50%; width: min(78%, 430px); transform: translateX(-50%); }
  .color-rule { height: 7px; }

  .ref-intro { padding: 0; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-art { min-height: 445px; }
  .intro-character { left: 14%; top: 0; width: 72%; max-height: none; }
  .intro-lockup { left: 0; bottom: 0; width: 100%; height: 48%; }
  .intro-lockup span { left: 12%; top: 4%; width: 80%; font-size: clamp(62px,18vw,82px); text-align: center; white-space: nowrap; }
  .intro-lockup small { left: 22%; bottom: 24%; font-size: clamp(22px,7vw,28px); }
  .intro-lockup strong { left: 39%; bottom: 8%; font-size: clamp(68px,22vw,96px); }
  .intro-copy { width: calc(100% - 36px); max-width: 620px; height: 390px; max-height: none; margin: 20px auto 34px; padding: 24px 22px 30px; overflow-y: auto; border: 2px solid rgba(43,179,183,.22); border-radius: 18px; background: rgba(255,255,255,.82); font-size: 14px; line-height: 1.35; box-shadow: inset 0 -18px 24px -24px rgba(37,40,42,.45); }

  .ref-women { height: 450px; }
  .women-composition { top: 7%; width: min(92%, 430px); height: 84%; }
  .women-polaroid { left: 0; bottom: 1%; width: auto; height: 94%; max-width: 74%; }
  .women-title { right: -1%; top: 25%; width: 49%; }
  .women-values { right: -1%; top: 52%; width: 47%; }

  .ref-coalition { min-height: 570px; }
  .coalition-layout { display: none; }
  .coalition-inner { min-height: 570px; grid-template-columns: 1fr; align-items: start; }
  .coalition-brand { position: absolute; z-index: 0; left: 50%; top: 2%; width: min(94%, 520px); height: 61%; padding: 0; align-items: flex-start; transform: translateX(-50%); }
  .coalition-brand img { width: 100%; max-height: 100%; object-fit: contain; object-position: center top; transform: none; }
  .candidate-group { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 77%; }
  .people { top: 5%; height: 68%; }
  .person-jeane { left: 1%; height: 76%; }
  .person-roberto { left: 24%; height: 82%; }
  .person-joao { left: 49%; height: 76%; }
  .person-lucas { left: 73%; height: 80%; }
  .candidate-logos { bottom: 4%; height: 29%; gap: 5px; padding: 3% 2% 1%; box-shadow: 0 -10px 24px rgba(37,40,42,.06); }
  .candidate-mark b { font-size: 10px; }
  .candidate-mark strong { font-size: 24px; }
  .mark-joao b, .mark-lucas b { font-size: 12px; }

  .ref-footer { min-height: 190px; flex-direction: column; justify-content: center; gap: 13px; text-align: center; }
  .ref-footer img { width: 150px; height: 82px; }
  .ref-footer p { font-size: 9px; line-height: 1.5; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .ref-hero, .hero-inner { min-height: 610px; }
  .hero-brand { width: 48%; }
  .hero-jeane { left: 39%; width: 57%; }
  .intro-art { min-height: 520px; }
  .intro-character { left: 21%; width: 58%; }
  .intro-lockup { left: 8%; width: 84%; }
  .women-composition { width: min(76%, 520px); }
  .coalition-brand { width: min(78%, 560px); }
}

@media (max-width: 380px) {
  .ref-hero, .hero-inner { min-height: 580px; }
  .intro-art { min-height: 415px; }
  .ref-women { height: 395px; }
  .women-composition { height: 350px; }
  .ref-coalition, .coalition-inner { min-height: 540px; }
  .coalition-brand { top: 3%; width: 98%; }
  .candidate-group { height: 75%; }
}
