*,
*::after,
*::before{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
h1{
    color: #fff;
    font-family: var(--ff-primary);
}
:root{
    --ff-primary: 'Roboto', sans-serif;
    --ff-secondary:  'Roboto Serif', serif;
   
    --fs-h1:3rem;
    --fs-h2:2.25rem;
    --fs-h3:1.25rem;
    --fs-body:1rem;

    --cl-blue:#3446A1;
    --cl-green:#0EA371;
    --cl-white:#cfcfcf;

    --bs: 0.25em 0.25em 0.75em rgba(0,0,0,.25),
         0.125em 0.125em 0.25em rgba(0,0,0,.15);
}
body{
    margin: 0;
    padding: 0;
}
.container{
    margin: 0 auto;
    width: 95%;
    /* border: 2px solid red; */
}
img{
    max-width: 100%;
}
.flex{
    display: flex;
}

.link{
    text-decoration: none;
    color: #fff;
    font-family: var(--ff-primary);
    font-weight: 300;
    font-size: .75rem;
    padding: .4rem 1.3rem;
    background: var(--cl-green);
    border-radius: 5px;
    box-shadow: var(--bs);
}
.link-inverse{
    color: var(--cl-green);
    background: #fff;
}
.link:hover,
button:hover{
    transform: scale(1.1);
}


/* header  */

header{
    padding-top: 3px;
    height: auto;
    margin-bottom: 1rem;
}

.flex-header{
    justify-content: space-between;
    align-items: center;
}
.logo-div{
    width: 30%;
    padding-top: 3px;
    align-items: flex-start;
}
.header-title{
    font-family: var(--ff-primary);
    color: rgb(16, 16, 16);
    text-align: center;
    font-size: 1rem;
    line-height:18px;
    font-weight: 900;
}
.motto{
    font-size: .9rem;
    font-weight: 200;
    font-style: italic;
    color: var(--cl-green);
}


/* navigation */
.nav{
    background: #ebebeb;

    max-height: 0;
    padding: 0;
    overflow: hidden; 
    transition:  0.5s ease; 
}
.nav-toggle__btn{
    background: transparent;
    padding: .8em .6em;
    border: none;
    cursor: pointer;
    position: relative;
}
.nav-secondary{
    display: none;
}
.hambuger{
    display: block;
    position: relative; 
}

.hambuger,
.hambuger::before,
.hambuger::after{
    background-color: rgb(21, 21, 21);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
}

.hambuger::before,
.hambuger::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hambuger::before {
     top: 8px; 
}

.hambuger::after {
     bottom: 8px; 
}
.nav-open .nav{
    max-height: 1000px;
    padding: .5em .5em .5em .5em;
}

.nav-open .hambuger{
    transform: rotate(.625turn);
}
.nav-open .hambuger::after{
    opacity: 0;
}
.nav-open .hambuger::before{
   transform: rotate(90deg) translateX(-8px);
}
.rotate {
    transform: rotate(180deg); 
  }
.sub-nav__list.active{
    max-height: 1000px;
}
.dropdown-icon {
    width: 20px;
    height: 20px;
    fill: #000; 
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;

    transition: .5s ease;
}

.nav__item-relative{
    position: relative;
}
  
hr{
    opacity: .4;
}

.sub-nav__list{
    max-height: 0;
    overflow: hidden; 
    transition:  0.5s ease; 
}

.nav__sub-link{
    opacity: .9;
}
.nav__sub-item{
    /* border: 2px solid red; */
    padding-top: 0.6em; 
}
.nav__link{
    width: 100%;
}
.nav__item,
.nav__sub-item{
    list-style: none;
}
.nav__sub-link,
.nav__link{
    text-decoration: none;
    color: rgb(30, 29, 29);
    font-family: var(--ff-primary);
    font-weight: 400;

    /* border: 2px solid red; */
}
.nav__sub-link:hover,
.nav__link:hover{
    color: var(--cl-green);
    text-decoration: underline;
    opacity: 1;
}
.splitter{
    display: none;
}
.span-link{
    color: var(--cl-blue);
}


@media(min-width:600px){
    .logo-div{
        width: 20%;
    }
    .header-title{
        font-size: 1.1em;
        line-height: 20px;
    }
}

@media(min-width:768px){

    .nav-secondary{
        display: flex;
        background-color: var(--cl-green);
        padding: .5em 1em;
        gap: 40px;
        justify-content: space-around;
    }
    .secondary-nav-M{
        display: none;
    }
    .logo-div{
        width: 20%;
    }
    
    .container{
        width: 80%;
    }


    /*navigation*/
    #hambuger{
        display: none;
    }
    .splitter{
        display: block;
        margin-top: 0;
    }
   
    .nav{
        max-height: 1000px;
        transition: 0.01s ease;
        overflow: visible;

        background-color: var(--cl-blue);
    }

    

    .nav-list{
        display: flex;
        gap: 20px;
        justify-content: space-around;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .nav__item{
        padding: .4em;
    }
   
    .nav__item-relative{
        display: flex;
        align-items: center;
    }
    .nav hr{
        display: none;
    }
    .nav__link,
    .nav__sub-link{
        color: #cfcfcf;
    }
   
    .sub-nav__list{
        position: absolute;
        z-index: 2;
        top: 40px;
        background-color: var(--cl-blue);
        text-align: left;
        padding: .4em;
    }
    .dropdown-icon{
        position: relative;
        fill: var(--cl-white);

        width: 40px;
        height: 40px;
    }
    .dropdown-icon:hover{
        fill: var(--cl-green);
    }

  
    .nav__link-sec--nav{
        text-transform: uppercase;
        color: white;
    }
    .nav__link-sec--nav:hover{
        color: #fff;
    }

    .span-link{
        color: rgb(0, 255, 0);
    }

}
@media(min-width:1024px){

    .logo-div{
        width: 10%;
    }

    .header-title{
        font-size: 1.5em;
        margin-bottom: 0;
        align-self: center;
    }
}