/*
Theme Name: Atlas Estudio
Author: Online Media Dev - Ana Slovic
Author URI: https://onlinemedia.rs/
Description: Custom developed Wordpress theme for Atlas Estudio architecture bureau
Version: 1.0
Text Domain: atlas
*/

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    src: url('./assets/fonts/Inter-VariableFont.ttf') format('ttf')
}
@font-face {
    font-display: swap;
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 300;
    src: url('./assets/fonts/AkzidenzGrotesk-Light.woff') format('woff'),
    url('./assets/fonts/AkzidenzGrotesk-Light.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/AkzidenzGrotesk-Roman.woff') format('woff'),
    url('./assets/fonts/AkzidenzGrotesk-Roman.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/AkzidenzGrotesk-Bold.woff') format('woff'),
    url('./assets/fonts/AkzidenzGrotesk-Bold.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 900;
    src: url('./assets/fonts/AkzidenzGrotesk-Black.woff') format('woff'),
    url('./assets/fonts/AkzidenzGrotesk-Black.woff2') format('woff2');
}

:root {
    --color-primary: #0A0A0A;
    --color-secondary: #F5F5F5;
    --color-accent: #01291B;
}
body {
    margin: 0;
    font-family: 'AkzidenzGrotesk', system-ui, -apple-system, sans-serif;
}
*{
    box-sizing: border-box;
}

section, .site-main{
    position: relative;
}
.container{
    display: block;
    max-width: 1352px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
@media(max-width:767px){
    .container{
        padding: 0 15px;
    }
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Inter', sans-serif;
    color: var(--color-primary);
    margin: 0;
}
h2{
    font-weight: 800;
    font-size: 64px;
    line-height: 1.15;
}
ul.no-style, ol.no-style{
    list-style-type: none;
    padding: 0;
    margin: 0;
}
a{
    text-decoration: none;
    color: inherit;
}
p{
    margin: 0;
}
main p:not(:last-child){
    margin: 0 0 1.5em;
}
.atlas-button{
    display: inline-block;
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    text-align: center;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1em;
    text-transform: capitalize;
    transition: all 0.5s ease;
    outline: none;
    color: var(--color-primary);
}
.atlas-button:hover{
    transform: scale(1.1);
}
.atlas-button.light{
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.atlas-button.light:hover{
    background: var(--color-secondary)!important;
    color: var(--color-primary);
}

.atlas-button.light.green{
    background: var(--color-accent);
}

.atlas-button.light-green{
    color: var(--color-accent);
    background: var(--color-secondary);
}
.atlas-button.light-green:hover,
.atlas-button.green:not(.light){
    background: var(--color-accent);
    color: var(--color-secondary);
}

@media(max-width:1024px){
    h1{
        font-size: 54px;
    }
    h2{
        font-size: 44px;
    }
    .atlas-button{
        padding: 10px 18px;
        font-size: 12px;
    }
}
@media(max-width:767px){
    h1{
        font-size: 34px;
    }
    h2{
        font-size: 30px;
    }
}

/*********************************
 *            HEADER             *
 *********************************/
.site-header{
    position: relative;
    padding: 30px 0;
    z-index: 9999;
    top: 0;
    margin-bottom: -150px;
}
.site-header .container{
    display: flex;
    flex-flow: row nowrap;
    justify-content: end;
    align-items: center;
    column-gap: 30px;
}
.site-header .atlas-logo svg{
    max-width: 136px;
    width: 100%;
    height: auto;
}
#hamburger, #menu-close{
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
}
#hamburger svg{
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.site-header .atlas-logo{
    margin-right: auto;
}
#hamburger .opened, #hamburger.visible .closed{
    display: none;
}
#hamburger.visible .opened{
    display: block;
}
.site-header .menu-main-menu-container{
    position: fixed;
    width: min(480px, 100%);
    height: 100vh;
    left: -9999px;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.site-header .menu-main-menu-container.visible{
    left: 0;
    padding: 40px 30px 60px;
    background: white;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: stretch;
}
.site-header .main-nav{
    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: start;
    row-gap: 40px;
}
.site-header .main-nav .menu-item a{
    font-weight: 400;
    font-size: 28px;
    text-align: left;
    color: var(--color-primary);
}
.site-header .main-nav .menu-item > a:hover{
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.site-header .main-nav .menu-item.menu-item-has-children{
    display: flex;
    flex-flow: row wrap;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
    row-gap: 20px;
}
.site-header .main-nav .menu-item.menu-item-has-children .sub-menu{
    display: none;
    width: 100%;
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
}
.site-header .main-nav .menu-item-has-children.submenu-open > .submenu-toggle {
    transform: rotate(180deg);
}
.submenu-toggle{
    background: transparent;
    outline: none;
    border: none;
}
.submenu-toggle svg{
    width: 15px;
    height: auto;
}
/*.site-header .main-nav .sub-menu .menu-item a{*/
/*    font-weight: 300;*/
/*}*/
.site-header .main-nav .sub-menu .menu-item:not(:last-child){
    margin-bottom: 25px;
}

.menu-header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    padding: 0 5px 10px 0;
    border-bottom: 1px solid var(--color-accent);
    margin-bottom: 30px;
}
.menu-header .menu-label{
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.25;
}
.menu-footer{
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: end;
    column-gap: 20px;
}
.menu-footer-socials{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,23px));
    grid-template-rows: auto;
    column-gap: 12px;
}

