/* ============================================
   Online Nutrition Planet — Homepage styles
   v1 · April 2026
   ============================================ */

/* Homepage-specific overrides on top of /programs/styles.css */
.home-page { background: var(--cream); }

/* ---------- HERO ---------- */
.home-hero {
  background: var(--accent-light);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 480px;
  height: 480px;
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--turmeric);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(231, 132, 41, 0.2);
}
.home-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 22px;
  max-width: 16ch;
}
.home-hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 32px;
}
.home-hero-sub strong {
  color: var(--turmeric-dark);
  font-weight: 700;
}
.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.btn-large {
  padding: 16px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
}
.home-hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 600px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}
.meta-number {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--turmeric-dark);
  line-height: 1;
}
.meta-label {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 6px;
  max-width: 18ch;
  line-height: 1.4;
}

/* Hero visual: stacked accreditor badges */
.home-hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-badge-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-badge {
  position: absolute;
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 10px 28px rgba(34, 41, 26, 0.22));
  transition: transform 0.4s ease;
}
.hero-badge-1 { top: 10%; left: 12%; transform: rotate(-8deg); }
.hero-badge-2 { top: 5%; right: 5%; transform: rotate(6deg); }
.hero-badge-3 { bottom: 20%; left: 2%; transform: rotate(4deg); }
.hero-badge-4 { bottom: 8%; right: 14%; transform: rotate(-5deg); }
.home-hero-visual:hover .hero-badge-1 { transform: rotate(-10deg) translateY(-4px); }
.home-hero-visual:hover .hero-badge-2 { transform: rotate(8deg) translateY(-4px); }
.home-hero-visual:hover .hero-badge-3 { transform: rotate(6deg) translateY(-4px); }
.home-hero-visual:hover .hero-badge-4 { transform: rotate(-7deg) translateY(-4px); }

/* ---------- TRUST STRIP ---------- */
.home-trust {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.trust-header { max-width: 60ch; margin-bottom: 48px; }
.trust-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-dark);
  margin-bottom: 12px;
}
.trust-header h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 22ch;
}
.trust-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.trust-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.trust-item img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(34, 41, 26, 0.14));
}
.trust-item strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
}
.trust-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- SECTION HEADER ---------- */
.section-header { max-width: 70ch; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--turmeric-dark);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.section-header p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* ---------- CLUSTERS ---------- */
.home-clusters {
  padding: 90px 0;
  background: var(--cream);
}
.clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.cluster-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.cluster-card:hover {
  border-color: var(--olive);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cluster-card-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.cluster-card-badge img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(34, 41, 26, 0.1));
}
.cluster-card-body { flex: 1; }
.cluster-card-count {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--turmeric-dark);
  margin-bottom: 6px;
}
.cluster-card-body h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.cluster-card-body p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.cluster-card-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--olive-dark);
}
.cluster-card:hover .cluster-card-link { color: var(--turmeric); }

/* ---------- QUIZ CTA ---------- */
.home-quiz-cta {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quiz-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.quiz-cta-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--turmeric-dark);
  margin-bottom: 12px;
}
.quiz-cta-text h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 18ch;
  letter-spacing: -0.015em;
}
.quiz-cta-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 50ch;
}
.quiz-step-preview {
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-md);
  max-width: 420px;
  margin-left: auto;
}
.quiz-step-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}
.quiz-step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18%;
  background: var(--accent);
  border-radius: 999px;
}
.quiz-step-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.quiz-step-question {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 500;
}
.quiz-step-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-step-options span {
  background: rgba(255, 255, 255, 0.92);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.quiz-step-options .quiz-more {
  background: transparent;
  color: var(--ink-mute);
  font-size: 0.78rem;
  text-align: center;
  border: none;
  padding: 6px;
}

/* ---------- FEATURED GUIDES ---------- */
.home-featured {
  padding: 90px 0;
  background: var(--cream);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.featured-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.featured-card:hover {
  border-color: var(--olive);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.featured-tag {
  display: inline-block;
  background: var(--peach-soft);
  color: var(--turmeric-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}
.featured-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 4px 0 2px;
  font-weight: 600;
}
.featured-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.featured-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-top: 6px;
}
.featured-card:hover .featured-link { color: var(--turmeric); }

/* ---------- EDITORIAL ---------- */
.home-editorial {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.editorial-inner {
  max-width: 62ch;
  margin: 0 auto;
  text-align: left;
  position: relative;
}
.editorial-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 9rem;
  line-height: 0.8;
  color: var(--olive-light);
  position: absolute;
  top: -20px;
  left: -70px;
  font-weight: 600;
  user-select: none;
  pointer-events: none;
}
.home-editorial h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  position: relative;
}
.home-editorial p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
}
.home-editorial p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.home-faq {
  padding: 90px 0;
  background: var(--cream);
}
.faq-list { max-width: 820px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--turmeric);
}
.faq-item p {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- FINAL CTA ---------- */
.home-final-cta {
  padding: 100px 0;
  background: var(--accent-dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-final-cta::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  max-width: 52ch;
  margin: 0 auto;
}
.home-final-cta h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.home-final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.final-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.home-final-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.home-final-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .home-hero { padding: 56px 0 64px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-hero-visual { min-height: 280px; order: -1; }
  .hero-badge { width: 96px; height: 96px; }
  .home-hero-meta { gap: 20px; padding-top: 24px; }
  .meta-number { font-size: 1.8rem; }

  .quiz-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .quiz-step-preview { margin: 0 auto; }
  .editorial-quote { font-size: 6rem; left: -20px; top: -30px; }
}
@media (max-width: 640px) {
  .home-hero, .home-trust, .home-clusters, .home-quiz-cta, .home-featured, .home-editorial, .home-faq, .home-final-cta { padding: 56px 0; }
  .home-final-cta .btn { width: 100%; }
}
