/* =========================================================
   Rose Modesto — capa de pré-campanha
   Sem número, sem cargo pleiteado, sem pedido de voto.
   Fica no ar até 16/08/2026, quando o site completo assume.
   ========================================================= */

:root {
  --amarelo:     #FFCC00;
  --amarelo-luz: #FFE066;
  --azul:        #004887;
  --azul-deep:   #00305C;
  --grafite:     #373435;
  --branco:      #FFFFFF;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-script: "Kaushan Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.55;
  background: var(--amarelo);
  color: var(--azul-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: 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;
}

:focus-visible {
  outline: 3px solid var(--azul-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Capa ---------- */
.capa {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 1.5rem;
}

.capa__deco {
  position: absolute;
  right: -22vw; top: -20vw;
  width: 62vw; height: 62vw;
  max-width: 760px; max-height: 760px;
  background: var(--amarelo-luz);
  border-radius: 50%;
  opacity: .6;
  pointer-events: none;
}

.capa__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1560px, 96vw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 2.5vw, 2rem);
  display: grid;
  gap: 1.15rem;
  align-items: end;
  min-height: 100svh;
}

/* retrato + mapa */
.capa__foto {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  line-height: 0;
}
.capa__foto picture { position: relative; z-index: 1; display: block; }
.capa__foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 14px 32px rgba(0, 33, 68, .3));
}
.capa__mapa {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 2%;
  height: 78%;
  aspect-ratio: .982;
  transform: translateX(-50%);
  background: url("../assets/mapa-ms.svg") center / contain no-repeat;
}

/* nome */
.capa__copy { text-align: center; padding-bottom: .75rem; }

.capa__nome,
.capa__sobrenome {
  width: min(340px, 82%);
  margin-inline: auto;
}
.capa__sobrenome { margin-top: 2.6%; }

.capa__frase {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 4.4vw, 2rem);
  line-height: 1.32;
  color: var(--azul);
  /* o ch é medido nesta fonte, que é grande — no pai sairia estreito demais */
  max-width: 26ch;
  text-wrap: balance;
}

.capa__bio {
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  font-size: clamp(.86rem, 1.35vw, 1rem);
  font-weight: 600;
  color: var(--grafite);
  max-width: 52ch;
}

.capa__redes {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.capa__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--azul-deep);
  color: var(--amarelo);
  transition: transform 200ms ease, background-color 200ms ease;
}
.capa__redes a:hover,
.capa__redes a:focus-visible {
  transform: translateY(-3px);
  background: var(--azul);
}
.capa__redes svg { width: 22px; height: 22px; }

/* no mobile a foto vem depois do nome e não pode empurrar tudo para fora da tela */
@media (max-width: 899.98px) {
  .capa__foto img { max-height: 40svh; width: auto; max-width: 100%; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .capa { padding-top: 0; }

  .capa__inner {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .capa__foto {
    position: absolute;
    inset: auto auto 0 0;
    width: min(46%, calc(100svh * .66));
    aspect-ratio: 1905 / 3035;
    height: auto;
    max-height: calc(100% - clamp(28px, 7vh, 88px));
    margin-inline: 0;
    z-index: 1;
  }
  .capa__foto picture { display: block; height: 100%; }
  .capa__foto img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 0%;
    filter: none;
  }
  .capa__mapa {
    left: 54%;
    bottom: 17%;
    width: 104%;
    height: auto;
    aspect-ratio: .982;
  }

  .capa__copy {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-self: center;
    padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
  }
  .capa__nome,
  .capa__sobrenome { margin-inline: 0; width: min(560px, 100%); }
  .capa__frase,
  .capa__bio { margin-inline: 0; }
  .capa__redes { justify-content: flex-start; }
}

@media (min-width: 1600px) {
  .capa__inner { max-width: 1380px; }
  .capa__nome, .capa__sobrenome { width: min(600px, 100%); }
}
