/* ==========================================================================
   Missionária Lice 2020 — Deputada Federal | Bahia
   CSS mobile first. Sem frameworks.
   ========================================================================== */

:root {
  --roxo: #5B2A86;
  --roxo-escuro: #3A1560;
  --verde: #7CC242;
  --branco: #FFFFFF;
  --magenta: #E6007E;
  --lavanda: #F4EEF9;

  --f-titulo: "Montserrat", "Arial Black", Arial, sans-serif;
  --f-numero: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --f-cursiva: "Great Vibes", "Segoe Script", cursive;
  --f-texto: "Montserrat", Arial, Helvetica, sans-serif;

  --gutter: 16px;
  --raio: 14px;
  --header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--roxo-escuro);
  background: var(--roxo-escuro);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }

h1, h2, h3, p, figure, ul { margin: 0; }
ul[role="list"], .main-nav ul { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
  border-radius: 4px;
}
.about :focus-visible,
.proposals :focus-visible { outline-color: var(--roxo); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--verde);
  color: var(--roxo-escuro);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* âncoras não ficam escondidas atrás do header fixo */
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-white { background: var(--branco); color: var(--roxo); }
.btn-white:hover { background: #f1e9f8; }

.btn-green { background: var(--verde); color: var(--roxo-escuro); }
.btn-green:hover { background: #8ed152; box-shadow: 0 6px 18px rgba(124, 194, 66, .35); }


/* ---------- 1. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--roxo-escuro);
  border-bottom: 3px solid var(--verde);
  color: var(--branco);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 5, 40, .45); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "nav";
  align-items: center;
  column-gap: .75rem;
  padding-top: .5rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
}
.brand-lice {
  font-family: var(--f-cursiva);
  font-weight: 400;
  font-size: 1.6em;
  line-height: .8;
}
.brand-num {
  font-family: var(--f-numero);
  font-size: 1.35rem;
  color: var(--verde);
  letter-spacing: .02em;
}

.main-nav { grid-area: nav; }
.main-nav ul {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: 0;
}
.main-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: .55rem .15rem .6rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--verde); }

@media (min-width: 400px) {
  .main-nav ul { justify-content: flex-start; gap: 1.5rem; }
}

@media (min-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
    column-gap: 1.5rem;
    padding-block: .6rem;
  }
  .brand-name { font-size: 1.05rem; }
  .brand-num { font-size: 1.55rem; }
  .main-nav ul { justify-content: flex-end; gap: 1.5rem; }
  .main-nav a { font-size: .95rem; }
}

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--roxo-escuro);
  color: var(--branco);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-photo {
  order: -1;
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  height: min(100vw, 50svh);
  min-height: 280px;
  /* faixas diagonais atrás da foto */
  background:
    linear-gradient(118deg,
      transparent 0 38%,
      var(--verde) 38% 52%,
      transparent 52% 55%,
      var(--magenta) 55% 56%,
      transparent 56%),
    linear-gradient(180deg, var(--roxo) 0%, var(--roxo-escuro) 100%);
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
/* funde a foto com o fundo roxo */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(58, 21, 96, 0) 0%, var(--roxo-escuro) 70%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 3;
  margin-top: -2.25rem;
  padding-bottom: 3rem;
  text-align: center;
}

.eyebrow {
  font-weight: 700;
  font-size: clamp(.7rem, 3.3vw, .85rem);
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.eyebrow .sep { color: var(--verde); margin-inline: .25rem; }

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: .4rem;
  line-height: 1;
  font-weight: 400;
}
.hero-missionaria {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(1.45rem, 7.4vw, 2.1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-lice {
  font-family: var(--f-cursiva);
  font-size: clamp(5rem, 27vw, 8.5rem);
  line-height: 1.05;
  margin-top: .02em;
  padding-inline: .15em; /* evita cortar o traço da cursiva */
}

.hero-number {
  font-family: var(--f-numero);
  font-size: clamp(7rem, 38vw, 15rem);
  line-height: .9;
  color: var(--verde);
  letter-spacing: .01em;
  margin-top: .1em;
}

.slogan {
  margin-top: .75rem;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: clamp(1rem, 4.6vw, 1.35rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.slogan .dot { color: var(--magenta); margin-inline: .2em; }

.hero-phrase {
  margin-top: .35rem;
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
  font-weight: 500;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  padding: .3rem .35rem .3rem 1rem;
  border: 2px solid var(--branco);
  border-radius: 999px;
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.selo-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding-inline: .4rem;
  border-radius: 999px;
  background: var(--verde);
  color: var(--roxo-escuro);
  letter-spacing: 0;
}

.hero-ctas {
  display: grid;
  gap: .75rem;
  margin-top: 1.75rem;
}

@media (min-width: 560px) {
  .hero-ctas { grid-template-columns: auto auto; justify-content: center; }
  .hero-number { font-size: clamp(7rem, 30vw, 13rem); }
}

@media (min-width: 1024px) {
  .main-nav ul { gap: 2rem; }
}

@media (min-width: 900px) {
  .hero {
    background:
      linear-gradient(118deg,
        transparent 0 58%,
        var(--verde) 58% 66%,
        transparent 66% 67.5%,
        var(--magenta) 67.5% 68%,
        transparent 68%),
      linear-gradient(90deg, var(--roxo-escuro) 0 50%, var(--roxo) 100%);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: end;
    min-height: min(calc(100svh - var(--header-h)), 820px);
  }
  .hero-photo {
    order: 0;
    margin-inline: 0;
    height: 100%;
    min-height: 560px;
    background: none;
  }
  .hero-photo img {
    object-position: 50% 8%;
    /* suaviza o corte lateral da foto original */
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 7%);
    mask-image: linear-gradient(to left, transparent 0, #000 7%);
  }
  .hero-photo::after { display: none; }
  .hero-text {
    align-self: center;
    margin-top: 0;
    padding-block: 3.5rem;
    text-align: left;
  }
  .hero-name { align-items: flex-start; }
  .hero-lice { padding-inline: 0 .15em; margin-left: -.05em; }
  .hero-number { font-size: clamp(9rem, 16vw, 14rem); }
  .hero-ctas { justify-content: start; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }

.section-title {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--roxo);
}
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 7px;
  margin-top: .6rem;
  background: var(--verde);
  transform: skewX(-24deg);
  border-radius: 2px;
}
.section-title--center { text-align: center; }
.section-title--center::after { margin-inline: auto; }
.section-title--light { color: var(--branco); }

/* ---------- 3. Quem sou ---------- */
.about { background: var(--branco); }

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-right: 12px;
  border-radius: 20px;
  background: var(--lavanda);
  box-shadow: 12px 12px 0 var(--verde);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.about-text p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 60ch;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4.5rem; }
  .about-photo { box-shadow: 18px 18px 0 var(--verde); margin-right: 18px; }
  .about-text p { font-size: 1.35rem; line-height: 1.7; }
}

/* ---------- 4. Propostas ---------- */
.proposals {
  background: var(--lavanda);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "text text";
  align-items: center;
  column-gap: 1rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--branco);
  border-radius: 18px;
  border-top: 6px solid var(--verde);
  box-shadow: 0 10px 30px rgba(58, 21, 96, .08);
}

.card-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--roxo);
}
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--verde);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  grid-area: title;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--roxo);
}
.card p {
  grid-area: text;
  align-self: start;
  margin-top: .85rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .card {
    flex-basis: calc(50% - .625rem);
    flex-grow: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "icon" "title" "text";
    align-items: start;
    padding: 1.75rem 1.5rem 1.9rem;
  }
  .card-icon { width: 60px; height: 60px; }
  .card-icon svg { width: 32px; height: 32px; }
  .card h3 { margin-top: 1.1rem; }
  .card p { margin-top: .6rem; }
}
@media (min-width: 1024px) {
  .cards { gap: 1.5rem; }
  .card { flex-basis: calc((100% - 3rem) / 3); }
}

