/* =========================================
   KERALA AYURVEDA THERAPIES SECTION
========================================= */

.therapies-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(154, 124, 61, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(80, 100, 70, 0.06),
            transparent 30%
        ),
        #f7f4ec;
}


/* Subtle traditional pattern */
.therapies-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            45deg,
            rgba(120, 100, 60, 0.025) 25%,
            transparent 25%
        );

    background-size: 8px 8px;
    pointer-events: none;
}


/* =========================================
   HEADER
========================================= */

.therapies-header {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 65px;
}


.therapies-header h2 {
    margin: 14px 0 20px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -1.5px;
}


.therapies-header h2 span {
    font-style: italic;
}


.therapies-intro {
    max-width: 680px;
    margin: 25px auto 0;

    font-size: 16px;
    line-height: 1.9;

    opacity: 0.78;
}


/* =========================================
   GRID
========================================= */

.therapies-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================
   CARD
========================================= */

.therapy-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 365px;

    padding: 34px 32px 30px;

    text-decoration: none;
    color: inherit;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(126, 102, 53, 0.16);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;

    overflow: hidden;
}


/* Decorative corner */
.therapy-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -50px;
    bottom: -50px;

    border-radius: 50%;

    border: 1px solid rgba(126, 102, 53, 0.13);

    transition: transform 0.5s ease;
}


.therapy-card:hover {
    transform: translateY(-8px);

    background: rgba(255, 255, 255, 0.95);

    border-color: rgba(126, 102, 53, 0.35);

    box-shadow:
        0 18px 45px rgba(60, 50, 30, 0.10);
}


.therapy-card:hover::after {
    transform: scale(2);
}


/* =========================================
   NUMBER
========================================= */

.therapy-number {
    position: absolute;

    top: 25px;
    right: 28px;

    font-size: 12px;
    letter-spacing: 2px;

    opacity: 0.45;
}


/* =========================================
   ICON
========================================= */

.therapy-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 35px;

    border-radius: 50%;

    border: 1px solid rgba(126, 102, 53, 0.35);

    font-size: 21px;

    font-family: serif;

    transition:
        transform 0.4s ease,
        background 0.4s ease;
}


.therapy-card:hover .therapy-icon {
    transform: rotate(12deg);

    background: rgba(126, 102, 53, 0.08);
}


/* =========================================
   CONTENT
========================================= */

.therapy-content {
    display: flex;
    flex-direction: column;

    flex: 1;
}


.therapy-content h3 {
    margin: 0 0 15px;

    font-size: 25px;
    line-height: 1.25;

    font-weight: 500;
}


.therapy-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    opacity: 0.72;
}


/* =========================================
   LINK
========================================= */

.therapy-link {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    margin-top: auto;
    padding-top: 25px;

    font-size: 13px;
    letter-spacing: 0.4px;

    opacity: 0.85;

    transition:
        gap 0.3s ease,
        opacity 0.3s ease;
}


.therapy-link span {
    font-size: 18px;
    line-height: 1;
}


.therapy-card:hover .therapy-link {
    gap: 15px;
    opacity: 1;
}


/* =========================================
   BOTTOM CTA
========================================= */

.therapies-cta {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-top: 55px;
}


.cta-line {
    width: 100px;
    height: 1px;

    background: rgba(126, 102, 53, 0.25);
}


.therapies-button {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    padding: 14px 25px;

    border: 1px solid rgba(126, 102, 53, 0.35);

    text-decoration: none;
    color: inherit;

    font-size: 13px;
    letter-spacing: 0.8px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        gap 0.3s ease;
}


.therapies-button span {
    font-size: 18px;
}


.therapies-button:hover {
    background: #4c5a3c;
    color: #fff;

    gap: 17px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .therapies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .therapies-section {
        padding: 75px 0;
    }


    .therapies-header {
        margin-bottom: 45px;
        padding: 0 15px;
    }


    .therapies-header h2 {
        font-size: 38px;
    }


    .therapies-intro {
        font-size: 14px;
        line-height: 1.8;
    }


    .therapies-grid {
        grid-template-columns: 1fr;

        gap: 16px;

        padding: 0 15px;
    }


    .therapy-card {
        min-height: 330px;

        padding: 30px 25px;
    }


    .therapy-content h3 {
        font-size: 23px;
    }


    .therapies-cta {
        margin-top: 40px;
        padding: 0 15px;
    }


    .cta-line {
        width: 45px;
    }

}