body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

*, html {

    scroll-behavior: smooth !important;
}

body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    opacity: 0;
    transition: opacity 3s;
    background-color: #CFCECA;
}

@font-face {
    font-family: roobert;
    src: url(font/Roobert-Regular.woff);
  }

  @font-face {
    font-family: roobert-light;
    src: url(font/Roobert-Light.woff);
  }

* {
    font-family: roobert;
    margin: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  /* On load page */

  #load-page {
position: fixed;
width: 100%;
height: 100%;
background-color: black;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
align-content: normal;
z-index: 99999999;
display: none;
  }

  .lds-ripple {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 200px;
  }
  .lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
  .lds-ripple div:nth-child(2) {
    animation-delay: -0.8s;
  }
  @keyframes lds-ripple {
    0% {
      top: 100px;
      left: 100px;
      width: 0;
      height: 0;
      opacity: 0;
    }
    4.9% {
      top: 100px;
      left: 100px;
      width: 0;
      height: 0;
      opacity: 0;
    }
    5% {
      top: 100px;
      left: 100px;
      width: 0;
      height: 0;
      opacity: 1;
    }
    100% {
      top: 0px;
      left: 0px;
      width: 200px;
      height: 200px;
      opacity: 0;
    }
  }
    /* End On load page */

  #content-area {
  height: 100vh;
  }

section {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-section {
    background-color: #CFCECA;
    transition: filter 2s;

}



#content-section-home {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    position: relative;
    transition: filter 2s;
}

#content-section-home img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-gradient-right {
    width: 40vw;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(80,80, 80, 0.7) 100%);
    position: fixed;
    opacity: 1;
    top: 0;
    right: 0;
    position: absolute;
    transition: opacity 300ms;
    transition-timing-function: ease-in-out;
    pointer-events: none;
}

.home-gradient-top {
    width: 100vw;
    height: 25%;
    background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(105,98,76,1) 100%);
    position: fixed;
    opacity: 1;
    top: 0;
    left: 0;
    transition: opacity 300ms;
    transition-timing-function: ease-in-out;
    pointer-events: none;
}

.gradient-bottom-scroll {
    width: 50vw;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0, 0.5) 100%);
    position: absolute;
    opacity: 1;
    bottom: 0;
    right: 0;
    transition: opacity 300ms;
    transition-timing-function: ease-in-out;
    pointer-events: none;
    z-index: 1;
}



.content-text-intro {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* align-items: baseline; */
    overflow-y: auto;
    height: 100%;
    text-align: left;
    padding-right: 10vw;
    padding-left: 80px;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: 70px;
    }

    .content-text-intro p {
        color: white;

    }

    .content-text-intro hr {
        background-image: linear-gradient(90deg, white, transparent);
        border: 0;
        height: 1px;
    }

    .content-text-left {
        width: 45vw;
        padding-left: 80px;
        margin-top: 10%;
        padding-right: 5vw;
    }

    .content-text-right {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* align-items: flex-start; */
        overflow-y: auto;
        height: 100vh;
        text-align: left;
        position: relative;
        padding-right: 80px;
        padding-left: 5vw;
        padding-top: 80px;
        padding-bottom: 80px;
        box-sizing: border-box;
    }

    .content-text-right-scroll {
        padding-top: 10%;
        padding-bottom: 80px;
        width: 55vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        height: 100vh;
        text-align: left;
        position: relative;
        padding-right: 80px;
        padding-left: 1vw;
        box-sizing: border-box;
    }

    .content-text-right .light-text{
        text-align: left;
    }

    .content-text-left p {
        font-size: 2.4vmax;
    }


    .arrow-section-intro, .arrow-section, .arrow-section-text  {
        animation: bounce 2s ease infinite;
        font-size: 3.1vmax;
        margin-top: 40px;
        animation-delay: 5s;
      }

      @keyframes bounce {
          0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
          40% {transform: translateY(-30px);}
          60% {transform: translateY(-15px);}
      }

    .arrow-section-intro {
        color: white;
        }

    .arrow-section, .arrow-section-text {
        color: black;
    }

.content-container {
    display: flex;
    width: 100%;
    position: relative;
    transition: filter 2s;

}

.content-image {
    width: 50%;
    height: 100vh;
    /* background-color: #c6c3b7; */
    background-color: #dbdbdb;
    overflow: hidden;
}

