/* ============================================================
   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; }
.page-hero.reveal,
.hero.reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: heroFadeUp 0.8s ease forwards;
}
.page-hero {
  opacity: 1 !important;
}

/* ── 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); }
}

/* ── NAV DROPDOWN OPEN ANIMATION ── */
.nav-dropdown-menu {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity .18s ease, transform .18s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── 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; }
  .nav-dropdown-menu {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── HERO ANIMATIONS ───────────────────────────────────────── */

/* Initial states — hidden before animation */
.hero-badge,
.hero h1,
.hero-sub,
.hero-actions,
.hero-stats,
.spn-badge {
  opacity: 0;
  transform: translateY(30px);
}

.hero-img,
.hero-img img {
  opacity: 0;
  transform: translateX(40px) scale(0.96);
}

/* Animated states */
.hero-badge.animated { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero h1.animated { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s; }
.hero-sub.animated { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s; }
.hero-actions.animated { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s; }
.hero-stats.animated { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease 0.65s, transform 0.8s ease 0.65s; }
.hero-img.animated,
.hero-img.animated img { opacity: 1; transform: translateX(0) scale(1); transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }

/* Hero image parallax on scroll */
.hero-img img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hero image hover effect */
.hero-img:hover img {
  transform: scale(1.03) translateY(-4px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Floating animation on hero image */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-img.animated img {
  animation: heroFloat 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Stats counter animation */
.stat-num {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-num.counting {
  animation: statPop 0.3s ease forwards;
}

@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: var(--terracotta, #D97757); }
  100% { transform: scale(1); }
}

/* SPN badge pulse */
@keyframes spnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(217, 119, 87, 0); }
}

.spn-badge.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
  animation: spnPulse 3s ease-in-out infinite;
  animation-delay: 2s;
}

/* Scroll reveal for all sections */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in card grids */
.card-grid .card,
.card-grid article {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-grid.revealed .card:nth-child(1),
.card-grid.revealed article:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.card-grid.revealed .card:nth-child(2),
.card-grid.revealed article:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.card-grid.revealed .card:nth-child(3),
.card-grid.revealed article:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.card-grid.revealed .card:nth-child(4),
.card-grid.revealed article:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.card-grid.revealed .card:nth-child(5),
.card-grid.revealed article:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.card-grid.revealed .card:nth-child(6),
.card-grid.revealed article:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Feature split reveal */
.feature-split {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-split.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Result cards stagger */
.result-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.result-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Steps stagger */
.step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.step.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Hero animation states */
.hero-badge,
.hero h1,
.hero-sub,
.hero-actions,
.hero-stats,
.hero-img,
.spn-badge {
  animation: heroFadeUp 0.8s ease forwards;
}

.hero h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.65s; }
.hero-img { animation-delay: 0.3s; animation-name: heroFadeRight; }
.spn-badge { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  
}
/* Fix hero visibility */
.hero, .page-hero {
  opacity: 1 !important;
  transform: none !important;
}