/* ==========================================================================
   Being Healthier Mission — Design System
   Brand: teal/turquoise primary, warm amber accent, navy text
   ========================================================================== */

:root {
  --color-primary: #0e9488;
  --color-primary-dark: #0a6e64;
  --color-primary-light: #14b8a6;
  --color-primary-pale: #e6f5f3;
  --color-accent: #ef8a3d;
  --color-accent-dark: #d9701f;
  --color-accent-pale: #fdf0e2;
  --color-navy: #1c3a4b;
  --color-text: #33454d;
  --color-text-light: #5f7178;
  --color-bg: #fbfaf6;
  --color-bg-alt: #f3f0e9;
  --color-white: #ffffff;
  --color-border: #e4e0d6;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(28, 58, 75, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 58, 75, 0.10);
  --shadow-lg: 0 20px 48px rgba(28, 58, 75, 0.14);

  --container-width: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-text); }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-pale);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 680px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { font-size: 1.08rem; color: var(--color-text-light); margin-top: 14px; }
.text-lead { font-size: 1.15rem; color: var(--color-text-light); }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-white { background: var(--color-white); color: var(--color-primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-navy);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text span { display: block; }
.brand-text .sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% -10%, var(--color-primary-pale) 0%, transparent 65%),
    radial-gradient(600px 400px at 10% 110%, var(--color-accent-pale) 0%, transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .highlight { color: var(--color-primary); }
.hero .text-lead { margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .stat strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-navy); }
.hero-trust .stat span { font-size: 0.84rem; color: var(--color-text-light); }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-white);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  right: -28px;
  left: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero-badge .icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-accent-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--color-navy); }
.hero-badge span { font-size: 0.78rem; color: var(--color-text-light); }
.hero-blob {
  position: absolute;
  top: 30px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  opacity: 0.15;
  z-index: -1;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 56px 0 64px;
  background:
    radial-gradient(600px 320px at 90% 0%, var(--color-primary-pale) 0%, transparent 65%);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-primary); font-weight: 500; }
.page-header h1 { margin-bottom: 14px; }
.page-header .text-lead { max-width: 660px; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-light); font-size: 0.96rem; }

/* Approach / pillar cards */
.pillars-grid { grid-template-columns: repeat(5, 1fr); }
.pillar-card { text-align: center; padding: 26px 18px; }
.pillar-card .card-icon { margin: 0 auto 16px; }
.pillar-card h3 { font-size: 1.02rem; }
.pillar-card p { font-size: 0.86rem; }

/* Program cards */
.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-pale);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.program-card ul { margin: 18px 0; flex-grow: 1; }
.program-card ul li {
  font-size: 0.92rem;
  color: var(--color-text-light);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.program-card ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.program-card.featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, var(--color-primary-pale) 0%, var(--color-white) 22%);
}

/* Book / resource cards */
.book-card { display: flex; gap: 22px; padding: 26px; }
.book-cover {
  flex-shrink: 0;
  width: 96px; height: 130px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--color-primary-light), var(--color-primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; text-align: center; font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 600; padding: 10px;
  box-shadow: var(--shadow-sm);
}
.book-card.accent .book-cover { background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark)); }
img.book-cover { object-fit: cover; padding: 0; background: none; }
.book-card .status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-top: 10px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary-pale);
  line-height: 1;
  margin-bottom: 4px;
}
.testimonial-card p.quote { font-size: 1.02rem; color: var(--color-text); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--color-navy); }
.testimonial-author span { font-size: 0.8rem; color: var(--color-text-light); }
.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-pale);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: white; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: white; font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-grid ul li a:hover { color: var(--color-primary-light); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin: 16px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.88rem; color: var(--color-navy); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.96rem; color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--color-text-light); margin-top: 10px; }
#form-success {
  display: none; background: var(--color-primary-pale); color: var(--color-primary-dark);
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px;
}
#form-success.show { display: block; }
#form-error {
  display: none; background: #fdeaea; color: #b3261e;
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px;
}
#form-error.show { display: block; }
#form-error a { color: #b3261e; text-decoration: underline; }

/* Contact info cards */
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; background: var(--color-white); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); margin-bottom: 16px;
}
.contact-info-card .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--color-primary-pale); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-info-card strong { display: block; color: var(--color-navy); margin-bottom: 4px; font-family: var(--font-heading); font-size: 0.95rem; }
.contact-info-card span, .contact-info-card a { font-size: 0.9rem; color: var(--color-text-light); }

