/* ─────────────────────────────────────────────
   ATIVA — Landing Page "Associe-se"
   associe.caixaativa.org
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --teal-dark:  #1a5f7a;
  --teal:       #2a8fa8;
  --teal-mid:   #2d8bbf;
  --teal-light: #a8dce9;
  --teal-pale:  #e8f6fb;
  --slate:      #1e3a4a;
  --gray-text:  #374151;
  --gray-sub:   #6b7280;
  --gray-bg:    #f0f7fa;
  --white:      #ffffff;
  --yellow:     #fbbf24;
  --red:        #dc2626;
  --green:      #16a34a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--teal-light);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(26,95,122,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-sub);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta {
  background: var(--teal-dark);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: #fff !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-mid) 100%);
  color: #fff;
  padding: 80px 32px 90px;
  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%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: #7fd0f0; }
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.hero-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ── SECTION COMMONS ── */
.section { padding: 72px 32px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 10px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-sub);
  max-width: 580px;
  line-height: 1.7;
}

/* ── BENEFÍCIOS / PLANOS ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.plan-card {
  background: var(--white);
  border: 2px solid #d0eaf3;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.plan-card:hover, .plan-card.selected {
  border-color: var(--teal-mid);
  box-shadow: 0 8px 32px rgba(42,143,168,0.18);
  transform: translateY(-3px);
}
.plan-card.selected { border-color: var(--teal-dark); }
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal-mid);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.plan-price-sub { font-size: 0.8rem; color: var(--gray-sub); margin-bottom: 18px; }
.plan-features {
  list-style: none;
  text-align: left;
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 20px;
}
.plan-features li { display: flex; gap: 7px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--teal-mid); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.btn-select-plan {
  width: 100%;
  border: 2px solid var(--teal-mid);
  background: transparent;
  color: var(--teal-mid);
  padding: 10px 0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-select-plan:hover, .plan-card.selected .btn-select-plan {
  background: var(--teal-mid);
  color: #fff;
}

/* ── FLUXO / STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  border: 1.5px solid #d0eaf3;
  box-shadow: 0 2px 12px rgba(26,95,122,0.06);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-title { font-size: 0.9rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.step-desc { font-size: 0.8rem; color: var(--gray-sub); line-height: 1.6; }

/* ── SEÇÃO DO FORMULÁRIO ── */
.form-section {
  background: var(--white);
  padding: 72px 32px;
}
.form-section .section-inner { max-width: 980px; }

/* ── FORMULÁRIO DE ADESÃO ── */
.form-wrapper {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,95,122,0.1);
  border: 1px solid #d0e4f0;
  margin-top: 40px;
}

.form-errors {
  background: #fef2f2;
  border-left: 4px solid var(--red);
  color: #991b1b;
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 0.875rem;
  border-radius: 0 4px 4px 0;
}
.form-errors ul { padding-left: 18px; margin-top: 6px; }

/* ── ADMIN BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-pendente  { background: #fef3c7; color: #92400e; }
.badge-analise   { background: #dbeafe; color: #1e40af; }
.badge-aprovado  { background: #d1fae5; color: #065f46; }
.badge-recusado  { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ── */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; font-size: 0.82rem; line-height: 2; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 960px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .plans-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 16px 64px; }
}

/* ── PRINT (para visualizar.php) ── */
@media print {
  .navbar, .action-bar, .submit-wrapper, .btn-pdf, .site-footer { display: none !important; }
  body { background: #fff; }
  .form-wrapper { box-shadow: none; border: none; }
}
