/* ================================================================
   HEALTH HUB — CSS  (health.css)  v2 — Visual Enhancement
================================================================ */

/* ══════════════════════════════════════════════════════════
   1. HERO CAROUSEL
══════════════════════════════════════════════════════════ */
@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.04) translate(1%, 0.5%); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes rdiGrow {
  from { width: 0; } to { width: var(--rdi-target, 70%); }
}

.hh-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #1a3a2a;
}

/* Carousel container */
.hh-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hh-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hh-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hh-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 12s ease-in-out infinite alternate;
}
.hh-slide__quote {
  position: absolute;
  bottom: 100px;
  right: 2rem;
  max-width: 340px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  text-align: right;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  border-right: 3px solid var(--honey);
  padding-right: 14px;
}

/* Dark gradient overlay on top of slides */
.hh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(15, 35, 20, 0.88) 0%,
    rgba(26, 58, 42, 0.72) 55%,
    rgba(0,0,0,0.45) 100%
  );
}

/* Foreground content */
.hh-hero__content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.hh-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241,196,15,0.15);
  color: var(--honey);
  border: 1px solid rgba(241,196,15,0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
}
.hh-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hh-hero__title em { font-style: italic; color: var(--honey); }
.hh-hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}
.hh-hero__ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.btn--outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Arrow buttons */
.hh-carousel-controls {
  position: absolute;
  bottom: 52px;
  left: 2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hh-carousel-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
  line-height: 1;
}
.hh-carousel-arrow:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.hh-carousel-dots { display: flex; gap: 6px; }
.hh-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.hh-dot.active {
  background: var(--honey);
  width: 24px;
  border-radius: 4px;
}

/* Tip strip */
.hh-tip-strip {
  position: relative;
  z-index: 4;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 2rem;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
}
.hh-tip-strip__label {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hh-tip-strip__text {
  flex: 1;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.hh-tip-strip__share {
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 5px 8px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex; align-items: center;
  transition: all 0.2s;
}
.hh-tip-strip__share:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ══════════════════════════════════════════════════════════
   2. STATS BANNER
══════════════════════════════════════════════════════════ */
.hh-stats { background: var(--forest); padding: var(--sp-5) 2rem; }
.hh-stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.hh-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hh-stat__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--honey);
  line-height: 1;
}
.hh-stat__label { font-size: var(--text-xs); color: rgba(255,255,255,0.7); font-weight: 500; text-align: center; }
.hh-stat__divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
@media (max-width: 600px) { .hh-stat__divider { display: none; } }