/* Partners tab */

.FlexContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: flex-end;
    width: 100%;
    height: calc(60vh);
    overflow: auto;
    flex-direction: row;
}

.partners-title {
    position: relative;
    }

.partners-list {
    width: 100vw!important;
    padding-left: 80px!important;
    padding-top: 120px;
 }

 .partners-item {
    width: calc((100% - 36px) / 3);
    height: 7vmax;
    margin: 6px;
 }

 .partners-logo {
    height: 7vmax;
    width: 7vmax;
    background-color: #b6b6b6;
    border-radius: 50%;
}

.partners-text {
        width: calc(100% - 8vmax);
        height: 7vmax;
        z-index: 9999999999;
        position: relative;
        top: -7vmax;
        left: 8vmax;
        text-align: left;
}

.mobile-margin-text {
    display: none;
}

/* End of logo tab */


.content-image img, .content-image-scroll img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.logo-service-SHM, .logo-service-NDT, .logo-service-Mseis {
    background-size: cover;
    width: 13vw;
    background-color: rgba(46, 40, 34,0.95);
    border-radius: 20px 0 0 20px;
    height: calc(13vw/2.186);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.logo-service-NDT {
    background-image: url(images/NDT_white.png);
    }

 .logo-service-SHM {
        background-image: url(images/SHM_white.png);
        }

 .logo-service-Mseis {
            background-image: url(images/Mseis_white.png);
            }


.content-image-overview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* align-items: flex-start; */
    overflow-y: auto;
    height: 100vh;
    text-align: left;
    position: relative;
    padding-right: 80px;
    padding-left: 10vw;
    box-sizing: border-box;
    bottom: 70px;
}

.content-text-scroll {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* align-items: flex-start; */
    overflow-y: auto;
    height: 100vh;
    text-align: left;
    padding-top: 10%;  /* à vérifier */
    padding-right: 60vw;
    padding-left: 80px;
    padding-bottom: 80px;
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
}

.content-image-scroll {
    background-color: #CFCECA; 
    width: 50%;
    position: absolute;
    right: 0;
    height: 100%;
    /* background-color: #c6c3b7; */
    overflow: hidden;
    pointer-events: all;
}

.content-text-scroll * {
    pointer-events: all;
}




.section-title {
    color: #347125;
    font-size: 1.3vmax;
    width: 100%;
}

.bold-text {
     font-size: 1.1vmax;
}

.light-text {
   /* font-size: 1vmax; */
   font-size: 1.2vmax;
   font-family: roobert-light;
}

.mission-text {
    font-size: 1vmax!important;
}

.light-text-sub {
    font-size: 1vmax;
    font-family: roobert-light;
    color: #686666;
 }

.light-text-title {
    font-size: 1.2vmax;
    font-family: roobert;
    padding-top: 0.5vh;
}



nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: #1a1a1a;
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: backdrop-filter 800ms;
    transition-timing-function: ease-in-out;
}




/* nav:hover #nav-bg {
    height: 200px;
} */

#nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 78px;
    transition: opacity 800ms;
    background-color: rgba(100, 145, 90, 0.97);
    transition-timing-function: ease-in-out;
    z-index: -1;
    opacity: 1;

}

.logo {
    opacity: 1;
    background-image: url(images/logotype.png);
    position: fixed;
    left: 16px;
    background-position: left center;
    top: 0;
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 78px;
    padding: 5px;
    box-sizing: border-box;
    transition: all 800ms;
    filter: invert(1) brightness(0);
}



#left-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    margin-right: 40px;
    margin-top: 20px;
    transition: margin-top 800ms;
}



#button:not(.menu-button) {
    /* width: calc(50vw/7); */
    padding-left: 40px;
}

#button, .dropdown {
    color: #fff;
    text-decoration: none;
    margin: 0;
    position: relative;
    text-align: center;
    font-size: 19px;
}



.menu-button {
    border: solid white 1px;
    border-radius: 20px;
    padding: 5px 12px 5px 12px;
    margin-left: 35px!important;

}



.menu-active {
    display: inline;
    border-bottom: solid 1px green;
}

.menu-active-home {
    display: inline;
    border-bottom: unset;
}

.menu-active-mobile {
    display: none;
}



