/* ============================================================
   BASE.CSS — Estilos compartilhados entre guia e index
   ============================================================ */

/* VARIÁVEIS */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface2: #F1EDE4;
  --navy: #0F172A;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --blue: #0EA5E9;
  --amber: #F59E0B;
  --red: #EF4444;
  --border: #E2DDD4;
  --text: #1E293B;
  --text-muted: #64748B;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.12);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-link {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--surface2); }
.nav-link.active {
  color: var(--navy);
  background: var(--surface2);
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 14px; right: 14px;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* AD STRIP */
.ad-strip {
  background: var(--navy);
  color: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  position: relative;
}
.ad-strip a { color: var(--amber); text-decoration: none; font-weight: 600; }
.ad-strip-close {
  position: absolute; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 18px;
}
.ad-strip-close:hover { color: #fff; }

/* AD SLOT */
.ad-slot {
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.ad-slot-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ad-slot-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* SECTION */
section { padding: 64px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--green); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc { color: var(--text-muted); max-width: 520px; margin-bottom: 40px; }

/* HERO BADGE & CTA GROUP (compartilhados, com pequenas diferenças tratadas por página) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease both;
}
.hero-cta-group {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.5s 0.4s ease both;
}

/* BOTÕES */
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: #15803d; }
.btn-primary:active { transform: scale(0.97); }

/* FORM */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  pointer-events: none;
}
.form-input {
  width: 100%; height: 44px;
  padding: 0 12px 0 32px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input.no-prefix { padding-left: 12px; }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

/* CALC BUTTON */
.calc-btn {
  width: 100%; height: 46px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  margin-top: 4px;
}
.calc-btn:hover { background: #15803d; }
.calc-btn:active { transform: scale(0.97); }

/* RESULT BOX */
.result-box {
  margin-top: 20px;
  display: none;
  animation: fadeUp 0.3s ease;
}
.result-box.show { display: block; }

/* RESULT GRID */
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 14px;
}

/* KEYFRAMES */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.8rem;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 14px; margin-bottom: 20px; }
.footer-links {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* TOAST */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 999;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}
.toast.success { background: var(--green); }

/* RESPONSIVE COMPARTILHADO */
@media (max-width: 700px) {
  section { padding: 48px 20px; }
  .footer-grid-3col { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom-row { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}