/* ═══════════════════════════════════════════
   SCIENCE PAGE STYLES
═══════════════════════════════════════════ */

/* ── Hero ────────────────────────────── */
.science-hero {
  padding: var(--section-pad) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.science-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin: 0.6rem 0 1.2rem;
}

.science-hero-title em {
  font-style: italic;
  color: var(--brand);
}

.science-hero-sub {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.science-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.science-stat {
  text-align: center;
}

.science-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brand);
  display: block;
  line-height: 1.2;
}

.science-stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.3rem;
  display: block;
  letter-spacing: 0.02em;
}

/* ── Section shared ──────────────────── */
.science-section {
  padding: var(--section-pad) 0;
}

.science-section.alt {
  background: var(--cream);
}

.science-section.dark {
  background: var(--navy);
  color: #fff;
}

.science-section.dark .section-label {
  color: var(--brand-light);
}

.science-section.dark .science-section-sub {
  color: rgba(255,255,255,0.65);
}

.science-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.science-section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 1rem;
}

/* ── Mechanism cards ─────────────────── */
.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mechanism-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mechanism-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.mechanism-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.mechanism-icon.red {
  background: rgba(221,29,29,0.08);
  color: var(--red-therapy);
}

.mechanism-icon.blue {
  background: rgba(82,113,255,0.08);
  color: var(--brand);
}

.mechanism-icon.amber {
  background: rgba(232,160,64,0.08);
  color: var(--amber);
}

.mechanism-icon.green {
  background: rgba(26,154,92,0.08);
  color: var(--green);
}

.mechanism-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.mechanism-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Triple therapy columns ──────────── */
.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.triple-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.triple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.triple-card.red-card {
  background: linear-gradient(160deg, #fff5f5 0%, #fff 100%);
  border: 1px solid rgba(221,29,29,0.12);
}

.triple-card.amber-card {
  background: linear-gradient(160deg, #fff9f0 0%, #fff 100%);
  border: 1px solid rgba(232,160,64,0.12);
}

.triple-card.blue-card {
  background: linear-gradient(160deg, #f0f3ff 0%, #fff 100%);
  border: 1px solid rgba(82,113,255,0.12);
}

.triple-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}

.red-card .triple-icon {
  background: rgba(221,29,29,0.1);
  color: var(--red-therapy);
}

.amber-card .triple-icon {
  background: rgba(232,160,64,0.1);
  color: var(--amber);
}

.blue-card .triple-icon {
  background: rgba(82,113,255,0.1);
  color: var(--brand);
}

.triple-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.triple-card .triple-wavelength {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.red-card .triple-wavelength { color: var(--red-therapy); }
.amber-card .triple-wavelength { color: var(--amber); }
.blue-card .triple-wavelength { color: var(--brand); }

.triple-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.triple-benefits {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.triple-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.triple-benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.red-card .triple-benefit svg { color: var(--red-therapy); }
.amber-card .triple-benefit svg { color: var(--amber); }
.blue-card .triple-benefit svg { color: var(--brand); }

/* ── Evidence section ────────────────── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.evidence-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.evidence-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-light);
  display: block;
  line-height: 1.2;
}

.evidence-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  display: block;
  font-weight: 500;
}

.evidence-detail {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
  display: block;
}

.evidence-citations {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.evidence-citations p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.evidence-citations strong {
  color: rgba(255,255,255,0.8);
}

/* ── Comparison table ────────────────── */
.safety-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--radius);
}

.safety-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.9rem;
}

.safety-table thead {
  background: var(--navy);
  color: #fff;
}

.safety-table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.safety-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-mid);
}

.safety-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.015);
}

.safety-table tbody tr:hover {
  background: rgba(82,113,255,0.03);
}

.safety-table .highlight-cell {
  color: var(--green);
  font-weight: 600;
}

.safety-table .caution-cell {
  color: var(--red-therapy);
}

/* ── Synergy section ─────────────────── */
.synergy-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.synergy-pillar {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.synergy-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.synergy-pillar.red .synergy-pillar-icon {
  background: rgba(221,29,29,0.1);
  color: var(--red-therapy);
}

.synergy-pillar.amber .synergy-pillar-icon {
  background: rgba(232,160,64,0.1);
  color: var(--amber);
}

.synergy-pillar.blue .synergy-pillar-icon {
  background: rgba(82,113,255,0.1);
  color: var(--brand);
}

.synergy-pillar h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.synergy-pillar-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  display: block;
}

.synergy-pillar.red .synergy-pillar-tag { color: var(--red-therapy); }
.synergy-pillar.amber .synergy-pillar-tag { color: var(--amber); }
.synergy-pillar.blue .synergy-pillar-tag { color: var(--brand); }

.synergy-pillar p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.synergy-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
}

.synergy-summary {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.synergy-summary p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Contraindications ───────────────── */
.contraindications-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.contraindication-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: rgba(232,160,64,0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
}

.contraindication-item svg {
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}

.contraindication-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ── Guidelines status ───────────────── */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.guideline-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.guideline-card h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.guideline-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.guideline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.guideline-badge.endorsed {
  background: rgba(26,154,92,0.1);
  color: var(--green);
}

.guideline-badge.conditional {
  background: rgba(232,160,64,0.1);
  color: #b8860b;
}

.guideline-badge.pending {
  background: rgba(82,113,255,0.08);
  color: var(--brand);
}

/* ── CTA section ─────────────────────── */
.science-cta {
  padding: var(--section-pad) 0;
  background: var(--navy);
  text-align: center;
}

.science-cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.science-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.science-cta-title em {
  font-style: italic;
  color: var(--brand-light);
}

.science-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.science-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.science-cta .btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* ── References toggle ───────────────── */
.references-section {
  padding: var(--section-pad) 0;
}

.references-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 1.4rem;
  background: rgba(82,113,255,0.06);
  border: 1px solid rgba(82,113,255,0.15);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.references-toggle:hover {
  background: rgba(82,113,255,0.1);
}

.references-toggle svg {
  transition: transform 0.3s;
}

.references-toggle.open svg {
  transform: rotate(180deg);
}

.references-list {
  display: none;
  max-height: 500px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
}

.references-list.show {
  display: block;
}

.references-list ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.references-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.references-list li strong {
  color: var(--text-dark);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .science-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .mechanism-grid {
    grid-template-columns: 1fr;
  }

  .triple-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .synergy-visual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .synergy-plus {
    display: none;
  }

  .contraindications-list {
    grid-template-columns: 1fr;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .science-hero {
    padding-top: 1.5rem;
  }

  .science-hero-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .science-hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }

  .science-hero-stats {
    gap: 1rem;
  }

  .science-stat-number {
    font-size: 1.6rem;
  }

  .science-stat-label {
    font-size: 0.75rem;
  }

  .science-section-header {
    margin-bottom: 2rem;
  }

  .science-section-sub {
    font-size: 0.92rem;
  }

  .mechanism-card {
    padding: 1.5rem 1.2rem;
  }

  .mechanism-card h4 {
    font-size: 1.05rem;
  }

  .mechanism-card p {
    font-size: 0.88rem;
  }

  .triple-card {
    padding: 2rem 1.5rem;
  }

  .triple-card h3 {
    font-size: 1.15rem;
  }

  .evidence-card {
    padding: 1.5rem;
  }

  .safety-table {
    font-size: 0.82rem;
  }

  .safety-table th, .safety-table td {
    padding: 0.7rem 0.8rem;
  }

  .synergy-pillar {
    padding: 1.5rem 1.2rem;
  }

  .science-cta-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .science-cta .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
