/*
 * Forever Growth Mindset Suite - Global Styles
 * Motivational / stoic / spiritual with sage greens and tan highlights.
 */

:root {
  --fgm-bg: #0b110e;
  --fgm-bg-alt: #111811;
  --fgm-card: #182219;
  --fgm-primary: #95d48a;
  --fgm-primary-soft: rgba(149, 212, 138, 0.18);
  --fgm-accent: #f3c58b;
  --fgm-olive: #5f7f4a;
  --fgm-sage: #c7dac6;
  --fgm-tan: #e3c59b;
  --fgm-wood: #c79b66;
  --fgm-text: #fdfaf4;
  --fgm-muted: #b3b3b3;
  --fgm-radius-lg: 18px;
  --fgm-radius-xl: 24px;
  --fgm-shadow-soft: 0 26px 80px rgba(3, 7, 5, 0.9);
  --fgm-border-subtle: 1px solid rgba(230, 217, 195, 0.35);
  --fgm-transition: 0.22s ease-out;
}

body.fgm-growth-body,
.fgm-shell {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, #1b2b1f 0, transparent 55%),
    radial-gradient(circle at bottom right, #3b2a16 0, #050806 65%);
  color: var(--fgm-text);
}

/* Section wrapper */

.fgm-section {
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 2.6rem clamp(1.6rem, 3vw, 3rem);
  background:
    linear-gradient(145deg, rgba(15, 24, 18, 0.96), rgba(22, 30, 22, 0.94)),
    radial-gradient(circle at bottom left, rgba(227, 197, 155, 0.15) 0, transparent 60%);
  border-radius: var(--fgm-radius-xl);
  border: var(--fgm-border-subtle);
  box-shadow: var(--fgm-shadow-soft);
  position: relative;
  overflow: hidden;
}

.fgm-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 15% 85%, rgba(149, 212, 138, 0.18) 0, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(243, 197, 139, 0.2) 0, transparent 55%);
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Vine-style accent */

.fgm-vine {
  position: relative;
  padding-left: 1.5rem;
}

.fgm-vine::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #95d48a, #f3c58b, #6baa4b);
  box-shadow:
    0 0 14px rgba(149, 212, 138, 0.9),
    0 0 26px rgba(243, 197, 139, 0.7);
  opacity: 0.95;
}

/* Text hierarchy */

.fgm-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--fgm-muted);
  margin-bottom: 0.65rem;
}

.fgm-title-xl {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.fgm-title-md {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.fgm-subtitle {
  color: var(--fgm-muted);
  max-width: 40rem;
}

/* Buttons */

.fgm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.fgm-btn,
.fgm-btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--fgm-transition),
    box-shadow var(--fgm-transition),
    background var(--fgm-transition),
    color var(--fgm-transition);
}

.fgm-btn {
  background: linear-gradient(130deg, var(--fgm-primary), var(--fgm-accent));
  color: #1a2617;
  box-shadow:
    0 18px 46px rgba(12, 74, 31, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fgm-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fgm-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 26px 70px rgba(22, 101, 52, 0.9),
    0 0 32px rgba(243, 197, 139, 0.7);
}

.fgm-btn-ghost {
  background: rgba(18, 26, 20, 0.9);
  border: 1px solid rgba(227, 197, 155, 0.6);
  color: var(--fgm-text);
}

.fgm-btn-ghost:hover {
  background: rgba(18, 26, 20, 1);
  border-color: rgba(149, 212, 138, 0.85);
  transform: translateY(-1px);
}

/* Grid + cards */

.fgm-grid {
  display: grid;
  gap: 1.4rem;
}

.fgm-grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fgm-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.25rem;
  background:
    linear-gradient(145deg, rgba(24, 34, 25, 0.97), rgba(31, 37, 30, 0.96)),
    radial-gradient(circle at top left, rgba(227, 197, 155, 0.12) 0, transparent 60%);
  border-radius: var(--fgm-radius-lg);
  border: 1px solid rgba(230, 217, 195, 0.38);
  box-shadow: 0 22px 65px rgba(3, 10, 6, 0.96);
  overflow: hidden;
  transition:
    transform var(--fgm-transition),
    box-shadow var(--fgm-transition),
    border-color var(--fgm-transition);
}

.fgm-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 12% 0, rgba(149, 212, 138, 0.18) 0, transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(199, 155, 102, 0.24) 0, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.fgm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 197, 139, 0.9);
  box-shadow:
    0 28px 80px rgba(3, 10, 6, 1),
    0 0 32px rgba(149, 212, 138, 0.4);
}