.dropdown {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    color: #ffffff;
    z-index: 100;
    text-align: center;
    transition: opacity 200ms, visibility 200ms;
    transition-timing-function: ease-in-out;
    padding-top: 8px;
    padding-bottom: 5px;
    background-color: rgba(100, 145, 90, 0.97);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    width: 180px;
    margin-left: 40px;
  }

  /* invisible bridge fills gap so hover doesn't break */
  .dropdown-content::before {
    content: '';
    display: block;
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .dropdown-content hr {
    border-top: 1px solid rgba(255, 255, 240, 0.656);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    margin: 6px 7px 2px 7px;
  }

  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-content p {
    font-family: roobert-light;
    color: #1a1a1a;
    font-size: 15px;
  }



  .dropdown-content p:hover {
    color: #438931;
    transition: color 200ms;
  }

  .dropdown a:hover, #left-menu a:hover {
    color: #438931;
    transition: color 400ms;
  }



/*Mobile menu*/

.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    justify-content: flex-end;
    width: inherit;
}

.burger-wrapper {
    cursor: pointer;
    margin-top: 8px;
    margin-right: 6vw;
    width: 40px;
    height: 40px;
}
.burger-wrapper .hamburger {
    background: white;
    width: 40px;
    height: 1.5px;
    position: relative;
    transition: background 10ms 300ms ease;
    transform: translateY(20px);
}
.burger-wrapper .hamburger:before, .burger-wrapper .hamburger:after {
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    position: absolute;
    background: white;
    width: 40px;
    height: 1.5px;
    content: '';
}
.burger-wrapper .hamburger:before {
    top: -10px;
}
.burger-wrapper .hamburger:after {
    top: 10px;
}
.menu-trigger:checked ~ .burger-wrapper .hamburger {
    background: transparent;
}
.menu-trigger:checked ~ .burger-wrapper .hamburger:after, .menu-trigger:checked ~ .burger-wrapper .hamburger:before {
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    top: 0;
}
.menu-trigger:checked ~ .burger-wrapper .hamburger:before {
    transform: rotate(45deg);
}
.menu-trigger:checked ~ .burger-wrapper .hamburger:after {
    transform: rotate(-45deg);
}
.hidden {
    display: none;
}







