/* =====================================================================
   MedWell Design Tokens
   Palette: white / emerald / dark green / soft gray (per brief)
   Display face: Lora (serif, credible/warm) | Body+UI: Manrope
   Signature motif: the "pulse line" — an EKG-style divider & underline
   ===================================================================== */

:root {
  --c-white: #FFFFFF;
  --c-emerald: #0F9D74;
  --c-emerald-dark: #0C7D5D;
  --c-deep-green: #0B3D2E;
  --c-soft-gray: #F3F6F5;
  --c-hairline: #D9E6E0;
  --c-text: #16241F;
  --c-text-muted: #5B6E67;

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(11, 61, 46, 0.08);
  --shadow-lift: 0 20px 45px rgba(11, 61, 46, 0.14);
}

[data-bs-theme="dark"] {
  --c-white: #10201A;
  --c-soft-gray: #16261F;
  --c-text: #EAF3EF;
  --c-text-muted: #9FB6AE;
  --c-hairline: #223730;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  color: var(--c-deep-green);
  letter-spacing: -0.01em;
}

[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3 {
  color: var(--c-white);
}

a { text-decoration: none; color: var(--c-emerald-dark); }

/* ---------- Signature: pulse-line divider ---------- */
.pulse-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-emerald);
  margin: 0 0 18px;
}
.pulse-divider svg { width: 64px; height: 20px; flex-shrink: 0; }
.pulse-divider span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-emerald-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-hairline);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-deep-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--c-deep-green); }
.nav-link { font-weight: 500; color: var(--c-text); position: relative; }
.nav-link:hover { color: var(--c-emerald-dark); }
.btn-brand-solid {
  background: var(--c-deep-green); color: #fff !important; border-radius: 999px;
  padding: 0.55rem 1.4rem; font-weight: 600; border: none;
  transition: transform .18s ease, background .18s ease;
}
.btn-brand-solid:hover { background: var(--c-emerald); transform: translateY(-1px); }

.btn-brand-outline {
  border: 1.5px solid var(--c-deep-green); color: var(--c-deep-green) !important;
  border-radius: 999px; padding: 0.55rem 1.4rem; font-weight: 600; background: transparent;
  transition: all .18s ease;
}
.btn-brand-outline:hover { background: var(--c-deep-green); color: #fff !important; }

/* ---------- Hero ---------- */
.hero-section { background: var(--c-soft-gray); overflow: hidden; padding: 3.5rem 0 4.5rem; }
.hero-slide { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; }
.hero-slide img, .hero-slide video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,61,46,0.05) 0%, rgba(11,61,46,0.75) 100%);
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem; color: #fff;
}
.hero-caption h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.6rem; }
.hero-caption p { max-width: 520px; opacity: 0.92; margin-bottom: 1.2rem; }

.hero-trust-card {
  position: relative; margin-top: -70px; z-index: 3;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 1.1rem 1.4rem;
  max-width: 340px;
}
[data-bs-theme="dark"] .hero-trust-card { background: rgba(20,40,33,0.72); }

.swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.swiper-pagination-bullet-active { background: var(--c-emerald); opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: #fff !important; }

/* ---------- Why are you here today — triage cards ---------- */
.triage-section { padding: 5rem 0; }
.triage-card {
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.triage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.triage-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, var(--c-emerald), var(--c-emerald-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.triage-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.triage-card p { color: var(--c-text-muted); margin-bottom: 1.4rem; }

/* ---------- Generic section utilities ---------- */
.section-soft { background: var(--c-soft-gray); }
.card-glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-deep-green); color: rgba(255,255,255,0.82); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer h6 { color: #fff; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 1rem; }
.footer-brand { color: #fff; font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-tagline { color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a, .footer-links li { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

@media (max-width: 767px) {
  .hero-slide { min-height: 340px; }
  .hero-trust-card { margin-top: -50px; max-width: none; }
}

/* ---------- Store: product cards ---------- */
.store-sidebar { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); padding: 1.4rem; }
.store-sidebar h6 { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-text-muted); margin-bottom: 0.8rem; }
.store-sidebar .list-unstyled a { color: var(--c-text); padding: 0.35rem 0; display: block; }
.store-sidebar .list-unstyled a:hover, .store-sidebar .list-unstyled a.active { color: var(--c-emerald-dark); font-weight: 600; }

.product-card {
  background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md);
  overflow: hidden; height: 100%; transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.product-card-img { position: relative; display: block; aspect-ratio: 1/1; background: var(--c-soft-gray); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: none; display: flex; align-items: center; justify-content: center;
  color: var(--c-deep-green);
}
.product-card-body { padding: 1rem; }
.product-name { display: block; font-weight: 600; color: var(--c-text); margin-bottom: 0.2rem; }
.product-desc { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: 0; min-height: 2.4em; overflow: hidden; }
.product-price { font-family: var(--font-display); font-weight: 600; color: var(--c-deep-green); font-size: 1.1rem; }

/* ---------- Store: product detail gallery ---------- */
.gallery-main { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; background: var(--c-soft-gray); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--c-emerald); }
.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--c-hairline); border-radius: 999px; overflow: hidden; }
.qty-selector button { background: none; border: none; width: 38px; height: 38px; }
.qty-selector input { width: 46px; text-align: center; border: none; -moz-appearance: textfield; }

