:root {
    --primary: #38b000;
    --secondary: #  ;
    --background: #F3F1E5;
    /* rgb(243, 241, 229) */
    --background-two: #98D274;
    /* rgb(152, 210, 116) */
    --text: #002F00;
}
* {
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    margin: 0;
}

html {
	scroll-behavior: smooth;
}

.navbar {
    display: flex;
    position: fixed;
    width: 100%;
    z-index: 9;
    top: 0;
    transition: background,top 0.3s ease-in;
    background-color: rgba(243, 241, 229, 0.8);
}
.nav-container {
    margin: 10px;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
.nav-brand img{
    width: 10rem;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
    border: none;
    color: var(--primary);
    padding-top: 2px;
    cursor: pointer;
    transition: all 0.2s ease-in;
    border-radius: 7px;
    background: #F3F1E5;
    box-shadow:  3px 3px 6px #cfcdc3,
                 -3px -3px 6px #ffffff;
}
.nav-toggle:hover {
    border-radius: 7px;
    background: #F3F1E5;
    box-shadow:  -3px -3px 6px #cfcdc3,
                 3px 3px 6px #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-basis: 1;
    z-index: 10;
}
.nav-links .nav-link {
    padding: 10px;
}
.nav-links .nav-link a{
    text-decoration: none;
    
}
.nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-links-toggle {
    display: none;
}
.nav-link a {
    display: flex;
    color: var(--text);
    transition: transform 0.3s ease;
}
.nav-link a:hover {
    color: var(--primary);
    transform: translateY(2px);
}
.nav-link.contact {
    display: none;
}
.nav-link-title.mobile {
    display: none;
}
.nav-link-title i {
    display: flex;
    width: 1.2rem;
    align-self: center;
    justify-content: center;
    transition: transform 0.2s ease-in;
}
.nav-link a.active {
    color: var(--primary);
    transform: translateY(2px);
}

/* SECTION: DROPDOWN */

.dropdown {
    display: flex;
}
.dropdown-menu {
    opacity: 0;
    max-height: 0px;
    display: flex;
    flex-direction: column;
    position: absolute;
    margin-top: 20px;
    min-width: 100px;
    max-width: 140px;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.2s ease-in;
    /* background-color: #f9fafb; */
    background-color: var(--background);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.dropdown-item {
    opacity: 1;
    display: flex;
    width: 100%;
    padding-left: 10px;
    font-size: 0.8em;
    padding: 0.5em 1em 0.5em 0px;
    flex-direction: column;
    border-bottom: 0.5px solid #C6CEC1;
}
.dropdown-item a {
    padding-left: 10px;
    color: var(--text)
}
.dropdown-item:last-of-type {
    border-bottom: none;
}
.dropdown-item.mobile {
    display: none;
}

/* SECTION: SUBMENU */

.sub-menu {
    opacity: 0;
    max-height: 0px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease-in;
}
.sub-item {
    padding-left: 10px;
    font-size: 0.9em;
    padding-top: 0.5em;
    pointer-events: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}
.sub-item:last-of-type {
    border-bottom: none;
}


/* SECTION: DROPDOWN AND SUBMENU HOVER EVENTS */

.dropdown[data-mainmenu]:hover .dropdown-menu {
    opacity: 1;
    max-height: 300px;
}
.dropdown[data-mainmenu]:hover .nav-link-title{
    color: var(--primary);
}
.dropdown-item[data-submenu]:hover .sub-menu {
    opacity: 1;
    max-height: 200px;
}
.dropdown-item[data-submenu]:hover .sub-item {
    pointer-events: all;
}
.dropdown[data-mainmenu]:hover .nav-link-title i {
    transform: rotate(180deg);
}


/* SECTION: NAV BUTTON */

.nav-button button {
    padding: .5rem 1rem .5rem 1rem;
    border-radius: 5px;
    border: none;
    background-color: var(--primary);
    color: #f8f9fa;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2em;
    cursor: pointer;
}

/* |> FOOTER */

.footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #002F00;
    margin-top: 1.4rem;
    padding: 2rem 0 2rem 0;
}
.footer .container-footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    width: 80%;
    height: 20%;
}
.footer section h4 {
    font-size: 0.9125rem;
    color: var(--background-two);
    margin-bottom: 0;
    text-align: center;
}
.footer-brand p, .footer-contact p {
    font-size: 0.6125rem;
    color: var(--background);
    text-align: center;

}
.footer-contact p:has(a) {
    margin: 0;
}
.footer-contact a {
    text-decoration: none;
    color:#38b000;
    font-weight: 800;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: var(--background-two);
}
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-links h4 {
    flex: 1 1 100%;
}
.footer-links section {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.footer-links ul{
    list-style: none;
    float: left;
    display: flex;
    flex-direction: column;
    padding: 0; 
    align-items: center;
}
.footer-links h6 {
    color: #38b000;
    margin: 0;
    font-size: 0.8rem;
}
.footer-links li {
    margin: 0;
    transition: transform 0.2s ease;
    position: relative;
}
.footer-links a {
    text-decoration: none;
    color:var(--background);
    font-size: 0.6rem;
    transition: all 0.2s ease;
}
.footer-links li:hover {
    transform: translateX(.1rem);
}
.footer-links li:hover a {
    color:#98D274;
    transition: all 0.3s ease;
}
.footer-links li:hover a::before {
    content: '|';
    position: absolute;
    top: 5px;
    left: -5px;
}
.footer-links li:hover a::after {
    content: '|';
    position: absolute;
    top: 5px;
    right: -5px;
}
.footer section.footer-brand, footer section.footer-contact {
    flex: 1 1 24%;
    display: flex;
    flex-direction: column;
}
.footer section.footer-links {
    flex: 1 1 48%;
}
.footer section.footer-foot {
    flex: 1 1 100%;
}

.footer-brand .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: .4rem 0 .4rem .4rem;
}
.footer-brand .desc {
    margin: .4rem;
    font-size: .6125rem;
    font-weight: 300;
    color:var(--background);
}
.footer-brand .desc b {
    font-weight: 500;
}
.footer-brand img{
    width: 5rem;
}
.footer-brand .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-brand .logo p {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-size: 1rem;
}
.footer-brand .logo p:nth-of-type(1) {
    font-weight: 400;
}
.footer-brand .logo p:nth-of-type(2) {
    font-weight: 600;
}
.footer-brand .logo p:nth-of-type(3) {
    font-weight: 200;
    font-size: 0.8rem;
    margin-left: auto;
}

