/*
    File: styles/services.css
    Purpose: Styles for the services listing and responsive cards.
*/

/* Section: services */
.services-wrapper{
    padding: 50px 0;
    background: white;
    position: relative;
}

.service-header{
    text-align:center;
    margin-bottom:60px;
}

.service-header h2{
    font-size: 38px;
    font-weight: 800;
    color: #074171;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: -1px;
}

.service-header p{
     margin-top: 20px;
    max-width: 700px;
    margin: auto;
    color: #555555;
    line-height: 1.7;
    font-size: 15px;
}


/* Layout: services grid */
.services-container{
    max-width:1300px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:30px;
    padding:0 40px;
    
}


/* Component: service card */
.service-card-modern{
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.service-card-modern:hover{
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(7, 65, 113, 0.25);
    border-top: 4px solid #FFD60A;
}


/* Component: card image */
.card-image{
    height:200px;
    width:calc(100% - 30px);   
    margin:15px;               
    overflow:hidden;
    background:#ddd;
    border-radius:6px;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


/* Smooth Zoom */
.service-card-modern:hover .card-image img{
    transform:scale(1.05);
}


/* Component: card content */
.card-content{
    padding: 30px 25px;
    background: linear-gradient(135deg, #074171 0%, #0a5a99 100%);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3{
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #FFD60A;
    letter-spacing: -0.5px;
}

/* Slight Highlighted Description */
.card-content p{
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Tag */
.service-tag{
    color: #f5d37a;
    text-decoration: none;   /* removes underline */
    letter-spacing: 1px;
    font-weight: 500;
}

.service-tag:hover{
    text-decoration: none;   /* prevents underline on hover */
}


/* Responsive: grid adjustments */
@media(max-width:1100px){
    .services-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .services-container{
        grid-template-columns:1fr;
    }
}