/* Shared styles for sub-pages (blog, treatments, admin).
   Load AFTER styles.css — reuses its :root tokens and base body styles. */

/* ── Compact sub-page header ── */
.subnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.subnav .brand {
  font-family: 'Playfair Display', serif;
  font-size: 19px; color: var(--brown-deep); text-decoration: none;
}
.subnav .brand small {
  display: block; font-family: 'Inter', sans-serif; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
}
.subnav-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.subnav-links a {
  font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-body); text-decoration: none;
}
.subnav-links a:hover { color: var(--brown-mid); }
.subnav-links a.subnav-cta {
  background: var(--brown-deep); color: var(--cream);
  padding: 8px 16px; border-radius: 999px;
}

/* ── Page shell ── */
.page-wrap { max-width: 1080px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.page-title {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(28px, 4.5vw, 44px); color: var(--brown-deep);
  line-height: 1.15; margin-bottom: 0.8rem;
}
.page-sub { color: var(--text-muted); max-width: 640px; margin-bottom: 2.5rem; }

/* ── Blog index: folder sections + cards ── */
.content-folder { margin-bottom: 3.2rem; }
.content-folder h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 24px; color: var(--brown-deep); margin-bottom: 0.3rem;
}
.content-folder .folder-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 1.3rem; max-width: 620px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.content-card {
  background: var(--cream-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  text-decoration: none; transition: box-shadow 0.2s, transform 0.2s;
}
.content-card:hover { box-shadow: 0 8px 26px rgba(44,26,14,0.1); transform: translateY(-2px); }
.content-card .card-kicker {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}
.content-card h3 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 17.5px; color: var(--brown-deep); line-height: 1.35;
}
.content-card p { font-size: 13px; color: var(--text-muted); }
.content-card .card-cta { margin-top: auto; font-size: 12px; color: var(--brown-mid); font-weight: 500; }
.content-card--video .video-embed {
  aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 10px; background: var(--brown-deep);
}

/* ── Article pages ── */
.article { max-width: 720px; margin: 0 auto; }
.article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 2rem; }
.article h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 23px; color: var(--brown-deep); margin: 2.2rem 0 0.8rem;
}
.article h3 { font-size: 16px; color: var(--brown-mid); margin: 1.6rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.3rem; }
.article li { margin-bottom: 0.4rem; }
.article table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 13.5px;
}
.article th, .article td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--cream-dark); font-weight: 600; color: var(--brown-deep); }
.article .callout {
  background: var(--cream-dark); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 14px;
}
.article .disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ── WhatsApp CTA block (articles + treatment pages) ── */
.cta-band {
  background: var(--brown-deep); color: var(--cream); border-radius: 16px;
  padding: 1.8rem; margin: 2.5rem 0 0; text-align: center;
}
.cta-band h3 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 20px; margin-bottom: 0.4rem; color: var(--cream); }
.cta-band p { font-size: 13px; color: rgba(245,240,232,0.65); margin-bottom: 1.1rem; }
.cta-band .cta-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.cta-band a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 500;
}
.cta-band a.cta-wa { background: #25d366; color: #fff; }
.cta-band a.cta-call { border: 1px solid rgba(245,240,232,0.35); color: var(--cream); }

/* ── Treatment page ── */
.treatment-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
.treatment-gallery { display: grid; gap: 0.8rem; }
.treatment-gallery figure { margin: 0; }
.treatment-gallery img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  display: block; background: var(--cream-dark); object-fit: cover;
}
.treatment-gallery figcaption { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.photo-placeholder {
  border: 1.5px dashed var(--border); border-radius: 14px;
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; text-align: center; padding: 1rem;
  background: var(--cream-card);
}
.treatment-section { max-width: 760px; margin-bottom: 2.2rem; }
.treatment-section h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 22px; color: var(--brown-deep); margin-bottom: 0.7rem;
}
.treatment-section ol, .treatment-section ul { margin-left: 1.3rem; }
.treatment-section li { margin-bottom: 0.5rem; }
.doctor-strip {
  display: flex; gap: 1rem; align-items: center;
  background: var(--cream-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.2rem; margin: 2rem 0; max-width: 760px;
}
.doctor-strip img, .doctor-strip .strip-initials {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  background: var(--brown-deep); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 19px; flex-shrink: 0;
}
.doctor-strip .strip-name { font-weight: 600; color: var(--brown-deep); font-size: 14.5px; }
.doctor-strip .strip-cred { font-size: 12px; color: var(--text-muted); }
.tfaq details {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: var(--cream-card);
}
.tfaq summary { cursor: pointer; font-weight: 500; color: var(--brown-deep); font-size: 14px; }
.tfaq details p { margin-top: 0.6rem; font-size: 13.5px; color: var(--text-body); }
.related-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.related-links a {
  font-size: 12.5px; color: var(--brown-mid); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; background: var(--cream-card);
}

/* ── Sub-page footer ── */
.subfooter {
  border-top: 1px solid var(--border); margin-top: 4rem;
  padding: 1.6rem 2rem; font-size: 12px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.subfooter a { color: var(--brown-mid); text-decoration: none; }
.subfooter a[data-staff-portal] {
  color: var(--text-muted);
  opacity: 0.8;
}
.subfooter a[data-staff-portal]:hover,
.subfooter a[data-staff-portal]:focus-visible {
  color: var(--brown-mid);
  opacity: 1;
}

/* Language switcher on sub-pages */
.subnav-lang { margin-left: 0.25rem; }
.subnav-links .lang-switch-btn {
  font-size: 10px;
  padding: 5px 10px;
}

body.lang-hi {
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
}
body.lang-hi .page-title,
body.lang-hi .content-folder h2,
body.lang-hi .content-card h3,
body.lang-hi .treatment-section h2,
body.lang-hi .article h2,
body.lang-hi .cta-band h3,
body.lang-hi .subnav .brand {
  font-family: "Noto Sans Devanagari", "Playfair Display", serif;
}

@media (max-width: 760px) {
  .treatment-hero { grid-template-columns: 1fr; }
  .subnav { padding: 0.8rem 1.1rem; }
  .page-wrap { padding: 2rem 1.1rem 4rem; }
}