.footer-foot {
    display: flex;
    flex-direction: row;
}

.footer-foot .copyright{
    text-align: left;
    padding-left: 0.4rem;
}
.footer-foot .copyright p {
    font-size: 0.8125rem;
    color: var(--background-two);
    margin-bottom: .6em;
}
.footer-foot .copyright a {
    text-decoration: none;
    color: #38b000;
    font-weight: 700;
}
.footer-foot {
    padding: 0 1rem 1rem 1rem;
}
.footer-foot .socials {
    margin-left: auto;
    padding-left: 1rem;
}
.footer-foot .socials a {
    color:#98D274;
    margin-left: 0.4rem;
}
.footer-foot .socials div {
    margin-left: 1rem;
}


/* |> NOTIFICATION */

.alert-container {
    position: fixed;
    width: 20rem;
    height: 100%;
    right: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 20;
    pointer-events: none;
}
.alert {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    text-overflow:ellipsis;
    padding: .4rem;
    background-color: rgba(0, 0, 0, 0.6);
    position: relative;
    font-family: 'Outfit', sans-serif;
    animation:scale-in-right .5s cubic-bezier(.25,.46,.45,.94) both;
}
.alert a {
    position: absolute;
    right: .4rem;
    top: 0.2rem;
    color: var(--background);
}
.alert .title  {
    display: flex;
    column-gap: .4rem;
    color: var(--background);
    font-weight: 700;
}
.alert .text {
    flex: 1 1 100%;
    width: 95%;
    color: var(--background);
    font-size: .7125rem;
}
.alert:has(.title) a{
    right: .4rem;
    color: var(--background);
}


