/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap');
section > span, footer > span {
    text-align: center;
    display: block;
    padding: 60px;
    border-bottom: 1px dashed var(--legly-grey);
    opacity: .5;
}
body {
    font-family: 'Cairo', sans-serif;
    --legly-grey: rgb(110, 110, 110);
    --legly-blue: rgb(0, 110, 182);
    --legly-green: rgb(120, 205, 205);
}
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }
}
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}
/* RESET */
*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role="list"],ol[role="list"]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 30px 60px;
    background: #fff;
}
header > div {
    flex-grow: 1;
}
header > div > a {
    display: block;
    float: left;
    height: 70px;
}
header > div > a > svg {
    width: auto;
    height: 100%;
}
header > a {
    color: var(--legly-grey);
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 20px;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: .2s border-color, .2s color;
}
header > a:hover {
    border-color: var(--legly-blue);
    color: #000;
}
@media (max-width: 600px) {
    header {
        padding: 15px 30px;
        position: relative;
        transition: .2s box-shadow;
    }
    header > div > a {
        height: 60px;
    }
    header > div > a > svg {
        width: auto;
        height: 100%;
    }
    header > a {
        border: 0;
        max-height: 0;
        overflow: hidden;
        flex-basis: 100%;
        transition: none;
    }
    header.open {
        box-shadow: 0 60px 90px rgb(0 0 0 / 25%);
        margin-bottom: 60px;
    }
    header.open > a {
        display: block;
        max-height: 22px;
        margin-left: 0;
        margin-bottom: 5px;
        transition: .2s max-height;
        font-weight: 600;
    }
    header.open > a:first-of-type {
        margin-top: 20px;
    }
    header:not(.open):after {
        content: '';
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        height: 20px;
        border-top: 5px solid var(--legly-blue);
        border-bottom: 5px solid var(--legly-blue);
    }
    header.open:before {
        content: '';
        position: absolute;
        top: 40px;
        right: 25px;
        width: 35px;
        height: 0px;
        border-top: 5px solid var(--legly-blue);
        transform: rotate(45deg);
    }
    header.open:after {
        content: '';
        position: absolute;
        top: 40px;
        right: 25px;
        width: 35px;
        height: 0px;
        border-top: 5px solid var(--legly-blue);
        transform: rotate(-45deg);
    }
}
/* HERO */
#hero {
    background: url(/assets/img/hero.jpeg);
    min-height: 700px;
    background-size: cover;
    background-position: 50% 50%;
    padding-top: 60px;
}
#hero h2 {
    color: var(--legly-grey);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2em;
    font-size: 35px;
}
#hero h2 span {
    display: block;
    color: var(--legly-blue);
}
@media (max-width: 600px) {
    #hero {
        min-height: 275px;
        background-position: 25% 50%;
    }
    #hero h2 {
        font-size: 17px;
    }
}
/* INTRO */
#intro {
    padding-top: 150px;
    position: relative;
}

#intro:before {
    content: '';
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' baseProfile='tiny-ps' version='1.2' viewBox='0 0 152 88'%3E%3Cpath d='M.28.69H21.9v21.62H.28V.69ZM21.9 22.31h21.62v21.62H21.9V22.31Zm21.62 21.62h21.62v21.62H43.52V43.93Zm21.62 21.62h21.62v21.62H65.14V65.55Zm21.62-21.62h21.62v21.62H86.76V43.93Zm21.62-21.62h21.63v21.62h-21.63V22.31ZM130.01.69h21.62v21.62h-21.62V.69Z' style='fill:%236f7176'/%3E%3C/svg%3E");
    background-size: contain;
    background-position-x: 0;
    background-position-y: 0;
    background-repeat: no-repeat;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}
#intro .container {
    padding-top: 30px;
    padding-bottom: 180px;
    background-image: url(/assets/img/intro.jpeg);
    background-size: 50%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
