/* ── Reset & base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Shared brand palette */
  --blue:        #7fa8bc;
  --blue-dark:   #5a8599;
  --blue-light:  #d4e6ef;
  --gold:        #a07830;
  --gold-light:  #c9a05a;
  --cream:       #f7f3ed;
  --cream-dark:  #ede7dc;
  --white:       #ffffff;
  --ink:         #1e1e1e;
  --ink-mid:     #4a4a4a;
  --ink-soft:    #7a7a7a;

  /* Myo accent — deep teal/blue */
  --accent:      #4a7c8e;
  --accent-dark: #336070;
  --accent-light: #cde4ec;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    10px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow:    0 6px 32px rgba(0,0,0,0.12);

  --max-w:  1120px;
  --nav-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { color: var(--ink-mid); max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section        { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--accent { background: var(--accent); color: var(--white); }
.section--dark  { background: var(--ink); color: var(--white); }

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

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

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--accent-dark); }

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline-accent:hover { background: var(--accent); color: var(--white); }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__logo img {
  height: 44px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
}
.nav__logo-sub {
  font-size: 0.65rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.nav__badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.nav__links a:hover { color: var(--accent); background: var(--accent-light); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius) !important;
}
.nav__cta:hover { background: var(--gold-light) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://beyourbest.solutions/images/lifestyle-adult-sleeping.png');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(74, 124, 142, 0.88) 0%,
    rgba(30, 30, 30, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: var(--white);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Stats strip ─────────────────────────────── */
.stats {
  background: var(--accent);
  padding: 2rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats__item {
  padding: 1rem;
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stats__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

/* ── Problem/Solution intro ──────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-grid img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.intro__body h2 { margin-bottom: 1.25rem; }
.intro__body p  { margin-bottom: 1rem; }

.symptom-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.symptom-list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.symptom-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Four Pillars ────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pillar-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--accent-dark);
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  max-width: 100%;
}

/* ── Programs ────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.program-card__badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
}

.program-card__body {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.program-card__meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.program-card p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  margin-bottom: 1rem;
  max-width: 100%;
}

.program-card__phases {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  flex: 1;
}

.program-card__phases li {
  font-size: 0.82rem;
  color: var(--ink-mid);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  gap: 0.6rem;
}
.program-card__phases li:last-child { border-bottom: none; }

.program-card__phases li strong {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.program-card__cta { margin-top: auto; }

/* ── Science section ─────────────────────────── */
.science-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.science-two-col img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow);
}

.stat-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.stat-callout .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-dark);
  font-weight: 600;
  line-height: 1;
}
.stat-callout .label {
  font-size: 0.875rem;
  color: var(--ink-mid);
  margin-top: 0.25rem;
}

/* ── Comparison table ────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.comparison-table td {
  padding: 0.75rem 1.25rem;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}
.comparison-table tr:nth-child(even) td { background: var(--cream); }

/* ── Kids section ────────────────────────────── */
.kids-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.kids-grid img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.week-list {
  list-style: none;
  margin: 1.5rem 0;
}
.week-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9rem;
}
.week-list li:last-child { border-bottom: none; }
.week-list .week-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.week-list li p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  max-width: 100%;
  margin: 0;
}
.week-list li strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }

/* ── Process steps ───────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: var(--accent-light);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 100%;
  margin: 0 auto;
}

/* ── Providers ───────────────────────────────── */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.provider-tag {
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.provider-tag span:first-child { font-size: 1.4rem; }

/* ── Testimonials ────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  flex: 1;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.85); margin: 0 auto 2rem; max-width: 55ch; }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  max-width: 30ch;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.5rem; }
.footer__col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
}
.footer__bottom a:hover { color: var(--white); }

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  max-width: 100%;
  line-height: 1.6;
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 900px) {
  .stats__grid      { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid     { grid-template-columns: repeat(2, 1fr); }
  .programs-grid    { grid-template-columns: 1fr; }
  .intro-grid       { grid-template-columns: 1fr; }
  .intro-grid img   { aspect-ratio: 16/9; }
  .science-two-col  { grid-template-columns: 1fr; }
  .kids-grid        { grid-template-columns: 1fr; }
  .steps-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .providers-grid   { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer__inner    { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom   { flex-direction: column; gap: 0.5rem; text-align: center; }
  .symptom-list     { grid-template-columns: 1fr; }
  .hero__btns       { flex-direction: column; align-items: flex-start; }
  .nav__hamburger   { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav { position: sticky; }
}

@media (max-width: 600px) {
  .pillars-grid   { grid-template-columns: 1fr; }
  .providers-grid { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .section        { padding: 3.5rem 0; }
}
