
/* --- Section Styles --- */
.services-section {
    
    padding: 20px  4rem 20px 2rem;
    
    color: var(--text-primary);
}

.section-header {
    text-align: start;
    margin: 2rem 0 1rem 0;
}

.section-header h2 {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: var(--h1-small);
    opacity: 0.9;
}
.section-header p {
   font-size: var(--p1);
    color: var(--text-primary);
    line-height: 1.6;
    width: 90%;
    text-align: start;
}


.services-grid-container{
    display: flex;
    gap: 20px;
}

/* --- Grid Layout --- */
.services-grid {
    display: grid;
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(3,1fr); 
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
}
/* --- Card Component (exactly your style, with additions for ellipses) --- */
    .service-card {
      background-color: var(--secondary);
      padding: 10px;
      border-radius: 16px;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;

    }

    .picture-frame{
     position: relative;
      width: 431px;   /* exact card width from Frame 625 */
      height: auto;  /* exact card height */
      border-radius: 16px;
      overflow: hidden; /* keep ellipses clipped to border */
      box-shadow: 0 20px 30px -10px rgba(0,0,0,0.4);
    }

    .service-card:hover {
      transform: translateY(-5px); /* Subtle lift on hover */
      box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    /* Icon Styling (exact) */
    .card-icon {
      color: var(--text-primary);
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 0 10px;
      margin-top: 20px;  /* some breathing room */
      position: relative;
      z-index: 3;         /* above ellipses */
    }

    .card-icon img {
      width: auto;
      height: 25px;
      display: block;
      flex-shrink: 0;
      /* fallback if image missing */
      border-radius: 4px;
    }

    /* Typography inside card */
    .service-card h3 {
      font-size: var(--h3);
      font-weight: 600;
      line-height: 1.4;
      color: var(--text-primary);
      min-height: 50px; /* Ensures alignment even if titles vary in length */
      display: flex;
      align-items: center;
      margin: 0;
      text-align: left;
    }

    .service-card p {
      font-size: var(--p2);
      text-align: start;
      line-height: 1.6;
      color: var(--text-light);
      opacity: 0.9;
      max-width: 500px;
      margin: 20px 0 20px 0;
      padding: 0 16px;
      position: relative;
      z-index: 3;  /* above ellipses */
    }

    

    /* Ensure content stays above ellipses */
     .card-icon, .service-card p, .service-card h3 {
      position: relative;
      z-index: 5;
    }

    .picture-frame .border {
       border-bottom: 2px solid rgba(255, 255, 255, 0.1);
       width: 100%;
       margin-bottom: 10px;
    }
   .service-item-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: start;
    align-items: start;
   }
   .service-item-list ul{
    list-style: none;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;

   }
    .service-item-list li{
        display: flex;
        align-items: center;
        color: var(--text-light);
        gap: 10px;
        margin-bottom: 10px;
    }

   .service-card-visual{
    position: absolute;
    top: 29vh;
    left: 0;
    width: 100%;
    }
    /* Image fallback styling */
/* Lazy-loading visuals */
.service-visual-img {
    width: 100%;
    max-width: 100%;
    display: block;
    opacity: 0;
    transform: translateY(8px) scale(1.02);
    transition: opacity 0.5s cubic-bezier(0.2,0.9,0.2,1), transform 0.5s, filter 0.4s;
    will-change: opacity, transform;
    object-fit: cover;
}
.service-visual-img.lazy { filter: blur(6px) saturate(0.9); }
.service-visual-img.loaded { opacity: 1; transform: translateY(0) scale(1); filter: none; }

/* Card entrance when visual loads */
.service-card.in-view { transform: translateY(0); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

   
.service-process {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 15% 0 0 15%;

  gap: 6px;
 
}

.service-process span {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  height: 30px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* The "frosted" effect */
  -webkit-backdrop-filter: blur(10px);

border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-weight: 300;
  line-height: 28px;
  opacity: 0.9;
}

.service-process .arrow-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

@media(max-width:768px){
    .service-card{
        width: 20rem;
        padding: 0;
    }
   .services-grid{
    gap: 10px;
   }
    .service-card h3 {
        font-size: var(--h3-small);
    }
 .services-grid-container{
    grid-template-columns: 1fr; /* Stack on smaller screens */
    gap: 20px;
 }
 .services-section{
    padding: 20px 0;
 }
   .ellipse{
    display: none;
   }
   .section-header h2{
    font-size: var(--h3);
   }
   .section-header p{
    font-size: var(--p1-small);
    width:100%;
   }
   .service-process{
    padding: 10% 0 4% 10%;
    gap: 4px;
   }
}
/* --- Variables --- */

/* --- Section Layout --- */
.sector-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}
.sectors-section {
      margin: 0 auto; /* centers the container horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    color: var(--primary);
    padding-bottom:12px ;
}


.section-header h2 {
    color: var(--text-primary); /* Gold Text */
    margin-bottom: 0;
}



