/* ONG Solidária Popy Silva — Public Site Styles */

:root {
  --red:      #C0392B;
  --red-dark: #96281B;
  --red-light:#FDECEA;
  --blue:        #5BC4DC;
  --blue-light:  #E3F5FA;
  --text:        #212121;
  --text-muted:  #666666;
  --bg:          #FAFAFA;
  --white:       #FFFFFF;
  --border:      #E0E0E0;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --radius:      12px;
}

html { font-size: 75%; }

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 0 5%;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.navbar-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}
.navbar-logo small { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { width: 100%; }
.btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--red-dark) !important; }
.btn-nav::after { display: none !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #C0392B 0%, #96281B 40%, #5BC4DC 100%);
  color: var(--white);
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: #FFD54F; }
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--white);
  color: var(--red);
  padding: 14px 32px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-label { font-size: .82rem; opacity: .8; }

/* ===== SECTIONS ===== */
.section { padding: 80px 5%; }
.section-alt { background: var(--blue-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.divider { width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin: 16px auto 0; }

/* ===== CARDS ===== */
.cards-grid { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--red-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: .9rem; color: var(--text-muted); }

/* ===== MISSÃO ===== */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mission-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.mission-text h2 span { color: var(--red); }
.mission-text p { color: var(--text-muted); margin-bottom: 16px; }
.mission-items { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.mission-items li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mission-items li .icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--white);
}
.mission-items li div h4 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.mission-items li div p { font-size: .85rem; color: var(--text-muted); }
.mission-visual {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  border-radius: 20px;
  padding: 48px 36px;
  color: var(--white);
  text-align: center;
}
.mission-visual .big-icon { font-size: 4rem; margin-bottom: 20px; }
.mission-visual h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.mission-visual p { opacity: .9; font-size: .95rem; }

/* ===== CAMPANHAS CARD ===== */
.campanha-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.campanha-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.campanha-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--red-light), var(--blue-light));
  position: relative;
  overflow: hidden;
}
.campanha-cover img { width: 100%; height: 100%; object-fit: cover; }
.campanha-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.status-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-ativo    { background: #E3F5FA; color: #3A9DBF; }
.status-concluido{ background: #E3F2FD; color: #1565C0; }
.status-plano    { background: #FFF3E0; color: #E65100; }
.campanha-body { padding: 20px; }
.campanha-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.campanha-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.campanha-meta { display: flex; gap: 20px; font-size: .78rem; color: var(--text-muted); }
.campanha-meta span { display: flex; align-items: center; gap: 4px; }
.progress-bar {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--red); border-radius: 4px; transition: width .6s; }

/* ===== PARCEIROS ===== */
.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.parceiro-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.parceiro-card.destaque { border-color: var(--red); }
.parceiro-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.parceiro-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; }
.parceiro-logo-placeholder {
  width: 80px; height: 80px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.parceiro-card h4 { font-size: .88rem; font-weight: 700; }
.parceiro-card span { font-size: .75rem; color: var(--text-muted); }
.parceiro-tipo {
  background: var(--red-light);
  color: var(--red);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}
.btn-parceiro {
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-parceiro:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== TRANSPARÊNCIA ===== */
.doc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow .2s;
}
.doc-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.doc-icon { font-size: 2rem; min-width: 48px; text-align: center; }
.doc-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.doc-info p { font-size: .82rem; color: var(--text-muted); }
.doc-download {
  margin-left: auto;
  background: var(--red-light);
  color: var(--red);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.doc-download:hover { background: var(--red); color: var(--white); }

/* ===== CONTATO ===== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contato-info h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.contato-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contato-item .icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contato-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contato-item p { font-size: .85rem; color: var(--text-muted); }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  width: 44px; height: 44px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: background .2s, transform .2s;
}
.social-link:hover { background: var(--red); transform: translateY(-2px); }

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 32px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== CTA PARCERIAS ===== */
.cta-parceria {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}
.cta-parceria h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 16px; }
.cta-parceria p { opacity: .9; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-parceria .btn-primary { color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: #1A1A1A;
  color: #CCC;
  padding: 60px 5% 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
  margin-bottom: 24px;
}
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand .logo-text span { color: var(--red); }
.footer-brand p { font-size: .85rem; color: #999; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #999; font-size: .85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  background: #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-social a:hover { background: var(--red); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--blue); }
.toast.error   { background: #C62828; }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 60px 5%;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: .9; font-size: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .82rem; margin-top: 16px; opacity: .8; }
.breadcrumb a:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .85rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .mission-grid, .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .cta-parceria { padding: 40px 24px; }
}
