/* ============================================================
   SOS ENCHENTES MG — ESTILOS PRINCIPAIS
   Mobile-first, design impactante e emocional
   ============================================================ */

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

:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --orange: #e67e22;
  --yellow: #f1c40f;
  --green: #27ae60;
  --green-dark: #1e8449;
  --blue: #2980b9;
  --dark: #1a1a1a;
  --dark2: #2c2c2c;
  --gray: #555;
  --light: #f8f8f8;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ============================================================
   BARRA DE URGÊNCIA
   ============================================================ */
.urgency-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { background: var(--red); }
  50% { background: var(--red-dark); }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('images/enchente7.jpg') center center / cover no-repeat;
  text-align: center;
  padding: 60px 20px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75) 0%,
    rgba(180,20,10,0.55) 50%,
    rgba(0,0,0,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .highlight {
  color: #ffd700;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.btn-hero {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(241,196,15,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.7s ease 0.3s both;
  letter-spacing: 0.5px;
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(241,196,15,0.7);
}

.btn-hero:active {
  transform: translateY(0) scale(0.98);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTADORES
   ============================================================ */
.counters {
  background: var(--dark2);
  padding: 48px 0;
  border-top: 3px solid var(--red);
}

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

@media (min-width: 640px) {
  .counters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.counter-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s;
}

.counter-item:hover {
  transform: translateY(-4px);
}

.counter-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.counter-red .counter-number { color: #e74c3c; }
.counter-orange .counter-number { color: #e67e22; }
.counter-yellow .counter-number { color: #f1c40f; }
.counter-green .counter-number { color: #2ecc71; }

/* ============================================================
   SEÇÃO: O QUE ACONTECEU
   ============================================================ */
.what-happened {
  background: var(--dark);
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.what-text p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.what-text p strong {
  color: var(--white);
}

.what-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
  box-shadow: var(--shadow-lg);
}

.img-caption {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   GALERIA
   ============================================================ */
.gallery-section {
  background: #111;
  padding: 72px 0;
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-large {
    grid-row: span 2;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

@media (min-width: 768px) {
  .gallery-large img {
    height: 100%;
    min-height: 412px;
  }
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  font-size: 0.78rem;
  padding: 20px 12px 10px;
  font-weight: 600;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials {
  background: var(--dark2);
  padding: 72px 0;
}

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

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   COMO O DINHEIRO SERÁ USADO
   ============================================================ */
.usage-section {
  background: var(--dark);
  padding: 72px 0;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .usage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usage-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.usage-item:hover {
  transform: translateY(-4px);
  border-color: rgba(241,196,15,0.4);
}

.usage-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.usage-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.usage-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ============================================================
   SEÇÃO DE DOAÇÃO
   ============================================================ */
.donation-section {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0d0d 50%, #1a0a0a 100%);
  padding: 80px 0;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}

.donation-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.donation-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--yellow);
}

.donation-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (min-width: 600px) {
  .donation-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.btn-donate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--white);
  position: relative;
  min-height: 110px;
}

.btn-donate:hover {
  background: rgba(241,196,15,0.15);
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(241,196,15,0.25);
}

.btn-donate:active {
  transform: translateY(0);
}

.btn-donate-featured {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 24px rgba(241,196,15,0.4);
}

.btn-donate-featured:hover {
  background: #f39c12;
  border-color: #f39c12;
  color: var(--dark);
  box-shadow: 0 8px 40px rgba(241,196,15,0.6);
}

.btn-donate-premium {
  border-color: #e74c3c;
}

.btn-donate-premium:hover {
  background: rgba(231,76,60,0.2);
  border-color: #e74c3c;
  box-shadow: 0 8px 30px rgba(231,76,60,0.3);
}

.donate-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.btn-donate-featured .donate-badge {
  background: var(--red);
  color: var(--white);
}

.donate-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.btn-donate-featured .donate-value {
  color: var(--dark);
}

.donate-desc {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
  text-align: center;
  line-height: 1.3;
}

.btn-donate-featured .donate-desc {
  color: var(--dark);
  opacity: 0.7;
}

.donation-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ============================================================
   URGÊNCIA FINAL
   ============================================================ */
.urgency-section {
  background: var(--red-dark);
  padding: 72px 0;
  text-align: center;
}

.urgency-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.urgency-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.btn-urgency {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 20px 48px;
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.btn-urgency:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0d0d0d;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer p strong {
  color: rgba(255,255,255,0.8);
}

.footer-small {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.35) !important;
  max-width: 600px;
  margin: 12px auto 0 !important;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVIDADE EXTRA
   ============================================================ */
@media (max-width: 400px) {
  .donation-amounts {
    grid-template-columns: 1fr 1fr;
  }
  .counters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   ANIMAÇÕES FADE-IN (controladas por JS)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
