html {
    scroll-behavior: smooth;
  }

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Merienda';
    src: url('fonts/Merienda/Merienda-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    padding: 0;
    height: 100%;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    width: min(100%, 2000px);
    margin: 0 auto;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
}

.nav-bar-container {
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 2000px;
    height: 80px;
    top: 20px;
    z-index: 1000;
}

.nav-bar {
    position: relative;
    width: 90%;
    max-width: 2000px;
    z-index: 0;
    display: flex;
    justify-content: space-between;
}

.nav-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.home-banner {
    background-image: linear-gradient(#0003, #0003), url(/images/bg/BgHeaderCR.webp);
    background-position: 0 0, 50%;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.what-we-do, .despre-noi, .produse {
    display: flex;
    width:100%;
    max-width: 2000px;
    /*height: 100vh;*/
    background-color: #e6f1de;
    padding-top: 150px;
    flex-direction: column;
    margin: auto;
    padding-bottom: 70px;
}

.home-banner>h1 {
    font-size: 50px;
    color:white;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: "Merienda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    width: 70%;
    opacity: 0;
}

.title-section {
    color: #266025;
    font-size: 40px;
    margin-top: 0;
    height: fit-content;
    font-family: "Merienda", serif;
    opacity: 0;
}

.home-banner>h4 {
    font-size: 25px;
    color: white;
    padding: 0;
    margin: 0;
    font-weight: 200;
    width: 70%;
    opacity: 0;
}

.logo, .menu-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 150px;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.sannat-logo {
    height: 85px;
    margin-left: 70px;
    margin-bottom: 12px;
}

.menu-container {
    display: flex;
    max-width: 500px;
    justify-self: flex-end;
    justify-content: space-between;
    margin-right: 30px;
}

.menu-container>a {
    text-decoration: none;
    color: #266025;
    font-size: 16px;
    transition: 0.3s;
    padding: 15px;
    border: 1px solid transparent;
}

.menu-container>a:hover {
    color: #3d8e33;
    border: 1px solid #3d8e33;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
}

.menu-container>a:last-child {
    color: white;
    background-color: #3d8e33;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid #3d8e33;
}

.menu-container>a:last-child:hover {
    color: #266025;
    background-color: transparent;
}

.double_arrow {
    position: absolute;
    bottom: 10px;
    color: white;
    transition: 1s;
    border: 1px solid transparent;
}

.double_arrow:hover {
    border: 1px solid #3d8e33;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.servicii-btn {
    height: fit-content;
    color: white;
    background-color: #3d8e33;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid #3d8e33;
    text-decoration: none;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    opacity: 0;
}

.servicii-btn:hover {
    color: #266025;
    background-color: transparent;
}

.card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    transition: 0.3s;
    flex-flow: wrap;
}

.card-container>.card:first-child {
    width: 100%;
    max-width: 520px;
    background-color: white;
    /*height: 60vh;*/
    max-height: 450px;
    border-bottom-left-radius: 50px;
    margin: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.card-container>.card>img {
    position: relative;
    width: 101%;
}

.card-container>.card:nth-child(2) {
    width: 100%;
    max-width: 520px;
    background-color: white;
    /*height: 60vh;*/
    max-height: 450px;
    border-top-right-radius: 50px;
    margin: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.card-container>.card {
    height: 100%;
}

.section2-header {
    width:100%;
    display: flex;
    justify-content: space-around;
    flex-flow: wrap;
}

.card>h5 {
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card>p {
    font-size: 16px;
    background: #e6f1de;
    padding: 20px;
}

.card {
    opacity: 0;
}

.despre-noi {
    display: flex;
    background-color: white;
    width:100%;
    flex-flow: row;
    margin-top: 100px;
    margin-bottom: 100px;
    transition: 0.3s;
}

.despre-noi-title {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
}

.despre-noi-txt {
    display: flex;
    flex-flow: row;
    width: 50%;
    height: 100%;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
    flex-flow: wrap;
    opacity: 0;
}

.years>h1, .clients>h1 {
    font-size: 40px;
    margin: 0;
    color: #3d8e33;
}

.vertical-line {
    width: 4px;
    min-width: 4px;
    height: 100px;
    background-color: #3d8e33;
    border: none;
}

.descriere-despre-noi {
    display: flex;
    align-items: center;
    opacity: 0;
}

.descriere-despre-noi>p {
    margin-left: 20px;
    font-size: 20px;
    font-weight: 500;
}

.second-txt-descriere {
    margin-top: 0;
    margin-left: 20px;
    margin-bottom: 40px;
    opacity: 0;
}

.card-container-produse {
    width: 100%;
    transition: 0.3s;
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line */
    justify-content: center; /* Distributes cards evenly */
    gap: 20px; /* Adds space between cards */
    max-width: 1200px; /* Ensures it doesn't stretch too much */
    margin: 0 auto; /* Centers the container */
}

.card-prod {
    width: calc(33.33% - 20px); /* Ensures 3 cards per row */
    max-width: 350px;
    height: 400px;
    background-color: white;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(33.33% - 20px); /* Makes 3 cards per row (subtract gap) */
    opacity: 0;
} 

.swiper-wrapper {
    align-items: center;
}

.img-swp {
    width:100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.card-prod>h5 {
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 500;
    margin-top: 45px;
    margin-bottom: 20px;
}

.card-prod>p {
    font-size: 16px;
    background: #e6f1de;
    padding: 20px;
}

.swiper {
    width: 100%;
    height: 200px;
  }

.swiper-button-prev, .swiper-button-next  {
    color:#3d8e33 !important;
}

.contact-us {
    width: 100%;
    background: #e6f1de;
}

.banner-contact-us {
    position: relative;
    display: flex;
    width: 90%;
    max-width: 1200px;
    background-color: #3d8e33;
    margin: auto;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: -100px;
    flex-flow: wrap-reverse;
}

.banner-contact-us>img {
    margin-bottom: -5px;
}

.title-contact {
    color: white;
    font-size: 40px;
    margin-top: 0;
    height: fit-content;
    font-family: "Merienda", serif;
    opacity: 0;
}

.txt-contact {
    align-self: center;
    margin-left: 50px;
}

.footer {
    width:100%;
    background-color: #266025;
    height: 380px;
    color: white;
}

.footer-container {
    padding-top: 150px;
    display: flex;
    justify-content: center;
    justify-content: space-evenly;
    margin-bottom: 60px;
    flex-flow: wrap;
}

.contact-btn-banner {
    height: fit-content;
    color: #266025;
    background-color: white;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid white;
    text-decoration: none;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.contact-btn-banner:hover {
    background-color: transparent;
    color: white;
}

.media-ic {
    width: 70px;
    margin: 0 20px 0 20px;
    padding: 7px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.media-ic:hover {
    border: 1px solid white;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
}

.info-copyright {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.info-copyright>p>a {
    text-decoration: none;
    color: white;
}

.info-copyright>p, .info-footer-contact>p, .info-footer-company>p {
    margin: 5px;
}

.menu, .close {
    cursor: pointer;
    display: none;
}

.space-top {
    margin-top: 150px;
}

.space-bottom {
    margin-bottom: 150px;
}

#produse>.produse-container {
    margin-top: 20px;
    margin-bottom: 20px;
}
/*animation classes start*/
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(100px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
  }

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-300px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
  }

  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(300px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
  }

  /*animation classes end*/

/* Mobile View (1 Card Per Row) */
@media (max-width: 768px) {
    .card-prod {
      flex: 1 1 100%; /* Each card takes full width */
      width: 100%;
      margin-left: 20px;
      margin-right: 20px;
    }

    .card-container {
        width: 90%;
        gap: 20px;
        margin: auto;
        margin-top: 25px;
    }

    .card-container-produse {
        margin-top: 25px;
    }

    .card-container>.card:first-child {
        border-bottom-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .card-container>.card:nth-child(2) {
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .menu {
        width: 30px;
        display: block;
        margin-right: 10px;
    } 

    .close {
        display: none;
        width: 30px;
        margin-right: 10px;
        z-index: 2000;
    }

    .show {
        display: block;
    }

    .hide {
        display: none;
    }

    .logo {
        justify-content: flex-start;
        margin-left: 10px;
    }

    .sannat-logo {
        margin-left: -10px;
        height: 64px;
        margin-bottom: 5px;
    }

    .nav-bar::before {
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
    }

    .nav-bar-container {
        width: 100vw;
        display: block;
        height: auto;
        top: 0;
    }

    .nav-bar {
        width: 100%;
        height: 60px;
    }

    .menu-container {
        position: fixed;
        flex-flow: column;
        background-color: #e6f1de;
        height: 100vh;
        margin: 0;
        justify-content: center;
        left: -100%;
        transition: transform 0.4s ease-in-out;
    }

    .menu-container.open {
        transform: translateX(100%); /* Moves the menu into view */
      }

    .menu-container>a {
        margin-bottom: 25px;
    }

    .home-banner>h1 {
        font-size: 30px;
    }

    .home-banner>h4 {
        font-size: 20px;
    }

    .title-section {
        font-size: 30px;
    }
    
    .what-we-do, .despre-noi, .produse {
        padding-top: 80px;
    }

    .despre-noi {
        flex-flow: wrap;
        margin: 0;
        padding: 20px;
        margin-top: 30px;
    }

    .despre-noi-title, .despre-noi-txt {
        width: 90%;
        margin: auto;
    }

    .despre-noi-title {
        margin-bottom: 30px;
    }

    .banner-contact-us {
        width: 90%;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .banner-contact-us>img {
        width: 100%;
    }

    .title-contact {
        font-size: 30px;
        margin-top: 25px;
    }

    .txt-contact {
        margin: 0;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .footer {
        height: auto;
        text-align: center;
    }

    .footer-container {
        padding-top: 120px;
        margin-bottom: 40px;
    }

    .card-container>.card {
        height: 100%;
    }

    .space-top {
        margin-top: 80px;
    }

  }