/* ============================================
   Charis Nutrition Counseling — Design System
   Forest / Sage / Cream / Gold — Editorial Wellness
   ============================================ */

:root {
  --forest: #2c3d33;
  --forest-deep: #1c2921;
  --sage: #7c9683;
  --sage-light: #b9c9bc;
  --sage-pale: #e7ede8;
  --cream: #faf7f0;
  --cream-dark: #f1ead9;
  --gold: #b58a4a;
  --gold-light: #d4b483;
  --ink: #2a2823;
  --ink-soft: #565048;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 40px -12px rgba(44, 61, 51, 0.18);
  --shadow-card: 0 4px 24px -6px rgba(44, 61, 51, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.15;
}

h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

section { padding: 100px 0; position: relative; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(44, 61, 51, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--sage-light);
}

.btn-outline:hover {
  border-color: var(--forest);
  background: var(--sage-pale);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: #9c7439;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
  background: rgba(250, 247, 240, 0);
}

.site-header.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(44, 61, 51, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span { color: var(--gold); font-size: 1.9rem; line-height: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--forest);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { 
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 80vw);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 28px;
    transition: right 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--sage-pale) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  margin-bottom: 26px;
}

.hero-copy .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-trust-item svg { flex-shrink: 0; color: var(--gold); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}

.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  right: 24px;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.hero-badge-icon {
  width: 46px; height: 46px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  flex-shrink: 0;
}

.hero-badge strong { display: block; font-size: 0.95rem; color: var(--forest-deep); }
.hero-badge span { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { padding: 128px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ---------- Why Charis (feature grid) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -12px rgba(44,61,51,0.22);
}

.why-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.why-card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.why-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Who We Help ---------- */

.who-section {
  background: var(--forest);
  color: var(--cream);
}

.who-section .eyebrow { color: var(--gold-light); }
.who-section h2 { color: var(--cream); }
.who-section .section-head p { color: var(--sage-light); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.who-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.who-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.who-card .who-icon {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(181,138,74,0.18);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}

.who-card h3 { color: var(--cream); font-size: 1.08rem; margin-bottom: 8px; }
.who-card p { color: var(--sage-light); font-size: 0.86rem; }

@media (max-width: 1000px) {
  .who-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Our Approach (Different) ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.approach-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
}

.approach-visual img { width: 100%; height: 100%; object-fit: cover; }

.approach-list { display: flex; flex-direction: column; gap: 28px; }

.approach-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sage-pale);
}

.approach-item:last-child { border-bottom: none; padding-bottom: 0; }

.approach-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  width: 50px;
}

.approach-item h3 { margin-bottom: 8px; }
.approach-item p { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-visual { max-width: 420px; margin: 0 auto; }
}

/* ---------- First Session (steps timeline) ---------- */

.session-section { background: var(--cream-dark); }

.session-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.session-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.session-step .step-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--sage-light);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
}

.session-step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.session-step p { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .session-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .session-steps { grid-template-columns: 1fr; }
}

/* ---------- How It Works ---------- */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.how-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.how-step::after {
  content: '';
  position: absolute;
  top: 34px; right: -14%;
  width: 28%;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--sage-light) 0 6px, transparent 6px 12px);
}

.how-step:last-child::after { display: none; }

.how-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-card);
}

.how-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.how-step p { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .how-step::after { display: none; }
}
@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */

.testi-section { background: var(--sage-pale); }

.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}

.testi-stars { color: var(--gold); margin-bottom: 16px; letter-spacing: 2px; font-size: 1rem; }

.testi-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--forest-deep);
  line-height: 1.55;
  margin-bottom: 22px;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testi-author strong { display: block; font-size: 0.92rem; color: var(--forest-deep); }
.testi-author span { font-size: 0.8rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .testi-track { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--sage-pale);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}

.faq-item[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-answer p {
  padding: 0 4px 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 680px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(181,138,74,0.18), transparent 55%);
}

.final-cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }

.final-cta .eyebrow { color: var(--gold-light); justify-content: center; }
.final-cta h2 { color: var(--cream); margin-bottom: 18px; }
.final-cta p { color: var(--sage-light); font-size: 1.08rem; margin-bottom: 36px; }

.final-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .final-cta { margin: 0 16px; padding: 56px 24px; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--forest-deep);
  color: var(--sage-light);
  padding: 80px 0 32px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: var(--cream); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-social { display: flex; gap: 12px; margin-top: 22px; }

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease);
}

.footer-social a:hover { background: var(--gold); }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col li { font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(185, 201, 188, 0.7);
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: rgba(185, 201, 188, 0.55);
  margin-top: 22px;
  line-height: 1.6;
  max-width: 900px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sticky Mobile CTA ---------- */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--cream);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
}

.mobile-sticky-cta .btn { width: 100%; }

@media (max-width: 900px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 78px; }
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

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