@keyframes scale-in-right{0%{transform:scale(0);transform-origin:100% 50%;opacity:1}100%{transform:scale(1);transform-origin:100% 50%;opacity:1}}
@keyframes scale-out-right{0%{transform:scale(1);transform-origin:100% 50%;opacity:1}100%{transform:scale(0);transform-origin:100% 50%;opacity:1}}

.preloader {
    position: fixed;
    background-color: #002F00;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    display: grid;
    place-content: center;
    transition: opacity 0.4s ease;
}
.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}
/* HTML: <div class="loader"></div> */
.loader {
    width: 120px;
    height: 22px;
    border-radius: 40px;
    color: #38b000;
    border: 2px solid;
    position: relative;
    overflow: hidden;
  }
  .loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    width: 14px;
    top: 0;
    bottom: 0;
    left: -20px;
    border-radius: inherit;
    background: currentColor;
    box-shadow: -10px 0 12px 3px currentColor;
    clip-path: polygon(0 5%, 100% 0,100% 100%,0 95%,-30px 50%);
    animation: l14 1s infinite linear;
  }
  @keyframes l14 {
    100% {left: calc(100% + 20px)}
  }

/* MEDIA: PHONE */

@media all and (max-width: 800px) {

    /* SECTION: MAIN MENU */
    body {
        overflow-x:hidden;
    }
    .nav-container {
        justify-content: center;
        align-items: center;
        flex-direction: row;
    }
    .nav-links {
        position: absolute;
        opacity: 0;
        top: -10vh;
    }
    .nav-links[data-active="true"] {
        position: fixed;
        display: flex;
        flex-direction: column;
        opacity: 1;
        top: 0px;
        background-color: var(--background);
        width: 100%;
        height: 100vh;
        padding-top: 1.6em;
    }
    .nav-links button {
        border: none;
        margin-left: auto;
        margin-right: .5em;
        padding: 4px 4px 2px 4px;
        font-size: 1.6rem;
        border-radius: 7px;
        background: #F3F1E5;
        box-shadow:  3px 3px 6px #cfcdc3,
                     -3px -3px 6px #ffffff;
        color: var(--primary);
        transition: all 0.3s ease-in;
    }
    .nav-links button:hover {
        border-radius: 7px;
        background: #F3F1E5;
        box-shadow:  -3px -3px 6px #cfcdc3,
                     3px 3px 6px #ffffff;
    }
    .nav-button {
        display: none;
    }
    .nav-links-toggle {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-link.contact {
        display: flex;
        background-color: var(--primary);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
        border-radius: 5px;
        color: #f8f9fa;
        font-weight: 700;
        font-family: 'Montserrat', sans-serif;
        letter-spacing: 0.2em;
        cursor: pointer;

    }
    .nav-link.contact a {
        color: var(--background);
    }
    /* SECTION: DROPDOWN IN PHONE */
    .dropdown-menu {
        position: relative;
        margin-top: 0px;
    }
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dropdown-item.mobile {
        display: flex;
    }
    /* TEXT  */
    .chy {
        text-align: center;
    }
    .footer .container-footer {
        width: 100%;
    }
    .footer-contact {
        align-items: center;
        width: 100%;
    }

}


/* MEDIA: LARGE */
@media all and (min-width: 1940px){
    .footer {
        width: 99vw;
    }
    .footer .container-footer {
        width: 60%;
    }
    .navbar {
        display: flex;
        position: fixed;
        justify-content: center;
        flex: 1;
    }
    .nav-container {
        width: 60svw;
    }
}

/* SECTION: MODAL */

.modal {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}
.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    height: 100%;
    display: grid;
    place-items: center;
}
.modal-content {
    background-color: var(--background);
    padding: .8rem;
    width: clamp(14rem, 35rem, 80%);

}
.modal-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1.2rem;
    border-bottom: #002F00 solid 2px;
    padding-bottom: 0.6rem;
}
.modal-content .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 900;
    text-transform: uppercase;
}
.modal-content .modal-header i {
    font-size: 1.2rem;
    margin-left: auto;
}
.modal-content .modal-text {
    width: 100%;
}