/* ============================================================
   Go Reinstate — UI/UX Enhancements
   Design system: Anthos Minimal | Warm Earthy Editorial
   Fonts: Newsreader (headings/italic) + Manrope (body/UI)
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Manrope:wght@200..800&display=swap');

/* ── TYPOGRAPHY ── */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3,
.hero h1, .hero h2,
.page-hero h1,
.section-header h2,
.feature-content h2,
.pricing-box,
.cta-band h2,
.serif {
  font-family: 'Newsreader', Georgia, serif;
}

.italic { font-style: italic; }

.hero h1,
.page-hero h1,
.cta-band h2 { font-style: italic; }

.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.1; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 600; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }

/* Nav, labels, badges, buttons stay in Manrope */
.site-nav, .btn, .trust-bar, .access-bar,
.hero-badge, .eyebrow, .access-eyebrow,
.spn-badge, .result-badge, .breadcrumb,
footer, .faq-q, .step::before,
.nav-links a, .price-tag,
.wa-concierge-sub, .wa-input,
.wa-fix-btn, .wa-live-label {
  font-family: 'Manrope', sans-serif;
}

/* ── SCROLL REVEAL SYSTEM ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-scale { transform: scale(0.94); }
.reveal.revealed { opacity: 1; transform: none; }

/* Stagger children */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.40s; }

/* ── HERO ENHANCEMENTS ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,119,87,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,119,87,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  animation: grid-drift 24s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(217,119,87,.1) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-pulse 10s ease-in-out infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, 80px 80px; }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.18); opacity: 1; }
}

/* ── STAT COUNTERS ── */
.stat-num {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  transition: transform .3s ease;
}
.stat:hover .stat-num { transform: scale(1.08); }

/* ── BUTTON MICRO-INTERACTIONS ── */
.btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s cubic-bezier(0.22,1,0.36,1),
              box-shadow .18s cubic-bezier(0.22,1,0.36,1),
              background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transform: scale(0);
  border-radius: inherit;
  transition: transform .4s ease, opacity .4s ease;
}
.btn:active::after { opacity: 1; transform: scale(1); transition: none; }
.btn:active { transform: scale(0.98) !important; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(217,119,87,.45); }
.btn-green:hover   { box-shadow: 0 8px 28px rgba(37,211,102,.4); }

/* ── CARD ENHANCEMENTS ── */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s cubic-bezier(0.22,1,0.36,1),
              transform .25s cubic-bezier(0.22,1,0.36,1),
              border-color .25s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(217,119,87,.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(217,119,87,.3); }
.card:hover::before { opacity: 1; }

/* ── RESULT CARDS ── */
.result-card {
  transition: box-shadow .25s ease, transform .25s cubic-bezier(0.22,1,0.36,1);
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,47,62,.1);
}

/* ── STEPS ── */
.step { transition: transform .25s ease; }
.step:hover { transform: translateX(4px); }
.step::before {
  font-family: 'Manrope', sans-serif;
  transition: box-shadow .25s ease;
}

/* ── TRUST BAR SHIMMER ── */
.trust-bar {
  position: relative;
  overflow: hidden;
}
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217,119,87,.15), transparent);
  animation: shimmer 5s ease infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── SPN BADGES ── */
.spn-badge {
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  cursor: default;
}
.spn-badge:hover {
  background: rgba(37,211,102,.15);
  box-shadow: 0 0 12px rgba(37,211,102,.2);
  transform: scale(1.04);
}

/* ── PRICING BOX ── */
.pricing-box {
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(37,47,62,.25);
}

/* ── NAV LINK UNDERLINE ANIMATION ── */
.nav-links a {
  position: relative;
  cursor: pointer;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s cubic-bezier(0.22,1,0.36,1);
  border-radius: 1px;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── ACCESS CARD ── */
.access-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.access-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(217,119,87,.12);
}

/* ── HERO BADGE PULSE ── */
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* ── PAGE PROGRESS BAR ── */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #F0A882);
  z-index: 9999;
  transition: width .3s ease;
  border-radius: 0 2px 2px 0;
}
.page-progress.loaded { width: 100%; opacity: 0; transition: width .3s ease, opacity .4s ease .3s; }

/* ── VIOLATION LINK HOVER ── */
.violation-link {
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease,
              transform .2s cubic-bezier(0.22,1,0.36,1);
}
.violation-link:hover { transform: translateX(4px); }

/* ── RESPONSIVE TYPOGRAPHY ── */
@media (max-width: 768px) {
  .hero::before { background-size: 60px 60px; }
  .stat-num { font-size: 1.7rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero::before { animation: none; }
  .hero::after  { animation: none; }
  .trust-bar::after { animation: none; }
}
