/* ============================================
   MINDFUL MONKIES — DESIGN SYSTEM
   Warm & playful, credibility-backed
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --leaf: #5C3623;
  --leaf-dark: #422613;
  --brown: #E1945C;
  --brown-dark: #C47B44;
  --cream: #FFFCF7;
  --cream-soft: #FFF8EF;
  --white: #FFFFFF;
  --sage: #A9754C;
  --sage-light: #FBE4CC;
  --text: #3D2A1E;
  --text-soft: #6B5544;
  --brown-light: #FDE3C7;
  --peach: #F8B581;
  --peach-dark: #E1945C;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 24px rgba(47, 74, 58, 0.08);
  --shadow-card: 0 4px 16px rgba(47, 74, 58, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--leaf);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { color: var(--text-soft); }

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

.container--narrow { max-width: 880px; }

.section { padding: 120px 0; }
.section--tight { padding: 72px 0; }
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { margin-bottom: 40px; }
  .cta-band { padding: 40px 28px; }
}
.section--soft { background: var(--cream-soft); }
.section--white { background: var(--white); }
.section--leaf { background: var(--leaf); color: var(--white); }
.section--leaf h2, .section--leaf h3 { color: var(--white); }
.section--leaf p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--brown-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

.btn--primary { background: var(--brown); color: var(--white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--brown-dark); }

.btn--secondary { background: var(--white); color: var(--leaf); border: 2px solid var(--leaf); }
.btn--secondary:hover { background: var(--sage-light); }

.btn--on-dark { background: var(--white); color: var(--leaf); }
.btn--on-dark:hover { background: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 74, 58, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img {
  height: 40px;
  width: auto;
  border-radius: 0;
  display: block;
}
.nav__links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}
.nav__links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--leaf);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}
.nav__links a:hover { background: var(--sage-light); }
.nav__links a.active { background: var(--leaf); color: var(--white); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--leaf);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-soft);
  }
  .nav__links.is-open a { width: 100%; }
}

/* ---------- Canopy divider (signature element) ---------- */
.canopy {
  width: 100%;
  height: 48px;
  display: block;
}
.canopy path { fill: var(--cream); }
.canopy--to-white path { fill: var(--white); }
.canopy--to-leaf path { fill: var(--leaf); }
.canopy--to-soft path { fill: var(--cream-soft); }
.canopy--from-white { background: var(--white); }
.canopy--from-soft { background: var(--cream-soft); }
.canopy--from-leaf { background: var(--leaf); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage);
}
.hero__trust span { display: flex; align-items: center; gap: 6px; }

.hero__art {
  position: relative;
  aspect-ratio: 4/3.4;
  background: var(--brown-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__art-placeholder {
  text-align: center;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 20px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr !important; padding-top: 32px; }
  .hero > div:last-child { order: -1; }
}

/* Split hero: heading scaled for half-width column */
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head p { font-size: 1.15rem; }

.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--leaf);
  line-height: 1.35;
  max-width: 22ch;
}
.statement--wide { max-width: 30ch; }

/* ---------- 3Cs framework ---------- */
.threeCs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.threeC {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  border-top: 6px solid var(--brown);
  box-shadow: var(--shadow-card);
}
.threeC:nth-child(2) { border-top-color: var(--leaf); }
.threeC:nth-child(3) { border-top-color: var(--sage); }
@media (max-width: 860px) { .threeCs { grid-template-columns: 1fr; } }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brown);
  display: block;
}
.stat-strip .label { font-size: 0.95rem; font-weight: 600; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Trust badges row ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.badge {
  background: var(--white);
  border: 2px solid var(--sage-light);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--leaf);
}

/* ---------- Testimonial / quote ---------- */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-block .mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.quote-block p {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--leaf-dark);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 24px;
}
.quote-block .who { font-weight: 800; color: var(--brown-dark); font-size: 1rem; }
.quote-block .who span { display: block; font-weight: 600; color: var(--sage); font-size: 0.9rem; margin-top: 2px; }

.quote-rail { display: flex; flex-direction: column; gap: 64px; }

/* legacy alias kept for compatibility */
.quote-card { background: var(--brown-light); border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.quote-card p { font-size: 1.3rem; color: var(--leaf-dark); font-family: var(--font-display); font-weight: 500; max-width: 46ch; margin: 0 auto 16px; }
.quote-card .who { font-weight: 700; color: var(--brown-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--leaf);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--leaf-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: 12px; display: block; }
.footer a { display: block; padding: 4px 0; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Table (pricing/mapping) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--sage-light); font-size: 0.95rem; }
th { background: var(--sage-light); color: var(--leaf); font-family: var(--font-display); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.tag { background: var(--sage-light); color: var(--leaf); font-weight: 700; font-size: 0.82rem; padding: 6px 14px; border-radius: var(--radius-pill); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--leaf); color: var(--white); padding: 12px 20px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Custom icon system ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: currentColor;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   ANIMATION SYSTEM
   Restrained, purposeful, Apple-inspired
   ============================================ */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children within a revealed group */
[data-reveal-group] [data-reveal-item] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-group].is-visible [data-reveal-item] {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group].is-visible [data-reveal-item]:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible [data-reveal-item]:nth-child(2) { transition-delay: 0.16s; }
[data-reveal-group].is-visible [data-reveal-item]:nth-child(3) { transition-delay: 0.27s; }
[data-reveal-group].is-visible [data-reveal-item]:nth-child(4) { transition-delay: 0.38s; }

/* Scale-in variant for images/art */
[data-reveal="scale"] {
  transform: translateY(0) scale(0.94);
}
[data-reveal="scale"].is-visible {
  transform: translateY(0) scale(1);
}

/* Fade only (for large statements where movement would feel heavy) */
[data-reveal="fade"] {
  transform: none;
}

/* ---------- Hero entrance (runs on load, not scroll) ---------- */
.hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-enter:nth-child(1) { animation-delay: 0.05s; }
.hero-enter:nth-child(2) { animation-delay: 0.18s; }
.hero-enter:nth-child(3) { animation-delay: 0.31s; }
.hero-enter:nth-child(4) { animation-delay: 0.44s; }
.hero-enter:nth-child(5) { animation-delay: 0.55s; }

@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Refined hover states ---------- */
.card, .threeC, .quote-block {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.card:hover, .threeC:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(92, 54, 35, 0.1);
}

.btn { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.nav__links a { transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease; }

img, .hero__art { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Offering rows: subtle slide-right on hover to feel alive */
.offering-row {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.offering-row:hover {
  transform: translateX(6px);
  border-color: var(--brown);
}

/* Badge pop-in stagger (works with data-reveal-group on parent) */
.badge {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.badge:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-card); }

/* Canopy dividers drift very subtly for ambient life */
.canopy path { transition: d 0.3s ease; }

/* Nav shrink-on-scroll hook (class toggled by JS) */
.nav { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(92, 54, 35, 0.08); }
.nav.is-scrolled .nav__inner { padding-top: 10px; padding-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] [data-reveal-item], .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