/* ══════════════════════════════════════════════════════════
   3. GENERIC SECTION
══════════════════════════════════════════════════════════ */
.hh-section { padding: 5rem 2rem; background: var(--cream); }
.hh-section--alt { background: var(--white); }
.hh-section__inner { max-width: 1100px; margin: 0 auto; }
.hh-section-header { text-align: center; margin-bottom: var(--sp-8); }
.hh-section-header__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: var(--sp-2);
}
.hh-section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--cacao);
  margin-bottom: var(--sp-3);
}
.hh-section-header__title em { font-style: italic; color: var(--forest); }
.hh-section-header__sub {
  font-size: var(--text-base);
  color: var(--cacao-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   4. PROFILE CARDS
══════════════════════════════════════════════════════════ */
.hh-profile-tabs {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.hh-profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--cream-dark);
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cacao-light);
  cursor: pointer;
  transition: all 0.2s;
}
.hh-profile-tab.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44,94,59,0.3);
}
.hh-profile-tab svg { width: 16px; height: 16px; }
.hh-tab-panel { display: none; }
.hh-tab-panel.active { display: grid; }
.hh-profile-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-4); }
.hh-profile-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hh-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.hh-profile-card:hover::before, .hh-profile-card.active::before { transform: scaleX(1); }
.hh-profile-card:hover { border-color: var(--card-color, var(--forest)); box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.hh-profile-card.active { border-color: var(--card-color, var(--forest)); background: rgba(44,94,59,0.04); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.hh-profile-card__icon { font-size: 2.4rem; margin-bottom: var(--sp-2); line-height: 1; }
.hh-profile-card__label { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; color: var(--cacao); margin-bottom: 6px; }
.hh-profile-card__tagline { font-size: var(--text-xs); color: var(--cacao-light); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   5. PLAN SECTION
══════════════════════════════════════════════════════════ */
.hh-plan-section { background: var(--white); padding: 4rem 2rem; border-top: 4px solid var(--forest); }
.hh-plan-section.hidden { display: none; }
.hh-plan-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--cream-dark);
}
.hh-plan-header__left { display: flex; align-items: center; gap: var(--sp-4); }
.hh-plan-header__icon { font-size: 3rem; }
.hh-plan-header__title { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--forest); margin: 0 0 4px; }
.hh-plan-header__sub { font-size: var(--text-sm); color: var(--cacao-light); margin: 0 0 8px; }
.hh-plan-header__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hh-plan-header__actions .btn {
  justify-content: center;
}
.hh-plan-warning { background: rgba(230,126,34,0.1); border: 1px solid rgba(230,126,34,0.3); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--text-sm); color: #c0570c; margin-bottom: var(--sp-5); }
.hh-plan-warning svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.hh-plan-body { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-6); margin-bottom: var(--sp-8); }
@media (max-width: 880px) { .hh-plan-body { grid-template-columns: 1fr; } }
.hh-plan-desc { font-size: var(--text-base); color: var(--cacao); line-height: 1.8; margin-bottom: var(--sp-5); }
.hh-plan-eat-avoid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (max-width: 600px) { .hh-plan-eat-avoid { grid-template-columns: 1fr; } }
.hh-eat-block { background: var(--cream); border-radius: var(--radius-lg); padding: var(--sp-4); }
.hh-eat-title { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--sp-3); }
.hh-eat-title--eat { color: var(--matcha); }
.hh-eat-title--avoid { color: #c0570c; }
.hh-eat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-eat-list li { font-size: var(--text-xs); color: var(--cacao); line-height: 1.5; padding-left: 14px; position: relative; }
.hh-eat-list li::before { content: '•'; position: absolute; left: 0; color: var(--forest); }
.hh-plan-tips { background: rgba(44,94,59,0.05); border-left: 3px solid var(--forest); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--sp-4); margin-bottom: var(--sp-4); }
.hh-plan-tips__title { font-size: var(--text-sm); font-weight: 700; color: var(--forest); margin-bottom: var(--sp-2); }
.hh-plan-tips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-plan-tips__list li { font-size: var(--text-xs); color: var(--cacao); line-height: 1.6; padding-left: 18px; position: relative; }
.hh-plan-tips__list li::before { content: '→'; position: absolute; left: 0; color: var(--forest); font-weight: 700; }
.hh-quick-facts { margin-top: var(--sp-4); }
.hh-quick-facts__title { font-size: var(--text-sm); font-weight: 700; color: var(--cacao); margin-bottom: var(--sp-2); }
.hh-quick-facts__items { display: flex; flex-direction: column; gap: 6px; }
.hh-fact-item { background: var(--cream-dark); border-radius: var(--radius-md); padding: 8px 12px; font-size: var(--text-xs); color: var(--cacao); line-height: 1.5; }
.hh-fact-item::before { content: '📊 '; }
.hh-plan-sidebar__card { background: var(--cream); border: 1.5px solid var(--cream-dark); border-radius: var(--radius-xl); padding: var(--sp-4); position: sticky; top: 80px; }
.hh-plan-sidebar__title { font-size: var(--text-sm); font-weight: 700; color: var(--forest); margin-bottom: var(--sp-3); }
.hh-key-nutrients { display: flex; flex-direction: column; gap: 8px; }
.hh-key-nut-item { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: var(--radius-md); padding: 8px 10px; }
.hh-key-nut-icon { font-size: 1.1rem; }
.hh-key-nut-name { font-size: var(--text-xs); font-weight: 600; color: var(--cacao); flex: 1; }
.hh-key-nut-rdi { font-size: 10px; color: var(--cacao-light); }
.hh-plan-meals { margin-bottom: var(--sp-8); }
.hh-plan-avoid-meals { margin-bottom: var(--sp-4); }
.hh-plan-meals__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hh-plan-meals__title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--cacao); }
.hh-plan-meals__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-meal-filter { padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--cream-dark); background: var(--white); font-size: var(--text-xs); font-weight: 600; color: var(--cacao-light); cursor: pointer; transition: all 0.15s; }
.hh-meal-filter.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.hh-meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
.hh-meal-grid--caution { opacity: 0.85; }
.hh-meal-card { background: var(--white); border: 1.5px solid var(--cream-dark); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.hh-meal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hh-meal-card--caution { border-color: rgba(230,126,34,0.4); }
.hh-meal-card__img { width: 100%; height: 140px; object-fit: cover; background: var(--cream-dark); display: block; }
.hh-meal-card__emoji { width: 100%; height: 140px; background: linear-gradient(135deg, var(--cream), var(--cream-dark)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.hh-meal-card__body { padding: var(--sp-3); }
.hh-meal-card__region { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cacao-light); margin-bottom: 4px; }
.hh-meal-card__name { font-size: var(--text-sm); font-weight: 700; color: var(--cacao); margin-bottom: 4px; line-height: 1.3; }
.hh-meal-card__cals { font-size: var(--text-xs); font-weight: 700; color: var(--forest); }
.hh-meal-card__score { position: absolute; top: 8px; right: 8px; background: rgba(44,94,59,0.9); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.hh-meal-card__caution-badge { position: absolute; top: 8px; right: 8px; background: rgba(230,126,34,0.9); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.hh-meal-card__reason { font-size: 10px; color: #c0570c; margin-top: 4px; font-style: italic; line-height: 1.4; }

/* ══════════════════════════════════════════════════════════
   6. NUTRIENT SPOTLIGHT — Photo + RDI bar
══════════════════════════════════════════════════════════ */

/* Chips — now have a food photo bg */
.hh-nutrient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.hh-nutrient-chip {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}
.hh-nutrient-chip:hover, .hh-nutrient-chip.active {
  border-color: var(--forest);
  box-shadow: 0 8px 24px rgba(44,94,59,0.2);
  transform: translateY(-3px);
}
.hh-nutrient-chip__photo {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}
.hh-nutrient-chip__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hh-nutrient-chip__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
  transition: background 0.2s;
  z-index: 1;
  pointer-events: none;
}
.hh-nutrient-chip:hover .hh-nutrient-chip__photo::after,
.hh-nutrient-chip.active .hh-nutrient-chip__photo::after {
  background: linear-gradient(to bottom, rgba(44,94,59,0.3) 0%, rgba(44,94,59,0.65) 100%);
}
.hh-nutrient-chip__label {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hh-nutrient-chip__icon { font-size: 1.2rem; }
.hh-nutrient-chip__name { font-size: 11px; font-weight: 700; color: var(--cacao); line-height: 1.3; }
.hh-nutrient-chip:hover .hh-nutrient-chip__name,
.hh-nutrient-chip.active .hh-nutrient-chip__name { color: var(--forest); }

/* Panel */
.hh-nutrient-panel {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--sp-4);
  box-shadow: 0 12px 48px rgba(0,0,0,0.1);
  animation: slideInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hh-nutrient-panel.hidden { display: none; }

/* Close button */
.hh-nutrient-panel__close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  color: var(--cacao-light);
  margin: var(--sp-4) var(--sp-4) 0;
  transition: all 0.15s;
}
.hh-nutrient-panel__close:hover { background: var(--forest); color: #fff; }
.hh-nutrient-panel__close svg { width: 13px; height: 13px; }

/* Photo hero */
.hh-np-photo-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  margin: var(--sp-4) var(--sp-4) 0;
  border-radius: var(--radius-xl);
}
.hh-np-photo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hh-np-photo-hero:hover .hh-np-photo-hero__img { transform: scale(1.03); }
.hh-np-photo-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,15,0.85) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-5);
}
.hh-np-photo-hero__icon { font-size: 2.5rem; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.hh-np-photo-hero__overlay h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hh-np-photo-hero__overlay p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* RDI animated bar */
.hh-np-rdi-bar {
  margin: var(--sp-5) var(--sp-6) var(--sp-4);
}
.hh-np-rdi-bar__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  color: var(--cacao-light);
  font-weight: 600;
}
.hh-np-rdi-pct {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--forest);
}
.hh-np-rdi-bar__track {
  height: 10px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}
