/* ============================================================
   Conta do Bem · Rede Muda Mundo
   Visual identity: deep blue, lime/olive accent, light cards
   ============================================================ */

:root {
  --blue: #0f5fa6;
  --blue-dark: #0b4e8a;
  --blue-deep: #093a6b;
  --blue-ink: #072c52;
  --lime: #c7d100;
  --olive: #a9b400;
  --olive-dark: #8f9a00;
  --card: #edeff8;
  --card-2: #e6e9f6;
  --white: #ffffff;
  --ink: #1c2b3a;
  --muted: #5b6b7c;
  --line: rgba(255, 255, 255, 0.35);
  /* Paleta Rede Muda Mundo (coral) */
  --rmm-1: #f9b9b0;
  --rmm-2: #f0728a;
  --rmm-3: #e24e74;
  --rmm-grad: linear-gradient(90deg, var(--rmm-1), var(--rmm-2), var(--rmm-3));
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 45px rgba(9, 58, 107, 0.15);
  --shadow-sm: 0 8px 20px rgba(9, 58, 107, 0.12);
  /* Fonte única do projeto: Poppins (toda a família) */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Conta do Bem display type */
.hero-badge, .hero-copy h1, .section h2, .org-title, .form-head h2,
.hero-btn, .header-cta, .submit-btn, .value-btn, .stat b, .cb-conta, .cb-bem {
  font-family: var(--font-display);
}

/* Faixa da marca Rede Muda Mundo */
.brand-ribbon { height: 4px; width: 100%; background: var(--rmm-grad); }

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

a { color: inherit; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e7ebf3;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; width: auto; }
.brand-rmm { height: 16px; }
.brand-ps { height: 29px; }
.brand-neo { height: 20px; }
.brand-divider { width: 1px; height: 20px; background: #d9e0ec; }
.brand-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-deep); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.brand-tag-heart { color: var(--lime); font-size: 0.8rem; }
.header-cta {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(120% 120% at 85% -10%, #1a6fbb 0%, var(--blue) 45%, var(--blue-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 70% at 30% 20%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
/* Marca d'água: ondas da Rede Muda Mundo ao fundo do hero */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  aspect-ratio: 3572 / 909;
  transform: translate(-50%, -50%);
  background: #ffffff;
  -webkit-mask: url("/assets/logoondas_rmm.svg") no-repeat center center / 100% auto;
  mask: url("/assets/logoondas_rmm.svg") no-repeat center center / 100% auto;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* Hero art (bill + badge) */
.hero-art { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.cb-conta { font-size: clamp(2.4rem, 6vw, 3.6rem); color: #fff; }
.cb-heart { color: var(--lime); font-size: 1.6rem; }
.cb-do { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.cb-bem { font-size: clamp(2.6rem, 6.5vw, 4rem); color: var(--lime); }
.hero-logos { display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; flex-wrap: wrap; }
.hero-logos-label { font-size: 0.8rem; opacity: 0.85; }
.logo-plate { background: #fff; border-radius: 12px; padding: 10px 16px; display: inline-flex; align-items: center; box-shadow: var(--shadow-sm); }
.logo-plate img { height: 26px; width: auto; display: block; }
.logo-sep { opacity: 0.7; font-weight: 700; }
.logo-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
}
.logo-neo { background: rgba(255, 255, 255, 0.9); color: var(--blue-deep); border-color: transparent; }

.hero-bill {
  background: #fff;
  color: #33404d;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  max-width: 480px;
  transform: rotate(-1.5deg);
  font-size: 0.95rem;
}
.bill-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eef1f5; padding-bottom: 8px; margin-bottom: 10px; }
.bill-brand { color: var(--blue); font-weight: 900; letter-spacing: 0.04em; }
.bill-tag { color: var(--muted); font-size: 0.7rem; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.bill-row span, .bill-grid span { color: var(--muted); font-size: 0.8rem; }
.bill-row b, .bill-grid b { color: #263644; }
.bill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.bill-grid div { display: flex; flex-direction: column; }
.bill-donation {
  margin-top: 8px;
  background: #eef7c8;
  color: #5c6600;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed var(--olive);
}

/* Hero copy */
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero-copy h1 span { color: var(--lime); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: 0.95; margin: 0 0 22px; }
.hero-sub strong { color: var(--lime); }
.hero-values { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.value-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.value-chip--outro { background: var(--lime); color: var(--blue-deep); border-color: transparent; }
.hero-btn, .header-cta { text-decoration: none; }
.hero-btn {
  display: inline-block;
  background: var(--olive);
  color: #1d2200;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hero-btn:hover { background: var(--lime); transform: translateY(-2px); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(48px, 7vw, 86px) 0; }
.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.section h2 span { color: var(--blue); }

.what-grid, .org-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.what-copy p, .org-copy p { color: var(--muted); font-size: 1.02rem; margin: 0 0 14px; max-width: 52ch; }

.what-media, .org-media { position: relative; }
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* fallback enquanto a imagem não é carregada */
  background: linear-gradient(135deg, #1a6fbb, #072c52);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame--portrait img { object-position: 50% 22%; }
.deco-star {
  position: absolute;
  top: -22px;
  left: -18px;
  color: var(--rmm-2);
  font-size: 2.6rem;
  line-height: 1;
}
.deco-wave {
  position: absolute;
  bottom: -14px;
  left: -10px;
  width: 120px;
  height: 22px;
  background:
    repeating-linear-gradient(-45deg, var(--rmm-2) 0 8px, transparent 8px 16px);
  border-radius: 4px;
  opacity: 0.95;
}

/* Org section */
.section--org { background: linear-gradient(180deg, #f7f9fd, #eef2fb); }
.org-title { text-align: left; }
.org-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.org-callout-ico {
  background: var(--blue);
  color: #fff;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.org-callout p { margin: 0; color: var(--blue-deep); font-weight: 700; }

/* Stats */
.stats {
  list-style: none;
  margin: clamp(30px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid #e4e9f4;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; color: var(--blue); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.86rem; }

/* ---------------- Form ---------------- */
.section--form { background: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%); }
.form-head { text-align: center; margin-bottom: 28px; }
.form-head .elementos { height: 17px; width: auto; display: block; margin: 0 auto 14px; }
.form-head h2 { margin-bottom: 8px; }
.form-head p { color: var(--muted); margin: 0; }

.donation-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  max-width: 880px;
  margin-inline: auto;
}

.ptype { border: 0; padding: 0; margin: 0 0 22px; display: flex; gap: 26px; }
.donation-card .radio { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 0.95rem; margin-bottom: 0; }
.radio input { accent-color: var(--lime); width: 18px; height: 18px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.donation-card .field { margin-bottom: 16px; }
.donation-card label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.donation-card input[type="text"],
.donation-card input[type="email"],
.donation-card input[type="tel"] {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: 2px solid transparent;
  transition: outline-color 0.15s ease;
}
.donation-card input::placeholder { color: #9aa7b4; }
.donation-card input:focus { outline-color: var(--lime); }
.donation-card input.invalid { outline-color: #ff6b6b; }

/* value buttons */
.values { display: flex; flex-wrap: wrap; gap: 12px; }
.value-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.value-btn:hover { background: rgba(255, 255, 255, 0.22); }
.value-btn.active { background: var(--lime); color: var(--blue-deep); border-color: var(--lime); }
.field--other { margin-top: 14px; margin-bottom: 0; }

/* declarations */
.declares { margin: 24px 0 8px; display: grid; gap: 14px; }
.donation-card .check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.86rem; line-height: 1.5; cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 400; margin-bottom: 0; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lime); flex: none; }
.link-terms {
  background: none;
  border: 0;
  padding: 0;
  color: var(--lime);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* actions */
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.submit-btn {
  background: var(--olive);
  color: #1d2200;
  border: 0;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.submit-btn:hover { background: var(--lime); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.form-status { margin: 0; font-weight: 700; font-size: 0.9rem; }
.form-status.error { color: #ffd0d0; }
.form-status.success { color: var(--lime); }

.form-foot { margin: 22px 0 0; font-size: 0.82rem; opacity: 0.85; line-height: 1.5; }
.form-foot a { color: var(--lime); font-weight: 700; text-decoration: none; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--blue-deep); color: #fff; padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brands { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brands img { display: block; width: auto; }
.brand-rmm--footer { height: 26px; }
.brand-ps--footer { height: 40px; }
.brand-neo--footer { height: 31px; }
.footer-meta { text-align: right; font-size: 0.85rem; opacity: 0.9; }
.footer-meta p { margin: 2px 0; }
.footer-meta a { color: var(--lime); text-decoration: none; }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 44, 82, 0.6); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  width: min(640px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #eef1f5; }
.modal-head h3 { margin: 0; color: var(--blue-deep); font-size: 1.15rem; }
.modal-close { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-body h4 { color: var(--blue); margin: 18px 0 6px; font-size: 0.98rem; }
.modal-body p { margin: 0 0 10px; color: #37485a; font-size: 0.92rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid #eef1f5; }
.btn-secondary {
  background: #eef2fb;
  color: var(--blue-deep);
  border: 0;
  font-family: inherit;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-secondary:hover { background: #e2e8f6; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .hero-copy { order: 1; }
  .what-grid, .org-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .ptype { gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .brand-divider, .brand-tag { display: none; }
  .header-cta { padding: 9px 16px; font-size: 0.82rem; }
  .hero-bill { transform: none; max-width: 100%; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