/* Styles pour les appareils mobiles */
@media only screen and (max-width: 600px) {
    #left-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 78px;
        left: -65vw;
        right: auto;
        width: 65vw;
        height: calc(100vh - 78px);
        background: rgba(100, 145, 90, 0.97);
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 6px 0px 20px 0;
        transition: left 0.35s ease-in-out;
        border-radius: 0 0 20px 0;
        margin-right: 0px;
        align-items: flex-start;
        margin-top: 0;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1002;
    }

    /* Menu open state */
    #left-menu.menu-open {
        left: 0 !important;
    }

    #button, .dropdown-content {
        padding-right: 5vw;
        padding-left: 5vw;
        padding-bottom: 0px;
        text-align: left;
        box-sizing: border-box;
    }

    /* Direct link items (SaaS Platform etc) must stack full-width */
    #left-menu > a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 5vw !important;
        line-height: 1.2;
    }

    #button, .dropdown {
        font-size: 4.8vw;
    }

    .dropdown-content p {
        font-size: 3.8vw;
        padding-top: 3px;
        padding-bottom: 3px;
        padding-left: 4vw;
    }

    .dropdown {
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        flex-direction: column;
    }

    .dropdown > a,
    .dropdown > .main-menu-button {
        display: block;
        width: 100%;
        padding: 8px 5vw !important;
        box-sizing: border-box;
        line-height: 1.2;
    }

    .dropdown > * {
        width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
    }

    .menu-icon {
        display: flex;
        margin-left: 50%;
    }

    .menu-button {
        margin-left: 0px !important;
    }

    /* Submenus HIDDEN by default on mobile — toggle via .open class */
    .dropdown-content {
        margin-top: 0px;
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        opacity: 1;
        visibility: hidden;
        display: none !important;
        max-height: 0;
        overflow: hidden;
        box-sizing: border-box;
        color: #a6a5a2;
        background-color: rgba(80, 120, 70, 0.97) !important;
        border-radius: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.25s ease;
        pointer-events: none;
        margin-left: 0 !important;
    }

    .dropdown-content.open {
        display: block !important;
        visibility: visible !important;
        max-height: 400px;
        padding-top: 4px;
        padding-bottom: 6px;
        pointer-events: auto;
    }


    .light-text {
        font-size: 4.2vw;
    }

    .bold-text {
        font-size: 4.2vw;
        font-family: 'roobert-light';
    }

    .mobile-margin-text {
    display: block;
    }

    .mission-text {
        font-size: 4.2vw!important;
        margin-bottom: 10px;
    }

    .light-text-sub {
        font-size: 3vw;
    }

    .light-text-title {
        font-size: 4.2vw;
        font-family: roobert-light;
    }

    .menu-active {
        border-bottom: unset;
    }

    .menu-active-home {
        border-bottom: unset;
    }

    .menu-active-mobile {
        display: inline;
    }

    #nav-bg {
        height: 78px;
    }

    .dropdown-content hr {
        margin: 2px 0 2px 0px;
    }

    .content-image-scroll {
        width: 100%;
        position: absolute;
        left: 0;
        z-index: 1;
        height: 50%;
        /* background-color: #c6c3b7; */
        overflow: hidden;
        /* border-radius: 0 0 30px 30px; */
        box-shadow: -1px 8px 5px -3px rgba(102,102,102,0.75);
    }

    .content-text-scroll {
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* align-items: flex-start; */
        overflow-y: auto;
        height: 100vh;
        text-align: left;
        padding-top: 55vh;
        padding-right: 6vw;
        padding-left: 6vw;
        /* margin-top: 50vh; */
        padding-bottom: 12vw;
        box-sizing: border-box;
        z-index: 1;
    }

    .gradient-bottom-scroll {
        width: 100vw;
        height: 60px;
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0, 0.5) 100%);
        position: absolute;
        opacity: 1;
        bottom: 50%;
        right: 0;
        transition: opacity 300ms;
        transition-timing-function: ease-in-out;
        pointer-events: none;
        z-index: 2;
        border-radius: 0 0 30px 30px;
    }

    .section-title {
        font-size: 4.2vw;
    }

    .logo-service-SHM, .logo-service-NDT, .logo-service-Mseis {
        background-size: cover;
        width: 26vw;
        background-color: rgba(46, 40, 34,0.95);
        border-radius: 10px 0 0 10px;
        height: calc(26vw/2.186);
        position: absolute;
        right: 0;
        bottom: 50px;
        z-index: 2;
    }

    .content-image {
        width: 100vw;
        height: calc(50% - 60px);
        padding-top: 78px;
        /* background-color: #c6c3b7; */
        overflow: hidden;
        position: absolute;
        /* border-radius: 0 0 30px 30px; */
        box-shadow: -1px 8px 5px -3px rgba(102,102,102,0.75);
    }

    .content-text {
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: end;
        /* align-items: flex-start; */
        overflow-y: auto;
        /*  height: 100vh; à vérifier*/
        text-align: left;
        position: relative;
        padding-top: 55vh;
        padding-right: 6vw;
        padding-left: 6vw;
        box-sizing: border-box;
        bottom: 20px;
    }


    .arrow-section-intro, .arrow-section {
        animation: bounce 2s ease infinite;
        font-size: 7vmax;
        margin-top: 40px;
        margin-bottom: 4vw;
        animation-delay: 5s;
        text-align: left;
        font-family: 'roobert-light';
    }

    .arrow-section-text {
        animation: bounce 2s ease infinite;
        font-size: 7vmax;
        margin-top: 40px;
        animation-delay: 5s;
        margin-bottom: 4vw;
        font-family: 'roobert-light';
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
        40% {transform: translateY(-20px);}
        60% {transform: translateY(-10px);}
    }

    .content-text-intro {
        width: 80vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* align-items: baseline; */
        overflow-y: auto;
        height: 100vh;
        text-align: left;
        padding-right: 6vw;
        padding-left: 6vw;
        box-sizing: border-box;
        position: absolute;
        left: 0;
        bottom: 20px;
    }

    .content-text-intro .light-text{
        display: none;
    }

    .content-text-intro .bold-text{
        font-size: 3.2vmax;
        font-family: 'roobert-light';
        text-align: left;
    }

    .home-gradient-right {
        width: 100vw;
        height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(80,80, 80, 0.6) 100%);
    }


    .logo {
        opacity: 1;
        background-image: url(images/logotype.png);
        position: fixed;
        left: 3vw;
        background-position: left center;
        top: 0;
        background-size: contain;
        background-repeat: no-repeat;
        width: 140px;
        height: 78px;
        padding: 5px;
        box-sizing: border-box;
        transition: all 800ms;
        filter: invert(1) brightness(0);
    }

    .menu-button {
        border: 0;
    }

    .content-container-full-text {
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
        overflow: hidden;
    }

    .content-text-left {
        width: unset;
        padding-left: 6vw;
        margin-top: 120px;
        padding-right: 6vw;
    }

    .content-text-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* align-items: flex-start; */
        overflow-y: auto;
        height: unset;
        text-align: left;
        position: unset;
        padding-right: 6vw;
        padding-left: 6vw;
        box-sizing: border-box;
        bottom: 0px;
    }

    .content-text-right .light-text {
        text-align: left;
    }

    section {
        align-items: unset;
    }

    .partners-item {
        width: calc(100% - 12px);
        height: 7vmax;
        margin: 6px 6px 30px 6px;
     }

     .FlexContainer {
        align-content: flex-start;
     }

     .partners-list {
        width: 100vw!important;
        padding-left: 6vw!important;
    }

    .content-image-overview img {

        padding-top: 80px;
        padding-bottom: 0;
    }

    .content-text-left p {
        font-size: 5vw;
    }

    h2.section-title {
        text-align: left;
    }

    p.bold-text {
        text-align: left;
        font-size: 5vw;
    }

    .bold-text-service-mobile {
     font-size: 4.2vw!important;
    }

    .arrow-intro {
        margin-top: 0!important;
        margin-bottom: 3vw!important;
    }

    .content-text-left.partners-title {
        margin-top: 120px;
    }

    .content-container-end {
     padding-bottom: 4rem;
    }

    .content-container-service-end {
        padding-bottom: 7rem;
       }

    .content-faq-list {
        padding-right: 14vw;
        padding-left: 6vw;
    }

    .content-contact-list {
        padding-left: 6vw;
    }

    .content-contact-list > .light-text-sub {
        font-size: 3.8vw;
    }

}

