/* ================================================================
   INDHEAL — treatment-detail.css
   Page-specific only. Variables, buttons, badges, forms from site.css
   ================================================================ */


/* ══════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════
   FIX: background set with !important so no site.css rule
   (body, .section, nav backgrounds) can bleed through.
   Colour: deep charcoal-slate — neutral, not green.
   ══════════════════════════════════════════════════════════════ */
.treatment-hero {
    position: relative;
    background-color: #1e6b58 !important;
    background-image: linear-gradient(135deg, #1a5c4a 0%, #1e6b58 55%, #22785f 100%) !important;
    color: #fff;
    overflow: hidden;
    margin-top: 0;
}

/* When a banner photo is set, it comes via inline style — overlay handles legibility */
.treatment-hero[style*="background-image"] {
    background-color: #1e3a35 !important;
}

.treatment-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,20,16,.45) 0%, rgba(10,20,16,.20) 100%);
    pointer-events: none;
    z-index: 0;
}

.treatment-hero__content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
    min-height: 200px;   /* guarantees the gradient is visible even with sparse content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Breadcrumb: horizontal inside hero — must override site.css .breadcrumb fully ── */
.treatment-hero .breadcrumb,
.treatment-hero nav[aria-label="Breadcrumb"] ol {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 var(--space-4) !important;
    font-size: var(--text-sm);
    background: none !important;
    border: none !important;
}
.treatment-hero .breadcrumb li,
.treatment-hero nav[aria-label="Breadcrumb"] li  { display: inline-flex; align-items: center; }
.treatment-hero .breadcrumb a,
.treatment-hero nav[aria-label="Breadcrumb"] a   { color: rgba(255,255,255,.75) !important; text-decoration: none; }
.treatment-hero .breadcrumb a:hover,
.treatment-hero nav[aria-label="Breadcrumb"] a:hover { color: #fff !important; text-decoration: underline; }
.treatment-hero .breadcrumb-sep                  { color: rgba(255,255,255,.35); padding: 0 3px; }
.treatment-hero [aria-current="page"]            { color: rgba(255,255,255,.55) !important; }

/* ── Hero body: image LEFT, text RIGHT ── */
.treatment-hero__body {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

/* Image column */
.treatment-hero__image-wrap {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    overflow: hidden;
}
.treatment-hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text column */
.treatment-hero__text { flex: 1; min-width: 0; }

.treatment-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: var(--weight-semi);
    line-height: 1.2;
    margin: 0 0 var(--space-2);
    color: #fff;
}
.treatment-hero__title span { opacity: .72; font-weight: var(--weight-normal); }

.treatment-hero__subtitle {
    font-size: var(--text-base);
    opacity: .82;
    margin: 0 0 var(--space-3);
    line-height: 1.5;
    max-width: 520px;
}

/* Compact inline meta: From $X · 2–3 hrs · 7–10 days */
.treatment-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    opacity: .88;
    margin: 0 0 var(--space-4);
    color: rgba(255,255,255,.9);
}
.treatment-hero__meta strong { font-weight: var(--weight-semi); font-size: var(--text-md); }
.meta-sep { opacity: .4; }

.treatment-hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Ghost button for dark hero only — explicit overrides to prevent site.css .btn-ghost bleeding in */
.btn-ghost-white {
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,.55) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}
.btn-ghost-white:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.9) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .treatment-hero__image-wrap { display: none; }
    .treatment-hero__title { font-size: 1.5rem; }
}


/* ══════════════════════════════════════════════════════════════
   2. PAGE LAYOUT
   ══════════════════════════════════════════════════════════════ */
.treatment-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    align-items: start;
    padding-top: var(--space-5);
    padding-bottom: var(--space-9);
}