#intro .content {
    padding-left: 50%;
    position: relative;
    z-index: 1;
}
#intro .container:after {
    content: "'01";
    position: absolute;
    bottom: -150px;
    right: -50px;
    font-size: 500px;
    font-weight: 900;
    line-height: 1em;
    opacity: .05
}
#intro .content br {
    clear: both;
}
#intro h2 {
    color: var(--legly-blue);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 30px;
    margin: 0;
    line-height: 1.2em;
}
#intro h3 {
    color: var(--legly-grey);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 25px;
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.2em;
}
#intro p {
    color: var(--legly-grey);
    font-size: 16px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 60px;
}
#intro p:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--legly-grey)
}
#intro a {
    border: 2px solid var(--legly-blue);
    width: 150px;
    height: 150px;
    float: left;
    margin-bottom: 30px;
    margin-right: 30px;
    position: relative;
    transition: .2s border-color;
}
#intro a span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    color: var(--legly-blue);
    text-decoration: none;
    transform: translateY(-50%);
    font-weight: 900;
    text-transform: uppercase;
    transition: .2s color;
    line-height: 1.2em;
}
#intro a:hover {
    border-color: #000;
}
#intro a:hover span {
    color: #000;
}
@media (max-width: 1265px) {
    #intro .container {
        background-size: 50%;
    }
}
@media (max-width: 600px) {
    #intro .container {
        padding-top: 0;
        background: none;
    }
    #intro .content {
        padding-left: 0;
    }
}
/* BENEFITS */
#benefits {
    color: #fff;
    padding: 120px 0;
    box-shadow: inset 0 -30px 60px rgba(0, 0, 0 , .25);
    background: var(--legly-blue);
    background: linear-gradient(135deg,  var(--legly-blue) 0%,#002e81 100%);
}
#benefits ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
#benefits ol > li {
    flex-basis: 50%;
    padding: 30px;
    position: relative;
}
#benefits ol > li:nth-of-type(1),
#benefits ol > li:nth-of-type(2) {
    margin-bottom: 60px;
}
#benefits h2 {
    background-image: url(/assets/img/legly-logo-3d-rotated.png);
    padding-top: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 300px;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.3em;
    margin-top: -175px;
    margin-left: 90px;
    margin-bottom: 60px;
    position: relative;
}
#benefits h2:before {
    content: '';
    position: absolute;
    width: 750px;
    height: 60px;
    background: #fff;
    opacity: .25;
    bottom: -60px;
    left: -250px;
    border-radius: 100%;
    filter: blur(30px);
    mix-blend-mode: lighten;
}
#benefits h2:after {
    content: '';
    position: absolute;
    width: 275px;
    height: 25px;
    background: #000;
    opacity: .075;
    bottom: -45px;
    left: -15px;
    transform: skewX(-60deg) rotate(6deg);
}
#benefits h3 {
    text-transform: uppercase;
    line-height: 1.2em;
    font-size: 25px;
    margin-bottom: 15px;
    font-weight: 900;
}
#benefits p {
    font-size: 16px;
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
#benefits p:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #fff;
}
#benefits ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
#benefits ul li {
    padding-left: 30px;
    position: relative;
    line-height: 1.5em;
}
#benefits ul li:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    background-color: var(--legly-green);
    width: 10px;
    height: 10px;
}
#benefits ol > li:nth-of-type(1):after { content: '1'; }
#benefits ol > li:nth-of-type(2):after { content: '2'; }
#benefits ol > li:nth-of-type(3):after { content: '3'; }
#benefits ol > li:nth-of-type(4):after { content: '4'; }
#benefits ol > li:after {
    font-size: 350px;
    font-weight: 900;
    position: absolute;
    opacity: .05;
}
#benefits ol > li:nth-of-type(1):after {
    top: 0;
    right: 100px;
}
#benefits ol > li:nth-of-type(2):after {
    top: -90px;
    right: 100px;
}
#benefits ol > li:nth-of-type(3):after {
    top: -90px;
    right: 180px;
}
#benefits ol > li:nth-of-type(4):after {
    top: -90px;
    right: 0px;
}
@media (max-width: 1200px) {
    #benefits h2 {
        /* background: none; */
        padding-left: 0;
        margin-left: 0;
        text-align: center;
        background-position-x: 50%;
        padding-top: 215px;
        background-size: 200px;
    }
    #benefits h2:before {
        left: 50%;
        transform: translateX(-50%);
        top: 150px;
    }
    #benefits h2:after {
        left: 50%;
        transform: skewX(-60deg) rotate(6deg) translateX(-70%);
        top: 180px;
        width: 150px;
        height: 15px;
    }
}
@media (max-width: 767px) {
    #benefits ol > li {
        flex-basis: 100%;
    }
    #benefits ol > li:nth-of-type(1):after {
        top: 0;
        right: 90px;
    }
    #benefits ol > li:nth-of-type(2):after {
        top: 0;
        right: 90px;
    }
    #benefits ol > li:nth-of-type(3):after {
        top: 0;
        right: 90px;
    }
    #benefits ol > li:nth-of-type(4):after {
        top: 0;
        right: 90px;
    }
}
/* DEPTS */
#depts {
    padding-top: 90px;
    color: var(--legly-grey);
    position: relative;
}
#depts .container {
    position: relative;
    overflow: hidden;
}
#depts .container > h2,
#depts .container > p {
    width: 50%;
}
#depts h2 {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2em;
    margin-bottom: 30px;
}
#depts .container > p {
    margin-bottom: 60px;
}
#depts ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    margin-left: -60px;
    margin-right: -60px;
    margin-bottom: 30px;
}
#depts ol li {
    flex-basis: 33.33%;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 60px;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    padding-top: 270px;
    position: relative;
}
#depts h3 {
    color: var(--legly-grey);
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
#depts h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--legly-blue)
}
#depts .container:after {
    content: "'02";
    position: absolute;
    bottom: -150px;
    left: 0px;
    font-size: 500px;
    font-weight: 900;
    line-height: 1em;
    opacity: .05
}
#depts:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.125) 100%);
}
#depts ol li:nth-of-type(1) { background-image: url(/assets/img/legly-logo-3d-rotated-1.jpg); background-size: 190px; }
#depts ol li:nth-of-type(2) { background-image: url(/assets/img/legly-logo-3d-rotated-2.jpg); background-size: 150px;}
#depts ol li:nth-of-type(3) { background-image: url(/assets/img/legly-logo-3d-rotated-3.jpg); background-size: 150px;}
#depts ol li:before {
    content: '';
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    border-radius: 100%;
    background: rgba(0, 0, 0, .25);
    filter: blur(10px);
}
#depts ol li:after {
    content: '';
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 10px;
    border-radius: 100%;
    background: rgba(0, 0, 0, .125);
    filter: blur(5px);
}
#depts ol li:nth-of-type(1)::before {
    margin-left: -15px;
}
#depts ol li:nth-of-type(3)::before {
    margin-left: 15px;
}
@media (max-width: 768px) {
    #depts ol {
        flex-wrap: wrap;
    }
    #depts ol li {
        flex-basis: 100%;
    }
    #depts .container > h2,
    #depts .container > p {
        width: auto;
    }
}
/* PARTNERS */
#partners {
    background-color: #e8e9ea;
    border-top: 1px solid #fff;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