/* ---------- Timeline (About page journey) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--color-border); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -39px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-primary-pale);
}
.timeline-item .year { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 0.86rem; margin-bottom: 6px; }
.timeline-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-item p { color: var(--color-text-light); font-size: 0.94rem; }

/* Credentials list */
.credential-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--color-border);
}
.credential-row:last-child { border-bottom: none; }
.credential-row .icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--color-accent-pale); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.credential-row strong { display: block; color: var(--color-navy); font-family: var(--font-heading); font-size: 0.98rem; }
.credential-row span { font-size: 0.86rem; color: var(--color-text-light); }

/* Values / philosophy grid */
.value-item { display: flex; gap: 16px; }
.value-item .num {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  color: var(--color-primary-pale); -webkit-text-stroke: 1.5px var(--color-primary);
  flex-shrink: 0; width: 42px;
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; color: var(--color-text-light); }

/* Quote block */
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: 8px 0 8px 28px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-navy);
  font-weight: 500;
  font-style: italic;
  margin: 12px 0;
}

/* Case study stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-box { text-align: center; padding: 24px; background: var(--color-white); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.stat-box strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-primary); }
.stat-box span { font-size: 0.82rem; color: var(--color-text-light); }

/* Photo strip / gallery */
.photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.wide-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
}
.wide-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* Disclaimer box */
.disclaimer-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-size: 0.86rem;
  color: var(--color-text-light);
}
.disclaimer-box strong { color: var(--color-navy); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 22px 0; }
.faq-item summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-navy); font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; color: var(--color-text-light); font-size: 0.94rem; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 100px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90; font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Chat widget ---------- */
.chatbot-root { position: fixed; bottom: 24px; right: 24px; z-index: 200; }

.chatbot-launcher {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chatbot-launcher:hover { background: var(--color-primary-dark); transform: scale(1.06); }
.chatbot-launcher.hidden { display: none; }

.chatbot-teaser {
  position: absolute; bottom: 74px; right: 0;
  background: var(--color-white); color: var(--color-navy);
  padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  cursor: pointer; border: 1px solid var(--color-border);
  animation: chatbot-pop 0.3s ease;
}
.chatbot-teaser.hidden { display: none; }
.chatbot-teaser::after {
  content: ''; position: absolute; bottom: -7px; right: 24px;
  width: 14px; height: 14px; background: var(--color-white);
  border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}
@keyframes chatbot-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.chatbot-panel {
  position: absolute; bottom: 0; right: 0;
  width: 360px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--color-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chatbot-pop 0.25s ease;
}
.chatbot-panel.hidden { display: none; }

.chatbot-header {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: white; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chatbot-header strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; }
.chatbot-header span { font-size: 0.76rem; color: rgba(255,255,255,0.8); }
.chatbot-close { color: white; font-size: 1.1rem; opacity: 0.85; padding: 4px; }
.chatbot-close:hover { opacity: 1; }

.chatbot-log {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: var(--color-bg-alt);
}
.chatbot-msg {
  max-width: 82%; padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 0.9rem; line-height: 1.5;
}
.chatbot-msg-bot {
  align-self: flex-start; background: var(--color-white);
  border: 1px solid var(--color-border); color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chatbot-msg-user {
  align-self: flex-end; background: var(--color-primary); color: white;
  border-bottom-right-radius: 4px;
}
.chatbot-calendly-wrap { width: 100%; }
.chatbot-calendly { width: 100%; min-height: 480px; border-radius: var(--radius-sm); overflow: hidden; }

.chatbot-actions {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px;
  background: var(--color-bg-alt); flex-shrink: 0;
}
.chatbot-chip {
  background: var(--color-white); border: 1.5px solid var(--color-primary);
  color: var(--color-primary); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.82rem; padding: 8px 14px; border-radius: var(--radius-full);
  transition: background 0.2s ease, color 0.2s ease;
}
.chatbot-chip:hover { background: var(--color-primary); color: white; }

.chatbot-input-row {
  display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--color-border); flex-shrink: 0;
}
.chatbot-input-row.hidden { display: none; }
.chatbot-input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full); font-size: 0.9rem; font-family: var(--font-body);
}
.chatbot-input:focus { outline: none; border-color: var(--color-primary); }
.chatbot-send {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary);
  color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-send:hover { background: var(--color-primary-dark); }

@media (max-width: 480px) {
  .chatbot-root { bottom: 16px; right: 16px; }
  .chatbot-panel { width: calc(100vw - 24px); height: calc(100vh - 100px); }
  .back-to-top { right: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute;
    top: 82px; left: 0; right: 0; background: var(--color-white);
    padding: 24px; gap: 20px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--color-border);
  }
  .nav-actions .btn-outline { display: none; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; }
  .book-cover { width: 100%; height: 110px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero-badge { position: static; margin-top: -20px; max-width: 100%; }
}