@media(min-width: 1201px){
    #hamburger, #menu-close,
    .menu-header,
    .menu-footer {
        display: none !important;
    }
    .site-header .atlas-logo{
        margin-right: 0;
    }
    .site-header .container{
        display: grid;
        grid-template-columns: minmax(0,200px) minmax(0,1fr) minmax(0,200px);
        grid-template-rows: auto;
        align-items: center;
        column-gap: 30px;
    }
    .site-header .atlas-button{
        order: 3;
    }
    .site-header .menu-main-menu-container{
        position: relative;
        width: auto;
        height: auto;
        inset: 0;
        opacity: 1;
        visibility: visible;
        z-index: inherit;
        pointer-events: initial;
    }
    .site-header .main-nav{
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        column-gap: 24px;
    }
    .site-header .main-nav .menu-item a{
        font-weight: 500;
        font-size: 18px;
        text-align: left;
        color: var(--color-secondary);
    }
    .site-header .main-nav .menu-item.menu-item-has-children{
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        column-gap: 6px;
        row-gap: 10px;
        position: relative;
    }
    .site-header .main-nav .menu-item.menu-item-has-children .sub-menu{
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        padding: 10px;
        border-radius: 0 0 10px 10px;
        min-width: 140px;
    }
    .submenu-toggle svg{
        width: 12px;
    }
    .submenu-toggle{
        z-index: 9999;
    }
    .site-header .main-nav .sub-menu .menu-item a{
        font-weight: 300;
        font-size: 16px;
    }
    .site-header .main-nav .sub-menu .menu-item:not(:last-child){
        margin-bottom: 8px;
    }
}
@media(max-width:1200px){
    .site-header .submenu-toggle svg path{
        fill: var(--color-primary);
    }
}

@media(max-width:1024px){
    .site-header{
        padding: 20px 0;
        margin-bottom: -110px;
    }
    .site-header .atlas-logo svg{
        max-width: 110px;
    }
}
@media(max-width:767px){
    .site-header{
        padding: 8px 0;
        margin-bottom: -70px;
    }
    .site-header:has(.visible){
        background: white;
    }
    .site-header:has(.visible) .main-nav .menu-item a{
        color: var(--color-primary);
    }
    .site-header:has(.visible) .atlas-button{
        color: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
    }
    .site-header:has(.visible) .atlas-logo svg path{
        stroke: var(--color-primary);
    }
    .site-header:has(.visible) .main-menu-wrapper svg rect{
        fill:var(--color-primary);
    }

    .site-header .atlas-logo svg{
        max-width: 80px;
    }
    #hamburger svg, #menu-close svg{
        width: 20px;
        height: 20px;
    }
    .site-header .main-nav{
        row-gap: 40px;
    }
    .site-header .main-nav .menu-item a{
        font-weight: 400;
        font-size: 20px;
        text-align: left;
        color: var(--color-primary);
    }
    .site-header .submenu-toggle svg path{
        fill: var(--color-primary);
    }
    .menu-header .menu-label{
        font-size: 16px;
    }
}




/*********************************
 *            FOOTER             *
 *********************************/
