/* ============================================================
   ARQUIVO1.CSS — Estilos exclusivos do guia
   Depende de: base.css
   ============================================================ */

/* VARIÁVEL EXCLUSIVA */
:root {
  --amber-light: #FEF3C7; /* só no arquivo 1 */
}

/* NAV — CHIP CALCULADORA (exclusivo arquivo 1) */
.nav-calc-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy);
  color: #fff;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}
.nav-calc-chip:hover { background: #1e293b; transform: scale(1.02); }

@media (max-width: 500px) {
  .nav-links .nav-link { display: none; }
}

/* PAGE HERO (exclusivo arquivo 1 — hero escuro com gradiente) */
.page-hero {
  background: var(--navy);
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(22,163,74,0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 100%, rgba(14,165,233,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { max-width: 680px; margin: 0 auto; position: relative; }

/* HERO BADGE — variante escura (arquivo 1) */
.page-hero .hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}
.page-hero h1 {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff; line-height: 1.15; margin-bottom: 20px;
  animation: fadeUp 0.5s 0.1s ease both;
}
.page-hero h1 em { color: #4ade80; }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  max-width: 520px; margin: 0 auto 36px;
  animation: fadeUp 0.5s 0.2s ease both;
}

/* HERO STEPS (exclusivo arquivo 1) */
.hero-steps {
  display: flex; justify-content: center; gap: 0;
  flex-wrap: wrap; margin-bottom: 40px;
  animation: fadeUp 0.5s 0.3s ease both;
}
.hero-step {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.hero-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-step-sep { color: rgba(255,255,255,0.2); font-size: 20px; padding: 0 4px; }

/* BTN GHOST (exclusivo arquivo 1) */
.btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600; text-decoration: none; font-size: 14px;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* PROGRESS NAV (exclusivo arquivo 1) */
.prog-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top: 60px; z-index: 80;
}
.prog-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.prog-nav-inner::-webkit-scrollbar { display: none; }
.prog-item {
  padding: 14px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.prog-item:hover { color: var(--navy); }
.prog-item.active { color: var(--green); border-color: var(--green); }

/* CARD (exclusivo arquivo 1) */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--navy); }
.card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ALERT BOX (exclusivo arquivo 1) */
.alert {
  display: flex; gap: 12px; padding: 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.alert.ok { background: var(--green-light); color: #166534; }
.alert.warn { background: var(--amber-light); color: #92400E; }
.alert.danger { background: #FEE2E2; color: #991B1B; }
.alert.info { background: #E0F2FE; color: #075985; }
.alert-icon { font-size: 18px; flex-shrink: 0; }

/* GRID (exclusivo arquivo 1) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .prog-nav { display: none; }
}

/* RESULT VALUE (exclusivo arquivo 1) */
.result-value {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 2.4rem; color: var(--navy); line-height: 1;
  margin-bottom: 4px;
}
.result-cell { background: var(--bg); border-radius: 10px; padding: 12px; }
.result-cell-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.result-cell-val { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.2rem; color: var(--navy); margin-top: 2px; }

/* PROGRESS BAR (exclusivo arquivo 1) */
.progress-wrap { margin: 8px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.progress-bar { height: 8px; background: var(--surface2); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--green); transition: width 0.5s ease; }

/* TIP CARDS (exclusivo arquivo 1) */
.tip-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.tip-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
}
.tip-card.green::before { background: var(--green); }
.tip-card.blue::before { background: var(--blue); }
.tip-card.amber::before { background: var(--amber); }
.tip-card.red::before { background: var(--red); }
.tip-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tip-card.green .tip-num { color: var(--green); }
.tip-card.blue .tip-num { color: var(--blue); }
.tip-card.amber .tip-num { color: var(--amber); }
.tip-card.red .tip-num { color: var(--red); }
.tip-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--navy); }
.tip-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.tip-icon { font-size: 28px; margin-bottom: 12px; }

/* ERROR CARD (exclusivo arquivo 1) */
.error-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 12px; margin-bottom: 10px;
  background: var(--bg); border: 1px solid var(--border);
}
.error-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: #FEE2E2; color: var(--red);
}
.error-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.error-text { font-size: 13px; color: var(--text-muted); }
.error-fix { font-size: 12px; font-weight: 600; color: var(--green); margin-top: 4px; }

/* CHECKLIST (exclusivo arquivo 1) */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--bg);
  transition: border-color 0.15s;
  user-select: none;
}
.check-item.checked { border-color: var(--green); background: var(--green-light); }
.check-box {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all 0.15s;
}
.check-item.checked .check-box { background: var(--green); border-color: var(--green); color: #fff; }
.check-label { font-size: 13px; font-weight: 600; color: var(--text); }
.check-item.checked .check-label { color: #166534; text-decoration: line-through; }

/* RANGE (exclusivo arquivo 1) */
.range-input { width: 100%; margin: 8px 0; accent-color: var(--green); cursor: pointer; }

/* TIMELINE (exclusivo arquivo 1) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.timeline-dot.green { background: var(--green); }
.timeline-dot.blue { background: var(--blue); }
.timeline-dot.amber { background: var(--amber); }
.timeline-period { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.timeline-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--navy); }
.timeline-text { font-size: 13px; color: var(--text-muted); }

/* HIGHLIGHT NUMBER (exclusivo arquivo 1) */
.big-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 2.2rem; color: var(--navy); line-height: 1;
}
.big-num.green { color: var(--green); }
.big-num.red { color: var(--red); }
.big-num.amber { color: var(--amber); }