/* ==========================================================================
   Desbravador.net — Design System
   Tema: escotismo adventista (verde floresta + dourado insígnia)
   ========================================================================== */

:root {
  /* Cores principais */
  --color-primary: #2F6B3D;
  --color-primary-dark: #1F4A2A;
  --color-primary-light: #4C9A5A;
  --color-accent: #D9A441;
  --color-accent-dark: #B5822A;
  --color-accent-light: #F0C97A;

  /* Neutros */
  --color-bg: #F6F4EE;
  --color-surface: #FFFFFF;
  --color-surface-alt: #FBF9F4;
  --color-text: #23291F;
  --color-text-muted: #6B7568;
  --color-border: #E4DFD2;

  /* Estados */
  --color-success: #3C8C4A;
  --color-success-bg: #E7F3E8;
  --color-warning: #D98C22;
  --color-warning-bg: #FBF0DD;
  --color-danger: #C0392B;
  --color-danger-bg: #FBEAE7;

  /* Tipografia */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(31, 74, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(31, 74, 42, 0.10);
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-accent); color: #2B1F04; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text-muted); }
.btn-ghost:hover { background: var(--color-border); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-accent { background: #FBF0DD; color: var(--color-accent-dark); }
.badge-neutral { background: var(--color-border); color: var(--color-text-muted); }

/* ---------- Barra de progresso ---------- */
.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 999px;
}

/* ---------- Top nav (site institucional / marketing) ---------- */
.topnav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topnav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary-dark);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--color-primary);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.topnav-links { display: flex; gap: 24px; align-items: center; }
.topnav-links a { color: var(--color-text); font-weight: 500; font-size: 14px; }
.topnav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- App do desbravador (mobile-first) ---------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}
.app-header {
  background: var(--color-primary);
  color: #fff;
  padding: 18px 20px 22px;
  border-radius: 0 0 22px 22px;
}
.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.app-header-top .club {
  font-size: 13px;
  opacity: .85;
}
.app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.app-header h1 { color: #fff; font-size: 20px; margin-bottom: 2px; }
.app-content {
  flex: 1;
  padding: 18px 18px 90px;
}
.app-bottomnav {
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.app-bottomnav a {
  flex: 1;
  text-align: center;
  padding: 10px 4px 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.app-bottomnav a .icon { display: block; font-size: 20px; margin-bottom: 2px; }
.app-bottomnav a.active { color: var(--color-primary); }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-title h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.section-title a { font-size: 13px; font-weight: 600; }

.feed-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.feed-item:last-child { border-bottom: none; }
.feed-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.feed-meta { font-size: 12px; color: var(--color-text-muted); margin-bottom: 3px; }
.feed-actions { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--color-text-muted); }

.spec-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 10px;
}
.spec-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--color-surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.spec-tile .spec-info { flex: 1; min-width: 0; }
.spec-tile .spec-info strong { display: block; font-size: 14px; }
.spec-tile .spec-info span { font-size: 12px; color: var(--color-text-muted); }
.spec-tile .spec-progress { width: 60px; text-align: right; font-size: 12px; font-weight: 700; color: var(--color-primary); }
.spec-tile.locked { opacity: .55; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Painel do clube (dashboard desktop) ---------- */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: var(--sidebar-width);
  background: var(--color-primary-dark);
  color: #EFEBDD;
  padding: 22px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.dash-sidebar .brand { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.dash-sidebar .brand-mark { background: var(--color-accent); color: var(--color-primary-dark); }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #D9E4D6;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.dash-nav a.active { background: var(--color-accent); color: var(--color-primary-dark); font-weight: 700; }
.dash-sidebar .plan-box {
  margin-top: auto;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
}
.dash-sidebar .plan-box strong { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }

.dash-main { flex: 1; min-width: 0; background: var(--color-bg); }
.dash-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-topbar h1 { font-size: 19px; margin: 0; }
.dash-topbar .sub { font-size: 13px; color: var(--color-text-muted); }
.dash-body { padding: 24px 28px 60px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card .stat-label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--color-primary-dark); margin: 6px 0 4px; font-family: var(--font-heading); }
.stat-card .stat-delta { font-size: 12px; color: var(--color-success); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--color-text-muted); padding: 10px 12px; border-bottom: 1px solid var(--color-border);
}
table.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.list-row:last-child { border-bottom: none; }
.list-row .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-surface-alt); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow strong { font-size: 13.5px; display: block; }
.list-row .grow span { font-size: 12px; color: var(--color-text-muted); }