#partners .container {
    display: flex;
}
#partners .container > * {
    flex-shrink: 0;
    flex-grow: 0;
}
#partners .container > *:first-of-type {
    flex-basis: 40%;
}
#partners .container > *:last-of-type {
    flex-basis: 60%;
}
#partners h2 {
    color: var(--legly-blue);
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
}
#partners h3 {
    color: var(--legly-grey);
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 5px;
    margin-bottom: 15px;
}
#partners h4 {
    font-weight: 400;
    text-transform: uppercase;
    color: var(--legly-grey);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
#partners h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15px;
    height: 3px;
    background: var(--legly-blue)
}
#partners .partner-logos {
    margin-bottom: 30px;
}
#partners .partner-logos:after {
    content: '';
    display: block;
    clear: both;
}
#partners .partner-logos a {
    float: left;
    margin: 0;
    margin-right: 15px;
    color: transparent;
    padding: 0;
    width: 60px;
    height: 60px;
    background-color: #ccc;
}
#partners .container:after {
    content: "'03";
    position: absolute;
    bottom: -150px;
    left: 50%;
    font-size: 500px;
    font-weight: 900;
    line-height: 1em;
    opacity: .5;
    color: #fff;
}
#partners #tms {
    position: relative;
    z-index: 1;
    border: 2px solid var(--legly-blue);
    height: 100%;
    color: var(--legly-grey);
    user-select: none;
}
#partners #tms .tm {
    display: none;
    padding: 30px;
    padding-bottom: 280px;
}
#partners #tms .tm.active {
    display: block;
    animation: fadeIn .4s ease-out;
}
@keyframes fadeIn {
    from { transform: translateY(5px); opacity: .5; }
      to { transform: translateY(0px); opacity: 1; }
}
#partners #tms .tm h5 {
    color: var(--legly-blue);
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: 600;
}
#partners #tms .tm.active h6 {
    transition-delay: .2s;
    animation: fadeIn .4s ease-out;
}
#partners #tms .tm.active p {
    transition-delay: .4s;
    animation: fadeIn .4s ease-out;
}
#partners #tms .tm h6 {
    color: var(--legly-blue);
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 30px;
}
#partners #tms .controls {
    position: absolute;
    bottom: 0;
    border-top: 2px solid var(--legly-blue);
    width: 100%;
    display: flex;
}
#partners #tms .controls > * {
    flex-basis: 33.33%;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    height: 250px;
    padding: 30px;
}
#partners #tms .controls > *:nth-of-type(2) {
    border-left: 2px solid var(--legly-blue);
    border-right: 2px solid var(--legly-blue);
}
#partners #tms .controls > *:not(:nth-of-type(2)):not(:empty) {
    cursor: pointer;
    transition: .2s all;
}
#partners #tms .controls > *:not(:nth-of-type(2)):not(:empty):hover {
    color: var(--legly-blue)
}
#partners #tms .controls > *:not(:nth-of-type(2)):empty {
    opacity: .5
}
#partners #tms .controls > *:first-of-type,
#partners #tms .controls > *:last-of-type {
    background-size: 30px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' baseProfile='tiny-ps' version='1.2' viewBox='0 0 88 152'%3E%3Cstyle%3E.shp0%7Bfill:%23006eb6%7D%3C/style%3E%3Cpath d='M.71 151.61v-21.63h21.62v21.63H.71Zm21.62-21.63v-21.62h21.62v21.62H22.33Zm21.62-21.62V86.74h21.62v21.62H43.95Z' class='shp0'/%3E%3Cpath d='M65.57 86.74V65.12h21.62v21.62H65.57ZM43.95 65.12V43.5h21.62v21.62H43.95ZM22.33 43.5V21.88h21.62V43.5H22.33Z' class='shp0'/%3E%3Cpath d='M.71 21.88V.26h21.62v21.62H.71Z' class='shp0'/%3E%3C/svg%3E");
    background-position: calc(100% - 30px) calc(100% - 30px);
}
#partners #tms .controls > *:first-of-type {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' baseProfile='tiny-ps' version='1.2' viewBox='0 0 88 152'%3E%3Cstyle%3E.shp0%7Bfill:%23006eb6%7D%3C/style%3E%3Cpath d='M87.19.26v21.62H65.57V.26h21.62Z' class='shp0'/%3E%3Cpath d='M65.57 21.88V43.5H43.95V21.88h21.62ZM43.95 43.5v21.62H22.33V43.5h21.62ZM22.33 65.12v21.62H.71V65.12h21.62Z' class='shp0'/%3E%3Cpath d='M43.95 86.74v21.62H22.33V86.74h21.62Zm21.62 21.62v21.62H43.95v-21.62h21.62Zm21.62 21.62v21.63H65.57v-21.63h21.62Z' class='shp0'/%3E%3C/svg%3E");
    background-position: 30px calc(100% - 30px);
}
#partners #tms .controls {
    font-size: 20px;
}
#partners #tms .controls > *:nth-of-type(2) {
    font-weight: 600;
}
@media (max-width: 1200px) {
    #partners .container {
        flex-wrap: wrap;
    }
    #partners .container > * {
        flex-basis: 100% !important;
        padding: 0;
    }
}
@media (max-width: 768px) {

    #partners {
        padding-left: 0;
        padding-right: 0;
    }
    #partners .container:after {
        display: none;
    }
    #partners #tms .tm {
        padding: 15px;
        padding-bottom: 280px;
    }
    #partners #tms .controls > * {
        flex-basis: 50%;
        font-size: 15px;
    }
    #partners h5 {
        font-size: 21px !important;
    }
    #partners h6 {
        font-size: 16px !important;
    }
    #partners .container > *:last-of-type .actual {
        display: none;
    }
}