:root {
  --red: #ed1c26;
  --red-dark: #cf2e27;
  --yellow: #f9ca1a;
  --pink: #f59cad;
  --purple: #4d2d7f;
  --lilac: #94509f;
  --green: #21a66e;
  --blue: #24a4d2;
  --ink: #191919;
  --muted: #686868;
  --paper: #ffffff;
  --soft: #f7f5f2;
  --border: rgba(25, 25, 25, 0.12);
  --shadow: 0 18px 60px rgba(38, 18, 17, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: min(1180px, calc(100% - 40px));
  --font: "General Sans", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: 108px 0; overflow: clip; }
.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;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 9999; padding: 10px 14px;
  background: white; color: var(--ink); border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 35px rgba(0,0,0,.06); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-brand img { width: 178px; height: auto; padding: 20px;}
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: .94rem; }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { background: var(--red); color: white; border-radius: 999px; padding: 11px 19px; transition: .2s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237,28,38,.22); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s ease; }

/* Hero */
.hero {
  min-height: calc(100vh - 78px); position: relative; display: grid; align-items: stretch;
  background: var(--red); isolation: isolate; overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,.08), transparent 34%),
                    linear-gradient(118deg, transparent 0 60%, rgba(255,255,255,.05) 60% 60.5%, transparent 60.5%);
}
.hero-collage {
  position: absolute; z-index: -1; right: -3%; top: 0; width: min(48vw, 740px); height: 100%; opacity: .16;
  background: linear-gradient(90deg, var(--red) 0%, rgba(237,28,38,.2) 28%, rgba(237,28,38,0) 100%),
              url("../img/iriny/fundo-fotos-iriny.png") center / cover no-repeat;
  mix-blend-mode: multiply;
}
.hero-grid {
  min-height: calc(100vh - 78px); display: grid; grid-template-columns: .92fr 1.08fr; gap: 30px; align-items: center;
}
.hero-copy { z-index: 2; padding: 56px 0 82px; }
.hero-logo { width: min(545px, 92%); filter: drop-shadow(0 20px 30px rgba(110,0,7,.15)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; letter-spacing: -.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-yellow { background: var(--yellow); color: #241b00; box-shadow: 0 14px 34px rgba(160,105,0,.18); }
.btn-light { color: white; border: 2px solid rgba(255,255,255,.92); background: rgba(255,255,255,.08); }
.btn-red { background: var(--red); color: white; box-shadow: 0 14px 32px rgba(237,28,38,.2); }
.hero-photo-wrap { position: relative; align-self: end; min-height: 650px; }
.hero-photo {
  position: absolute; right: -2%; bottom: 0; width: min(630px, 95%); max-height: calc(100vh - 102px); object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 22px 44px rgba(82,0,4,.20));
}
.hero-star { position: absolute; background: var(--yellow); clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 34%); }
.star-one { width: 72px; height: 72px; right: 10%; top: 12%; transform: rotate(10deg); opacity: .9; }
.star-two { width: 34px; height: 34px; left: 7%; bottom: 28%; transform: rotate(-17deg); opacity: .75; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--purple); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 9px; opacity: .92;
}
.scroll-cue b { font-size: 1.25rem; animation: bounce 1.6s infinite; }
@keyframes bounce { 50% { transform: translateY(5px); } }

