/* =====================================================================
   Emmanuel Onate — Design System
   Style: Trust & Authority  |  Palette: White + Burnt Orange + Warm Gray
   ===================================================================== */

:root {
  --ink:          #1C1917; /* warm near-black (stone-900)      */
  --ink-soft:     #44403C; /* secondary text  (stone-700)      */
  --muted:        #78716C; /* tertiary text   (stone-500)      */
  --line:         #E7E5E4; /* hairline border (stone-200)      */
  --surface:      #FAFAF9; /* light gray surface (stone-50)    */
  --surface-2:    #F5F5F4; /* deeper gray surface (stone-100)  */
  --brand:        #C2410C; /* burnt orange                     */
  --brand-strong: #9A3412; /* burnt orange (hover/active)      */
  --brand-tint:   #FFF7ED; /* warm orange wash                 */
  --white:        #FFFFFF;
  --ring:         #C2410C;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Focus (accessibility) ---------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 10px; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(154,52,18,.25), 0 8px 24px -10px rgba(194,65,12,.55);
}
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 1px 2px rgba(154,52,18,.3), 0 14px 30px -12px rgba(194,65,12,.7); }

.btn-secondary {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); }

.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { color: var(--brand-strong); }

/* ---------- Decorative ---------- */
.text-gradient {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-strong) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--brand); display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* Subtle warm grid / glow used on hero + section tops */
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 9999px; filter: blur(70px);
  background: radial-gradient(circle, rgba(194,65,12,.20), transparent 65%);
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: #d6d3d1;
  box-shadow: 0 24px 50px -28px rgba(28,25,23,.25);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Marquee (trust logos) ---------- */
.tabular { font-variant-numeric: tabular-nums; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Footer podcast links ---------- */
.pod-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-soft); transition: color .15s ease; }
.pod-link:hover { color: var(--brand); }

/* ---------- Nav ---------- */
.nav-link { position: relative; color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .18s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line);
}
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-1px); } }

/* ---------- Qualify wizard ---------- */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step-panel.active { animation: none; } }

.opt {
  display: flex; align-items: center; gap: .85rem;
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  background: #fff; font-weight: 500;
}
.opt:hover { border-color: #d6d3d1; background: var(--surface); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand) inset; }

.field {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194,65,12,.15); }

/* progress bar */
.progress-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