@media (max-width: 1023px) {
    .treatment-layout { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   3. SECTION TABS
   ══════════════════════════════════════════════════════════════ */
.section-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: var(--nav-height);
    background: var(--color-bg-page);
    z-index: 10;
    padding-top: var(--space-2);
}
.section-tabs::-webkit-scrollbar { display: none; }

.section-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}
.section-tab:hover  { color: var(--color-primary); }
.section-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}


/* ══════════════════════════════════════════════════════════════
   4. CONTENT SECTIONS
   ══════════════════════════════════════════════════════════════ */
.content-section {
    margin-bottom: var(--space-8);
    scroll-margin-top: calc(var(--nav-height) + 52px);
}

.section-heading {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semi);
    color: var(--color-text-heading);
    margin: 0 0 var(--space-2);
}

.section-intro {
    color: var(--color-text-muted);
    font-size: var(--text-md);
    margin: 0 0 var(--space-5);
    line-height: 1.6;
}

/* Section footer (View All button row) */
.section-footer {
    margin-top: var(--space-5);
    display: flex;
    justify-content: center;
}

.prose { line-height: 1.75; color: var(--color-text-body); font-size: var(--text-md); }
.prose p  { margin: 0 0 var(--space-4); }
.prose h3 { font-size: var(--text-lg); font-weight: var(--weight-medium); margin: var(--space-5) 0 var(--space-2); }
.prose ul { padding-left: var(--space-5); margin: 0 0 var(--space-4); list-style: disc; }
.prose li { margin-bottom: var(--space-1); }


/* ══════════════════════════════════════════════════════════════
   5. HOSPITAL GRID
   ══════════════════════════════════════════════════════════════ */
.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--space-4);
}

.hospital-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
}
.hospital-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hospital-card__img-wrap {
    height: 120px;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
}
.hospital-card__img    { max-width: 100%; max-height: 100%; object-fit: contain; }
.hospital-card__body   { padding: var(--space-3) var(--space-4); }
.hospital-card__name   { font-size: var(--text-base); font-weight: var(--weight-medium); margin: 0 0 4px; }
.hospital-card__location { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 var(--space-2); }
.hospital-card__badges { display: flex; gap: var(--space-1); flex-wrap: wrap; }


/* ══════════════════════════════════════════════════════════════
   6. TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.testimonial-card__header {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card__name { font-weight: var(--weight-medium); font-size: var(--text-base); margin: 0 0 2px; }
.testimonial-card__meta { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 4px; }

.star-rating  { display: flex; gap: 1px; }
.star         { color: var(--color-border-strong); font-size: var(--text-base); }
.star--filled { color: var(--color-warning); }

.testimonial-card__quote  { margin: 0 0 var(--space-3); font-style: normal; }
.testimonial-card__short,
.testimonial-card__long   { font-size: var(--text-base); line-height: 1.6; margin: 0 0 var(--space-2); color: var(--color-text-body); }

.testimonial-card__expand {
    background: none; border: none; padding: 0;
    font-size: var(--text-sm); color: var(--color-primary);
    cursor: pointer; font-weight: var(--weight-medium); font-family: var(--font-sans);
}

.testimonial-card__video-btn {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-2); width: 100%;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-light);
    color: var(--color-primary-text);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm); font-weight: var(--weight-medium);
    font-family: var(--font-sans); cursor: pointer;
    transition: background var(--transition);
}
.testimonial-card__video-btn:hover { background: #c2eed9; }
.play-icon { font-size: var(--text-sm); }


/* ══════════════════════════════════════════════════════════════
   7. FAQ
   ══════════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }

.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }

.faq-question {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: none; border: none; text-align: left;
    font-size: var(--text-md); font-weight: var(--weight-medium);
    font-family: var(--font-sans); color: var(--color-text-heading);
    cursor: pointer; transition: background var(--transition);
}
.faq-question:hover                 { background: var(--color-bg-subtle); }
.faq-question[aria-expanded="true"] { background: var(--color-primary-subtle); color: var(--color-primary-text); }

.faq-icon { font-size: 1.25rem; color: var(--color-primary); flex-shrink: 0; line-height: 1; }

.faq-answer { padding: 0 var(--space-5) var(--space-5); border-top: 1px solid var(--color-border); }


/* ══════════════════════════════════════════════════════════════
   8. STICKY SIDEBAR
   FIX: overflow-y removed — sidebar expands naturally, no
   internal scroll. Page scroll handles navigation.
   ══════════════════════════════════════════════════════════════ */