/* Typography */
.eyebrow { display: inline-block; color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-weight: 900; font-size: .78rem; margin-bottom: 10px; }
.eyebrow-light { color: var(--yellow); }
.section h2 { margin: 0; font-size: clamp(2.2rem, 4.3vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.section-heading { max-width: 790px; margin-bottom: 46px; }
.section-heading p { max-width: 690px; color: var(--muted); margin-top: 20px; font-size: 1.08rem; }

/* About */
.section-about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 76px; align-items: center; }
.about-photo { position: relative; min-height: 690px; display: grid; align-items: end; justify-items: center; }
.about-photo .photo-shape {
  position: absolute; inset: 8% 0 0; border-radius: 48% 48% 22% 22% / 25% 25% 20% 20%;
  background: linear-gradient(150deg, #fff6de, #ffe461 55%, #f9ca1a); transform: rotate(-2deg);
}
.about-photo::after {
  content: ""; position: absolute; width: 128px; height: 128px; left: -24px; top: 12%; border: 24px solid var(--pink); border-radius: 50%; opacity: .65;
}
.about-photo img { position: relative; z-index: 2; max-height: 675px; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(0,0,0,.12)); 
-webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 85%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 85%,
        transparent 100%
    );
}
.about-copy h2 { max-width: 750px; }
.about-copy p { color: #424242; font-size: 1.03rem; margin: 18px 0; }
.about-copy .about-final { font-weight: 650; color: var(--ink); }
.vote-line { display: inline-block; margin-top: 12px; padding: 12px 17px; border-radius: 12px; background: #fff4f4; color: var(--red); }

/* Flags */
.section-bandeiras { background: var(--soft); }
.flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.flag-card {
  background: white; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-md); padding: 30px; min-height: 100%; box-shadow: 0 12px 40px rgba(23,18,18,.045);
}
.flag-icon { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 25px; }
.flag-icon img { max-width: 78px; max-height: 78px; }
.flag-card h3 { margin: 0 0 13px; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.035em; }
.flag-card > p { color: #555; margin: 0 0 18px; }
.flag-card details { border-top: 1px solid var(--border); padding-top: 14px; }
.flag-card summary { list-style: none; cursor: pointer; color: var(--red); font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.flag-card summary::-webkit-details-marker { display: none; }
.flag-card summary::after { content: "+"; font-size: 1.4rem; }
.flag-card details[open] summary::after { content: "–"; }
.flag-card details p { color: #555; font-size: .94rem; margin: 14px 0 0; }

/* Support CTA */
.support-cta { background: var(--red); color: white; padding-bottom: 0; }
.support-cta::before { content: ""; position: absolute; inset: 0; background: url("../img/branding/base-vermelha.png") left bottom / 65% auto no-repeat; opacity: .15; pointer-events: none; }
.support-grid { min-height: 610px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; position: relative; z-index: 1; }
.support-copy { padding-bottom: 100px; max-width: 610px; }
.support-copy h2 { font-size: clamp(3rem, 6vw, 6.2rem); }
.support-copy p { font-size: 1.2rem; max-width: 560px; color: rgba(255,255,255,.88); margin: 24px 0 30px; }
.support-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.text-link { font-weight: 750; color: white; border-bottom: 1px solid rgba(255,255,255,.55); }
.support-photo { align-self: end; min-height: 540px; display: flex; align-items: flex-end; justify-content: center; }
.support-photo img { max-height: 650px; object-fit: contain; filter: drop-shadow(0 25px 30px rgba(82,0,4,.2)); 
  -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 70%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 70%,
        transparent 100%
    );
}

/* Team */
.section-team { background: white; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 24px; }
.team-card { border-radius: var(--radius-md); overflow: hidden; background: #f5f5f5; border: 1px solid rgba(0,0,0,.06); }
.team-photo { height: 410px; display: grid; align-items: end; justify-items: center; overflow: hidden; background: linear-gradient(180deg,#f4f7f9,#eef1f3); }
.team-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.team-photo-lula img { object-fit: cover; object-position: center top; }
.team-info { background: white; padding: 18px 20px 22px; }
.team-info span { color: var(--red); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.team-info h3 { margin: 3px 0 0; font-size: 1.5rem; letter-spacing: -.03em; }
.team-text { margin-top: 42px; max-width: 920px; display: grid; gap: 14px; }
.team-text p { margin: 0; color: #474747; }
.team-text strong { color: var(--red); font-size: 1.15rem; }

/* Donate */
.section-donate { background: #fff8d9; }
.donate-bg { position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(var(--red) 1.6px, transparent 1.6px); background-size: 28px 28px; }
.donate-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.donate-copy { max-width: 700px; }
.donate-copy p { color: #5a4e31; max-width: 620px; font-size: 1.08rem; margin: 24px 0 30px; }
.donate-mark { display: grid; place-items: center; }
.donate-mark img { width: min(380px, 92%); }

/* Gallery */
.section-gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 330px; gap: 14px; }
.gallery-item { margin: 0; border-radius: 20px; overflow: hidden; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-tall img { object-position: center top; }
.gallery-wide img { object-position: center 22%; }

/* Social */
.social-section { background: var(--purple); color: white; }
.social-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.social-copy p { color: rgba(255,255,255,.76); max-width: 470px; font-size: 1.08rem; }
.social-links { display: grid; gap: 10px; }
.social-links a { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.05); font-weight: 800; transition: .2s ease; }
.social-links a:hover { background: rgba(255,255,255,.12); transform: translateX(5px); }
.social-links b { font-size: 1.25rem; }

/* WhatsApp */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; align-items: center; gap: 10px;
  padding: 12px 17px 12px 13px; background: #19a95b; color: white; border-radius: 999px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(14,113,61,.3); transition: .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Footer */
.site-footer { padding: 42px 0; border-top: 1px solid var(--border); background: #fff; }
.footer-grid { display: grid; grid-template-columns: .75fr 1.5fr .5fr; gap: 30px; align-items: center; }
.footer-brand img { width: 220px; }
.footer-legal { font-size: .9rem; color: #555; }
.footer-legal p { margin: 3px 0; }
.back-top { justify-self: end; color: var(--red); font-weight: 800; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  :root { --container: min(100% - 30px, 760px); }
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 78px; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .nav-cta { text-align: center; }

  .hero { min-height: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 25px; }
  .hero-copy { padding: 35px 0 0; text-align: center; }
  .hero-logo { margin-inline: auto; width: min(480px, 85%); }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { min-height: 590px; }
  .hero-photo { left: 50%; right: auto; transform: translateX(-50%); max-height: 620px; }
  .hero-collage { width: 90%; opacity: .11; }
  .scroll-cue { display: none; }

  .about-grid, .support-grid, .donate-grid, .social-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 35px; }
  .about-photo { min-height: 570px; order: 2; }
  .about-copy { order: 1; }
  .flag-grid, .team-grid { grid-template-columns: 1fr; }
  .flag-card { min-height: 0; }
  .support-grid { min-height: auto; }
  .support-copy { padding-bottom: 10px; }
  .support-photo { min-height: 420px; }
  .support-photo img { max-height: 500px;
  -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
  
  }
  .team-photo { height: 460px; }
  .donate-mark img { width: min(330px,80%); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 300px; }
  .gallery-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .back-top { justify-self: center; }
}

@media (max-width: 620px) {
  :root { --container: calc(100% - 24px); --radius-md: 18px; }
  .header-inner { min-height: 70px; }
  .header-brand img { width: 155px; }
  .main-nav { top: 70px; }
  .section { padding: 68px 0; }
  .section h2 { font-size: clamp(2.15rem, 11vw, 3.6rem); }
  .hero-grid { padding-top: 0; }
  .hero-copy { padding-top: 30px; }
  .hero-logo { width: min(420px, 92%); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .btn { min-height: 49px; padding: 0 16px; }
  .hero-photo-wrap { min-height: 485px; }
  .hero-photo { width: min(530px, 118%); max-height: 530px; }
  .star-one { width: 48px; height: 48px; }
  .about-photo { min-height: 470px; }
  .about-photo img { max-height: 500px; }
  .about-copy p { font-size: .98rem; }
  .flag-card { padding: 23px; }
  .support-copy h2 { font-size: 3.7rem; }
  .support-copy p { font-size: 1.04rem; }
  .support-photo { min-height: 350px; }
  .support-photo img { max-height: 410px; }
  .team-photo { height: 390px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 390px; }
  .gallery-tall { grid-row: span 1; }
  .gallery-wide { grid-column: span 1; }
  .gallery-item img { object-position: center top; }
  .whatsapp-float { width: 56px; height: 56px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .whatsapp-float span { display: none; }
  .footer-brand img { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