.site-footer{
    background: white;
    padding: 50px 0 50px;
}
.site-footer .container{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);
    grid-template-rows: auto;
    align-items: start;
    column-gap: 30px;
}
.footer-column:first-child figure{
    margin-bottom: 10px;
}
.footer-column:first-child p{
    font-weight: 300;
    font-size: 14px;
    line-height: 1.21;
}
.footer-column:nth-child(2) h2{
    font-family: "AkzidenzGrotesk", sans-serif;
    font-weight: 300;
    font-size: 32px !important;
    line-height: 1.25;
    text-align: center;
    margin: 0 auto 14px;
    max-width: 311px;
}
.footer-column:last-child{
    justify-items: end;
}
.footer-column:last-child p{
    font-weight: 300;
    font-size: 14px;
    line-height: 1.21;
}
.footer-column:last-child .footer-column-content > .widget{
    margin-bottom: 16px;
}
.footer-column .wp-block-group.is-nowrap.is-layout-flex{
    align-items: center;
    column-gap: 14px;
}
.footer-column .wp-block-group.is-nowrap.is-layout-flex .wp-block-image{
    display: flex;
    align-items: center;
}
@media(max-width:1024px){
    .site-footer{
        padding: 40px 0 40px;
    }
    .site-footer .container{
        column-gap: 20px;
    }
    .footer-column:nth-child(2) h2{
        font-size: 26px !important;
    }
}
@media(max-width:880px){
    .site-footer .container{
        grid-template-columns: minmax(0,1.4fr) minmax(0,2fr) minmax(0,1.4fr);
    }
    .footer-column .wp-block-group.is-nowrap.is-layout-flex{
        align-items: center;
        column-gap: 12px;
    }
}
@media(max-width:767px){
    .site-footer{
        background: var(--color-accent) ;
        padding: 0;
    }
    .site-footer .container{
        display: grid;
        grid-template-columns: minmax(0,1fr);
        grid-template-rows: auto;
        align-items: start;
        padding: 0;
        row-gap: 0;
    }
    .footer-column:nth-child(2){
        order: -1;
        padding: 60px 20px;
        background: white;
    }
    .footer-column:nth-child(2) h2{
        font-weight: 700;
        color: var(--color-accent);
    }
    .footer-column:nth-child(2) .atlas-button {
        border: 1px solid var(--color-accent);
        padding: 10px 25px;
        font-weight: 500;
        font-size: 18px;
        color: var(--color-primary);
        background: transparent !important;
    }

    .footer-column:not(:nth-child(2)){
        background: var(--color-accent);
        margin: 0 20px;
    }
    .footer-column:first-child{
        padding: 60px 0 10px;
    }
    .footer-column:first-child .wp-block-image{
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--color-secondary);
    }
    .footer-column:first-child img{
        filter: invert(1);
    }
    .footer-column:first-child p{
        font-size: 16px;
        color: var(--color-secondary);
    }
    .footer-column:first-child p br{
        display: none;
    }

    .footer-column:last-child{
        padding-bottom: 60px;
        justify-items: start;
        position: relative;
    }
    .footer-column:last-child .widget_text,
    .footer-column:last-child .icon-link figure{
        display: none !important;
    }
    .footer-column:last-child .socials > p{
        display: none;
    }
    .footer-column:last-child .footer-column-content{
        display: flex;
        flex-flow: row wrap;
        justify-content: start;
        align-items: center;
    }
    .footer-column:last-child p{
        color: var(--color-secondary);
        font-size: 16px;
        font-family: "AkzidenzGrotesk", sans-serif;
        margin-right: 8px;
        padding-right: 14px;
        position: relative;
    }
    #block-14 .icon-link p:after{
        content: "|";
        position: absolute;
        right: 0;
    }
    #block-12{
        margin-bottom: 0;
        position: absolute;
        top: -95px;
        right: 0;
    }
    #block-12 img{
        filter: invert(1);
    }
}

