/* ============================================
   LEMON DOJO — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --lemon-gold: #C49A2E;
  --lemon-gold-rgb: 196, 154, 46;
  --deep-indigo: #1a1a3e;
  --compassion: #c9944a;
  --anxiety: #4a8fe7;
  --anxiety-rgb: 74, 143, 231;
  --anger: #b84a32;
  --anger-rgb: 184, 74, 50;
  --shame: #6b5b7b;
  --shame-rgb: 107, 91, 123;
  --burnout: #8a6f4a;
  --burnout-rgb: 138, 111, 74;
  --disappointment: #6a8065;
  --disappointment-rgb: 106, 128, 101;
  --panic: #d94a5e;
  --panic-rgb: 217, 74, 94;
  --fear: #5a6ba0;
  --fear-rgb: 90, 107, 160;
  --frustration: #c86428;
  --frustration-rgb: 200, 100, 40;
  --guilt: #966882;
  --guilt-rgb: 150, 104, 130;
  --loneliness: #8272aa;
  --loneliness-rgb: 130, 114, 170;
  --overwhelm: #c48838;
  --overwhelm-rgb: 196, 136, 56;
  --sadness: #507896;
  --sadness-rgb: 80, 120, 150;
  --inner-critic: #8a9bae;
  --inner-critic-rgb: 138, 155, 174;
  --compassion-rgb: 201, 148, 74;
  --wise-self: #5a7ba8;
  --wise-self-rgb: 90, 123, 168;
  --bg: #FBF7EE;
  --text: #2F3A2E;
  --text-muted: rgba(47, 58, 46, 0.62);
  --text-subtle: rgba(47, 58, 46, 0.38);
  --sage: #9BB195;
  --sage-rgb: 155, 177, 149;
  --forest: #2F3A2E;
  --font-headline: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--forest);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
}

*:focus-visible {
  outline: 2px solid var(--lemon-gold);
  outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

.serif { font-family: var(--font-headline); }
.italic { font-style: italic; }
.gold { color: var(--lemon-gold); }
.muted { color: var(--text-muted); }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-sm {
  padding: 80px 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(251, 247, 238, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(251, 247, 238, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(47, 58, 46, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo img {
  display: inline-block;
  vertical-align: middle;
  height: 130px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--lemon-gold);
}

.nav-cta-mobile {
  display: none;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--forest);
  color: var(--bg);
  text-decoration: none;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  opacity: 0.85;
  color: var(--bg);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 80px 40px 40px;
  border-top: 1px solid rgba(47, 58, 46, 0.1);
  background: rgba(47, 58, 46, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
}

.footer-col a {
  display: block;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--lemon-gold);
  opacity: 1;
}

.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(47, 58, 46, 0.05);
  border: 1px solid rgba(47, 58, 46, 0.15);
  border-right: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.footer-newsletter input:focus {
  border-color: var(--lemon-gold);
}

.footer-newsletter input::placeholder {
  color: var(--text-subtle);
}

.footer-newsletter button {
  padding: 10px 18px;
  background: var(--forest);
  border: 1px solid var(--forest);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}

.footer-newsletter button:hover {
  opacity: 0.8;
}

.footer-newsletter button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.footer-newsletter-status {
  flex: 1 0 100%;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 1.2em;
  color: var(--text-subtle);
}

.footer-newsletter-status[data-state="success"] {
  color: var(--lemon-gold);
}

.footer-newsletter-status[data-state="error"] {
  color: #b84a32;
}

/* ============================================
   NEWSLETTER FORM SHARED PIECES
   ============================================ */

.kit-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.subscribe-status {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 14px;
  min-height: 1.3em;
  color: var(--text-subtle);
  text-align: center;
}

.subscribe-status[data-state="success"] {
  color: var(--lemon-gold);
  font-weight: 500;
}

.subscribe-status[data-state="error"] {
  color: #b84a32;
}

.subscribe-status[data-state="pending"] {
  color: var(--text-subtle);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(47, 58, 46, 0.08);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border: 1px solid rgba(47, 58, 46, 0.3);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
  border-color: var(--forest);
  color: var(--bg);
  background: var(--forest);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--forest);
  color: var(--bg);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: rgba(47, 58, 46, 0.85);
  box-shadow: 0 6px 24px rgba(47, 58, 46, 0.2);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 10px 24px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: rgba(47, 58, 46, 0.04);
  border: 1px solid rgba(47, 58, 46, 0.1);
  padding: 32px;
  transition: all 0.4s ease;
}

.card:hover {
  border-color: rgba(47, 58, 46, 0.2);
  background: rgba(47, 58, 46, 0.06);
  transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS (Shared)
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 560px;
}

/* ============================================
   WHATSAPP FAB
   ============================================ */

.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  opacity: 1;
  color: #fff;
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
  .site-nav {
    padding: 12px 20px;
  }

  .nav-logo img {
    height: 88px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(251, 247, 238, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
    opacity: 0.8;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
  }

  .nav-links .nav-cta-mobile a {
    background: var(--forest);
    color: var(--bg);
    padding: 12px 32px;
    border-radius: 100px;
    text-align: center;
    opacity: 1;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-newsletter {
    flex-direction: column;
    gap: 8px;
  }

  .footer-newsletter input {
    border-right: 1px solid rgba(47, 58, 46, 0.15);
  }

  .section {
    padding: 80px 0;
  }

  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }
}
