/* ── Coop.download — CSS personalizado ─────────────────────────────── */

:root {
  --green:       #0f766e;
  --green-dark:  #134e4a;
  --green-light: #f0fdfa;
  --orange:      #f97316;
  --orange-dark: #c2570f;
  --body-bg:     #f8fafc;
  --card-bg:     #ffffff;
  --text:        #0f172a;
  --muted:       #64748b;
  --border:      #e2e8f0;
}

/* ── Base ─────────────────────────────────────────────────────────── */
body {
  background: var(--body-bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.coop-nav {
  background: var(--green-dark);
}
.coop-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #fff;
}
.coop-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: color .15s;
}
.coop-nav .nav-link:hover,
.coop-nav .nav-link.active {
  color: #fff;
}
.coop-nav .city-badge {
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.coop-hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green) 60%, #0d9488 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.coop-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.coop-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
/* Garante que o conteúdo do hero fique acima dos círculos decorativos */
.coop-hero > .container {
  position: relative;
  z-index: 1;
}
.coop-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.coop-hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 600px;
}
.coop-hero .badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.coop-hero .badge-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── Botões ───────────────────────────────────────────────────────── */
.btn-orange {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: .75rem;
  font-size: 1rem;
  transition: background .2s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.btn-orange:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-green {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: .75rem;
  font-size: 1rem;
  transition: background .2s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
  font-weight: 600;
  padding: .7rem 1.65rem;
  border-radius: .75rem;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: .75rem;
  font-size: .95rem;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}

/* Placeholders de imagem autorizada */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 130px;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
  background: var(--green-light);
  border: 2px dashed rgba(22,128,86,.35);
  border-radius: 1rem;
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 600;
}
.img-placeholder i { font-size: 1.8rem; opacity: .7; }

/* Listas de "pode / não pode" */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .25rem;
  padding: .35rem 0;
  font-size: .95rem;
  border-bottom: 1px solid #f1f5f9;
}
.check-list li:last-child { border-bottom: none; }

/* ── Cards ────────────────────────────────────────────────────────── */
.coop-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.coop-card:hover {
  box-shadow: 0 8px 30px rgba(15,118,110,.1);
  transform: translateY(-2px);
}
.coop-card .card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.icon-green  { background: var(--green-light); color: var(--green); }
.icon-orange { background: #fff7ed;             color: var(--orange); }
.coop-card h5 {
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}

/* ── Seções ───────────────────────────────────────────────────────── */
.section-py { padding: 4rem 0; }
.section-py-sm { padding: 2.5rem 0; }
.section-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section-divider {
  width: 3rem;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0 0 1.5rem;
}

/* ── Sponsor card ─────────────────────────────────────────────────── */
.sponsor-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 1.25rem;
  color: #fff;
  padding: 2.5rem;
}
.sponsor-card h3 { font-weight: 800; }

/* ── Steps / Timeline ─────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
  min-width: 2rem;
  height: 2rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Formulários ──────────────────────────────────────────────────── */
.form-control,
.form-select {
  border-radius: .625rem;
  border-color: var(--border);
  padding: .75rem 1rem;
  font-size: .95rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .2rem rgba(15,118,110,.15);
}
.form-label {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: #334155;
}
.form-check-label { font-size: .9rem; color: #475569; }
.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert-coop-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #14532d;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
}
.alert-coop-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
}
.alert-coop-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.coop-accordion .accordion-button {
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.coop-accordion .accordion-button:not(.collapsed) {
  color: var(--green);
  background: var(--green-light);
  box-shadow: none;
}
.coop-accordion .accordion-button::after {
  filter: none;
}
.coop-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: .75rem !important;
  margin-bottom: .5rem;
  overflow: hidden;
}

/* ── Legal/Aviso ──────────────────────────────────────────────────── */
.legal-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: #9a3412;
}

/* ── Admin ────────────────────────────────────────────────────────── */
.admin-sidebar {
  background: var(--green-dark);
  min-height: 100vh;
  padding: 1.5rem;
}
.admin-sidebar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: .75rem 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 1rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.8);
  font-weight: 500;
  border-radius: .5rem;
  padding: .55rem .9rem;
  margin-bottom: .2rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.admin-sidebar .nav-link i { margin-right: .5rem; }
.status-badge {
  font-size: .75rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-weight: 600;
}
.status-new        { background:#dbeafe; color:#1e40af }
.status-contacted  { background:#fef9c3; color:#854d0e }
.status-in_group   { background:#d1fae5; color:#065f46 }
.status-pre_approved{ background:#dcfce7; color:#14532d }
.status-rejected   { background:#fee2e2; color:#7f1d1d }
.status-converted  { background:#a7f3d0; color:#064e3b }

/* ── Footer ───────────────────────────────────────────────────────── */
.coop-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  font-size: .875rem;
}
.coop-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.coop-footer a:hover { color: #fff; }
.coop-footer .footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
  font-size: .9rem;
}
.coop-footer .divider {
  border-color: rgba(255,255,255,.15);
  margin: 1.5rem 0 1rem;
}

/* ── Utilitários ──────────────────────────────────────────────────── */
.text-green  { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }
.bg-green-light { background: var(--green-light) !important; }
.rounded-xl { border-radius: 1rem !important; }
.shadow-soft { box-shadow: 0 4px 20px rgba(0,0,0,.06) !important; }

/* ── Pesquisa / Votação form ──────────────────────────────────────── */
.option-card {
  border: 2px solid var(--border);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.option-card:has(input:checked),
.option-card.selected {
  border-color: var(--green);
  background: var(--green-light);
}
.option-card.abstention {
  border-style: dashed;
  opacity: .85;
}
.option-card input { accent-color: var(--green); }

/* ── Responsive tweaks ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .coop-hero { padding: 3rem 0 2.5rem; }
  .section-py { padding: 2.5rem 0; }
  .sponsor-card { padding: 1.75rem; }
}