/* End of mobile CSS */

/* mobile landscape orientation */

#landscape-msg {
    display: none;
    font-size: 3.1vw;
    color: black;
    background-color: lightgrey;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 9999;
  }


  .content-image-scroll {
pointer-events: all;

  }


/**
  Mobil layout for regular scroll navigation
  without _slide effect_
*/

@media (max-width: 600px) {
    :root {
        --content-image-scroll-height: 80vw;
    }

    body {
        scroll-snap-type: none;
    }

    .content-area {
        overflow: auto;
        height: auto !important;
    }

    section {
        height: auto;
        display: unset;
    }

    .content-container {
        flex-direction: column-reverse;
    }

    .partners-title {
        position: relative;
    }

    .content-container.content-container--direction-column {
        flex-direction: column;
    }

    .content-text {
        padding-top: 4rem !important;
        height: auto !important;
    }

    .content-text-right {
        padding-top: 4rem !important;
        height: auto !important;
    }

    .content-text-right-scroll {
        width: 100% !important;
        height: auto !important;
    }

    /*-----*/
    /*service section*/
    #services > .content-container {
        flex-direction: column;
    }

    #services .content-text {
        bottom: 0;
        padding-bottom: 2rem;
    }

    .content-image.content-image-overview {
        height: auto !important;
        position: sticky;
        top: 0!important;
        z-index: 2;
    }
    /* END service section*/
    /*-----*/


    .content-text-scroll {
        height: auto !important;
        padding-top: 4rem !important;
    }

    .content-image-scroll {
        height: var(--content-image-scroll-height);
        position: sticky;
        top: 0 !important;
    }

    .gradient-bottom-scroll {
        top: var(--content-image-scroll-height);
        bottom: auto;
        transform: translate(0, -100%);
        display: none;
    }


    /*
        about page
    */
    .content-image {
        height: var(--content-image-scroll-height)!important;
        position: sticky;
        top: 0!important;
        padding-top: 0;
        z-index: 2;
    }
    .content-container.content-container-full-text {
        flex-direction: column;
    }
    .partners-list {
        height: auto !important;
    }
    .FlexContainer {
        height: auto !important;
        overflow: visible;
    }
    /*
        END about page
    */
}

.mission-text {
    font-size: 0.9vmax;
    line-height: 1.6;
    overflow-y: auto;
}