.copyrights{
    background: var(--color-primary);
    padding: 12px 0;
}
.copyrights .container{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    grid-template-rows: auto;
    align-items: start;
    column-gap: 30px;
    row-gap: 15px;
}
.copyrights p{
    font-size: 14px;
    line-height: 1.25;
    color: var(--color-secondary);
}
.copyrights p:last-child{
    text-align: right;
}
@media(max-width:1024px){
    .copyrights p{
        font-size: 12px;
    }
}
@media(max-width:767px){
    .copyrights{
        padding: 8px 0;
    }
    .copyrights .container{
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        column-gap: 30px;
        row-gap: 10px;
    }
    .copyrights p{
        font-size: 10px;
    }
    .copyrights p:nth-child(2){
        order: 3;
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
Loading Animation System by Neale Van Fleet from Rogue Amoeba
========================================================================== */
.animate {
    animation-duration: 0.75s;
    /*animation-duration: 1s; //running slower to show effect */
    animation-delay: 0.5s;
    animation-name: animate-fade;
    animation-timing-function: cubic-bezier(.26,.53,.74,1.48);
    animation-fill-mode: backwards;
}

/* Fade In */
.animate.fade {
    animation-name: animate-fade;
    animation-timing-function: ease;
}
@keyframes animate-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pop In */
.animate.pop {
    animation-name: animate-pop;
}
@keyframes animate-pop {
    0% {
        opacity: 0;
        transform: scale(0.5, 0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}

/* Blur In */
.animate.blur {
    animation-name: animate-blur;
    animation-timing-function: ease;
}
@keyframes animate-blur {
    0% {
        opacity: 0;
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* Glow In */
.animate.glow {
    animation-name: animate-glow;
    animation-timing-function: ease;
}
@keyframes animate-glow {
    0% {
        opacity: 0;
        filter: brightness(3) saturate(3);
        transform: scale(0.8, 0.8);
    }
    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        transform: scale(1, 1);
    }
}

/* Grow In */
.animate.grow {
    animation-name: animate-grow;
}
@keyframes animate-grow {
    0% {
        opacity: 0;
        transform: scale(1, 0);
        visibility: hidden;
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}

/* Splat In */
.animate.splat {
    animation-name: animate-splat;
}
@keyframes animate-splat {
    0% {
        opacity: 0;
        transform: scale(0, 0) rotate(20deg) translate(0, -30px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1, 1.1) rotate(15deg);
    }

    85% {
        opacity: 1;
        transform: scale(1.1, 1.1) rotate(15deg) translate(0, -10px);
    }

    100% {
        opacity: 1;
        transform: scale(1, 1) rotate(0) translate(0, 0);
    }
}

/* Roll In */
.animate.roll {
    animation-name: animate-roll;
}
@keyframes animate-roll {
    0% {
        opacity: 0;
        transform: scale(0, 0) rotate(360deg);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1) rotate(0deg);
    }
}

/* Flip In */
.animate.flip {
    animation-name: animate-flip;
    transform-style: preserve-3d;
    perspective: 1000px;
}
@keyframes animate-flip {
    0% {
        opacity: 0;
        transform: rotateX(-120deg) scale(0.9,0.9);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) scale(1,1);
    }
}

/* Spin In */
.animate.spin {
    animation-name: animate-spin;
    transform-style: preserve-3d;
    perspective: 1000px;
}
@keyframes animate-spin {
    0% {
        opacity: 0;
        transform: rotateY(-120deg) scale(0.9,0.9);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1,1);
    }
}

/* Slide In */
.animate.slide { animation-name: animate-slide; }
@keyframes animate-slide {
    0% {
        opacity: 0;
        transform: translate(0,20px);
    }
    100% {
        opacity: 1;
        transform: translate(0,0);
    }
}

/* Drop In */
.animate.drop {
    animation-name: animate-drop;
    animation-timing-function: cubic-bezier(.77,.14,.91,1.25);
}
@keyframes animate-drop {
    0% {
        opacity: 0;
        transform: translate(0,-300px) scale(0.9, 1.1);
    }
    95% {
        opacity: 1;
        transform: translate(0,0) scale(0.9, 1.1);
    }
    96% {
        opacity: 1;
        transform: translate(10px,0) scale(1.2, 0.9);
    }
    97% {
        opacity: 1;
        transform: translate(-10px,0) scale(1.2, 0.9);
    }
    98% {
        opacity: 1;
        transform: translate(5px,0) scale(1.1, 0.9);
    }
    99% {
        opacity: 1;
        transform: translate(-5px,0) scale(1.1, 0.9);
    }
    100% {
        opacity: 1;
        transform: translate(0,0) scale(1, 1);
    }
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.6s;
}
.delay-2 {
    animation-delay: 0.7s;
}
.delay-3 {
    animation-delay: 0.8s;
}
.delay-4 {
    animation-delay: 0.9s;
}
.delay-5 {
    animation-delay: 1s;
}
.delay-6 {
    animation-delay: 1.1s;
}
.delay-7 {
    animation-delay: 1.2s;
}
.delay-8 {
    animation-delay: 1.3s;
}
.delay-9 {
    animation-delay: 1.4s;
}
.delay-10 {
    animation-delay: 1.5s;
}
.delay-11 {
    animation-delay: 1.6s;
}
.delay-12 {
    animation-delay: 1.7s;
}
.delay-13 {
    animation-delay: 1.8s;
}
.delay-14 {
    animation-delay: 1.9s;
}
.delay-15 {
    animation-delay: 2s;
}

@media screen and (prefers-reduced-motion: reduce) {
    .animate {
        animation-name: none !important;
    }
}

.animated-element{
    opacity: 0;
}
.animated-element.animate{
    opacity: 1;
}