/* ==========================================================================
   Full Service Cards Component - SS Healing Rays
   3-Column Grid Layout (Desktop) | 2-Column (Tablet) | 1-Column (Mobile)
   Clean Flat Aesthetic: NO box-shadows, subtle borders, elegant typography
   ========================================================================== */

.service-cards-section {
    position: relative;
    padding: 5.5rem 0 6.5rem;
    background-color: #ffffff;
}

/* 1. Section Header (Optional intro) */
.service-cards-header {
    margin-bottom: 3.5rem;
}

.service-cards-pretitle {
    font-family: var(--brand-font-sans, 'Lato', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary-color, #ba436c);
    margin-bottom: 0.65rem;
    display: inline-block;
}

.service-cards-title {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--heading-color, #111133);
    margin-bottom: 1rem;
}

.service-cards-title em,
.service-cards-title i {
    font-family: var(--brand-font-serif, 'Playfair Display', Georgia, serif) !important;
    font-style: italic !important;
    color: var(--secondary-color, #ba436c);
}

.service-cards-subtitle {
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    font-size: 1.02rem;
    color: #64748b;
    line-height: 1.68;
    max-width: 660px;
    margin: 0 auto;
}

/* 2. Main 3-Column Grid Row */
.service-cards-row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

/* 3. Service Item Card: Flat, No Box-Shadow */
.service-card-col,
.service-item-card {
    scroll-margin-top: 100px;
}

.service-item-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 51, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item-card:hover {
    border-color: rgba(186, 67, 108, 0.45);
    transform: translateY(-4px);
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* 4. Card Media (Top Image) - Increased Height for visual impact */
.service-item-media {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    background-color: #f8fafc;
}

.service-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item-card:hover .service-item-media img {
    transform: scale(1.05);
}

/* 5. Card Body: Heading & Description */
.service-item-body {
    padding: 1.65rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-item-number {
    display: inline-block;
    font-family: var(--brand-font-sans, 'Lato', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color, #ba436c);
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.service-item-title {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--heading-color, #111133);
    line-height: 1.32;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.service-item-card:hover .service-item-title {
    color: var(--secondary-color, #ba436c);
}

.service-item-desc {
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.65rem;
    flex-grow: 1;
}

/* 6. Enquire Button: Main Action Button (.Btn-Container from common/button.php) */
.service-item-actions {
    margin-top: auto;
    width: 100%;
}

.service-item-actions .Btn-Card-Main,
.Btn-Card-Main {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(186, 67, 108, 0.3) !important;
    box-shadow: 0 4px 14px rgba(17, 17, 51, 0.05);
    padding: 3px 3px 3px 20px !important;
    height: 50px;
    border-radius: 50px !important;
    box-sizing: border-box;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item-actions .Btn-Card-Main .text,
.Btn-Card-Main .text {
    color: var(--heading-color, #111133) !important;
    font-family: var(--brand-font-btn, 'Outfit', 'Lato', sans-serif);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-item-actions .Btn-Card-Main .icon-Container,
.Btn-Card-Main .icon-Container {
    width: 42px;
    height: 42px;
    background-color: var(--secondary-color, #ba436c) !important;
    border-radius: 50% !important;
    border: none !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item-actions .Btn-Card-Main:hover,
.Btn-Card-Main:hover {
    border-color: var(--secondary-color, #ba436c) !important;
    box-shadow: 0 8px 24px rgba(186, 67, 108, 0.2);
    transform: translateY(-2px);
}

.service-item-actions .Btn-Card-Main:hover .icon-Container,
.Btn-Card-Main:hover .icon-Container {
    background-color: var(--primary-color, #82387a) !important;
    transform: rotate(45deg);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    .service-cards-section {
        padding: 4.5rem 0 5rem;
    }
    .service-cards-header {
        margin-bottom: 2.75rem;
    }
    .service-item-media {
        height: 255px;
    }
    .service-item-body {
        padding: 1.45rem 1.5rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .service-cards-section {
        padding: 3.5rem 0 4rem;
    }
    .service-cards-header {
        margin-bottom: 2rem;
    }
    .service-item-media {
        height: 225px;
    }
    .service-item-body {
        padding: 1.25rem 1.25rem 1.35rem;
    }
    .service-item-title {
        font-size: 1.22rem;
    }
    .service-item-desc {
        font-size: 0.9rem;
        line-height: 1.62;
        margin-bottom: 1.25rem;
    }
}
