/* ============================================================
   NGUEYE HOTEL - HOMEPAGE SERVICES PREVIEW
============================================================ */


/* ============================================================
   COMPLETE SERVICES AREA
============================================================ */

.services-preview {
    position: relative;
    width: 100%;
    background: #f5f1eb;
}


/* ============================================================
   SHARED CONTAINER
============================================================ */

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ============================================================
   INTRODUCTION
============================================================ */

.services-intro {
    padding: 4rem 0 2.5rem;
    text-align: center;
    background: #f5f1eb;
}

.services-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--ngueye-dark);
    margin-bottom: 0.75rem;
}

.services-intro h2 .highlight {
    color: var(--ngueye-gold);
    font-style: italic;
}

.services-intro p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;

    font-size: 1rem;
    line-height: 1.8;
}


/* ============================================================
   SERVICE CARDS AREA
============================================================ */

.service-cards {
    position: relative;

    /*
       Gives room above/below the framed card collection.
    */
    padding: 1rem 0 4rem;

    background: #f5f1eb;
}


/* ============================================================
   DESKTOP — FRAME AROUND THE ACTUAL CARD COLLECTION

   The .container-custom is 1200px max-width.
   We use a pseudo-element to draw a frame around that area
   rather than around the entire browser window.

   The frame sits approximately 25px away from the content.
============================================================ */