/* --- 1. Navigation Buttons --- */
.sector-nav {
    display: flex;
    justify-content: start;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}


@media (max-width: 600px) {
    .sector-container{
        padding: 0 1rem;

    }
    .sectors-section {
        transform: scale(0.8);
        transform-origin: top center;
        width: 100%;
    }
     .sector-btn{
        padding: 16px ;
        font-size: var(--p2);
        gap: 5px;

    }
}

@media (max-width: 300px) {
    .sectors-section {
        transform: scale(0.7);
        transform-origin: top center;
        width: 100%;
    }
    .sector-title {
        font-size: var(--h2);

    }
    .main-desc {
        font-size: var(--p2);
    }
   
   
    
}

@media (max-width: 300px) {
    .sectors-section {
        transform: scale(0.75);
        transform-origin: top center;
        ;
        width: 100%;
    }
}

.sector-btn {
    border: none;
    background-color: var(--secondary);
    color: #fff; /* White text on yellow buttons */
    border-radius: 30px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sector-btn img {
    width: 15px;
    height: 15px;
    
}

/* Active State (White bg, Dark text) */
.sector-btn.active {
    background-color: var(--text-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 600;
    transform: translateY(-2px);
}
.sector-btn.active img {
    filter: invert(1); /* Make icon dark on active */
}
.sector-btn:hover {
    transform: translateY(-2px);
}

/* --- 2. Display Card --- */
.sector-display-card {
    background-color: var(--secondary); /* The big beige/gold card */
    border-radius: 30px;
    padding: 60px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card-grid {
    gap: 30px;
    align-items: center;
}

/* Left Side Content */
.card-text-content {
    transition: opacity 0.3s ease-in-out;
    }

.card-text-content h2 {
    color: #ffffff;
    font-size: var(--h2);
    line-height: 1.2;
    margin-bottom: 10px;
}

.main-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--p1);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Feature Boxes */
.features-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    width:20vw ;
    height: auto;
    padding: 10px;
    flex: 1;
}

.feature-box h4 {
    color: #ffffff;
    font-size: var(--h3);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--p2);
    line-height: 1.5;
}
 .sector-cta{
    display: flex;
    justify-content: center;
    align-items: center;
 }
/* CTA Button */
 .btn-white {
    display: inline-block;
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: scale(1.05);
}


/* --- Responsive --- */
@media (max-width: 786px) {
    .sectors-section .container{
        padding: 0 1rem;
    }
        .card-visuals {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .service-card{
            width: 100%;
            justify-content: center;
            
        }
        .img-front {
            margin: 0 auto;
            display: block;
            left: unset;
            position: static;
        }
   
    .sector-title {
        font-size: var(--h2);
        text-align: center;
    }
    .main-desc {
        font-size: var(--p2);
    }

    .card-grid {
        display: flex;
        grid-template-columns: 1fr; /* Stack */
        gap: 0;
        flex-direction: column;
    }

    .card-visuals {
        height: 300px; /* Smaller height on mobile */
        width: 100%;
    }
    .features-row{
        display:  flex;
        flex-direction: column;
        gap: 20px;
    }

    .feature-box {
        width: 100%;
        height: auto;
    }
     .sector-nav {
        display: flex;
        justify-items: center;
    }
    .sector-display-card{
        padding: 20px;
    }
    .card-text-content h2{
        font-size: var(--p1);
        text-align: center;
    }
    
}

/* --- Responsive Adjustments --- */

/* Tablet (2 Columns) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 ;
    }

}

/* Mobile (1 Column) */
@media (max-width: 600px) {
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 ;
        gap: 20px;
    }
    
   
    
    .service-card {
        padding:0;
    }
}