/* BC Nutra — Site Styles with layout controls */
:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #52b788;
  --accent: #d4a373;
  --bg: #f8f9fa;
  --text: #2b2d42;
  --text-light: #6c757d;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Line height control classes ─── */
.lh-tight { line-height: 1.2; }
.lh-normal { line-height: 1.6; }
.lh-relaxed { line-height: 1.8; }
.lh-loose { line-height: 2.2; }

/* ─── Text position classes ─── */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ─── Navbar ─── */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo-img { height: 40px; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── Screens — shared layout ─── */
.screen { padding: 80px 20px; min-height: 100vh; display: flex; align-items: center; }
.screen-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.screen-center { text-align: center; }

/* ─── Screen row layout (side-by-side text + image) ─── */
/* Text always comes first in HTML; image position class controls order */
.screen-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
.screen-row.img-right { flex-direction: row; }
.screen-row.img-left { flex-direction: row-reverse; }

/* ─── Text column ─── */
.screen-text { flex: 1; }
.screen-text h1, .screen-text h2 {
  font-size: 3.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: 800;
}
.screen-text h3, .screen-text h4 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}
.screen-text p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ─── Image column ─── */
.screen-image { flex-shrink: 0; }
.section-img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ─── Image width control classes ─── */
.img-w-40 { width: 40vw; max-width: 480px; }
.img-w-50 { width: 50vw; max-width: 600px; }
.img-w-60 { width: 60vw; max-width: 720px; }
.img-w-70 { width: 70vw; max-width: 840px; }

/* ─── Image fit control classes ─── */
.img-contain { object-fit: contain; }
.img-cover { object-fit: cover; }

/* ─── Image size classes ─── */
.img-normal { max-height: 500px; }
.img-large { max-height: 700px; }
.img-fullscreen {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: cover;
  border-radius: 0;
}

/* ─── Screen 1 — Hero ─── */
.screen1 { background: var(--bg); }

/* ─── Screen 2 — Life Takes A Lot, image centered, text around ─── */
.screen2 { background: var(--white); }
.screen2-heading {
  text-align: center;
  font-size: 3.5rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
  font-weight: 800;
}
.screen2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.screen2-image-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: center;
}
.screen2-image-wrap .section-img {
  max-height: 300px;
  border-radius: 50%;
  object-fit: contain;
}
.screen2-item {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding: 10px 16px;
}
.screen2-closing {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-top: 40px;
}

/* ─── Screen 3 — CTA ─── */
.screen3 {
  background: var(--primary-dark);
  color: var(--white);
}
.screen3 h2 { font-size: 3.5rem; margin-bottom: 16px; color: var(--white); font-weight: 800; }
.screen3 h3, .screen3 h4 { color: var(--white); }
.screen3 p { font-size: 1.4rem; margin-bottom: 30px; opacity: 0.9; }
.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-light:hover { background: var(--accent); color: var(--white); }

/* ─── Screen 4 — Feel Good ─── */
.screen4 { background: var(--bg); }

/* ─── Screen 5 — Better Choices, image centered ─── */
.screen5 { background: var(--white); }
.screen5-image-wrap {
  margin: 40px auto;
  max-width: 420px;
}
.screen5-image-wrap .section-img {
  width: 100%;
  border-radius: 50%;
  object-fit: contain;
}
.screen5-keywords {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.screen5-keyword {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  border: 2px solid var(--primary-light);
  padding: 10px 18px;
  border-radius: 30px;
}

/* ─── Screen 6 — Age Well ─── */
.screen6 { background: var(--bg); }
.screen6-footer-line {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-light);
}

/* ─── Screen 7 — Footer ─── */
.screen7 {
  background: var(--text);
  color: var(--white);
  padding: 60px 20px 20px;
  min-height: auto;
  display: block;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--white); }
.footer-follow {
  text-align: center;
  margin-bottom: 24px;
}
.footer-follow h4 {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.footer-email {
  max-width: 520px;
  margin: 0 auto 30px;
  text-align: center;
}
.footer-email p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 16px;
}
.email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.email-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
}
.btn-small { padding: 12px 22px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* ─── Page content (other pages) ─── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}
.page-content h1 {
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.page-content h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 30px 0 16px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
}
.page-content ul, .page-content ol {
  margin: 16px 0 16px 24px;
}
.page-content li { margin-bottom: 8px; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  margin-right: 12px;
  margin-bottom: 10px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* ─── Markdown content rendering ─── */
.screen-text h1, .screen-text h2, .screen-text h3,
.screen-text h4, .screen-text h5, .screen-text h6 {
  color: var(--primary-dark);
}
.screen3 h1, .screen3 h2, .screen3 h3,
.screen3 h4, .screen3 h5, .screen3 h6 {
  color: var(--white);
}
.screen-text strong { font-weight: 800; }
.screen-text em { font-style: italic; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.active { display: flex; }
  .screen { padding: 50px 20px; min-height: auto; }
  .screen-row, .screen-row-reverse { flex-direction: column; gap: 30px; }
  .screen-text h1, .screen-text h2, .screen2-heading, .screen3 h2 { font-size: 2rem; }
  .screen-text p { font-size: 1.1rem; }
  .img-w-40, .img-w-50, .img-w-60, .img-w-70 { width: 100%; max-width: 100%; }
  .img-fullscreen { height: 60vh; }
  .screen2-grid { grid-template-columns: 1fr; }
  .screen2-image-wrap { grid-column: 1; grid-row: auto; }
  .screen2-item { text-align: center; }
  .footer-links { gap: 16px; }
}
