/* ================================================
   TREATMENT PAGES — Dr. Oulkadi
   Extends the main design system (styles.css)
   ================================================ */

/* === BREADCRUMB === */
.breadcrumb {
    padding: calc(var(--nav-height) + var(--topbar-height) + var(--space-lg)) 0 var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.breadcrumb__container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--grey-400);
}

.breadcrumb__link {
    color: var(--grey-400);
    transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
    color: var(--grey-700);
}

.breadcrumb__separator {
    font-size: 0.75rem;
    color: var(--grey-300);
}

.breadcrumb__current {
    color: var(--grey-700);
    font-weight: 500;
}


/* === TREATMENT HERO (hero--treatment) === */
.hero--treatment {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
}

.hero--treatment .hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero--treatment .hero__content {
    max-width: 560px;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey-500);
    background: var(--grey-100);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero--treatment .hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.08;
    color: var(--grey-900);
    margin-bottom: var(--space-lg);
}

.hero__intro {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--grey-600);
    margin-bottom: var(--space-xl);
}

.hero__meta {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero__meta-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-400);
}

.hero__meta-value {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-800);
}

.hero--treatment .hero__cta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.hero--treatment .hero__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--grey-100);
}

.hero--treatment .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* === TREATMENT SECTIONS === */
.treatment-section {
    padding: var(--section-pad) var(--space-xl);
}

.treatment-section--alt {
    background: var(--bg-section-alt);
}

.treatment-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.treatment-section__header {
    margin-bottom: var(--space-lg);
}

.treatment-section__label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey-400);
    margin-bottom: var(--space-md);
}

.treatment-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    color: var(--grey-900);
    margin-bottom: var(--space-sm);
}

.treatment-section__content {
    max-width: 760px;
}

.treatment-section__text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--grey-600);
    margin-bottom: var(--space-xl);
}

.treatment-section__text p {
    margin-bottom: var(--space-lg);
}

.treatment-section__text p:last-child {
    margin-bottom: 0;
}


/* === PROCESS STEPS (Timeline) === */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.process-step {
    position: relative;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-base);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
}

.process-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.process-step__title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.process-step__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--grey-500);
}

/* Alias for pages using __desc */
.process-step__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--grey-500);
}


/* === EXPECTATIONS GRID === */
.expectations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.expectation-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--white);
}

.expectation-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--grey-100);
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.expectation-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--grey-600);
}

.expectation-card__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.expectation-card__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--grey-500);
}


/* === FAQ ACCORDION === */
.faq-list {
    margin-top: var(--space-lg);
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--grey-800);
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--grey-900);
}

.faq-question__text {
    flex: 1;
}

.faq-question__icon {
    font-size: 1.4rem;
    color: var(--grey-400);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
    line-height: 1;
}

.faq-item.is-open .faq-question__icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-answer p,
.faq-answer__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--grey-500);
}


/* === RELATED TREATMENTS === */
.related-treatments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

/* treatment-card (used in HTML) */
.treatment-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--color-primary);
    background: var(--white);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.treatment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.treatment-card__image {
    aspect-ratio: 16/10;
    background: var(--grey-100);
    overflow: hidden;
}

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

.treatment-card__content {
    padding: var(--space-lg);
}

.treatment-card__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--space-xs);
}

.treatment-card__description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--grey-500);
    margin-bottom: var(--space-md);
}

/* Also support related-card if used */
.related-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.related-card__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--grey-500);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.related-card__link {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--grey-700);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.related-card__link:hover {
    color: var(--grey-900);
    gap: var(--space-sm);
}


/* === CTA BANNER === */
.cta-banner {
    padding: var(--space-3xl) var(--space-xl);
}

.cta-banner__container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--grey-900);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner__content {
    max-width: 560px;
    margin-bottom: var(--space-xl);
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    font-style: normal;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-banner__text {
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: var(--grey-400);
    line-height: 1.6;
}

.cta-banner__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


/* === DOCTOR QUOTE === */
.doctor-quote {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
    border-left: 3px solid var(--grey-300);
}

.doctor-quote__avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.doctor-quote__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.doctor-quote__avatar-placeholder .placeholder-text {
    font-size: 0.6rem;
    color: var(--grey-400);
}

.doctor-quote__text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--grey-600);
    margin: 0 0 var(--space-sm);
}

.doctor-quote__author,
.doctor-quote__name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-700);
}


/* === WHATSAPP BUTTON (for treatment pages) === */
.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.8rem;
    background: var(--color-whatsapp);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
}


/* === FOOTER (Treatment pages variant) === */
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer__description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-lg);
}

.footer__socials {
    display: flex;
    gap: var(--space-md);
}

.footer__socials .footer__social {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.footer__socials .footer__social:hover {
    color: var(--white);
}

.footer__subheading {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li a,
.footer__contact li a,
.footer__contact li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.footer__links li a:hover,
.footer__contact li a:hover {
    color: var(--white);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__copyright {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}


/* === FLOATING WHATSAPP BUTTON === */
.floating-whatsapp {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--color-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all var(--transition-fast);
}

.floating-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    color: var(--white);
    fill: var(--white);
}


/* =============================
   INQUIRY MINI-FORM (hero sidebar)
   ============================= */
.inquiry-form {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inquiry-form__header {
    margin-bottom: var(--space-lg);
}

.inquiry-form__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    font-style: normal;
    color: var(--grey-900);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.inquiry-form__subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--grey-500);
    line-height: 1.5;
}

.inquiry-form__group {
    margin-bottom: var(--space-md);
}

.inquiry-form__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-600);
    margin-bottom: 0.35rem;
}

.inquiry-form__input,
.inquiry-form__textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--grey-800);
    background: var(--bg-body);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.inquiry-form__input:focus,
.inquiry-form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 111, 128, 0.1);
}

.inquiry-form__input::placeholder,
.inquiry-form__textarea::placeholder {
    color: var(--grey-400);
}

.inquiry-form__textarea {
    resize: vertical;
    min-height: 60px;
}

.inquiry-form__consent,
.inquiry-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.inquiry-form__consent input[type="checkbox"],
.inquiry-form__privacy input[type="checkbox"],
.inquiry-form__checkbox {
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.inquiry-form__consent label,
.inquiry-form__privacy-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--grey-500);
    line-height: 1.45;
}

.inquiry-form__consent a,
.inquiry-form__privacy-label a,
.inquiry-form__privacy-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.inquiry-form__submit {
    width: 100%;
    margin-bottom: var(--space-md);
}

.inquiry-form__divider {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.inquiry-form__divider::before,
.inquiry-form__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--grey-200);
}

.inquiry-form__divider span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.inquiry-form__whatsapp {
    width: 100%;
    text-align: center;
    justify-content: center;
}


/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
    .hero--treatment .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero--treatment .hero__content {
        max-width: 100%;
        order: 1;
    }

    .hero--treatment .hero__image {
        order: 2;
        aspect-ratio: auto;
        max-height: none;
    }

    .hero--treatment .inquiry-form {
        order: 2;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .expectations-grid {
        grid-template-columns: 1fr;
    }

    .related-treatments {
        grid-template-columns: 1fr;
    }

    .cta-banner__actions {
        flex-direction: column;
    }

    .hero__meta {
        gap: var(--space-lg);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero--treatment {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .treatment-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero--treatment .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero--treatment .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero--treatment .hero__cta .btn--primary,
    .hero--treatment .hero__cta .btn--outline {
        text-align: center;
        justify-content: center;
    }

    .cta-banner {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}