.treatment-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
    /* No max-height, no overflow-y — sidebar grows with content */
}

@media (max-width: 1023px) {
    .treatment-sidebar { display: none; }
}

.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-hover);
    margin-bottom: var(--space-4);
}

.sidebar-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    margin: 0 0 var(--space-1);
    color: var(--color-text-heading);
}

.sidebar-card__sub {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
}

.enquiry-form { display: flex; flex-direction: column; gap: var(--space-3); }
.enquiry-form .form-group { margin-bottom: 0; }  /* override site.css margin since we use gap */
.enquiry-form label { margin-bottom: 2px; font-size: var(--text-sm); }

/* Country + Phone same row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.sidebar-card__privacy {
    font-size: var(--text-xs);
    color: var(--color-text-hint);
    text-align: center;
    margin: var(--space-1) 0 0;
}

.enquiry-success { text-align: center; padding: var(--space-3) 0; }

.success-icon {
    width: 48px; height: 48px;
    background: var(--color-primary); color: #fff;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: var(--text-xl); margin: 0 auto var(--space-3);
}
.enquiry-success h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.enquiry-success p  { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 var(--space-3); }

.sidebar-trust {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex; flex-direction: column; gap: var(--space-2);
}


/* ══════════════════════════════════════════════════════════════
   9. MOBILE CTA + BOTTOM SHEET
   ══════════════════════════════════════════════════════════════ */
.mobile-cta-strip { display: none; padding: var(--space-4) 0 var(--space-6); }
@media (max-width: 1023px) { .mobile-cta-strip { display: block; } }

.mobile-sheet { position: fixed; inset: 0; z-index: 500; }

.mobile-sheet__backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.5);
}

.mobile-sheet__panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--color-bg-card);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-4) var(--space-5) var(--space-7);
    max-height: 90vh; overflow-y: auto;
    transform: translateY(100%); transition: transform .3s ease;
}
.mobile-sheet__panel.open { transform: translateY(0); }

.mobile-sheet__drag-handle {
    width: 36px; height: 4px; background: var(--color-border-strong);
    border-radius: var(--radius-pill); margin: 0 auto var(--space-3);
}

.mobile-sheet__close {
    position: absolute; top: var(--space-4); right: var(--space-4);
    background: none; border: none; font-size: var(--text-lg);
    cursor: pointer; color: var(--color-text-muted); padding: 4px; line-height: 1;
}

.mobile-sheet__title { font-size: var(--text-xl); font-weight: var(--weight-semi); margin: 0 0 4px; }
.mobile-sheet__sub   { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 var(--space-4); }


/* ══════════════════════════════════════════════════════════════
   10. VIDEO LIGHTBOX
   ══════════════════════════════════════════════════════════════ */
.video-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-4);
}

/* Critical: beats display:flex/grid on any [hidden] element */
[hidden] { display: none !important; }

.video-lightbox__close {
    position: absolute; top: var(--space-5); right: var(--space-5);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: var(--text-lg); width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.video-lightbox__close:hover { background: rgba(255,255,255,.3); }

.video-lightbox__frame {
    width: 100%; max-width: 900px;
    aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
}
.video-lightbox__frame iframe { width: 100%; height: 100%; border: none; }


/* ══════════════════════════════════════════════════════════════
   11. RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .hospital-grid    { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .form-row         { grid-template-columns: 1fr; }
    .section-heading  { font-size: var(--text-xl); }
}