/* ---------- Cart / Checkout ---------- */
.cart-line { display: flex; gap: 1rem; align-items: center; border-bottom: 1px solid var(--c-hairline); padding: 1rem 0; }
.cart-line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--c-soft-gray); }
.order-summary-card { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); padding: 1.4rem; }

/* ---------- Learning Center: video cards ---------- */
.video-card { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); overflow: hidden; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.video-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--c-soft-gray); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11,61,46,0.25);
}
.video-thumb .play-badge i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--c-deep-green); display:flex; align-items:center; justify-content:center; }
.video-card-body { padding: 1rem; }
.video-card-body h6 { margin-bottom: 0.3rem; }
.video-card-body p { font-size: 0.85rem; color: var(--c-text-muted); }
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Blog: post cards ---------- */
.blog-card { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); overflow: hidden; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/10; background: var(--c-soft-gray); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.1rem; }
.blog-card-body .meta { font-size: 0.78rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.blog-card-body h5 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.blog-card-body p { font-size: 0.88rem; color: var(--c-text-muted); }
.blog-tag { display: inline-block; background: var(--c-soft-gray); color: var(--c-emerald-dark); font-size: 0.78rem; padding: 0.2rem 0.7rem; border-radius: 999px; margin: 0 6px 6px 0; }
.comment-item { border-bottom: 1px solid var(--c-hairline); padding: 1rem 0; }
.article-content { font-size: 1.05rem; line-height: 1.75; color: var(--c-text); }
.article-content p { margin-bottom: 1.2rem; }

/* ---------- About page ---------- */
.value-card { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); padding: 1.6rem; height: 100%; text-align: center; }
.value-card i { font-size: 1.8rem; color: var(--c-emerald); margin-bottom: 0.8rem; }
.doctor-card { text-align: center; }
.doctor-photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; background: var(--c-soft-gray); margin-bottom: 0.8rem; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h6 { margin-bottom: 0.1rem; }
.doctor-card .specialty { color: var(--c-emerald-dark); font-size: 0.85rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.achievement-item { border-left: 2px solid var(--c-emerald); padding-left: 1.2rem; padding-bottom: 1.6rem; position: relative; }
.achievement-item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-emerald); }
.achievement-item .year { font-weight: 700; color: var(--c-deep-green); font-family: var(--font-display); }
.certificate-card { border: 1px solid var(--c-hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--c-white); }
.certificate-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.certificate-card .cap { padding: 0.8rem; font-size: 0.85rem; }

/* ---------- Contact page ---------- */
.contact-info-card { background: var(--c-white); border: 1px solid var(--c-hairline); border-radius: var(--radius-md); padding: 1.6rem; }
.contact-info-card .info-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-info-card .info-row i { width: 38px; height: 38px; border-radius: 50%; background: var(--c-soft-gray); color: var(--c-emerald-dark); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.social-icons a { width: 38px; height: 38px; border-radius: 50%; background: var(--c-soft-gray); color: var(--c-deep-green); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.social-icons a:hover { background: var(--c-emerald); color: #fff; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; }
.map-embed iframe { width: 100%; height: 320px; border: 0; }

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

