/* ===========================
   VARIÁVEIS E RESET
   =========================== */

:root {
  --rosa-principal: #F4A8C1;
  --rosa-vibrante: #E85A8C;
  --rosa-escuro: #8B2E52;
  --azul-escuro: #06467E;
  --creme: #FFF8F5;
  --branco: #FFFFFF;
  --cinza-texto: #3D4451;
  --cinza-claro: #E2E8F0;
  --cor-texto-sec: #6B6B6B;
  --cor-escuro: #1A1A1A;
  --fonte: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transicao: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fonte);
  color: var(--cinza-texto);
  background-color: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--branco);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--cinza-claro);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.header-toggle {
  order: -1;
  flex-shrink: 0;
}

.header-logo {
  order: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-cta {
  order: 1;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .header-toggle {
    order: unset;
  }

  .header-logo {
    order: unset;
    position: static;
    transform: none;
    justify-self: start;
  }

  .header-cta {
    order: unset;
    justify-self: end;
  }
}

.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cinza-texto);
  border-radius: 3px;
  transition: var(--transicao);
}

.header-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.header-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.header-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--branco);
  box-shadow: var(--sombra);
  padding: 20px 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-nav.active {
  display: flex;
}

.header-nav a {
  color: var(--cinza-texto);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 20px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--rosa-vibrante);
}

.header-cta {
  padding: 10px 24px;
  font-size: 15px;
}

.header-cta.btn--primary {
  border-radius: 25px;
}

/* ===========================
   HERO
   =========================== */

.hero {
  background: var(--creme);
  padding: 120px 0 80px;
}

.hero .container {
  padding: 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 90, 140, 0.1);
  color: var(--rosa-vibrante);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  color: var(--rosa-escuro);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cinza-texto);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-link {
  color: var(--rosa-vibrante);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}

.btn-link:hover {
  transform: translateX(4px);
}

.hero-donate {
  display: inline-block;
  padding: 14px 20px;
  border: 1.5px dashed var(--rosa-principal);
  border-radius: 12px;
  color: var(--cinza-texto);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}

.hero-donate strong {
  color: var(--rosa-vibrante);
}

.hero-donate:hover {
  background: rgba(244, 168, 193, 0.1);
  border-style: solid;
}

/* Polaroids */
.hero-polaroids {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.polaroid {
  position: absolute;
  background: var(--branco);
  padding: 10px 10px 36px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, z-index 0.3s;
}

.polaroid--1:hover {
  z-index: 10 !important;
  transform: rotate(0deg) scale(1.05);
}

.polaroid--2:hover {
  z-index: 10 !important;
  transform: rotate(0deg) scale(1.05);
}

.polaroid--3:hover {
  z-index: 10 !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.polaroid--1 {
  width: 55%;
  height: 280px;
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 1;
}

.polaroid--2 {
  width: 55%;
  height: 280px;
  bottom: 0;
  right: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.polaroid--3 {
  width: 62%;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 3;
}

/* ===========================
   BOTÕES
   =========================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--fonte);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transicao);
  text-align: center;
}

.btn--primary {
  background: var(--rosa-vibrante);
  color: var(--branco);
  border-color: var(--rosa-vibrante);
}

.btn--primary:hover {
  background: var(--rosa-escuro);
  border-color: var(--rosa-escuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 90, 140, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}

.btn--outline:hover {
  background: var(--branco);
  color: var(--rosa-vibrante);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--rosa-vibrante);
  color: var(--branco);
  border-color: var(--rosa-vibrante);
}

.btn--accent:hover {
  background: var(--rosa-escuro);
  border-color: var(--rosa-escuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 90, 140, 0.4);
}

.btn--full {
  width: 100%;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ===========================
   SEÇÕES GERAIS
   =========================== */

.section {
  padding: 80px 0;
}

.section__title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--rosa-escuro);
}

.section__title--light {
  color: var(--branco);
}

.section__subtitle {
  text-align: center;
  color: var(--cor-texto-sec);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ===========================
   TIMELINE (HISTÓRIA)
   =========================== */

.historia {
  background: var(--branco);
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--rosa-principal), var(--rosa-vibrante));
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--rosa-vibrante);
  border-radius: 50%;
  border: 3px solid var(--branco);
  box-shadow: 0 0 0 3px var(--rosa-vibrante);
}

.timeline__item:last-child .timeline__marker {
  background: var(--rosa-escuro);
  box-shadow: 0 0 0 3px var(--rosa-escuro);
}

.timeline__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rosa-vibrante);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0 8px;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--cor-texto-sec);
  line-height: 1.7;
}

/* ===========================
   CARDS (EIXOS DE ATUAÇÃO)
   =========================== */

.eixos {
  background: var(--creme);
}

.eixos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 601px) {
  .eixos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .eixos__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

.card {
  background: var(--branco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--transicao), box-shadow var(--transicao);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}

.card__image-wrapper {
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
}

.card__image--cultural {
  object-position: center 35%;
}

.card__body {
  padding: 24px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rosa-escuro);
}

.card__desc {
  font-size: 0.9rem;
  color: var(--cor-texto-sec);
  margin-bottom: 16px;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__list li {
  font-size: 0.88rem;
  color: var(--cor-texto-sec);
  padding-left: 16px;
  position: relative;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rosa-vibrante);
}

