/* ==========================================================================
   Sage Naturopathy & Detox Clinic – conversion components
   (homepage, booking, landing pages, products). Loaded after custom.css.
   ========================================================================== */
:root {
  --s-plum: #692873;
  --s-purple: #990099;
  --s-purple-dark: #5a1f63;
  --s-green: #2f6b4f;
  --s-green-soft: #e8f1ea;
  --s-cream: #f6f8f3;
  --s-ink: #1d1530;
  --s-text: #4b5563;
  --s-muted: #6b7280;
  --s-line: #ece7ef;
  --s-radius: 18px;
  --s-shadow: 0 10px 30px rgba(52, 16, 64, .07);
}

.s-section { padding: 88px 0; }
.s-section.tight { padding: 64px 0; }
.s-section.cream { background: var(--s-cream); }
.s-section.plum { background: linear-gradient(120deg, #4a1450 0%, #7a1a7c 60%, #990099 100%); color: #fff; }
@media (max-width: 767px) { .s-section { padding: 56px 0; } .s-section.tight { padding: 44px 0; } }

.s-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--title-font); font-size: 14px; font-weight: 600; letter-spacing: .4px;
  color: var(--s-green); background: var(--s-green-soft); padding: 6px 14px; border-radius: 99px;
}
.s-h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; color: var(--s-ink); margin-bottom: 18px; font-weight: 700; }
.s-h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; color: var(--s-ink); margin-bottom: 14px; font-weight: 700; }
.s-h3 { font-size: 20px; line-height: 1.3; color: var(--s-ink); margin-bottom: 8px; font-weight: 600; }
.s-lead { font-size: 18px; line-height: 1.7; color: var(--s-text); margin-bottom: 28px; }
.s-text { font-size: 16px; line-height: 1.7; color: var(--s-text); }
.s-center { text-align: center; }
.s-center .s-lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.plum .s-h2, .plum .s-h3 { color: #fff; }
.plum .s-lead, .plum .s-text { color: rgba(255, 255, 255, .85); }
.s-highlight { color: var(--s-purple); }

/* ---------- Buttons ---------- */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--title-font); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.s-btn:hover { transform: translateY(-1px); }
.s-btn:active { transform: translateY(0); }
.s-btn.primary { background: linear-gradient(135deg, #a3169a 0%, var(--s-purple) 40%, var(--s-plum) 100%); color: #fff; box-shadow: 0 8px 20px rgba(153, 0, 153, .25); }
.s-btn.primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(153, 0, 153, .35); }
.s-btn.outline { border-color: var(--s-plum); color: var(--s-plum); background: #fff; }
.s-btn.outline:hover { background: var(--s-plum); color: #fff; }
.s-btn.whatsapp { background: #25D366; color: #fff; }
.s-btn.whatsapp:hover { background: #1eb954; color: #fff; }
.s-btn.light { background: #fff; color: var(--s-plum); }
.s-btn.light:hover { color: var(--s-purple); }
.s-btn.sm { min-height: 42px; padding: 8px 18px; font-size: 15px; border-radius: 10px; }
.s-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.s-link { color: var(--s-purple); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.s-link:hover { color: var(--s-plum); gap: 9px; }
@media (max-width: 575px) { .s-btn-row .s-btn { width: 100%; } }

/* ---------- Cards ---------- */
.s-card {
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
  box-shadow: var(--s-shadow); padding: 28px; height: 100%;
}
.s-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #f6eaf6; color: var(--s-purple); font-size: 22px; margin-bottom: 16px; flex-shrink: 0;
}
.s-icon.green { background: var(--s-green-soft); color: var(--s-green); }

/* ---------- Hero ---------- */
.s-hero { padding: 64px 0 72px; background: radial-gradient(circle at 90% 10%, #f3e6f3 0, transparent 42%), var(--s-cream); overflow: hidden; }
.s-hero .s-lead { max-width: 560px; }
.s-hero-media { position: relative; max-width: 470px; margin-left: auto; }
.s-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 28px; box-shadow: 0 24px 50px rgba(52, 16, 64, .18); }
.s-hero-badge {
  position: absolute; left: -28px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(52, 16, 64, .16); display: flex; gap: 12px; align-items: center; max-width: 290px;
}
.s-hero-badge .s-icon { margin: 0; width: 44px; height: 44px; font-size: 18px; }
.s-hero-badge strong { display: block; color: var(--s-ink); font-family: var(--title-font); font-size: 16px; line-height: 1.3; }
.s-hero-badge span { font-size: 13px; color: var(--s-muted); line-height: 1.4; display: block; }
.s-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; }
.s-trust li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--s-ink); }
.s-trust i { color: var(--s-green); }
@media (max-width: 991px) {
  .s-hero { padding: 40px 0 56px; }
  .s-hero-media { margin: 40px auto 0; max-width: 400px; }
  .s-hero-badge { left: 12px; bottom: 16px; }
}

/* ---------- Journey cards (Consult / Programs / Shop) ---------- */
.s-journey { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.s-journey .media { aspect-ratio: 16 / 10; overflow: hidden; }
.s-journey .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.s-journey:hover .media img { transform: scale(1.04); }
.s-journey .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.s-journey .body .s-text { margin-bottom: 20px; }
.s-journey .body .s-btn { margin-top: auto; align-self: flex-start; }
.s-journey .tag { font-size: 13px; font-weight: 600; color: var(--s-green); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }

/* ---------- Program / condition cards ---------- */
.s-program {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; height: 100%; text-decoration: none;
  background: #fff; border: 1px solid var(--s-line); border-radius: 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.s-program:hover { border-color: #dcc3dc; box-shadow: var(--s-shadow); transform: translateY(-2px); }
.s-program .s-icon { margin: 0; width: 48px; height: 48px; font-size: 20px; }
.s-program h3 { font-size: 18px; color: var(--s-ink); margin: 2px 0 4px; }
.s-program p { font-size: 14.5px; line-height: 1.55; color: var(--s-muted); margin: 0; }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.s-chips li { background: #fff; border: 1px solid var(--s-line); border-radius: 99px; padding: 8px 16px; font-size: 15px; color: var(--s-ink); display: flex; align-items: center; gap: 8px; }
.s-chips li i { color: var(--s-purple); }

/* ---------- Doctor ---------- */
.s-doctor { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.s-doctor .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 24px; }
.s-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.s-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--s-ink); line-height: 1.5; }
.s-checks li i { color: var(--s-green); margin-top: 4px; }
.s-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; font-size: 15px; color: var(--s-text); }
.s-meta span { display: inline-flex; align-items: center; gap: 8px; }
.s-meta i { color: var(--s-purple); }
@media (max-width: 991px) { .s-doctor { grid-template-columns: 1fr; gap: 28px; } .s-doctor .photo { max-width: 340px; } }

/* Compact doctor band shown above the footer */
.s-doctor-band { background: var(--s-cream); border-top: 1px solid var(--s-line); padding: 36px 0; }
.s-doctor-band .inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.s-doctor-band img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #fff; box-shadow: var(--s-shadow); }
.s-doctor-band .who { flex: 1 1 320px; }
.s-doctor-band .who strong { display: block; font-family: var(--title-font); font-size: 20px; color: var(--s-ink); }
.s-doctor-band .who span { font-size: 15px; color: var(--s-text); }

/* ---------- Consultation options ---------- */
.s-consult { position: relative; display: flex; flex-direction: column; }
.s-consult .s-checks { margin-bottom: 22px; }
.s-consult .s-btn { margin-top: auto; }

/* ---------- Steps ---------- */
.s-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.s-steps li { background: #fff; border: 1px solid var(--s-line); border-radius: 16px; padding: 24px 22px; position: relative; }
.s-steps li::before {
  counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--s-purple); color: #fff; font-weight: 700; margin-bottom: 14px;
  font-family: var(--title-font);
}
.s-steps li strong { display: block; font-family: var(--title-font); font-size: 17px; color: var(--s-ink); margin-bottom: 6px; }
.s-steps li span { font-size: 14.5px; color: var(--s-muted); line-height: 1.55; }
@media (max-width: 991px) { .s-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .s-steps { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.s-product { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; }
.s-product .media { display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--s-cream); }
.s-product .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.s-product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.s-product .type { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--s-green); font-weight: 600; }
.s-product h3 { font-size: 17px; margin: 4px 0 6px; line-height: 1.35; }
.s-product h3 a { color: var(--s-ink); text-decoration: none; }
.s-product h3 a:hover { color: var(--s-purple); }
.s-product .price { font-family: var(--title-font); font-weight: 700; font-size: 18px; color: var(--s-plum); margin-bottom: 14px; }
.s-product .actions { margin-top: auto; display: flex; gap: 8px; }
.s-product .actions .s-btn { flex: 1; min-height: 42px; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
@media (max-width: 575px) {
  .s-product .body { padding: 12px 12px 14px; }
  .s-product h3 { font-size: 15px; }
  .s-product .price { font-size: 16px; }
  .s-product .actions { flex-direction: column; }
}

/* Product detail */
.s-pd-media { border-radius: 22px; overflow: hidden; background: var(--s-cream); border: 1px solid var(--s-line); }
.s-pd-media img { width: 100%; height: auto; display: block; }
.s-pd-price { font-family: var(--title-font); font-size: 30px; font-weight: 700; color: var(--s-plum); margin: 4px 0 18px; }
.s-pd-price small { font-size: 14px; color: var(--s-muted); font-weight: 500; margin-left: 8px; }
.s-info { display: grid; gap: 12px; margin: 24px 0; }
.s-info div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--s-text); line-height: 1.5; }
.s-info i { color: var(--s-green); width: 20px; margin-top: 3px; text-align: center; }
.s-pd-section { margin-top: 36px; }
.s-pd-section h2 { font-size: 22px; margin-bottom: 12px; }
.s-note { background: #fff8e6; border: 1px solid #f3e1a8; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: #6b5413; }
.s-note i { margin-right: 6px; }

/* ---------- Testimonials ---------- */
.s-testi { display: flex; flex-direction: column; }
.s-testi .stars { color: #f5a623; font-size: 14px; margin-bottom: 12px; }
.s-testi p { font-size: 15.5px; line-height: 1.7; color: var(--s-text); flex: 1; }
.s-testi .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.s-testi .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--s-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--title-font); }
.s-testi .who strong { display: block; color: var(--s-ink); font-family: var(--title-font); }
.s-testi .who span { font-size: 13.5px; color: var(--s-muted); }

/* ---------- FAQ (reuses theme accordion) ---------- */
.s-faq .accordion-card { border-radius: 14px; }

/* ---------- CTA band ---------- */
.s-cta { border-radius: 26px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
@media (max-width: 575px) { .s-cta { padding: 32px 22px; } }

/* ---------- Landing pages ---------- */
.s-lp-header { background: #fff; border-bottom: 1px solid var(--s-line); position: sticky; top: 0; z-index: 99; }
.s-lp-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.s-lp-header img { height: 64px; width: auto; }
.s-lp-header .tel { color: var(--s-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.s-lp-header .tel i { color: var(--s-purple); }
@media (max-width: 575px) { .s-lp-header img { height: 52px; } .s-lp-header .s-btn { display: none; } }
.s-lp-footer { background: #1d1530; color: rgba(255, 255, 255, .75); padding: 28px 0; font-size: 14px; text-align: center; }
.s-lp-footer a { color: #fff; }
.s-lp-bar { display: none; }
@media (max-width: 767px) {
  .s-lp-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--s-line); box-shadow: 0 -8px 24px rgba(52, 16, 64, .08);
  }
  .s-lp-bar .s-btn { min-height: 48px; }
  .s-lp-bar .s-btn.primary { flex: 1; }
  .s-lp-bar .s-btn.whatsapp { width: 56px; padding: 0; font-size: 22px; }
  body.is-landing { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Header booking button: keep visible on laptops (theme hid it below 1400px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .header-layout1 .header-button .th-btn.header-book-btn { display: inline-flex; }
}
.header-book-btn { white-space: nowrap; }
@media (max-width: 1199px) { .header-book-btn { padding: 16px 20px; font-size: 13px; } }

.s-cta.plum { background: linear-gradient(120deg, #4a1450 0%, #7a1a7c 60%, #990099 100%); color: #fff; }
.s-cta .s-btn-row { flex-shrink: 0; }
.s-testi blockquote { margin: 0; padding: 0; background: none; border: 0 !important; border-radius: 0; flex: 1; }
.s-testi blockquote::before, .s-testi blockquote::after { display: none; }
.s-testi blockquote p { font-style: normal; font-size: 15.5px; line-height: 1.7; color: var(--s-text); margin: 0; font-family: var(--body-font); font-weight: 400; }

/* Phones: keep photos compact so the call-to-action stays close */
@media (max-width: 575px) {
  .s-hero-media { max-width: 280px; margin-top: 32px; }
  .s-hero-badge { left: -8px; right: -8px; bottom: 12px; max-width: none; }
  .is-landing .s-hero-media { display: none; }
  .s-doctor .photo { max-width: 240px; }
}