/* ---------- 5. Faixa de chamada ---------- */
.band {
  position: relative;
  background: var(--verde);
  color: var(--roxo-escuro);
  padding-block: clamp(3.5rem, 10vw, 5.5rem);
  overflow: hidden;
}
/* faixa diagonal roxa decorativa */
.band::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 38%;
  height: 140%;
  background: rgba(58, 21, 96, .09);
  transform: skewX(-22deg);
  pointer-events: none;
}

.band-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: center;
}

.band-title {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(1.6rem, 6.4vw, 2.6rem);
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 22ch;
}

.band-number {
  font-family: var(--f-numero);
  font-size: clamp(6.5rem, 36vw, 11rem);
  line-height: .95;
  margin-top: .5rem;
  color: var(--roxo-escuro);
}

.band-urna { width: 100%; max-width: 360px; }
.urna { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(58, 21, 96, .25)); }

@media (min-width: 900px) {
  .band-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 3rem;
  }
  .band-urna { justify-self: end; max-width: 400px; }
}

/* ---------- 6. Contato e redes ---------- */
.contact {
  background: var(--roxo);
  color: var(--branco);
}

.social {
  display: grid;
  gap: 1rem;
  margin: 2.5rem auto 0;
  max-width: 960px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 64px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--branco);
  color: var(--roxo);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.social-btn .icon { width: 28px; height: 28px; }
.social-btn:hover { transform: translateY(-2px); background: #f1e9f8; }

.contact-lines {
  display: grid;
  gap: .9rem;
  justify-content: center;
  margin-top: 2.25rem;
  font-size: 1.1rem;
}
.contact-lines li {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.contact-lines .icon { width: 24px; height: 24px; color: var(--verde); }
.contact-lines a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { text-decoration-color: var(--verde); }

@media (min-width: 768px) {
  .social { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .contact-lines { grid-auto-flow: column; gap: 2.5rem; }
}

/* ---------- 7. Rodapé (obrigatório) ---------- */
.site-footer {
  background: var(--roxo-escuro);
  color: var(--branco);
  border-top: 4px solid var(--verde);
  padding: 1.75rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 1rem;   /* 16px — mínimo exigido: 14px */
  line-height: 1.6;
  overflow-wrap: break-word;
}
.legal-1 { font-weight: 600; }
.legal-1 strong { font-weight: 800; }
.legal-2 { margin-top: .5rem; font-weight: 500; }

/* ---------- Imagem ausente (fallback discreto) ---------- */
.media.img-missing img { visibility: hidden; }

/* ---------- Animações de entrada (somente se o usuário não pediu movimento reduzido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-text > * { animation: sobe .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .22s; }
  .hero-text > :nth-child(6) { animation-delay: .26s; }
  .hero-text > :nth-child(7) { animation-delay: .3s; }

  .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .reveal.reveal-hidden { opacity: 0; transform: translateY(24px); }
  .cards .card:nth-child(2) { transition-delay: .07s; }
  .cards .card:nth-child(3) { transition-delay: .14s; }
  .cards .card:nth-child(5) { transition-delay: .07s; }
  .social li:nth-child(2) { transition-delay: .07s; }
  .social li:nth-child(3) { transition-delay: .14s; }
}

@keyframes sobe {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
