/**
 * Theme Name:        Ébila Madeira
 * Version:           1.0.0
 * Author:            Tiago Alves
 * Tested up to:      6.4
 * Requires at least: 6.2
 * Requires PHP:      7.4
 */
 @font-face {
    font-family: 'Neutral Face';
    src: url('NeutralFaceBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neutral Face';
    src: url('NeutralFaceRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('Nexa-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('Nexa-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Monument Extended';
    src: url('PPMonumentExtended-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Berzulis-PIZIUS';
    src: url('Berzulis-PIZIUS-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Monument Extended';
    src: url('PPMonumentExtended-Light.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Monument Extended';
    src: url('PPMonumentExtended-BlackItalic.woff') format('woff');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 html {
    font-size: 16px;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: top center;
    color: #FFF;
    font-family: 'Neutral Face', sans-serif;
}
.container {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
}
.content {
    width: 1140px;
}
#topo .content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
}
#topo a {
    font-family: "PP Monument Extended";
    text-transform: uppercase;
    text-decoration: none;
    color: #FFF;
    font-size: 1.30875rem;
    position: absolute;
    right: 0;
}
#topo img {
    position: absolute;
    left: 0;
}
#topo {
    margin-top: 10.75rem;
}
h1 {
    text-transform: uppercase;
    font-size: 2.5625rem;
    font-weight: lighter;
}

#video {
    margin-top: 4.6875rem;
}

#video .content {
    width: 100%;
    display: flex;
}

#video video {
    width: 100%;
}

#about {
    background-color: #e3e3e3;
    color: #000;
    position: relative;
}
#about .content {
    display: flex;
    flex: auto;
    height: 1280px;
    align-items: center;
}
#about-text {
    width: 50%;
    padding: 0;
    background-color: #e3e3e3;
}

#about-photo {
    position: absolute;
    background-image: url(ebila-madeira.webp);
    background-size: cover;
    background-position: center;
    top: 0;
    bottom: 0;
    right: 0;
    left: 50%;
    z-index: 0;
}

#about h2 {
    font-weight: lighter;
    font-size: 2.5625rem;
    margin-bottom: 8.75rem;
}

#about p {
    font-family: "Nexa";
    font-size: 1.25rem;
    margin-bottom: 3.625rem;
    margin-right: 7rem;
}

#about p:last-child {
    margin-bottom: 0;
}

#branding h2 {
    font-size: 2.375rem;
    font-weight: lighter;
    top: 28vh;
    position: absolute;
    left: 11rem;
}

#branding, #video-institucional {
    background-color: #062adf;
}
#video-institucional .content {
    display: flex;
    flex-direction: column;
}

.job-header {
    height: 21.4375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    word-spacing: .2rem;
}

.job .content {
    width: 100%;
}

.job-header > div {
    width: 1140px;
}

.job-title {
    font-size: 1.75rem;
}

.job-headline {
    font-size: 1.23625rem;
    margin-bottom: 3rem;
    line-height: 2.5rem;
    margin-top: 0.7rem;
}
.job-pics {
    display: grid;
    width: 100%;
    height: 100%;
}

#worked-title {
    font-size: 5.841875rem;
    font-weight: lighter;
    margin-top: 22.375rem;
    text-align: right;
    line-height: 6.4rem;
}

.brand-title {
    font-size: 1.773125rem;
}

.brand-subtitle {
    font-size: 1.151875rem;
    margin-top: 0.5625rem;
}

#brands {
    margin: 8.5625rem 0;
    display: grid;
    height: 100%;
    grid-template-areas:
        "b0 b1 b2 b3 b4 b5"
        "b6 b7 b8 b9 b10 b10";
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 1020px;
    row-gap: 2rem;
}
.job-pics a,.job-pics video {
    overflow: hidden;
}
.job-pics a div {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

#rodape-logo {
    font-size: 1.575rem;
}

#rodape-city {
    font-size: 1.575rem;
    color: #737373;
}

#rodape a {
    font-size: 2.075rem;
    color: #FFF;
    align-self: end;
    margin-bottom: 8.4375rem;
}

#rodape .content {
    display: flex;
    flex-direction: column;
    margin-bottom: 3.375rem;
}

#rodape-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

#branding-anim {
    position: absolute;
    font-size: 6rem;
    fill: #FFF;
    bottom: 9.8rem;
    right: 9.9rem;
    width: 100%;
    height: 10rem;
}

#branding .content {
    width: 100%;
    position: relative;
    height: 100vh;
}

