:root {
  --navy: #071944;
  --navy-deep: #030d27;
  --blue: #0d3b9a;
  --yellow: #ffca08;
  --green: #12ae4b;
  --white: #fff;
  --max: 1240px;
  --font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy-deep); }
body { margin: 0; color: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 16px; background: var(--yellow); color: var(--navy);
  font-weight: 800; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--navy);
}
.hero::before {
  content: ""; position: absolute; z-index: 1; inset: 0 48% 0 0;
  background:
    radial-gradient(circle at 12% 82%, rgba(22,72,162,.48), transparent 31%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #0b2f78);
}
.hero::after {
  content: ""; position: absolute; z-index: 4; left: 0; bottom: 0;
  width: 48%; height: 8px; background: var(--yellow);
}

.portrait { position: absolute; z-index: 0; inset: 0 0 0 43%; overflow: hidden; background: #161b1b; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: saturate(.88) contrast(1.03); }
.portrait__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0, rgba(7,25,68,.82) 7%, rgba(7,25,68,.12) 37%, transparent 58%),
    linear-gradient(0deg, rgba(3,13,39,.46), transparent 34%);
}

.page-shell {
  position: relative; z-index: 3; width: min(calc(100% - 64px), var(--max));
  min-height: 100svh; margin-inline: auto; display: grid;
  grid-template-rows: 96px 1fr;
}
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand {
  width: 146px; height: 56px; overflow: hidden; border-radius: 8px;
  background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.18);
}
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.election { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; }
.election span { color: rgba(255,255,255,.64); }
.election strong { color: var(--yellow); font-size: .76rem; }

.content {
  width: min(100%, 540px); align-self: center; padding: 42px 0 74px;
}
.office {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  color: rgba(255,255,255,.76); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.office span { width: 30px; height: 3px; border-radius: 99px; background: var(--yellow); }

h1 {
  max-width: 520px; margin: 0; font-size: clamp(4.4rem, 6.4vw, 6.6rem);
  font-weight: 600; line-height: .84; letter-spacing: -.07em; text-transform: uppercase;
}
h1 strong { display: block; color: var(--yellow); font-weight: 900; }

.vote-line { display: flex; align-items: center; gap: 16px; margin-top: 33px; }
.vote-line span {
  color: rgba(255,255,255,.62); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.vote-line strong {
  color: #fff; font-size: clamp(2.7rem, 4.4vw, 4.5rem); font-weight: 900;
  line-height: .9; letter-spacing: -.055em;
}

.slogan {
  margin: 27px 0 0; color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.45vw, 1.28rem); font-weight: 600; line-height: 1.28;
  letter-spacing: -.02em;
}
.slogan strong { color: #fff; font-weight: 800; }

.whatsapp {
  display: flex; align-items: center; gap: 12px; width: min(100%, 350px);
  min-height: 60px; margin-top: 31px; padding: 13px 16px 13px 19px;
  border-radius: 8px; background: var(--green); color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  font-size: .85rem; font-weight: 800;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.whatsapp:hover { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.whatsapp:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.whatsapp svg { width: 25px; height: 25px; flex: none; fill: currentColor; }
.whatsapp i { margin-left: auto; font-size: 1.2rem; font-style: normal; font-weight: 500; }
.party { margin: 21px 0 0; color: rgba(255,255,255,.42); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.party span { margin-inline: 7px; color: var(--yellow); }

@media (max-width: 900px) {
  .hero { min-height: auto; display: flex; flex-direction: column; background: var(--navy); }
  .hero::before { inset: 0; }
  .hero::after { width: 100%; }
  .page-shell { display: contents; }
  .topbar {
    position: relative; z-index: 3; order: 1;
    width: min(calc(100% - 36px), 680px); height: 82px;
    margin-inline: auto; flex: none;
  }
  .election { display: none; }
  .brand { width: 130px; height: 50px; }
  .content {
    position: relative; z-index: 3; order: 3;
    width: min(calc(100% - 36px), 680px);
    margin-inline: auto; padding: 46px 0 58px;
  }
  .portrait {
    position: relative; z-index: 2; order: 2; inset: auto;
    width: min(calc(100% - 36px), 680px); height: min(68vw, 340px);
    min-height: 280px; margin: 10px auto 0; overflow: hidden;
    border-radius: 18px; background: #171b1c;
  }
  .portrait img { max-width: none; object-position: 58% 46%; transform: scale(1.14); }
  .portrait__shade {
    background:
      linear-gradient(180deg, rgba(7,25,68,.16), transparent 32%),
      linear-gradient(0deg, rgba(3,13,39,.34), transparent 40%);
  }
}

@media (max-width: 520px) {
  .topbar, .content, .portrait { width: calc(100% - 28px); }
  .content { padding: 38px 0 50px; }
  .office { margin-bottom: 21px; font-size: .61rem; letter-spacing: .135em; }
  h1 { font-size: clamp(3.85rem, 20vw, 5.2rem); line-height: .82; }
  .vote-line { margin-top: 27px; }
  .vote-line strong { font-size: clamp(3rem, 16vw, 4rem); }
  .slogan { margin-top: 24px; font-size: 1rem; }
  .whatsapp { width: 100%; margin-top: 27px; min-height: 58px; }
  .portrait { height: 76vw; min-height: 270px; max-height: 320px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
