/* ============================================================
   Tree of Life Mindset Coaching — Design Tokens + Components
   Modern & Minimal · Teal accent · Warm neutrals
   ============================================================ */

/* ---------- Fonts ---------- */
/* Zodiak (display) from Fontshare + DM Sans (body) from Google */

/* ---------- Design Tokens ---------- */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ---------- Light Mode (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F4F0;
  --color-surface-offset: #EEEDE8;
  --color-divider: #E0DDD7;
  --color-border: #D4D1CA;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-text-faint: #A3A3A3;
  --color-text-inverse: #FAFAF8;
  --color-primary: #0D7377;
  --color-primary-hover: #0A5C5F;
  --color-primary-active: #084749;
  --color-primary-highlight: #E0F0F0;
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ---------- Dark Mode ---------- */
[data-theme='dark'] {
  --color-bg: #141413;
  --color-surface: #1C1C1A;
  --color-surface-2: #232320;
  --color-surface-offset: #1E1E1C;
  --color-divider: #2C2C29;
  --color-border: #3A3A36;
  --color-text: #E0DFDC;
  --color-text-muted: #8A8A86;
  --color-text-faint: #5A5A57;
  --color-text-inverse: #1A1A1A;
  --color-primary: #4FABB0;
  --color-primary-hover: #3D9398;
  --color-primary-active: #2D7B80;
  --color-primary-highlight: #1E3233;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141413;
    --color-surface: #1C1C1A;
    --color-surface-2: #232320;
    --color-surface-offset: #1E1E1C;
    --color-divider: #2C2C29;
    --color-border: #3A3A36;
    --color-text: #E0DFDC;
    --color-text-muted: #8A8A86;
    --color-text-faint: #5A5A57;
    --color-text-inverse: #1A1A1A;
    --color-primary: #4FABB0;
    --color-primary-hover: #3D9398;
    --color-primary-active: #2D7B80;
    --color-primary-highlight: #1E3233;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* Container */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.container--narrow {
  max-width: var(--content-narrow);
}
.container--default {
  max-width: var(--content-default);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) {
  .header__inner {
    height: 72px;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop nav */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}
.nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.nav__link:hover {
  color: var(--color-text);
}
.nav__link:hover::after {
  width: 100%;
}
.nav__link--active {
  color: var(--color-text);
}
.nav__link--active::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile nav */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  display: block;
}
.mobile-nav__link:hover {
  color: var(--color-primary);
}

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

.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}
.footer__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--color-primary);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Newsletter in footer */
.footer__newsletter {
  width: 100%;
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  text-align: center;
}
@media (min-width: 768px) {
  .footer__newsletter { text-align: left; }
}
.footer__newsletter-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.footer__newsletter-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer__newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 400px;
}
@media (max-width: 767px) {
  .footer__newsletter-form { margin-inline: auto; }
}
.footer__newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
}
.footer__newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-faint);
}
.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}
.section--tinted {
  background: var(--color-surface-2);
}

.section__header {
  margin-bottom: var(--space-10);
}
.section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
}
/* Watercolor background removed — quiet cream lets the ink-brush moment breathe */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg img {
  display: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: var(--text-base);
  color: #4a4845;
  margin-bottom: var(--space-4);
  max-width: 52ch;
  line-height: 1.7;
}
[data-theme='dark'] .hero__lead {
  color: #d6d3cd;
}
.hero__sublead {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  font-weight: 400;
  font-style: normal;
  color: #4a4845;
  max-width: 52ch;
  line-height: 1.65;
  margin: 2rem 0 2.75rem;
}
[data-theme='dark'] .hero__sublead {
  color: #d6d3cd;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   TWO COLUMN LAYOUT
   ============================================================ */

.two-col {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .two-col--reverse > :first-child {
    order: 2;
  }
}
.two-col__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.two-col__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   QUOTE / PULLQUOTE
   ============================================================ */

.pullquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
  padding-block: var(--space-8);
  position: relative;
}
.pullquote::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  margin: 0 auto var(--space-6);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list {
  max-width: var(--content-default);
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-4);
  min-height: 44px;
}
.faq-item__trigger:hover {
  color: var(--color-primary);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__body {
  display: none;
  padding-bottom: var(--space-5);
}
.faq-item.is-open .faq-item__body {
  display: block;
}
.faq-item__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  max-width: 520px;
}
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  color: var(--color-text);
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */

.testimonial {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
}
.testimonial__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.testimonial__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   METHOD STEPS
   ============================================================ */

.steps {
  counter-reset: step;
}
.step {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
  counter-increment: step;
}
@media (min-width: 640px) {
  .step {
    grid-template-columns: 64px 1fr;
    gap: var(--space-6);
  }
}
.step__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
}
.step__number::before {
  content: counter(step, decimal-leading-zero);
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.step__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   PILLAR BADGES (for topics)
   ============================================================ */

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.pillar {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 500;
}

/* ============================================================
   IMAGE SECTION (full-bleed moment)
   ============================================================ */

.image-break {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-block: var(--space-4);
}
.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