#branding-anim text {
    stroke: none;
    font-family: "PP Monument Extended";
    text-align: right;
    text-anchor: end;
}
#branding-anim text tspan {
    font-family: "Berzulis-PIZIUS";
}
#branding-anim text tspan.s {
    display: block;
    transform: scaleX(-1);
}
#overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,.5);
    display: none;
    overflow-y: auto;
    z-index: 1;
}
#overlay.show {
    display: block;
}

body.fixed {
    overflow: hidden;
}
#x {
    position: absolute;
    right: 1rem;
    top: .25rem;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Nexa';
}

#contact-links {
    background-color: #272627;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    color: #FFF;
    width: 20rem;
    padding: 5rem 5rem 0 5rem;
    left: 50%;
    margin-left: -10rem;
    margin-top: 15rem;
}

#contact-links a {
    color: #FFF;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    /* height: 2rem; */
    /* line-height: 2rem; */
}

#contact-links a svg {
    width: 1.5rem;
    margin-right: 1rem;
    fill: #FFF;
    margin-top: -0.3rem;
}
#video-comma {
    font-size: 4.5625rem;
}

#video-institucional video {
    width: 100%;
    margin-top: 3.4375rem;
    margin-bottom: 8.5625rem;
}

#video-institucional .content > div {
    display: flex;
    margin-top: 12.375rem;
    justify-content: space-between;
}

#video-question {
    font-size: 2.2rem;
    /* margin-top: 71px; */
    font-family: 'Nexa';
}

#video-institucional .content {
    width: 1730px;
    padding: 0 6.0625rem;
}
#video.portrait .content {
    height: 148vw;
}

#video.landscape .content {
    height: 56.4vw;
}

.job-pics video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.job-pics > div {
    position: relative;
    overflow: hidden;
}
#jobs-slide {
    margin-bottom: 6rem;
}
@media (max-width: 1924px) {
    #video-institucional .content {
        width: 100%;
    }
}
@media (max-width: 1370px) {
    #branding h2 {
        left: 12.847vw;
    }
    #branding-anim {
        bottom: 11.445vw;
        right: 11.562vw;
        font-size: 7.007vw;
    }
}
@media (max-width: 1199px) {
    #about-text {
        padding: 17.5rem 1rem;
        width: 29rem;
        z-index: 1;
        position: relative;
    }
    #about .content{height: auto;}
    #about p{margin-right: 0;}
}
@media (max-width: 1139px) {
    .content, .job-header > div {
        width: 100%;
    }
    .job-header > div {
        padding-left: 4rem;
    }
    #worked-title {
        padding-right: 1rem;
        font-size: 5rem;
    }
    #brands {
        padding-left: 1rem;
    }
    #rodape .content {
        padding: 0 1rem;
    }
}
@media (max-width: 1055px) {
    #branding h2 {
        margin-left: 1rem;
    }
    #branding-anim {
        margin-left: 1rem;
    }
}
@media (max-width: 1019px) {
    #brands {
        width: 100%;
        grid-template-areas:
            "b0 b1 b2 b3"
            "b4 b5 b6 b7"
            "b8 b9 b10 b10";
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
}
@media (max-width: 1080px) {
    #topo {
        margin-top: 18.3vw;
    }
    #topo .content {justify-content: center;}
    #topo img {
        width: 6.7592vw;
        /* margin-left: 8.9814vw; */
    }
    h1 {
        font-size: 3.7vw;
    }
    #topo a {
        font-size: 2.0vw;
        /* margin-right: 10.740vw; */
    }
    #about-text {
    padding: 26.296vw 7vw 26.296vw 10vw;
    width: 50vw;
}
#about-photo{
    width: 50vw;
    background-image: url(ebila-madeira-mobile.png);
    background-position: center right;
}
#about p{
    font-size: 1.6vw;
    margin-right: 0;
}
}
@media (max-width: 1250px) {
    #topo img {left: 4vw;}
    #topo a {right: 5vw;}
}
@media (max-width: 992px) {
    .job-pics {
        display: flex;
        flex-direction: column;
    }
    .job-pics a {
        height: 20rem;
    }
    .job-pics > div{height: 20rem;}
}
@media (max-width: 768px) {
    html {
        font-size: 1.9vw;
    }
    #contact-links {
        bottom: 0;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
    }
    #branding .content{
        height: 70vh;
    }
    #video-institucional .content {
        padding: 0 1.25rem;
    }
    #video .content {
        height: 148vw;
    }
    #about-text {
        padding: 15vw 5vw 15vw 6vw;
    }
    #about h2 {
        margin-bottom: 3rem;
    }
    #about p {
        margin-bottom: 2rem;
        font-size: 2.7vw;
    }
    #about p br {display: none;}
}