@media (min-width: 769px) {

    .service-cards > .container-custom {
        position: relative;

        /*
           Actual breathing room between frame and card rows.
        */
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .service-cards > .container-custom::before {
        content: "";

        position: absolute;

        /*
           Horizontal container padding is already 1.5rem.
           We use a small inset so the frame remains close
           to the actual content instead of near screen edges.
        */
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        border: 2px solid rgba(139, 48, 71, 0.22);
        border-radius: 22px;

        pointer-events: none;

        z-index: 0;
    }

    /*
       Keep all card content above the decorative frame.
    */
    .service-row {
        position: relative;
        z-index: 1;
    }
}


/* ============================================================
   SERVICE ROW
   Warm middle layer around the white cards
============================================================ */

.service-row {
    border: 1px solid rgba(212, 175, 55, 0.28);

    border-radius: 18px;

    padding: 1.8rem 1.8rem 0.8rem;

    /*
       Different shade from both the page and cards.
    */
    background: #ebe3d8;

    box-shadow:
        0 8px 30px rgba(26, 20, 21, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.60);

    margin-bottom: 2rem;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


/*
   Remove extra margin from the very last row so the
   25px bottom frame spacing remains visually accurate.
*/
.service-row:last-child {
    margin-bottom: 0;
}


.service-row:hover {
    box-shadow:
        0 12px 40px rgba(26, 20, 21, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
}


/* ============================================================
   ROW DIVIDER
============================================================ */

.service-row .row-divider {
    display: flex;
    justify-content: center;

    margin-top: 1.8rem;
    margin-bottom: 0.2rem;
}

.service-row .row-divider span {
    display: inline-block;

    width: 80px;
    height: 2px;

    background: var(--ngueye-gold);

    border-radius: 4px;

    opacity: 0.5;
}


/* ============================================================
   INDIVIDUAL SERVICE CARD
============================================================ */

.service-card {
    position: relative;

    background: #ffffff;

    border-radius: 16px;

    border: 1px solid rgba(212, 175, 55, 0.12);

    overflow: hidden;

    height: 100%;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 5px 20px rgba(26, 20, 21, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 40px rgba(26, 20, 21, 0.11);
}


/* ============================================================
   CARD IMAGES
   UPDATED HEIGHTS:
   Desktop: 430px (was 320px)
   Tablet:  340px (was 260px)
   Mobile:  300px (was 240px)
============================================================ */

.service-card .card-image {
    width: 100%;
    height: 430px; /* UPDATED: Increased from 320px */

    overflow: hidden;

    flex-shrink: 0;

    border-bottom:
        1px solid rgba(212, 175, 55, 0.12);
}

.service-card .card-image picture {
    display: block;

    width: 100%;
    height: 100%;
}

.service-card .card-image img,
.service-card .card-image picture img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        contrast(1.05)
        saturate(1.06);

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.04);

    filter:
        contrast(1.07)
        saturate(1.08);
}


/* ============================================================
   CARD BODY
============================================================ */

.service-card .card-body {
    padding: 1.5rem;

    flex: 1;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}


/* ============================================================
   CARD TITLES
============================================================ */

.service-card .card-body h3 {
    font-family: 'Playfair Display', serif;

    font-size: 1.3rem;

    color: var(--ngueye-dark);

    margin-bottom: 0.5rem;
}

.service-card .card-body h3 .highlight {
    color: var(--ngueye-gold);

    font-style: italic;
}


/* ============================================================
   CARD DESCRIPTION
============================================================ */

.service-card .card-body p {
    color: #555;

    font-size: 0.95rem;

    line-height: 1.7;

    margin-bottom: 1rem;

    flex: 1;
}


/* ============================================================
   CARD FEATURES
============================================================ */

.service-card .card-body .card-features {
    display: flex;

    flex-wrap: wrap;

    gap: 0.6rem 1.2rem;

    margin-bottom: 1.2rem;
}

.service-card .card-body .card-features span {
    font-size: 0.85rem;

    color: #555;
}

.service-card .card-body .card-features span i {
    color: var(--ngueye-gold);

    margin-right: 0.3rem;

    width: 1rem;
}


/* ============================================================
   BUTTON
============================================================ */

.btn-service-card {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    align-self: flex-start;

    padding: 0.6rem 1.5rem;

    background: var(--ngueye-gold);

    color: #ffffff;

    border: none;

    border-radius: 50px;

    font-size: 0.9rem;

    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(212, 175, 55, 0.25);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-service-card:hover {
    background: #b8862b;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-service-card i {
    transition: transform 0.3s ease;
}

.btn-service-card:hover i {
    transform: translateX(4px);
}


/* ============================================================
   EVENTS DESKTOP IMAGE
   Keep this as a special case — taller than standard cards
============================================================ */

.events-card-image {
    height: 400px !important;
}


/* ============================================================
   MOBILE
   Keep the previous mobile approach:
   frame near screen edge WITHOUT squeezing content.
============================================================ */

@media (max-width: 768px) {

    /*
       On mobile the frame belongs to the whole services
       preview instead of the cards container.
    */
    .services-preview {
        position: relative;

        padding: 8px 0;

        background: #f4efe7;

        overflow: hidden;
    }

    .services-preview::after {
        content: "";

        position: absolute;

        inset: 7px;

        border:
            1.5px solid rgba(139, 48, 71, 0.20);

        border-radius: 5px;

        pointer-events: none;

        z-index: 5;
    }


    /* --------------------------------------------------------
       CONTAINER
    --------------------------------------------------------- */

    .container-custom {
        position: relative;

        padding-left: 14px;
        padding-right: 14px;
    }


    /* --------------------------------------------------------
       INTRO
    --------------------------------------------------------- */

    .services-intro {
        padding: 2.5rem 0 1.5rem;

        background: transparent;
    }

    .services-intro h2 {
        font-size: 1.6rem;
    }

    .services-intro p {
        padding-left: 8px;
        padding-right: 8px;
    }


    /* --------------------------------------------------------
       CARDS AREA
    --------------------------------------------------------- */

    .service-cards {
        padding: 1.5rem 0 2rem;

        background: transparent;
    }


    /* --------------------------------------------------------
       SERVICE ROW
    --------------------------------------------------------- */

    .service-row {
        padding: 10px;

        margin-bottom: 1.5rem;

        border-radius: 16px;

        background: #ebe3d8;
    }

    .service-row:last-child {
        margin-bottom: 0;
    }

    .service-row .row-divider {
        margin-top: 1.2rem;

        margin-bottom: 0.2rem;
    }


    /* --------------------------------------------------------
       CARD
    --------------------------------------------------------- */

    .service-card {
        border-radius: 13px;
    }

    .service-card .card-image {
        height: 340px; /* UPDATED: Increased from 260px */
    }

    .service-card .card-body {
        padding: 1.2rem;
    }

    .service-card .card-body h3 {
        font-size: 1.1rem;
    }


    /* --------------------------------------------------------
       EVENTS MOBILE IMAGE
    --------------------------------------------------------- */

    .events-card-image {
        height: auto !important;

        max-height: none;
    }

    .events-card-image picture {
        height: auto;
    }

    .events-card-image img,
    .events-card-image picture img {
        width: 100%;

        height: auto;

        object-fit: cover;

        object-position: center;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .container-custom {
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-card .card-image {
        height: 300px; /* UPDATED: Increased from 240px */
    }

    .service-card .card-body p {
        font-size: 0.9rem;
    }

    .service-card .card-body .card-features span {
        font-size: 0.8rem;
    }

    .btn-service-card {
        font-size: 0.8rem;

        padding: 0.55rem 1.2rem;
    }


    /* Events keeps natural portrait-image height */

    .events-card-image {
        height: auto !important;

        max-height: none;
    }

    .events-card-image picture {
        height: auto;
    }

    .events-card-image img,
    .events-card-image picture img {
        width: 100%;

        height: auto;
    }
}
