/* =========================================================
   Bosco Carneiro 11113 — Deputado Estadual
   Modelo/estrutura/efeitos baseados no site de referência
   (mesmo esqueleto: header, hero c/ parallax, biografia com
   auto-scroll, feitos, jingle, redes sociais, footer),
   com identidade visual do candidato (cores, fontes e
   elementos gráficos extraídos do logo e da CARTELA04).
   ========================================================= */

@font-face {
  font-family: "BuiltTitling";
  src: url("../assets/fonts/BuiltTitling-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Swiss721Condensed";
  src: url("../assets/fonts/Swiss721-Condensed.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Swiss721Condensed";
  src: url("../assets/fonts/Swiss721-BoldCondensed.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paleta extraída do logo, do número e da CARTELA04 */
  --navy: #004898;
  --navy-dark: #003872;
  --navy-darker: #001f45;
  --red: #e84838;
  --red-dark: #c73326;
  --gold: #f8c000;
  --gold-bg: #f8d000;
  --gold-bg-deep: #e0ad00;
  --sky: #1898d0;
  --pale-yellow: #f8f098;
  --cream: #fdf8ea;
  --cream-soft: #fffdf6;
  --ink: #17233f;

  --font-heading: "BuiltTitling", "Arial Narrow", sans-serif;
  --font-body: "Swiss721Condensed", "Arial Narrow", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: var(--font-heading); }

/* O efeito de "aparecer ao rolar" só é aplicado depois que o JavaScript
   confirma que rodou (classe "js-ready" adicionada no início do script.js).
   Assim, se o JavaScript não executar por algum motivo — por exemplo, ao
   abrir o HTML dentro do preview do Mail/Arquivos/WhatsApp no iPhone, em
   vez da Safari propriamente — o conteúdo aparece normalmente, sem ficar
   invisível esperando uma animação que nunca vai rodar. */
:root.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
:root.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.placeholder-note {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: rgba(232,72,56,.1);
  border: 1px dashed rgba(232,72,56,.4);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(to bottom, rgba(0,31,69,.6), rgba(0,31,69,0));
  pointer-events: none;
}
.site-header .header-inner { pointer-events: auto; }

.header-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand { display: block; }
.header-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 22px;
  border-radius: 999px;
}
.main-nav a {
  color: var(--cream);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .2s ease, opacity .2s ease;
  opacity: .92;
}
.main-nav a:hover { opacity: 1; color: var(--gold); }

.nav-number {
  background: var(--navy-dark);
  border: 1px solid rgba(248,240,152,.35);
  color: var(--pale-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 2px, transparent 2px 16px),
    radial-gradient(120% 140% at 22% 26%, var(--gold-bg) 0%, var(--gold-bg) 45%, var(--gold-bg-deep) 78%, #c99700 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 20px 0;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .95;
  will-change: transform;
}
.hero-deco img { width: 100%; height: 100%; object-fit: contain; }

/* mosaico colorido de triângulos — ecoa a CARTELA04, ancorado à esquerda */
.hero-deco--mosaic {
  left: -11%;
  bottom: -16%;
  width: min(24vw, 300px);
  aspect-ratio: 1400 / 710;
  opacity: .9;
}

/* faixa vertical de triângulos vermelhos — moldura decorativa na borda direita */
.hero-deco--border {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(6vw, 78px);
  opacity: .85;
}
.hero-deco--border img { object-fit: cover; object-position: center; }

/* grade fina (linhas do triângulo) — textura sutil de fundo, grande, meio-tom */
.hero-deco--grade {
  top: -10%;
  left: 10%;
  width: min(60vw, 760px);
  aspect-ratio: 1400 / 809;
  opacity: .16;
  mix-blend-mode: multiply;
}

/* foto: full-bleed à direita, ancorada na base da seção (mesma estrutura do modelo original) */
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 52%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}
.hero-photo img {
  width: auto;
  height: min(94vh, 980px);
  max-width: none;
  filter: drop-shadow(-24px 24px 40px rgba(0,31,69,.35));
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
}

.hero-content {
  flex: 1 1 480px;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 110px;
  /* afasta logo/slogan/número da borda esquerda (só no desktop — ver media query) */
  margin-left: 1cm;
}

.hero-logo {
  position: relative;
  width: clamp(300px, 32vw, 460px);
  will-change: transform;
}
.hero-logo img { position: relative; z-index: 1; }
.hero-logo-glow {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(248,192,0,.65) 0%, rgba(232,72,56,.28) 45%, rgba(232,72,56,0) 72%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.hero-tagline {
  width: clamp(260px, 30vw, 420px);
  margin: 6px 0 10px;
  will-change: transform;
}

.hero-number {
  display: inline-flex;
  background: var(--navy);
  border: 6px solid var(--navy-dark);
  padding: 12px 34px;
  border-radius: 10px;
  will-change: transform;
}
.hero-number span {
  color: var(--pale-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.2rem);
  letter-spacing: .01em;
  line-height: 1;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(0,31,69,.55);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--navy-darker);
  border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   BIOGRAFIA
   ========================================================= */
.bio {
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
  padding: 90px 20px;
}
.bio-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* marca-d'água decorativa — a mesma seta do "O" do logo, bem sutil, ecoando a identidade nas outras seções */
.section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  mix-blend-mode: multiply;
}
.section-deco img { width: 100%; height: 100%; object-fit: contain; }

.bio .section-deco--seta {
  top: -8%;
  right: -3%;
  width: min(30vw, 380px);
  aspect-ratio: 940 / 1200;
}
.bio-kicker {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-bottom: 2px;
}
.bio-heading h2 {
  font-weight: 700;
  color: var(--navy-darker);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.bio-scroll-frame {
  position: relative;
  height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  border-radius: 16px;
  cursor: default;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bio-scroll-frame::-webkit-scrollbar { display: none; }
.bio-scroll-frame:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.bio-text-block { padding-bottom: 34px; }

.bio-text {
  font-weight: 400;
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
  text-align: left;
}

.bio-hint {
  margin: 10px 0 0;
  font-size: .8rem;
  font-weight: 400;
  color: var(--navy);
  opacity: .75;
}

.bio-motto {
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--navy-darker);
  font-weight: 400;
}
.bio-motto strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

/* =========================================================
   FEITOS
   ========================================================= */
.feitos {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 90px 20px;
  border-top: 1px solid rgba(0,31,69,.08);
}
.feitos-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }

.feitos .section-deco--seta {
  top: -10%;
  left: -4%;
  width: min(26vw, 340px);
  aspect-ratio: 940 / 1200;
  transform: scaleX(-1);
}

.feitos-heading { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.feitos-kicker {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  margin-bottom: 6px;
}
.feitos-heading h2 {
  font-weight: 700;
  color: var(--navy-darker);
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.feitos-lead {
  margin: 18px 0 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: .85;
}

.feitos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.feitos-card {
  background: var(--cream-soft);
  border-radius: 18px;
  padding: 30px 28px 32px;
  border-top: 5px solid var(--red);
  box-shadow: 0 18px 40px rgba(0,31,69,.1);
}
.feitos-card--red { border-top-color: var(--red); }
.feitos-card--navy { border-top-color: var(--navy); }
.feitos-card--sky { border-top-color: var(--sky); }

.feitos-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-darker);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.feitos-card--red h3 { color: var(--red-dark); }
.feitos-card--navy h3 { color: var(--navy); }
.feitos-card--sky h3 { color: #106f98; }

.feitos-card-lead {
  font-size: .92rem;
  font-weight: 400;
  color: var(--ink);
  opacity: .8;
  margin: 0 0 14px;
}

.feitos-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feitos-card li {
  position: relative;
  padding-left: 22px;
  font-size: .96rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}
.feitos-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.feitos-card--red li::before { background: var(--red); }
.feitos-card--navy li::before { background: var(--navy); }
.feitos-card--sky li::before { background: var(--sky); }

.feitos-card li strong { font-weight: 700; }

.feitos-stat {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(232,72,56,.12);
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.feitos-outro {
  text-align: center;
  max-width: 700px;
  margin: 56px auto 0;
}
.feitos-outro p {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.feitos-outro p.feitos-motto {
  margin-top: 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--navy-darker);
  font-weight: 400;
}
.feitos-motto strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .feitos-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   JINGLE
   ========================================================= */
.jingle {
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid rgba(0,31,69,.08);
}
.jingle-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* selo do número 11113 — a arte pronta, "colada" como adesivo perto do título do jingle */
.jingle-number-badge {
  position: absolute;
  top: 106px;
  right: clamp(10px, 6vw, 90px);
  width: clamp(90px, 10vw, 130px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 18px rgba(0,31,69,.25));
  z-index: 1;
}

@media (max-width: 700px) {
  .jingle-number-badge { display: none; }
}

.jingle-kicker {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-bottom: 6px;
}
.jingle h2 {
  font-weight: 700;
  color: var(--navy-darker);
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.jingle-sub {
  margin: 12px 0 36px;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--ink);
  opacity: .85;
}
.jingle-sub strong { font-family: var(--font-heading); font-weight: 700; color: var(--navy); text-transform: uppercase; }

.jingle-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.jingle-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 16px;
  color: var(--cream);
  box-shadow: 0 18px 34px rgba(0,31,69,.18);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
}
.jingle-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0,31,69,.26);
}
.jingle-btn--soundcloud { background: var(--red-dark); }
.jingle-btn--suamusica { background: var(--navy); }

.jingle-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
}
.jingle-icon svg { width: 100%; height: 100%; }

.jingle-btn-text { display: flex; flex-direction: column; gap: 2px; }
.jingle-btn-text strong { font-size: 1rem; font-weight: 700; }
.jingle-btn-text small {
  font-size: .74rem;
  font-weight: 400;
  opacity: .85;
  letter-spacing: .03em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .jingle-buttons { flex-direction: column; align-items: stretch; }
  .jingle-btn { justify-content: flex-start; }
}

/* =========================================================
   REDES SOCIAIS
   ========================================================= */
.social {
  background: var(--navy-darker);
  padding: 90px 20px;
  text-align: center;
}
.social-inner { max-width: 760px; margin: 0 auto; }
.social h2 {
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-transform: uppercase;
}
.social-sub {
  color: rgba(253,248,234,.75);
  font-weight: 400;
  margin: 10px 0 0;
  font-size: 1.05rem;
}

.social-tagline {
  color: var(--cream);
  font-weight: 400;
  font-size: 1rem;
  max-width: 560px;
  margin: 14px auto 36px;
  line-height: 1.6;
}
.social-tagline strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(253,248,234,.08);
  border: 1px solid rgba(253,248,234,.25);
  color: var(--cream);
  font-size: .98rem;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.social-link:hover {
  transform: translateY(-3px);
  background: var(--red);
  border-color: var(--red);
}
.social-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}
.social-icon svg { width: 100%; height: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-darker);
  border-top: 1px solid rgba(253,248,234,.15);
  padding: 26px 20px 34px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 14px;
}
.footer-logo {
  height: 36px;
  opacity: .92;
}
.footer-slogan-stack {
  height: 50px;
  opacity: .85;
}
.footer-divider {
  width: 1px;
  height: 34px;
  background: rgba(253,248,234,.25);
}
@media (max-width: 480px) {
  .footer-slogan-stack { display: none; }
  .footer-divider { display: none; }
}
.site-footer p {
  color: rgba(253,248,234,.6);
  font-size: .82rem;
  font-weight: 400;
  margin: 0;
}
.site-footer p.footer-legal {
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .02em;
  opacity: .7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-darker);
    border-radius: 18px;
    padding: 18px 22px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 110px 0 0;
  }
  .hero-deco--mosaic { width: 38vw; opacity: .7; left: -10%; bottom: -8%; }
  .hero-deco--border { width: 5vw; }
  .hero-deco--grade { width: 80vw; opacity: .14; }

  /* conteúdo primeiro, foto por último — ancorada na base da tela */
  .hero-inner { order: 1; justify-content: center; text-align: center; padding: 0 20px; }
  .hero-photo {
    order: 2;
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    margin: 14px 0 0;
  }
  .hero-photo img {
    height: auto;
    width: 82%;
    max-width: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 30px rgba(0,31,69,.3));
  }

  .hero-content { align-items: center; max-width: 100%; padding-bottom: 20px; margin: 0 auto; }
  .hero-tagline { margin-left: 0; }
  /* logo reduzida no mobile — no desktop ela usa clamp(300px, 32vw, 460px) */
  .hero-logo { width: clamp(192px, 21vw, 294px); }
}

@media (max-width: 560px) {
  .hero-deco--mosaic { width: 44vw; }
  .bio-scroll-frame { height: 210px; }
}
