/* ==========================================================================
   Gym Services Section
   ========================================================================== */

   .services-section {
    background-color: #0A192F; /* Deep Navy Blue */
    width: 100%;
    position: relative;
    padding: 4.5rem 0; /* Reduced further by 15% */
    overflow: hidden;
}

/* Subtle background glow for the navy blue */
.services-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(100, 134, 154, 0.1) 0%, rgba(10, 25, 47, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.services-content-wrapper {
    position: relative;
    z-index: 5;
}

/* Subtitle */
.services-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Suppressed */
    margin-top: 2rem; /* Suppressed */
}

@media (max-width: 739.98px) {
    .services-section {
        padding: 2.2rem 0; /* Reduced further */
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .services-info-banner {
        margin-top: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
        gap: 1.2rem;
    }
    .info-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(255,255,255,0.02);
        padding: 1rem;
        border-radius: 10px;
    }
    .service-card {
        padding: 1.2rem 1rem;
    }
    .service-icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    .service-icon {
        font-size: 1.5rem;
    }
    .service-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 0.8rem 0;
    }
    .services-content-wrapper {
        display: flex;
        flex-direction: column;
    }
    .text-center.mb-4 {
        order: 1; /* Section Header */
    }
    .services-grid {
        order: 2; /* Grid right after Header */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
        margin-top: 0;
    }
    .service-card {
        padding: 0.8rem 0.2rem !important; /* Smaller boxes */
        border-radius: 16px;
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Move icons to top */
        text-align: center !important;
        aspect-ratio: auto !important; /* Allow height to grow dynamically */
        min-height: auto !important; /* Removed fixed height to shrink boxes */
        color: white;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }
    .service-icon-wrapper {
        width: 72px !important;
        height: 72px !important;
        margin-bottom: 0.8rem !important;
        margin-right: 0 !important;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(4px);
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .service-icon {
        font-size: 2.8rem !important; /* Kept icon same size */
        color: white !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .service-title {
        font-size: 1.1rem !important; /* Made text smaller */
        font-weight: 800;
        letter-spacing: 0;
        margin: 0 auto;
        text-align: center !important;
        color: white !important;
        line-height: 1.2 !important; 
        white-space: normal !important; 
        width: min-content !important; /* Forces each word to occupy its own line */
        word-break: normal !important; /* Fixes character splitting bug */
        overflow-wrap: normal !important;
    }
    
    /* Base color for all tiles on mobile */
    .service-card {
        background-color: #112240 !important; /* Normal dark blue */
        border-color: rgba(255,255,255,0.1) !important;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
    
    /* Interactive active coloring when clicked/tapped via JS */
    .service-card.is-active.card-crossfit { background-color: #E63946 !important; border-color: #E63946 !important; }
    .service-card.is-active.card-pt { background-color: #FACC15 !important; border-color: #FACC15 !important; }
    .service-card.is-active.card-weightloss { background-color: #10B981 !important; border-color: #10B981 !important; }
    .service-card.is-active.card-group { background-color: #8B5CF6 !important; border-color: #8B5CF6 !important; }
    .service-card.is-active.card-hiit { background-color: #06B6D4 !important; border-color: #06B6D4 !important; }
    .service-card.is-active.card-diet { background-color: #84CC16 !important; border-color: #84CC16 !important; }
    
    /* PT card needs dark text only when active */
    .service-card.is-active.card-pt .service-icon-wrapper { background: rgba(0, 0, 0, 0.12) !important; }
    .service-card.is-active.card-pt .service-icon { color: #0A192F !important; }
    .service-card.is-active.card-pt .service-title { color: #0A192F !important; }
    
    .services-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-top: calc(0.3rem + 2mm) !important; /* Moved down 2mm as requested */
        padding: 0 0.75rem;
    }
    
    /* Pilled Info Banner */
    .services-info-banner {
        order: 3; /* Move banner below grid */
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important; /* Stack them vertically to stretch horizontally */
        justify-content: center !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    
    /* Rectangular shapes with curved edges */
    .info-item {
        width: 100% !important; /* Horizontally elongated to left and right corners */
        display: flex !important;
        flex-direction: row !important; /* Icon on the left */
        align-items: center !important;
        justify-content: flex-start !important; /* Left aligned */
        text-align: left !important;
        border-radius: 8px !important; /* Curved rectangle */
        background: #112240 !important; /* Default blue */
        padding: 0.3rem 0.75rem !important; /* Reduced vertical height even further */
        transition: background-color 0.3s ease, color 0.3s ease;
        border: 1px solid rgba(255,255,255,0.1);
        cursor: pointer;
    }
    
    .info-item .info-icon {
        margin-bottom: 0 !important;
        margin-right: 0.6rem !important;
        font-size: 1.4rem !important;
        color: white !important; /* Keep white */
        flex-shrink: 0;
    }

    .info-item.is-active {
        background: #ffffff !important; /* White when clicked */
    }
    
    .info-item.is-active .info-label,
    .info-item.is-active .info-value,
    .info-item.is-active .info-icon {
        color: #0A192F !important; /* Dark text on white bg */
    }
    
    .info-item .info-label {
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .info-item .info-value {
        font-size: 1.1rem !important; /* Bigger text */
        color: white !important; /* Keep white */
        line-height: 1.2 !important;
        font-weight: 800 !important;
        text-align: left !important;
    }

    .info-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Clean up pill text */
    .info-label {
        display: none !important; /* Hide label to make it cleaner on mobile */
    }
    .info-value {
        font-size: 0.95rem !important; /* Bigger text */
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
        color: #111827 !important; /* Dark text */
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center !important; /* Centered */
    }
    .info-icon {
        font-size: 1.25rem !important; /* Bigger icon */
        color: #E63946 !important; /* Brand red for icons inside pills */
        opacity: 1 !important;
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}



/* Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Hardware Accelerated Smooth Transitions */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease;
    will-change: transform, box-shadow, background-color;
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    cursor: pointer;
}

/* Unique hover colors for each card */
.card-crossfit:active { background-color: #E63946 !important; border-color: #E63946 !important; }
.card-pt:active { background-color: #FACC15 !important; border-color: #FACC15 !important; }
.card-weightloss:active { background-color: #10B981 !important; border-color: #10B981 !important; }
.card-group:active { background-color: #8B5CF6 !important; border-color: #8B5CF6 !important; }
.card-hiit:active { background-color: #06B6D4 !important; border-color: #06B6D4 !important; }
.card-diet:active { background-color: #84CC16 !important; border-color: #84CC16 !important; }

.service-card:active {
    transform: translateY(0);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (hover: hover) {
    .card-crossfit:hover { background-color: #E63946 !important; border-color: #E63946 !important; }
    .card-pt:hover { background-color: #FACC15 !important; border-color: #FACC15 !important; }
    .card-weightloss:hover { background-color: #10B981 !important; border-color: #10B981 !important; }
    .card-group:hover { background-color: #8B5CF6 !important; border-color: #8B5CF6 !important; }
    .card-hiit:hover { background-color: #06B6D4 !important; border-color: #06B6D4 !important; }
    .card-diet:hover { background-color: #84CC16 !important; border-color: #84CC16 !important; }

    .service-card:hover {
        transform: translateY(0);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    
    /* Optimized Transition */
    transition: background-color 0.4s ease, color 0.4s ease;
    will-change: background-color;
}

.service-card:active .service-icon-wrapper {
    background: #0A192F;
    color: white !important;
}

@media (hover: hover) {
    .service-card:hover .service-icon-wrapper {
        background: #0A192F;
        color: white !important;
    }
}

.service-icon {
    font-size: 2rem;
    color: #64869A; /* The secondary blue tone from hero */
    transition: color 0.4s ease;
}

.service-card:active .service-icon {
    color: white;
}

@media (hover: hover) {
    .service-card:hover .service-icon {
        color: white;
    }
}

.service-title {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.4s ease;
}

.service-card:active .service-title {
    color: #ffffff;
}
/* PT card is gold, so we need dark text */
.card-pt:active .service-title { color: #0A192F !important; }

@media (hover: hover) {
    .service-card:hover .service-title {
        color: #ffffff;
    }
    .card-pt:hover .service-title { color: #0A192F !important; }
}

/* Info Banner */
.services-info-banner {
    margin-top: 1.5rem; /* Suppressed further */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    font-size: 2.5rem;
    color: #FACC15; /* Professional Gold Accent */
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.info-value {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Removed conflicting mobile service card layout */