.progress-row { margin-bottom: 12px; }
.progress-row .progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--color-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; background: var(--color-surface); color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary-light); outline-offset: 1px; }

.divider { height: 1px; background: var(--color-border); margin: 20px 0; border: none; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Landing page sections ---------- */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 14px; }
.hero p.lead { font-size: 16px; color: var(--color-text-muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; }
.hero-art {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  min-height: 320px;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 10px; }
.feature-card { padding: 22px; }
.feature-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-surface-alt); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.price-card { padding: 26px 22px; text-align: left; position: relative; }
.price-card.featured { border: 2px solid var(--color-accent); }
.price-card .price { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--color-primary-dark); margin: 6px 0 4px; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0; font-size: 13.5px; color: var(--color-text-muted); }
.price-card ul li { padding: 5px 0; }
.price-card .flag { position: absolute; top: -12px; right: 20px; background: var(--color-accent); color: #2B1F04; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

footer.site-footer { border-top: 1px solid var(--color-border); padding: 26px 0; margin-top: 50px; }
footer.site-footer .container { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Login ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-tabs { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px; font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); background: var(--color-surface-alt); }
.auth-tabs a.active { background: var(--color-primary); color: #fff; }

/* ---------- Barra de anúncio (topo) ---------- */
.announce-bar {
  background: var(--color-primary-dark);
  color: #EFEBDD;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
}
.announce-bar a { color: var(--color-accent-light); font-weight: 700; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 10px 0 6px;
}
.stats-bar .stat { text-align: center; }
.stats-bar .stat .num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--color-primary-dark); }
.stats-bar .stat .lbl { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Seção genérica ---------- */
.section { padding: 54px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.section-head .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--color-primary); background: var(--color-success-bg); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.section-head h2 { font-size: 28px; margin-bottom: 8px; }
.section-head p { color: var(--color-text-muted); font-size: 15px; margin: 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* ---------- Metodologia (timeline "como funciona") ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding: 26px 20px 20px; }
.step-card .step-num {
  position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
}
.step-card .icon { font-size: 26px; margin: 6px 0 10px; }
.step-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ---------- Tabs de público-alvo ---------- */
.audience-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.audience-tab {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface);
  font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); cursor: pointer;
}
.audience-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.audience-panel { display: none; }
.audience-panel.active { display: block; }
.audience-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.audience-body h3 { font-size: 22px; margin-bottom: 10px; }
.audience-body p.desc { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 16px; }
.audience-body ul { list-style: none; padding: 0; margin: 0 0 20px; }
.audience-body ul li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; }
.audience-body ul li .chk { color: var(--color-success); font-weight: 700; flex-shrink: 0; }
.audience-visual {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

/* ---------- Portfólio (upload de mídia) ---------- */
.portfolio-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.portfolio-mock .thumb {
  aspect-ratio: 1; border-radius: 10px; background: var(--color-bg); border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--color-text-muted);
}
.portfolio-mock .thumb.filled { background: linear-gradient(160deg, var(--color-primary-light), var(--color-primary)); border-style: solid; color: #fff; }

/* ---------- Depoimentos ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { padding: 22px; }
.testimonial-card .quote { font-size: 14px; color: var(--color-text); margin-bottom: 16px; }
.testimonial-card .person { display: flex; align-items: center; gap: 10px; }
.testimonial-card .person .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-alt); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.testimonial-card .person strong { display: block; font-size: 13.5px; }
.testimonial-card .person span { font-size: 12px; color: var(--color-text-muted); }

/* ---------- FAQ (accordion nativo) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 6px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; padding: 12px 0;
  display: flex; justify-content: space-between; align-items: center; color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-primary); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--color-text-muted); font-size: 13.5px; margin: 0 0 14px; }

/* ---------- CTA banner final ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: #fff;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: 26px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; }
  .dash-sidebar .brand { margin-bottom: 0; }
  .dash-nav { display: flex; }
  .dash-sidebar .plan-box { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-body { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
}
