/* =========================================
   Section: Services (Clean Stacked Layout)
========================================= */
div.services .services-header{
  position: relative;
}
  
div.services .services-title-wrapper {
position: absolute;
    z-index: 20; /* 👈 CRUCIAL: Pulls the text ON TOP of the image and gradient */
    width: 100%; /* Ensures your global-container alignment works perfectly */
    height: 100%; 
    display: flex;
    flex-direction: column; /* Pushes the text to the bottom where the gradient is darkest */
    padding-bottom: 40px; /* Gives it breathing room from the bottom edge */
}  

div.services .services-h2{
  color:white;
}
div.services .btr-block{
  background-color:white!important;
}
  
div.services .services-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 9 / 8;
}
  
div.services .services-img-wrapper {
    position: relative; 
    display: block; 
}
  
div.services .services-header .services-img-wrapper::after {
content: "";
    position: absolute;
    inset: 0;
    z-index: 10; 
    /* Changed to classic RGBA for 100% browser compatibility. Increased to 0.7 for better contrast */
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none; 
    border-radius: 8px; /* 👈 Matches your image's border radius so it doesn't bleed out the corners */
}

  
div.services .services-list-wrapper {
    display: flex;
    flex-direction: column;
}

div.services .service-block-wrapper{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
  
div.services .service-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
  
div.services .services-micro-title{
    flex: 1 1 100%; 
    margin: 0;
}

div.services .services-seo-text {
    flex: 1 1 100%;
    margin: 0;
    color: #475569;
}

div.services .services-ul {
    list-style: none; /* Removes bullets */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
  
 
div.services .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: #ffffff;
    min-height: 50vh;
    border-radius: 16px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform;
    backface-visibility: hidden; 
    transform: translateZ(0); 
}

 
div.services .services-ul .service-btn{
  align-self: flex-start;
  }
  
/* Text Wrapper - Mobile Centered */
div.services .service-card-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    order: 2;
}
  
div.services .services-intro-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;      
    padding: 8px;
    background-color: #ffffff;
    border: 8px solid var(--border-color);   
    border-radius: 8px;
}


  
div.services .service-card-text p {
    margin: 0;
    color: #475569;
}

/* Image - Mobile Max Width */
div.services .service-card-img {
    width: 100%;
    max-width: 130px; /* Prevents image from being too huge on big phones */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    order: -1;
}

div.services .services-link {
    color: inherit;
    text-decoration: none;
}

div.services .services-link:hover {
    text-decoration: underline;
    color: #2563eb;
}


@media (min-width: 768px) {

    div.services .service-card-img {
     max-width: 250px; 
	}
    
    div.services .services-img {
      aspect-ratio: 16 / 8;
    }  
    
    div.services .services-micro-title{
      flex-basis: calc(40% - 10px);
    }
    
    div.services .services-seo-text {
      flex-basis: calc(60% - 10px);
    }
  
    div.services .service-card {
        flex-direction: row;
    }
    
    div.services .services-intro-text { 
        padding: 24px;
        border: 20px solid var(--border-color);  
    }
    
    div.services .services-li:nth-child(even) .service-card {
        flex-direction: row-reverse;
    }

    div.services .service-card-text {
        align-items: flex-start;
        order: 0;
    }
  
    div.services .service-card-img {
        width: 200px;
        max-width: none;
        flex-shrink: 0; /* Prevents long text from crushing the image */
        order: 0;
    }
}

@media (min-width: 1024px) { 
    div.services .service-card-img {
        width: 200px;
        height: 200px;
    }
}

@media (min-width: 1280px) {
    div.services .service-card-img {
        width: 240px; /* Slightly larger image for big desktop screens */
        height: 240px;
    }
}