.fgm-card:hover::before {
  opacity: 1;
}

/* Anchor offset */

.fgm-anchor {
  scroll-margin-top: 110px;
}

/* Progress bars */

.fgm-progress-shell {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 19, 16, 0.96);
  border: 1px solid rgba(32, 42, 36, 0.95);
  overflow: hidden;
  margin-top: 0.8rem;
}

.fgm-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6baa4b, #f3c58b);
  box-shadow:
    0 0 0 1px rgba(13, 19, 16, 0.9),
    0 0 18px rgba(243, 197, 139, 0.9);
  transition: width 0.35s ease-out;
}

/* Lessons */

.fgm-lesson .fgm-lesson-complete-btn {
  margin-top: 0.9rem;
}

.fgm-lesson-complete-btn.is-complete {
  background: rgba(149, 212, 138, 0.16);
  border-color: rgba(149, 212, 138, 0.85);
  color: #e0f5dc;
}

/* Journaling widget */

.fgm-journal-box {
  position: relative;
  background:
    linear-gradient(145deg, rgba(19, 27, 21, 0.98), rgba(21, 32, 24, 0.95)),
    radial-gradient(circle at top right, rgba(227, 197, 155, 0.18) 0, transparent 60%);
  border-radius: var(--fgm-radius-lg);
  border: 1px solid rgba(230, 217, 195, 0.55);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 22px 70px rgba(4, 9, 5, 1);
}

.fgm-journal-text {
  width: 100%;
  min-height: 160px;
  border-radius: 16px;
  border: 1px solid rgba(230, 217, 195, 0.7);
  padding: 0.95rem 1rem;
  background: rgba(10, 15, 12, 0.96);
  color: var(--fgm-text);
  resize: vertical;
}

.fgm-journal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  gap: 0.9rem;
}

.fgm-journal-status {
  font-size: 0.8rem;
  color: var(--fgm-muted);
}

/* Testimonials */

.fgm-testimonial-quote {
  font-size: 0.96rem;
  color: var(--fgm-text);
}

.fgm-testimonial-name {
  margin-top: 0.8rem;
  font-weight: 700;
}

.fgm-testimonial-role {
  font-size: 0.82rem;
  color: var(--fgm-muted);
}

/* FAQ */

.fgm-faq-item {
  border-bottom: 1px dashed rgba(230, 217, 195, 0.6);
  padding: 0.9rem 0;
}

.fgm-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.fgm-faq-answer {
  display: none;
  margin-top: 0.45rem;
  color: var(--fgm-muted);
}

/* AI Coach shell */

.fgm-ai-coach-shell {
  border-radius: var(--fgm-radius-xl);
  border: 1px solid rgba(149, 212, 138, 0.55);
  padding: 1.8rem;
  background:
    radial-gradient(circle at top, rgba(19, 27, 21, 0.98), rgba(12, 19, 14, 0.96)),
    radial-gradient(circle at bottom, rgba(227, 197, 155, 0.13), transparent 60%);
  box-shadow: 0 28px 85px rgba(0, 0, 0, 1);
}

/* WooCommerce styling */

.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product {
  background:
    linear-gradient(150deg, rgba(20, 28, 22, 0.98), rgba(15, 22, 17, 0.98)),
    radial-gradient(circle at top left, rgba(227, 197, 155, 0.16) 0, transparent 60%);
  border-radius: var(--fgm-radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(230, 217, 195, 0.5);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.98);
}

.woocommerce ul.products li.product .price {
  color: var(--fgm-accent);
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  background: linear-gradient(130deg, var(--fgm-primary), var(--fgm-accent));
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.3rem;
  font-weight: 700;
  color: #1a2617;
}

.woocommerce div.product {
  background:
    linear-gradient(145deg, rgba(15, 22, 18, 0.98), rgba(19, 27, 21, 0.98)),
    radial-gradient(circle at top right, rgba(227, 197, 155, 0.16) 0, transparent 60%);
  padding: 2.1rem;
  border-radius: var(--fgm-radius-xl);
  border: 1px solid rgba(230, 217, 195, 0.55);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 1);
}

/* Animation helpers */

.fgm-animate,
.fgm-animate-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease-out, transform 0.38s ease-out;
}

.fgm-animate.is-visible,
.fgm-animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {
  .fgm-section {
    padding: 1.8rem 1.3rem;
  }
}
