/* ==========================================================================
   X39 Stem Cell Activation — Combined Site
   Design: Soft periwinkle "Life's Good With Michelle" aesthetic
   Fonts: Open Sans (body/headings), Merriweather (subheads), Great Vibes (accents)
   ========================================================================== */

/* ----- Self-hosted variable fonts ----- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/opensans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/merriweather-400.woff2") format("woff2");
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/greatvibes-400.woff2") format("woff2");
}

/* ----- Design tokens ----- */
:root {
  --primary: #7d8cc4;
  --royal: #5a6a9e;
  --navy: #3a4468;
  --accent-light: #b8c4e8;
  --bg-light: #f7f8fc;
  --bg-soft: #eef1f8;
  --text: #5a5f6d;
  --text-dark: #3a4468;
  --white: #ffffff;
  --gold: #d9bd8d;
  --rose: #d8a7b0;
  --border: #e4e8f2;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(58, 68, 104, 0.10);
  --font-head: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
  --font-accent: "Great Vibes", "Segoe Script", cursive;
}

/* ----- Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--royal); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--royal); }
h4 { font-size: 1.1rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--light { background: var(--bg-light); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #dfe3f2; }
.section--navy h2 { color: var(--white); }
.section--navy .section-sub { color: #c9d0e8; }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(125, 140, 196, 0.10);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--royal);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 20px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.92rem;
  color: var(--white);
  background: linear-gradient(170deg, #7d8cc4, #5a6a9e);
  padding: 15px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 6px 18px rgba(125, 140, 196, 0.35);
  text-align: center;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(125, 140, 196, 0.4); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn--ghost:hover { background: var(--primary); color: var(--white); }
.btn--navy { background: linear-gradient(170deg, #3a4468, #5a6a9e); box-shadow: 0 6px 18px rgba(58,68,104,0.35); }
.btn--sm { padding: 8px 16px; font-size: 0.78rem; }
.btn--block { display: block; width: 100%; }

/* ----- Nav ----- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 158px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: auto; max-width: 100%; max-height: 150px; border-radius: 0; }
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--text-dark); font-size: 1.02rem; }
.brand-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); font-weight: 700; }
.nav-links { display: flex; gap: 18px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.8rem; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 158px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(58, 68, 104, 0.92) 0%, rgba(90, 106, 158, 0.78) 60%, rgba(125, 140, 196, 0.6) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 800px; padding: 90px 0; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
.hero h1 .script {
  font-family: var(--font-accent);
  color: #f3ccd4;
  letter-spacing: 1px;
  font-size: 1.15em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(58, 68, 104, 0.55);
}
.hero h2.hero-sub {
  font-family: var(--font-serif);
  font-weight: 400;
  color: #e9edf7;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 18px 0 30px;
  line-height: 1.7;
}
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-badges img { width: 120px; height: auto; border-radius: 8px; box-shadow: var(--shadow); background: #fff; padding: 4px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0.85;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ----- Grid helpers ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.media img, .media video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ----- Lists ----- */
.check-list { list-style: none; }
.check-list li { padding-left: 34px; position: relative; margin-bottom: 14px; font-weight: 600; color: var(--text-dark); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(170deg, #7d8cc4, #5a6a9e);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.number-list { list-style: none; counter-reset: step; }
.number-list li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-dark);
}
.number-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(170deg, #7d8cc4, #5a6a9e);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { font-family: var(--font-head); font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.card .card-sub { font-family: var(--font-serif); color: var(--royal); font-weight: 700; margin-bottom: 12px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) { .timeline { grid-template-columns: 1fr; } }
.timeline .card { text-align: center; padding: 24px 18px; }
.timeline img { margin: 0 auto 14px; border-radius: 10px; }
.timeline .time-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.timeline .card h3 { font-size: 1rem; }
.timeline .card p { font-size: 0.9rem; margin-top: 6px; }

/* Package tiers */
.tier { position: relative; }
.tier.featured { border: 2px solid var(--primary); }
.tier-name { font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 6px; }
.tier .btn { margin-top: 16px; }

/* ----- Before / After gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; cursor: pointer; }
.gallery img { border-radius: 10px; transition: transform 0.2s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.82rem; margin-top: 8px; color: var(--text); font-weight: 600; }

/* ----- Video cards / carousel ----- */
.video-card { position: relative; }
.video-card video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 9/16; object-fit: cover; }
.video-card p { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-top: 10px; text-align: center; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.carousel .video-card { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 10px; }
.carousel::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 10px; }

/* Video wrapper (16:9) */
.video-embed { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-embed video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }

/* ----- Feature icons (X2O) ----- */
.feature-icon { text-align: center; padding: 20px 10px; }
.feature-icon img { width: 64px; height: 64px; margin: 0 auto 12px; }
.feature-icon h4 { font-size: 1rem; }

/* ----- Bio section ----- */
.bio-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(170deg, #7d8cc4, #5a6a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.bio-placeholder {
  border: 2px dashed var(--accent-light);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 28px;
  text-align: center;
  color: var(--royal);
  font-family: var(--font-serif);
  margin-top: 18px;
}

/* ----- Quote / callout ----- */
.callout {
  background: linear-gradient(170deg, #eef1f8, #ffffff);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 22px 26px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dark);
  margin: 24px 0;
  font-size: 1.05rem;
}

/* ----- Guarantee / badges ----- */
.badge-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.badge-row img { width: 150px; border-radius: 10px; box-shadow: var(--shadow); }

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(58, 68, 104, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-box .modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -18px -14px 0 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}
.modal-close:hover { color: var(--primary); }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #c9d0e8; padding: 50px 0 30px; font-size: 0.88rem; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer .disclaimer { margin-bottom: 18px; line-height: 1.7; }
.site-footer .copy { text-align: center; margin-top: 30px; color: #a6aebe; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 704px; height: auto; max-width: 100%; border-radius: 0; }
.footer-brand .brand-name { color: #fff; font-weight: 800; }

/* ----- Misc ----- */
.mt-1 { margin-top: 24px; }
.mt-2 { margin-top: 40px; }
.center { text-align: center; }
.hint { font-size: 0.85rem; color: #a6aebe; }
