/* ============================================
   LIFE EXTENSION ARTERIAL PROTECT — CSS
   Theme: Clinical-Premium · Medical Precision
   Palette: Midnight Blue · Platinum · Warm White
   Fonts: Libre Baskerville (display) + Mulish (body)
   ============================================ */

:root {
  /* Midnight blue palette */
  --night-950: #040810;
  --night-900: #080f1e;
  --night-800: #0d1a30;
  --night-700: #142240;
  --night-600: #1c2e55;
  --night-500: #253d6e;
  --night-400: #3a5490;
  --night-300: #5a78b8;

  /* Platinum / silver */
  --plat-100:  #f4f5f8;
  --plat-200:  #e8eaef;
  --plat-300:  #d0d4de;
  --plat-400:  #b0b6c8;
  --plat-500:  #8c94ac;

  /* Accent — electric cobalt */
  --cobalt-500: #2563eb;
  --cobalt-400: #3b82f6;
  --cobalt-300: #60a5fa;
  --cobalt-200: #bfdbfe;
  --cobalt-100: #dbeafe;
  --cobalt-50:  #eff6ff;

  /* Warm white / off-white */
  --warm-50:   #fdfcfa;
  --warm-100:  #f8f7f4;
  --warm-200:  #eeece7;
  --warm-300:  #dedad2;

  --white:     #ffffff;
  --bg:        #f0f2f7;
  --surface:   #ffffff;
  --border:    #dde1ed;

  --accent:       #1c2e55;
  --accent-dark:  #0d1a30;
  --accent-btn:   #253d6e;
  --accent-hover: #1a3a6b;
  --accent-glow:  rgba(37,61,110,0.18);

  --hl:           #2563eb;
  --hl-light:     #3b82f6;

  --text-dark:  #040810;
  --text-mid:   #1c2e55;
  --text-soft:  #4a5878;
  --text-muted: #8c94ac;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:   0 1px 4px rgba(4,8,16,0.08);
  --shadow-md:   0 4px 20px rgba(4,8,16,0.11);
  --shadow-lg:   0 8px 40px rgba(4,8,16,0.15);
  --shadow-blue: 0 6px 28px rgba(28,46,85,0.24);

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Mulish', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.68;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--night-900);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--night-700);
}

/* Subtle horizon glow */
.header-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 140px;
  background: radial-gradient(ellipse at top, rgba(37,99,235,0.14) 0%, transparent 65%);
  pointer-events: none;
}

/* Fine horizontal scan lines */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.header-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  color: var(--cobalt-300);
  flex-shrink: 0;
  opacity: 0.85;
}

.logo-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.logo-brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cobalt-300);
  opacity: 0.9;
}

.logo-product {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.header-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  color: var(--plat-400);
  letter-spacing: 0.4px;
}

.header-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--plat-300);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  padding: 3px 11px;
}

.chip--hl {
  color: var(--cobalt-200);
  background: rgba(37,99,235,0.18);
  border-color: rgba(96,165,250,0.3);
}

/* Bottom accent line */
.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cobalt-500), var(--cobalt-300), var(--cobalt-500), transparent);
}

/* ============================================
   PRODUCT SECTION
   ============================================ */
.product-section {
  padding: 52px 16px 36px;
}

.product-shell {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- GALLERY ---- */
.gallery-wrap {
  background: var(--warm-100);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--plat-200);
  position: relative;
}

.gallery-wrap input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--plat-200);
}

/* Certificate badge bottom-left */
.gallery-cert {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a4731;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 9999px;
  padding: 3px 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.38s ease;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#g1:checked ~ .gallery-stage .gs-1,
#g2:checked ~ .gallery-stage .gs-2,
#g3:checked ~ .gallery-stage .gs-3,
#g4:checked ~ .gallery-stage .gs-4 { opacity: 1; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  border-color: var(--cobalt-400);
  transform: translateY(-2px);
}

#g1:checked ~ .gallery-thumbs .t1,
#g2:checked ~ .gallery-thumbs .t2,
#g3:checked ~ .gallery-thumbs .t3,
#g4:checked ~ .gallery-thumbs .t4 {
  border-color: var(--hl);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
}

/* ---- PRODUCT INFO ---- */
.product-info {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.info-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hl);
}

.product-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.38;
}

/* Section label */
.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--night-400);
  border-bottom: 1px solid var(--cobalt-100);
  padding-bottom: 7px;
  margin-bottom: 10px;
}

/* Description */
.desc-block { display: flex; flex-direction: column; gap: 2px; }

.desc-text {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.72;
  margin-bottom: 6px;
}

/* Ingredients table */
.ingr-block { display: flex; flex-direction: column; gap: 2px; }

