/* ============================================================
   Retatrutide Dosage Calculator — Page CSS
   Extends the base style.css with page-specific styles
   ============================================================ */

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 60%, #162640 100%);
  padding: 56px 16px 48px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; font-family: 'Lexend', sans-serif;
  margin-bottom: 16px;
}
.hero-title { color: #fff; font-size: clamp(26px, 4vw, 46px); margin-bottom: 16px; line-height: 1.15; }
.hero-title .accent { color: #f87171; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.7; margin-bottom: 28px; max-width: 600px; font-family: 'Inter', sans-serif; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-val { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 28px; color: #f87171; }
.hero-stat-label { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--slate-50); border-bottom: 1px solid var(--slate-200);
  padding: 10px 16px;
}
.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate-500);
}
.breadcrumb a { color: var(--vitred); }
.breadcrumb-sep { color: var(--slate-400); }

/* === CALCULATOR CARD SPECIFIC === */
.reta-calc-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  position: sticky; top: 80px;
}
.calc-section-title {
  font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.calc-section-title .step-badge {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--vitred); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.calc-divider { height: 1px; background: var(--slate-100); margin: 20px 0; }

/* Input with unit suffix */
.input-with-unit { position: relative; }
.input-with-unit .calc-input { padding-right: 48px; }
.input-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--slate-400); pointer-events: none;
}

/* Result card */
#reta-result {
  display: none; margin-top: 24px;
  animation: fadeInUp 0.4s ease;
}
#reta-result.show { display: block; }

.result-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac; border-radius: 12px;
  padding: 12px 20px; margin-bottom: 16px; width: 100%;
}
.result-pill-val {
  font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 26px; color: #16a34a;
}
.result-pill-label { font-family: 'Inter', sans-serif; font-size: 12px; color: #166534; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.result-box {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 10px; padding: 12px; text-align: center;
}
.result-box-val { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); }
.result-box-label { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--slate-500); margin-top: 2px; }

.inject-steps { background: var(--navy); border-radius: 12px; padding: 16px; }
.inject-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.inject-step:last-child { margin-bottom: 0; }
.inject-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--vitred);
  color: #fff; font-size: 10px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.inject-text { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.inject-heading { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; color: #fff; margin-bottom: 12px; }

/* === DOSAGE TABLE === */
.dose-table { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--slate-200); border-collapse: collapse; margin-bottom: 24px; }
.dose-table thead tr { background: var(--navy); }
.dose-table th { text-align: left; padding: 12px 16px; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; color: #fff; }
.dose-table td { padding: 12px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); border-bottom: 1px solid var(--slate-100); }
.dose-table tbody tr:nth-child(even) { background: var(--slate-50); }
.dose-table tbody tr:last-child td { border-bottom: none; }
.dose-phase { font-weight: 600; color: var(--navy); }
.dose-start  { color: #16a34a; font-weight: 600; }
.dose-mid    { color: #ca8a04; font-weight: 600; }
.dose-high   { color: #ea580c; font-weight: 600; }
.dose-max    { color: #dc2626; font-weight: 600; }

/* Comparison table */
.compare-table { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--slate-200); border-collapse: collapse; margin-bottom: 24px; }
.compare-table thead tr { background: var(--navy); }
.compare-table th { padding: 12px 16px; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; color: #fff; text-align: left; }
.compare-table td { padding: 11px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); border-bottom: 1px solid var(--slate-100); }
.compare-table tbody tr:nth-child(even) { background: var(--slate-50); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* === SECTION HEADINGS === */
.section-eyebrow {
  font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--vitred); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-divider {
  width: 48px; height: 3px; background: var(--vitred); border-radius: 2px; margin-bottom: 20px;
}

/* === PROTOCOL STEPS === */
.protocol-step {
  display: flex; gap: 16px; padding: 20px; background: #fff;
  border: 1px solid var(--slate-200); border-radius: 14px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.protocol-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vitred), #c0303c);
  color: #fff; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.protocol-body h4 { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.protocol-body p { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); line-height: 1.7; margin: 0; }

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: linear-gradient(135deg, #fff5f5, #fef2f2);
  border: 1px solid #fecaca; border-radius: 14px; padding: 24px;
  margin-bottom: 24px;
}
.highlight-box h3 { color: var(--navy); font-size: 16px; margin-bottom: 12px; }

/* === GENDER NOTICE === */
.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.gender-box {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gender-box h4 { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.gender-box ul { list-style: none; padding: 0; margin: 0; }
.gender-box ul li { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; }
.gender-box ul li::before { content: '✓'; color: var(--vitred); font-weight: 700; flex-shrink: 0; }

/* === SAFETY BOX === */
.safety-list { list-style: none; padding: 0; margin: 0; }
.safety-list li { display: flex; align-items: flex-start; gap: 10px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); padding: 8px 0; border-bottom: 1px solid var(--slate-100); line-height: 1.6; }
.safety-list li:last-child { border-bottom: none; }
.safety-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; margin-top: 1px; }
.si-red { background: #fee2e2; color: #dc2626; }
.si-green { background: #dcfce7; color: #16a34a; }
.si-yellow { background: #fef9c3; color: #ca8a04; }
.si-blue { background: #dbeafe; color: #1d4ed8; }

/* === DISCLAIMER BOX === */
.medical-disclaimer {
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 24px;
}
.medical-disclaimer p { font-family: 'Inter', sans-serif; font-size: 12px; color: #78350f; line-height: 1.7; margin: 0; }
.medical-disclaimer strong { color: #92400e; }

/* === INLINE FORMULA BOX === */
.formula-box {
  background: #1e293b; border-radius: 12px; padding: 20px; margin: 16px 0;
}
.formula-title { font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.formula-line { font-family: 'Courier New', monospace; font-size: 13px; color: #4ade80; line-height: 2; }
.formula-comment { color: #64748b; }
.formula-result { color: #f87171; font-weight: 700; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .reta-calc-card { position: static; }
  .gender-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .gender-grid { grid-template-columns: 1fr; }
  .reta-calc-card { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
}