/* ============================================
   SCIENCE PAGES – Shared Styles
   ============================================ */

/* --- Science Sub-Navigation --- */
.science-subnav {
  position: sticky;
  top: 55px;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e2e1;
  padding: 0;
}
.science-subnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.science-subnav__inner::-webkit-scrollbar { display: none; }
.science-subnav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444748;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.science-subnav__link:hover {
  color: #000;
  border-bottom-color: #E1B335;
}
.science-subnav__link.active {
  color: #000;
  border-bottom-color: #000;
}
.science-subnav__link img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Science Hero Sections --- */
.science-hero {
  position: relative;
  display: flex;
  align-items: center; /* keep horizontal centering for column, vertical for row */
  flex-direction: column; /* default to column for all pages, ingredients overrides to lg:flex-row */
  padding-top: 130px;
  overflow: hidden;
  background: #ffffff;
}
.science-hero--dark {
  background: #1c1b1b;
  color: #fff;
}
.science-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.science-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
}
.science-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px 80px;
}
.science-hero__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E1B335;
  margin-bottom: 16px;
}
.science-hero__title {
  font-family: 'Source Serif 4', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.science-hero__title em {
  font-style: italic;
  font-weight: 400;
  font-family: 'Source Serif 4', serif;
}
.science-hero__subtitle {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
}
.science-hero--light .science-hero__subtitle {
  color: #5d5f5f;
}

/* --- Section Containers --- */
.science-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.science-section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.science-section--cream {
  background: #ffffff;
}
.science-section--dark {
  background: #1c1b1b;
  color: #fff;
}
.science-section--white {
  background: #fff;
}
.science-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.science-section__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E1B335;
  margin-bottom: 12px;
}
.science-section__title {
  font-family: 'Source Serif 4', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1c1b1b;
  margin-bottom: 16px;
}
.science-section--dark .science-section__title {
  color: #fff;
}
.science-section__desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #5d5f5f;
}
.science-section--dark .science-section__desc {
  color: rgba(255,255,255,0.7);
}

/* --- Root Cause Cards --- */
.root-cause-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.root-cause-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid #e5e2e1;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.root-cause-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #E1B335;
}
.root-cause-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #e5e2e1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  color: #E1B335;
}
.root-cause-card__title {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 12px;
}
.root-cause-card__text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #5d5f5f;
}

/* --- Ingredient Cards --- */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ingredient-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e2e1;
  transition: all 0.35s ease;
}
.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: #E1B335;
}
.ingredient-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ffffff;
}
.ingredient-card__body {
  padding: 24px;
}
.ingredient-card__name {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 8px;
}
.ingredient-card__desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5d5f5f;
  margin-bottom: 12px;
}
.ingredient-card__target {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #444748;
  letter-spacing: 0.03em;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}
.stat-item__number {
  font-family: 'Source Serif 4', serif;
  font-size: 56px;
  font-weight: 800;
  color: #E1B335;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  color: #5d5f5f;
  line-height: 1.5;
}

/* --- Before / After Grid --- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ba-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e2e1;
}
.ba-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ba-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.ba-card__img-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.ba-card__img-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}
.ba-card__body {
  padding: 20px 24px;
}
.ba-card__name {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 4px;
}
.ba-card__product {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  color: #5d5f5f;
}

/* --- Doctor Quote Cards --- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.doctor-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e2e1;
  text-align: center;
  transition: all 0.3s ease;
}
.doctor-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.doctor-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #ffffff;
}
.doctor-card__quote {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: #444748;
  margin-bottom: 20px;
}
.doctor-card__name {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 4px;
}
.doctor-card__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  color: #747878;
}

/* --- Standards Quality Cards --- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quality-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid #e5e2e1;
  text-align: center;
  transition: all 0.3s ease;
}
.quality-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  border-color: #E1B335;
}
.quality-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E1B335, #B18E21);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 28px;
}
.quality-card__title {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 12px;
}
.quality-card__text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5d5f5f;
}

/* --- Related Pages Navigation --- */
.related-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-page-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform 0.35s ease;
}
.related-page-card:hover {
  transform: translateY(-4px);
}
.related-page-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-page-card:hover .related-page-card__bg {
  transform: scale(1.05);
}
.related-page-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.related-page-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
}
.related-page-card__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E1B335;
  margin-bottom: 6px;
}
.related-page-card__title {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* --- CTA Banner --- */
.science-cta-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 24px;
}
.science-cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.science-cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.science-cta-banner__content {
  position: relative;
  z-index: 2;
  padding: 48px;
}
.science-cta-banner__title {
  font-family: 'Source Serif 4', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.science-cta-banner__text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

/* --- Publication Reference --- */
.publication-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #e5e2e1;
  display: flex;
  align-items: center;
  gap: 32px;
}
.publication-card__logo {
  flex-shrink: 0;
  max-width: 80px;
}
.publication-card__title {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1c1b1b;
  margin-bottom: 8px;
}
.publication-card__text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5d5f5f;
}

/* --- Two Column Layout --- */
.science-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.science-two-col--reverse {
  direction: rtl;
}
.science-two-col--reverse > * {
  direction: ltr;
}

/* --- Buttons --- */
.science-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.science-btn--primary {
  background: #E1B335;
  color: #fff;
}
.science-btn--primary:hover {
  background: #B18E21;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,179,53,0.3);
}
.science-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.science-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.science-btn--dark {
  background: #1c1b1b;
  color: #fff;
}
.science-btn--dark:hover {
  background: #313030;
}

/* --- Scroll Animations --- */
.sci-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sci-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-reveal {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.scale-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Two-Col Image Section --- */
.science-img-rounded {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .science-hero { padding-top: 110px; }
  .science-hero__title { font-size: 36px; }
  .science-hero__content { padding: 0 24px 40px; }
  .root-cause-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .related-pages { grid-template-columns: repeat(2, 1fr); }
  .science-two-col { gap: 32px; }
  .ba-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .science-hero__title { font-size: 28px; }
  .science-hero__subtitle { font-size: 15px; }
  .science-hero__content { padding: 0 20px 40px; }
  
  .science-section { padding: 48px 16px; }
  .science-section__title { font-size: 28px; }
  
  .root-cause-grid { grid-template-columns: 1fr; gap: 16px; }
  .root-cause-card { padding: 28px 24px; }
  
  .ingredient-grid { grid-template-columns: 1fr; }
  
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .stat-item__number { font-size: 44px; }
  
  .ba-grid { grid-template-columns: 1fr; }
  
  .doctor-grid { grid-template-columns: 1fr; }
  
  .quality-grid { grid-template-columns: 1fr; }
  
  .related-pages { grid-template-columns: 1fr; }
  
  .science-two-col { grid-template-columns: 1fr; gap: 24px; }
  .science-two-col--reverse { direction: ltr; }
  
  .science-cta-banner { margin: 0 16px; min-height: 260px; border-radius: 16px; }
  .science-cta-banner__title { font-size: 26px; }
  .science-cta-banner__content { padding: 32px 24px; }
  
  .publication-card { flex-direction: column; text-align: center; gap: 20px; }
  
  .science-subnav__link { padding: 12px 16px; font-size: 12px; }
  .science-subnav__link img { width: 40px; height: 30px; }
}