.ingr-table {
  border: 1px solid var(--plat-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.ingr-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--plat-200);
  align-items: center;
  font-size: 12.5px;
  color: var(--text-soft);
}

.ingr-row:last-child { border-bottom: none; }

.ingr-row--head {
  background: var(--plat-100);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  text-transform: uppercase;
}

.ingr-dose {
  font-weight: 700;
  color: var(--hl);
  text-align: right;
  white-space: nowrap;
}

.ingr-other {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

.ingr-other strong { color: var(--text-mid); }

.ingr-trademark {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* Details dl */
.details-block { display: flex; flex-direction: column; gap: 2px; }

.details-dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dr {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  align-items: start;
}

.dr dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
}

.dr dd {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Safety box */
.safety-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.65;
}

.safety-heading {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b45309;
}

/* Small disclaimer */
.disc-small {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  border-left: 2px solid var(--cobalt-200);
  padding-left: 10px;
}

/* Inline CTA */
.cta-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-blue);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: fit-content;
  margin-top: 4px;
}

.cta-inline:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(28,46,85,0.34);
}

/* ============================================
   BIG CTA BAND
   ============================================ */
.cta-band {
  background: var(--night-900);
  padding: 52px 16px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--night-700);
  border-bottom: 1px solid var(--night-700);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 120% at 20% 50%, rgba(37,99,235,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 80% at 80% 50%, rgba(28,46,85,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-over {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cobalt-300);
}

.cta-head {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cobalt-500);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 15px 40px;
  border-radius: 9999px;
  box-shadow: 0 6px 28px rgba(37,99,235,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-btn:hover {
  background: var(--cobalt-400);
  transform: translateY(-3px);
  box-shadow: 0 12px 44px rgba(37,99,235,0.45);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section {
  padding: 60px 16px 48px;
  background: var(--bg);
}

.reviews-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.reviews-hd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--cobalt-100);
}

.reviews-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.reviews-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cobalt-300) 0%, transparent 100%);
}

/* Single review */
.review {
  padding: 26px 0;
  border-bottom: 1px solid var(--plat-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review:last-child { border-bottom: none; }

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--plat-200);
  border: 2px solid var(--plat-300);
  box-shadow: var(--shadow-sm);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rev-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.rev-stars {
  display: flex;
  gap: 1px;
}

.rev-stars .star { font-size: 14px; color: #d97706; }

.rev-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.rev-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #1a5c38;
  margin-left: 58px;
}

.rev-date {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 58px;
}

.rev-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-left: 58px;
}

.review-photos {
  margin-left: 58px;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-photos img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--plat-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-photos img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ============================================
   LEGAL SECTION
   ============================================ */
.legal-section {
  background: var(--night-950);
  padding: 36px 16px;
  border-top: 1px solid var(--night-800);
}

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plat-500);
  margin-bottom: 4px;
}

.legal-wrap p {
  font-size: 11.5px;
  color: var(--night-400);
  line-height: 1.72;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--night-900);
  border-top: 1px solid var(--night-700);
  padding: 28px 16px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cobalt-300);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
  letter-spacing: 0.3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-link {
  font-size: 12px;
  color: var(--night-300);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--cobalt-200);
  text-decoration: underline;
}

.fsep { color: var(--night-600); font-size: 12px; }

.footer-copy {
  font-size: 11px;
  color: var(--night-600);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 860px) {
  .product-shell {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .gallery-wrap {
    border-right: none;
    border-bottom: 1px solid var(--plat-200);
    padding: 20px;
  }

  .gallery-stage { aspect-ratio: 4 / 3; }

  .product-info { padding: 24px 24px 28px; }

  .product-title { font-size: 16px; }

  .cta-band-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-head { font-size: 26px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 560px) {
  .product-section { padding: 24px 10px; }

  .product-shell { border-radius: var(--radius-md); }

  .gallery-wrap { padding: 14px; }

  .gallery-stage { aspect-ratio: 1 / 1; }

  .thumb { width: 52px; height: 52px; }

  .product-info { padding: 18px 16px 22px; gap: 14px; }

  .product-title { font-size: 15px; }

  .ingr-row { grid-template-columns: 1fr 70px; font-size: 11.5px; }

  .dr { grid-template-columns: 100px 1fr; }

  .rev-body,
  .rev-badge,
  .rev-date,
  .review-photos { margin-left: 0; }

  .review-photos img { width: 110px; height: 110px; }

  .header-chips { gap: 6px; }

  .logo-product { font-size: 20px; }

  .cta-btn { font-size: 14px; padding: 13px 26px; }

  .footer-links { flex-direction: column; gap: 8px; }
  .fsep { display: none; }
}

@media print {
  .cta-band, .cta-inline { display: none; }
}