/* ═══════════════════════════════════════════════════════════
   REINO ECO FUNGI — styles.css
   Tema: Paper cream + Moss green + Mustard yellow + Terracota
   ═══════════════════════════════════════════════════════════ */

:root {
  --background: 38 33% 96%;
  --foreground: 30 8% 12%;
  --card: 38 25% 98%;
  --card-foreground: 30 8% 12%;
  --primary: 110 18% 18%;
  --primary-foreground: 38 33% 96%;
  --secondary: 38 78% 52%;
  --secondary-foreground: 30 18% 10%;
  --muted: 38 22% 92%;
  --muted-foreground: 30 8% 38%;
  --accent: 18 55% 52%;
  --accent-foreground: 38 33% 96%;
  --border: 30 12% 86%;
  --input: 30 12% 86%;
  --ring: 110 18% 18%;
  --radius: 0.5rem;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   BASE + PERFORMANCE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
img, video, svg, iframe { max-width: 100%; height: auto; }
::selection { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

/* Paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

@media (max-width: 767px) {
  [class*="blur-"], [style*="blur("] { filter: blur(30px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTES
   ═══════════════════════════════════════════════════════════ */
.section-container {
  margin-inline: auto;
  max-width: 72rem;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .section-container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .section-container { padding-inline: 2.5rem; } }

.display-serif {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 300ms;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  box-shadow: 0 8px 30px -8px hsl(var(--primary) / 0.5);
}
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.9);
  box-shadow: 0 8px 30px -8px hsl(var(--secondary) / 0.6);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid hsl(var(--foreground) / 0.9);
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-outline:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.underline-mark {
  background-image: linear-gradient(90deg, hsl(var(--secondary)) 0%, hsl(var(--secondary)) 100%);
  background-size: 100% 28%;
  background-repeat: no-repeat;
  background-position: 0 88%;
}

.tape {
  position: absolute;
  width: 90px;
  height: 22px;
  background: hsl(var(--secondary) / 0.55);
  border-left: 1px dashed hsl(var(--secondary-foreground) / 0.2);
  border-right: 1px dashed hsl(var(--secondary-foreground) / 0.2);
  transform: rotate(-4deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.04em;
  line-height: 1;
}

.card-paper {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: 0 1px 0 hsl(var(--foreground) / 0.04), 0 8px 24px -12px hsl(var(--foreground) / 0.08);
  transition: all 300ms;
}
.card-paper:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 hsl(var(--foreground) / 0.06), 0 20px 40px -16px hsl(var(--foreground) / 0.18);
}

.divider-dotted {
  background-image: radial-gradient(circle, hsl(var(--foreground) / 0.25) 1px, transparent 1px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
  background-position: center;
  height: 8px;
}

.price-strike { position: relative; display: inline-block; }
.price-strike::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 2px solid hsl(var(--accent));
  transform: rotate(-6deg);
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  transition: all 300ms;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.scrolled {
  border-bottom-color: hsl(var(--border));
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .header-inner { height: 5rem; } }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: hsl(var(--background));
  padding: 3rem 0 4rem;
}
@media (min-width: 640px) { .hero { padding: 4rem 0 6rem; } }
@media (min-width: 1024px) { .hero { padding: 6rem 0 8rem; } }

.hero-grid {
  position: relative;
  background-image:
    linear-gradient(hsl(var(--foreground)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.04;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: hsl(var(--accent));
}

.hero-image-frame {
  position: absolute;
  inset: -0.75rem;
  border: 1px solid hsl(var(--foreground) / 0.15);
  border-radius: 2rem;
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-image-frame { inset: -1rem; }
}
.hero-blob {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  height: 8rem;
  width: 8rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.2);
  filter: blur(40px);
}
@media (min-width: 640px) {
  .hero-blob { height: 11rem; width: 11rem; }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE (ResultsStrip)
   ═══════════════════════════════════════════════════════════ */
.marquee-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid hsl(var(--foreground) / 0.1);
  border-bottom: 1px solid hsl(var(--foreground) / 0.1);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1.25rem 0;
}
.marquee-section::before, .marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 10;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, hsl(var(--primary)), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, hsl(var(--primary)), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: hsl(var(--primary-foreground) / 0.9);
}
.marquee-item-bullet {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: hsl(var(--secondary));
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   MODULE CARDS (CourseModules)
   ═══════════════════════════════════════════════════════════ */
.module-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: all 300ms;
}
.module-card:hover {
  border-color: hsl(var(--foreground) / 0.2);
  box-shadow: 0 24px 60px -30px hsl(var(--foreground) / 0.25);
}
.module-card-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .module-card-grid { grid-template-columns: 280px 1fr; }
}
.module-card-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: hsl(var(--muted) / 0.4);
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 768px) {
  .module-card-rail {
    border-bottom: none;
    border-right: 1px solid hsl(var(--border));
    padding: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════ */
.faq-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: border-color 300ms;
}
.faq-item.open {
  border-color: hsl(var(--foreground) / 0.3);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .faq-trigger { font-size: 1.125rem; } }
.faq-trigger-arrow {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 300ms;
  color: hsl(var(--muted-foreground));
}
.faq-item.open .faq-trigger-arrow { transform: rotate(180deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-content-inner {
  padding: 0 1.5rem 1.25rem 3.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .faq-content-inner { font-size: 1rem; } }

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
   ═══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25D366;
  color: white;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.55);
  transition: all 300ms;
}
.wa-float:hover { background: #20BA5C; transform: scale(1.08); }
@media (min-width: 640px) {
  .wa-float {
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
  }
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2s cubic-bezier(.455, .03, .515, .955) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL (substitui framer-motion)
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