/* ===================== */
/* Team Grid & Cards     */
/* ===================== */

.team-content-right {
    padding-top: 22vh !important;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vmax;
    width: 100%;
    margin-top: 0.8vmax;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 0.4vmax;
}

.team-photo {
    width: 100%;
    height: 13vmax;
    overflow: hidden;
    background-color: #2a2a2a;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.team-info {
    padding: 0;
}

.team-info .light-text-sub {
    font-size: 0.72vmax !important;
    line-height: 1.45;
}

.team-info .light-text-title {
    font-size: 0.85vmax !important;
    margin-top: 0.3vmax;
}

@media (max-width: 600px) {
    .team-content-right {
        padding-top: 5vh !important;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3vw;
    }
    .team-photo {
        height: 25vw;
    }
    .team-info .light-text-sub {
        font-size: 2.8vw !important;
    }
    .team-info .light-text-title {
        font-size: 3.2vw !important;
    }
}

/* ================================ */
/* Three-column services (Page 3)   */
/* ================================ */

.services-three-col {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.service-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.service-col-mid {
    border-left: none;
    border-right: none;
}

.service-col-img {
    width: 100%;
    height: 55%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.service-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-col-img a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.service-col-text {
    flex: 1;
    padding: 2vmax 2.5vmax;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-col-text h2.section-title {
    font-size: 1.6vmax;
}

.service-col-text .light-text {
    font-size: 1vmax;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .services-three-col {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .service-col {
        height: auto;
    }

    .service-col-img {
        height: 40vw;
    }

    .service-col-mid {
        border: none;
    }

    .service-col-text h2.section-title {
        font-size: 5vw;
    }

    .service-col-text .light-text {
        font-size: 3.8vw;
    }
}

/* ============================================================== */
/* MOBILE FIXES — appended block, max-width: 600px only          */
/* Desktop layout is completely untouched                        */
/* ============================================================== */

@media only screen and (max-width: 600px) {

    /* INDEX HERO: image on top, text below, no gap */
    #content-section-home {
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* IMAGE FIRST: reorder above text */
    #content-section-home > a[href="#services"] {
        order: -1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 60vw !important;
        display: block !important;
    }

    #content-section-home > a[href="#services"] .home-hero-image,
    #content-section-home > a[href="#services"] > div {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }

    #content-section-home > a[href="#services"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* TEXT BELOW: reset absolute positioning */
    #content-section-home .content-text-intro {
        order: 0 !important;
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        padding-left: 6vw !important;
        padding-right: 6vw !important;
        box-sizing: border-box !important;
        overflow-y: visible !important;
    }

    #content-section-home .content-text-intro .bold-text {
        font-size: 7.5vw !important;
    }

    #content-section-home .content-text-intro .light-text {
        display: block !important;
        font-size: 3.8vw !important;
        margin-top: 1.5vw !important;
    }

    #content-section-home .content-text-intro hr {
        margin-top: 2vw !important;
        margin-bottom: 2vw !important;
    }

    #content-section-home .content-text-intro > div[style*="flex: 1"] {
        display: none !important;
    }

    #content-section-home .content-text-intro > div[style*="margin-top: 10vh"] {
        margin-top: 2vw !important;
    }

    /* SOLUTIONS HERO: image on top, text below, no gap */
    #content-section-home > .home-hero-image {
        order: -1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 60vw !important;
        pointer-events: auto !important;
        overflow: hidden !important;
    }

    #content-section-home > .home-hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #content-section-home > .content-text-intro {
        order: 0 !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        padding-left: 6vw !important;
        padding-right: 6vw !important;
        box-sizing: border-box !important;
        overflow-y: visible !important;
    }

    #content-section-home > .content-text-intro .bold-text {
        font-size: 6.5vw !important;
    }

    #content-section-home > .content-text-intro .light-text {
        display: block !important;
        font-size: 3.8vw !important;
    }

    /* MENU: tighter fonts */
    #button, .dropdown {
        font-size: 4.6vw !important;
    }

    .dropdown-content p {
        font-size: 3.4vw !important;
        padding-top: 1px !important;
        padding-bottom: 2px !important;
    }

    .dropdown-content hr {
        margin: 1px 0 !important;
    }

    .dropdown-content {
        padding-bottom: 2px !important;
    }

} /* end mobile fixes */