.hh-np-rdi-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--honey));
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hh-np-rdi-bar__note {
  font-size: 11px;
  color: var(--cacao-light);
  margin: 6px 0 0;
  font-style: italic;
}

/* Inner text content */
.hh-nutrient-panel__inner { padding: 0 var(--sp-6) var(--sp-6); }
.hh-nutrient-panel__what { font-size: var(--text-base); color: var(--cacao); line-height: 1.7; margin-bottom: var(--sp-4); }
.hh-nutrient-panel__deficiency {
  background: rgba(231,76,60,0.08);
  border-left: 3px solid #e74c3c;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--cacao);
  margin-bottom: var(--sp-5);
}
.hh-nutrient-panel__foods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.hh-nutrient-panel__foods h4 { font-size: var(--text-sm); font-weight: 700; color: var(--forest); margin-bottom: var(--sp-2); }
.hh-nutrient-panel__foods ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hh-nutrient-panel__foods ul li { font-size: var(--text-xs); color: var(--cacao); padding-left: 14px; position: relative; line-height: 1.5; }
.hh-nutrient-panel__foods ul li::before { content: '•'; position: absolute; left: 0; color: var(--honey); }
@media (max-width: 600px) { .hh-nutrient-panel__foods { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   7. TIPS LIBRARY — Photo header cards
══════════════════════════════════════════════════════════ */
.hh-tips-banner { margin-bottom: var(--sp-5); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.hh-tips-banner img { width: 100%; height: auto; max-height: 200px; object-fit: cover; display: block; }

.hh-tips-controls { display: flex; gap: var(--sp-4); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.hh-tips-search { position: relative; flex: 0 0 280px; }
.hh-tips-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--cacao-light); pointer-events: none; }
.hh-tips-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1.5px solid var(--cream-dark); border-radius: var(--radius-full); font-size: var(--text-sm); background: var(--white); outline: none; transition: border-color 0.2s; }
.hh-tips-search input:focus { border-color: var(--forest); }
.hh-tips-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.hh-tips-filter-btn { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--cream-dark); background: var(--white); font-size: var(--text-xs); font-weight: 600; color: var(--cacao-light); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.hh-tips-filter-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.hh-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

/* Photo tip card */
.hh-tip-card {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--shadow-sm);
}
.hh-tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Photo header */
.hh-tip-card__photo {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.hh-tip-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hh-tip-card:hover .hh-tip-card__photo img { transform: scale(1.08); }
.hh-tip-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}
.hh-tip-card__photo-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Text body */
.hh-tip-card__body {
  padding: var(--sp-4);
  border-top: 3px solid var(--tip-color, var(--forest));
}
.hh-tip-card__text { font-size: var(--text-sm); color: var(--cacao); line-height: 1.7; }
.hh-tip-card__category {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tip-color, var(--forest));
}

