/* =========================================================
   FM HAIRSTYLE — SERVICES PREVIEW (Homepage)
   The services overview strip shown on index.php.
========================================================= */

.fm-services {
    padding: 0 0 4rem 0;
    background: #F8F1EC; /* OUTSIDE the container — ivory */
}

.fm-services-header-wrapper {
    padding-top: 9px;
    padding-bottom: 30px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    background: #F8F1EC; /* matches outside */
}

.fm-services-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #D98C6B 0%, #E8A88A 30%, #F5D4BA 60%, #E8A88A 85%, #D98C6B 100%);
    position: relative;
    border-top: 2px solid rgba(18, 15, 16, 0.08);
    border-bottom: 2px solid rgba(18, 15, 16, 0.08);
}

.fm-services-header::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(18, 15, 16, 0.12);
    z-index: 1;
}

.fm-services-header::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(18, 15, 16, 0.12);
    z-index: 1;
}

.fm-services-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #24191A;
    background: rgba(18, 15, 16, 0.06);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.fm-services-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #24191A;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.fm-services-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(18, 15, 16, 0.6);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================================================
   SERVICES — BORDERED CARDS CONTAINER
========================================================= */
.fm-services-cards-container {
    width: 100%;
    padding: 2rem;

    border: 1px solid rgba(217, 140, 107, 0.35);
    border-radius: 3px;

    background: #F5EDE6;
}

/* Mobile: only padding changes */
@media (max-width: 767px) {
    .fm-services-cards-container {
        padding: 1rem;
    }
}

/* =========================================================
   INDIVIDUAL SERVICE CARDS
========================================================= */
.fm-service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;

    background: #FFFFFF;
    padding: 1.75rem 1.25rem;
    border-radius: 6px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(217, 140, 107, 0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(18, 15, 16, 0.04);
}

.fm-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D98C6B, #D96A8A);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fm-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(18, 15, 16, 0.08);
    border-color: rgba(217, 140, 107, 0.12);
    text-decoration: none;
    color: inherit;
}

.fm-service-card:hover::before {
    opacity: 1;
}

.fm-service-card:focus,
.fm-service-card:active,
.fm-service-card:visited {
    text-decoration: none;
    color: inherit;
}

.fm-service-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(217, 140, 107, 0.08);
    color: #D98C6B;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.fm-service-card:hover .fm-service-icon {
    background: #D98C6B;
    color: #FFFFFF;
    transform: scale(1.05);
}

.fm-service-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #24191A;
    margin-bottom: 0.3rem;
    pointer-events: none;
}

.fm-service-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #9A8E8A;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    pointer-events: none;
}

.fm-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #D98C6B;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.fm-service-link i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.fm-service-card:hover .fm-service-link {
    color: #D96A8A;
}

.fm-service-card:hover .fm-service-link i {
    transform: translateX(4px);
}

/* =========================================================
   SERVICES PREVIEW — RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .fm-services {
        padding: 0 0 3rem 0;
    }

    .fm-services-header-wrapper {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .fm-services-header {
        padding: 1.75rem 1rem;
    }

    .fm-services-title {
        font-size: 1.8rem;
    }

    .fm-service-card {
        padding: 1.5rem 1.25rem;
    }

    .fm-services-header-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 6px;
        padding-bottom: 30px;
    }

    .fm-hero-background,
    .fm-hero:hover .fm-hero-background {
        transform: none;
    }
}

@media (max-width: 767px) {
    .fm-services {
        padding: 0 0 2rem 0;
    }

    .fm-services-header-wrapper {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .fm-services-header {
        padding: 1.5rem 0.75rem;
    }

    .fm-services-title {
        font-size: 1.6rem;
    }

    .fm-services-subtitle {
        font-size: 0.85rem;
    }

    .fm-service-card {
        padding: 1.25rem 1rem;
    }

    .fm-service-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .fm-service-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .fm-services {
        padding: 0 0 1.5rem 0;
    }

    .fm-services-header-wrapper {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .fm-services-header {
        padding: 1.25rem 0.5rem;
    }

    .fm-services-title {
        font-size: 1.4rem;
    }

    .fm-service-card {
        padding: 1rem 0.75rem;
    }
}