/* ===========================
   GALERIA
   =========================== */

.galeria {
  background: var(--branco);
}

.galeria__filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.galeria__filtro {
  padding: 8px 20px;
  font-family: var(--fonte);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--cinza-claro);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transicao);
  color: var(--cor-texto-sec);
}

.galeria__filtro:hover,
.galeria__filtro--ativo {
  border-color: var(--rosa-vibrante);
  background: var(--rosa-vibrante);
  color: var(--branco);
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.galeria__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transicao);
}

.galeria__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transicao);
}

.galeria__item:hover img {
  transform: scale(1.05);
}

.galeria__item.hidden {
  display: none;
}

/* ===========================
   IMPACTO
   =========================== */

.impacto {
  background: var(--creme);
}

.impacto__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: center;
  align-items: stretch;
}

.impacto__item {
  padding: 32px 20px;
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
}

.impacto__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--rosa-vibrante);
}

.impacto__icon svg {
  width: 48px;
  height: 48px;
}

.impacto__numero {
  font-size: 3rem;
  font-weight: 700;
  color: var(--rosa-vibrante);
  display: inline;
}

.impacto__prefixo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rosa-vibrante);
}

.impacto__label {
  font-size: 0.95rem;
  color: var(--cor-texto-sec);
  margin-top: 8px;
}

/* ===========================
   ENVOLVA-SE (Parceiro + Voluntário)
   =========================== */

.envolva-se {
  padding: 80px 0;
  background: var(--branco);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--rosa-escuro);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--cinza-texto);
  font-size: 17px;
}

.envolva-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.envolva-card {
  background: var(--creme);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--cinza-claro);
}

.envolva-tag {
  display: inline-block;
  background: var(--rosa-vibrante);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.envolva-card h3 {
  font-size: 28px;
  color: var(--rosa-escuro);
  margin-bottom: 12px;
}

.envolva-card p {
  color: var(--cinza-texto);
  line-height: 1.6;
  margin-bottom: 24px;
}

.envolva-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.envolva-card input,
.envolva-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cinza-claro);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--cinza-texto);
  background: var(--branco);
  transition: border-color 0.2s;
}

.envolva-card input:focus,
.envolva-card textarea:focus {
  outline: none;
  border-color: var(--rosa-vibrante);
}

@media (min-width: 901px) {
  .envolva-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .envolva-card {
    padding: 28px;
  }
}

/* ===========================
   DOE
   =========================== */

.doe {
  background: var(--creme);
}

.doe__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 100%;
  overflow: hidden;
}

.doe__qr img {
  width: 200px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

@media (min-width: 768px) {
  .doe__qr img {
    width: 280px;
  }
}

.doe__qr-placeholder {
  width: 220px;
  height: 220px;
  border: 3px dashed var(--rosa-vibrante);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--rosa-vibrante);
  font-weight: 600;
  font-size: 1.1rem;
}

.doe__qr-placeholder p {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--cor-texto-sec);
}

.doe__info {
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.doe__info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.doe__info p {
  color: var(--cor-texto-sec);
  margin-bottom: 20px;
}

.doe__chave {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: var(--branco);
  border-radius: var(--radius);
  border: 2px solid var(--cinza-claro);
  overflow: hidden;
}

.doe__chave-texto {
  font-weight: 500;
  color: var(--cinza-texto);
  word-break: break-all;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
}

@media (min-width: 601px) {
  .doe__chave {
    flex-direction: row;
  }
  .doe__chave-texto {
    font-size: 0.8rem;
    text-align: left;
  }
}

.doe__link-externo {
  margin-top: 12px;
}

/* ===========================
   WHATSAPP FLUTUANTE
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===========================
   FOOTER & CONTATO
   =========================== */

.footer {
  background: var(--cor-escuro);
  color: var(--branco);
  padding: 80px 0 30px;
}

.contato {
  margin-bottom: 60px;
}

.contato__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.contato__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: background var(--transicao);
  text-align: center;
}

.contato__item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contato__icon {
  color: var(--rosa-principal);
}

.contato__label {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contato__value {
  font-weight: 600;
  font-size: 1rem;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__tagline {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   RESPONSIVO — TABLET (>= 768px)
   =========================== */

@media (min-width: 768px) {

  .header-toggle {
    display: none;
  }

  .header-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-self: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 32px;
  }

  .header-nav a {
    padding: 0;
  }

  .galeria__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .galeria__item img {
    height: 220px;
  }

  .doe__wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .doe__info {
    text-align: left;
  }

  .contato__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   RESPONSIVO — > 900px (hero split)
   =========================== */

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
}

@media (max-width: 900px) {
  .hero-polaroids {
    order: -1;
    min-height: 380px;
  }
  .polaroid--1 {
    width: 50%;
    height: 220px;
  }
  .polaroid--2 {
    width: 50%;
    height: 220px;
  }
  .polaroid--3 {
    width: 46%;
    height: 200px;
  }
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero .container {
    padding: 0 20px;
  }
}

/* ===========================
   RESPONSIVO — DESKTOP (>= 1024px)
   =========================== */

@media (min-width: 1024px) {

  .galeria__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .galeria__item img {
    height: 250px;
  }

  .section {
    padding: 100px 0;
  }
}