/* Tip colour map */
.tip-cat-hydration  { --tip-color: #3498db; }
.tip-cat-eating     { --tip-color: #27ae60; }
.tip-cat-nigerian   { --tip-color: #e67e22; }
.tip-cat-nutrients  { --tip-color: #9b59b6; }
.tip-cat-gut        { --tip-color: #16a085; }
.tip-cat-sleep      { --tip-color: #2980b9; }
.tip-cat-exercise   { --tip-color: #e74c3c; }
.tip-cat-weight     { --tip-color: #f39c12; }
.tip-cat-brain      { --tip-color: #8e44ad; }
.tip-cat-mental     { --tip-color: #8e44ad; }
.tip-cat-drinks     { --tip-color: #1abc9c; }

/* ══════════════════════════════════════════════════════════
   8. RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hh-hero { min-height: 500px; }
  .hh-hero__content { padding: 4rem 1.5rem 2.5rem; }
  .hh-slide__quote {
    right: 1rem;
    left: 1rem;
    max-width: none;
    text-align: left;
    bottom: 88px;
    font-size: var(--text-sm);
  }
  .hh-carousel-controls { left: 1rem; bottom: 44px; }
  .hh-tip-strip {
    flex-wrap: wrap;
    padding: 12px 1rem;
    gap: var(--sp-2);
  }
  .hh-stats { padding: var(--sp-4) 1rem; }
  .hh-stats__inner { gap: var(--sp-4); }
  .hh-stat__num { font-size: 1.5rem; }
  .hh-section { padding: 3.5rem 1.5rem; }
  .hh-tips-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .hh-hero { min-height: 460px; }
  .hh-hero__content { padding: 3rem 1.2rem 2rem; }
  .hh-slide__quote { display: none; }
  .hh-section { padding: 3rem 1.2rem; }
  .hh-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-tips-controls { flex-direction: column; align-items: stretch; }
  .hh-tips-search { flex: none; width: 100%; }
  .hh-plan-header { flex-direction: column; align-items: flex-start; }
  .hh-meal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-np-photo-hero { height: 180px; }
  .hh-nutrient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-rich-meal-grid,
  .hh-avoid-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hh-hero { min-height: 420px; }
  .hh-hero__title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hh-hero__ctas { flex-direction: column; align-items: stretch; }
  .hh-hero__ctas .btn { justify-content: center; }
  .hh-stats__inner { flex-direction: column; }
  .hh-meal-grid,
  .hh-profile-grid,
  .hh-nutrient-grid { grid-template-columns: 1fr; }
  .hh-nutrition-focus { padding: var(--sp-4); }
  .hh-sources-section { padding: var(--sp-4); }
}

/* ══════════════════════════════════════════════════════════
   10. RICH PLAN — New sections (Structured Nutrition Data)
══════════════════════════════════════════════════════════ */

/* ─── Nutrition Focus strip ─── */
.hh-nutrition-focus {
  background: linear-gradient(135deg, rgba(44,94,59,0.06) 0%, rgba(241,196,15,0.06) 100%);
  border: 1.5px solid rgba(44,94,59,0.15);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.hh-nutrition-focus__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hh-nutrition-focus__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hh-nutrition-focus__list li {
  font-size: var(--text-sm);
  color: var(--cacao);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.hh-nutrition-focus__list li::before {
  content: '🔬';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.85rem;
}

/* ─── Rich Meal Grid & Cards ─── */
.hh-rich-meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-2);
}
.hh-rich-card {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hh-rich-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* Card image */
.hh-rich-card__img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.hh-rich-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hh-rich-card:hover .hh-rich-card__img { transform: scale(1.05); }
.hh-rich-card__emoji-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.hh-rich-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,15,0.7) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}
/* origin flag top-left */
.hh-rich-card__origin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
/* type badge bottom-left (inside image) */
.hh-rich-card__type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(44,94,59,0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Card body */
.hh-rich-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hh-rich-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--cacao);
  line-height: 1.3;
}

/* Health tags */
.hh-rich-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.hh-tag {
  background: rgba(44,94,59,0.08);
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(44,94,59,0.15);
  text-transform: capitalize;
}

/* Ingredients */
.hh-rich-card__ingr-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cacao-light);
  margin-top: 2px;
}
.hh-rich-card__ingr {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hh-ingr-pill {
  background: var(--cream-dark);
  color: var(--cacao);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Scientific Backup & Why it fits */
.hh-rich-card__research {
  background: rgba(52,152,219,0.06);
  border-left: 3px solid #3498db;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 8px 12px;
  margin-top: var(--sp-2);
}
.hh-rc-rtitle {
  font-size: 10px;
  font-weight: 800;
  color: #2980b9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.hh-rc-rtext {
  font-size: var(--text-xs);
  color: var(--cacao);
  line-height: 1.5;
}

.hh-rich-card__why {
  background: rgba(44,94,59,0.04);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 8px 12px;
  margin-top: 6px;
}
.hh-rc-wtitle {
  font-size: 10px;
  font-weight: 800;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.hh-rc-wtext {
  font-size: var(--text-xs);
  color: var(--cacao);
  line-height: 1.5;
}
.hh-rc-wtext em {
  font-style: normal;
  font-weight: 700;
  color: var(--forest);
}

/* Serving suggestion */
.hh-rich-card__serving {
  font-size: var(--text-xs);
  color: var(--cacao-light);
  font-style: italic;
  line-height: 1.5;
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--cream-dark);
}
.hh-rich-card__serving::before { content: '🍴 '; }

/* ─── Avoid Meal Cards ─── */
.hh-avoid-title { color: #c0570c; margin-bottom: var(--sp-4); }
.hh-avoid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.hh-avoid-card {
  background: rgba(231,76,60,0.04);
  border: 1.5px solid rgba(231,76,60,0.2);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: box-shadow 0.2s;
}
.hh-avoid-card:hover { box-shadow: 0 6px 24px rgba(231,76,60,0.1); }
.hh-avoid-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #c0392b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hh-avoid-card__name::before { content: '⚠️'; flex-shrink: 0; }
.hh-avoid-card__reason {
  font-size: var(--text-xs);
  color: var(--cacao);
  line-height: 1.65;
}
.hh-avoid-card__alt {
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: var(--text-xs);
  color: var(--matcha, #27ae60);
  line-height: 1.5;
}
.hh-avoid-card__alt::before {
  content: '✅ Instead: ';
  font-weight: 700;
}

/* ─── Macro Chart Section ─── */
.hh-macro-section {
  margin-bottom: var(--sp-8);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}
.hh-macro-section.hidden { display: none; }
.hh-macro-body {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.hh-macro-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}
#macro-chart {
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.hh-macro-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hh-macro-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--cacao);
}
.hh-macro-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.hh-macro-bullets {
  flex: 1;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hh-macro-bullets li {
  font-size: var(--text-sm);
  color: var(--cacao);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.hh-macro-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}
.hh-macro-bullets li strong {
  color: var(--forest);
  font-weight: 700;
}
@media (max-width: 680px) {
  .hh-macro-body { flex-direction: column; }
  .hh-macro-chart-wrap { width: 100%; }
  #macro-chart { width: 180px; height: 180px; }
  .hh-macro-bullets { min-width: 0; width: 100%; }
  .hh-macro-section { padding: var(--sp-4); }
}

/* ─── 7-Day Week Plan ─── */
.hh-week-section {
  margin-bottom: var(--sp-8);
}
.hh-week-section.hidden { display: none; }
.hh-week-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.hh-week-note {
  font-size: var(--text-xs);
  color: var(--cacao-light);
  font-style: italic;
  flex: 1;
  line-height: 1.6;
  background: rgba(241,196,15,0.1);
  border: 1px solid rgba(241,196,15,0.3);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.hh-week-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--cream-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.hh-week-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: var(--text-xs);
}
.hh-week-table th {
  background: var(--forest);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hh-week-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.hh-week-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.hh-week-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--cream-dark);
  border-right: 1px solid var(--cream-dark);
  color: var(--cacao);
  line-height: 1.55;
}
.hh-week-table td:last-child { border-right: none; }
.hh-week-table tr:last-child td { border-bottom: none; }
.hh-week-table tr:nth-child(even) td { background: rgba(241,241,237,0.5); }
.hh-week-table tr:hover td { background: rgba(44,94,59,0.04); }
.hh-week-day {
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
  font-size: 12px;
}
.hh-meal-slot { display: flex; flex-direction: column; gap: 3px; }
.hh-meal-slot__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--honey);
}

/* ─── Research Sources ─── */
.hh-sources-section {
  margin-bottom: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  background: rgba(44,94,59,0.04);
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(44,94,59,0.12);
}
.hh-sources-section.hidden { display: none; }
.hh-sources-list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hh-sources-list li {
  font-size: var(--text-xs);
  color: var(--cacao-light);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.hh-sources-list li::before {
  content: '📄';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.8rem;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hh-rich-meal-grid { grid-template-columns: 1fr; }
  .hh-avoid-grid { grid-template-columns: 1fr; }
  .hh-rich-card__img-wrap { height: 160px; }
  .hh-week-note { flex: none; width: 100%; }
}

/* Fitness Hub entry card on Health Hub */
.hh-fitness-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.25rem;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(44, 94, 59, 0.1), rgba(126, 159, 61, 0.12));
  border: 1.5px solid rgba(44, 94, 59, 0.18);
  text-decoration: none;
  color: var(--cacao, #5A4032);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hh-fitness-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 94, 59, 0.12);
}

.hh-fitness-link__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.hh-fitness-link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hh-fitness-link__text strong {
  color: var(--forest, #2C5E3B);
  font-size: 0.98rem;
}

.hh-fitness-link__text span {
  font-size: 0.8rem;
  color: var(--cacao, #5A4032);
  line-height: 1.35;
  opacity: 0.9;
}

.hh-fitness-link__chevron {
  color: var(--forest, #2C5E3B);
  flex-shrink: 0;
}

.hh-fitness-link__chevron i {
  width: 20px;
  height: 20px;
}
