@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

.treatments-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: #0c2c17;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.treatments-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,44,23,0.7) 0%, rgba(12,44,23,0.3) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 800px; }
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: #f5f0e8;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.treatments-intro { padding: 100px 20px 60px; background: #f4f7f5; text-align: center; }
.intro-inner { max-width: 1000px; margin: 0 auto; }
.intro-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #9b7826;
    margin-bottom: 20px;
}
.intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #0c2c17;
    line-height: 1.2;
    margin-bottom: 30px;
}
.intro-desc {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: #3b4e41;
}

.treatments-section { padding: 40px 20px 80px; background: #ffffff; }
.treatments-container { max-width: 1200px; margin: 0 auto; }
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0c2c17;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Category Filter Buttons ── */
.product-filters {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #0c2c17;
    background: transparent;
    border: 1px solid rgba(211, 159, 60, 0.4);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background: #d39f3c;
    border-color: #d39f3c;
    color: #ffffff;
}

/* ── Treatments Grid ── */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.treatment-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid rgba(12, 44, 23, 0.06);
    border-radius: 6px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(12, 44, 23, 0.08);
    border-color: rgba(211, 159, 60, 0.3);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 4px;
}
.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 44, 23, 0.15);
    transition: background 0.4s ease;
}
.treatment-card:hover .card-image-wrap img { transform: scale(1.05); }
.treatment-card:hover .card-image-wrap::after { background: rgba(12, 44, 23, 0.35); }

.card-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #9b7826;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ── UPDATED: Card Title ── */
.card-title {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0c2c17;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;

    /* Clamp to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #d39f3c;
    margin: 0 0 10px;
}

.card-snippet {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #667c6e;
    margin-bottom: 15px;
}

.btn-view-details {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #d39f3c;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.treatment-card:hover .btn-view-details {
    color: #0c2c17;
}
.treatment-card:hover .btn-view-details i {
    transform: translateX(4px);
}
.btn-view-details i {
    transition: transform 0.3s ease;
}

/* ── Modal Custom Styling ── */
.treatment-modal .modal-content {
    background-color: #fcfbfa;
    border: 1px solid rgba(211, 159, 60, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(12, 44, 23, 0.15);
}
.treatment-modal .modal-header {
    background-color: #0c2c17;
    border-bottom: 2px solid #d39f3c;
    padding: 18px 25px;
}
.treatment-modal .modal-title {
    font-family: 'Cormorant Garamond', serif;
    color: #f5f0e8;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.treatment-modal .btn-close {
    background-color: transparent;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.treatment-modal .btn-close:hover {
    opacity: 1;
}
.treatment-modal .modal-body {
    padding: 30px 25px;
}
.treatment-modal .modal-img-wrap {
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(12, 44, 23, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.treatment-modal .modal-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.treatment-modal .modal-price-tag, .treatment-modal .modal-category-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
}
.treatment-modal .price-label, .treatment-modal .category-label {
    color: #7a8a80;
    font-weight: 400;
}
.treatment-modal .price-value {
    color: #d39f3c;
    font-weight: 600;
    font-size: 1.2rem;
    margin-left: 5px;
}
.treatment-modal .category-value {
    color: #0c2c17;
    font-weight: 500;
    margin-left: 5px;
}
.treatment-modal .detail-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0c2c17;
    border-bottom: 1px solid rgba(12, 44, 23, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.treatment-modal .detail-section-title i {
    color: #d39f3c;
}
.treatment-modal .text-rich {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3b4e41;
}
.treatment-modal .text-rich p {
    margin-bottom: 12px;
}
.treatment-modal .text-rich ul, .treatment-modal .text-rich ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
.treatment-modal .text-rich li {
    margin-bottom: 6px;
}
.treatment-modal .modal-footer {
    border-top: 1px solid rgba(12, 44, 23, 0.08);
    padding: 15px 25px;
    background-color: #f4f7f5;
}
.treatment-modal .btn-modal-action {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #d39f3c;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #d39f3c;
    display: inline-block;
}
.treatment-modal .btn-modal-action:hover {
    background-color: #9b7826;
    border-color: #9b7826;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(211, 159, 60, 0.2);
}
.treatment-modal .btn-modal-close {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background-color: transparent;
    color: #0c2c17;
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid rgba(12, 44, 23, 0.3);
    transition: all 0.3s ease;
}
.treatment-modal .btn-modal-close:hover {
    background-color: rgba(12, 44, 23, 0.05);
    border-color: rgba(12, 44, 23, 0.6);
}

@media (max-width: 991px) { .treatments-grid { grid-template-columns: repeat(2, 1fr); } .hero-title { font-size: 2.5rem; } }
@media (max-width: 768px) {
    .treatments-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .intro-title { font-size: 2.2rem; }

    /* ── Modal Title: mobile fix ── */
    .treatment-modal .modal-title {
        font-family: 'Jost', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        line-height: 1.4;
    }

    .treatment-modal .modal-header {
        padding: 14px 18px;
    }
}