/* ----------Normalize CSS---------- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');


/* ---------------Fonts--------------- */
@font-face {
    font-family: 'Jost';
    font-weight: 400;
    font-style: normal;
    src: url('fonts/jost-400-book-webfont.woff2') format('woff2'),
         url('fonts/jost-400-book-webfont.woff') format('woff'),
         url('fonts/Jost-400-Book.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+000-5FF;
}
@font-face {
    font-family: 'Jost';
    font-weight: 500;
    font-style: normal;
    src: url('fonts/jost-500-medium-webfont.woff2') format('woff2'),
         url('fonts/jost-500-medium-webfont.woff') format('woff'),
         url('fonts/Jost-500-Medium.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+000-5FF;
}
@font-face {
    font-family: 'Jost';
    font-weight: 600;
    font-style: normal;
    src: url('fonts/jost-600-semi-webfont.woff2') format('woff2'),
         url('fonts/jost-600-semi-webfont.woff') format('woff'),
         url('fonts/Jost-600-Semi.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+000-5FF;
}
@font-face {
    font-family: 'Jost';
    font-weight: 700;
    font-style: normal;
    src: url('fonts/jost-700-bold-webfont.woff2') format('woff2'),
         url('fonts/jost-700-bold-webfont.woff') format('woff'),
         url('fonts/Jost-700-Bold.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+000-5FF;
}


/* ----------Custom Reset---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --Y: #fabf00;
    --B: #080c0b;
    --W: #f5f5f5;
    --G: #4d4d4d;  
    --primary-color: var(--Y);
    --text-color: var(--B);
    --background-color: var(--W);   
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
input,
button,
textarea,
select {
    font: inherit;
}
table {
    border-collapse: collapse;
}


/* -----------Base Styles----------- */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    color: var(--B);
    overflow-x: hidden;
    overflow-y: auto;
}
body {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--B);
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    background-color: var(--W);
}
h1 {
    font-size: clamp(3rem, 8vw, 4.675rem);
    font-weight: 700;
    padding-bottom: 3.25rem;
}
h2 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 600;
    padding-bottom: 1.98rem;
}
h3 {
    font-size: clamp(1.5rem, 5vw, 1.98rem);
    font-weight: 500;
    padding-bottom: 1.43rem;
}
h4 {
    font-size: clamp(1rem, 4vw, 1.45rem);
    font-weight: 400;
    padding-bottom: 1.1rem;
}
p {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    font-weight: 400;
    padding-bottom: 0.84rem;
}
section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 var(--spacing-lg);
    width: 100%;
    padding: 15vh 15vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}
.last {
    padding-bottom: 0;
}
.divider {
    background-color: #eaeaea;
}


/* -----------Navbar and Hero Styles----------- */
body:has(.menu-lista-checked) {
    overflow: hidden;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    padding: 0 15vw;
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.25s ease;
}
.navbar.scrolled {
    background-color: var(--W);
    width: 100vw;
}
.nav-logo {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none;
}
.nav-logo.visible {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}
.nav-logo img {
    height: 2rem;
    width: auto;
}
#nav-active {
    position: absolute;
    display: none;
}
.hamburger {
    width: 2rem;
    height: 2rem;
    position: relative;
    cursor: pointer;
}
.menu-lista {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: #080c0b83;
    backdrop-filter: blur(5px) brightness(0.3);
    -webkit-backdrop-filter: blur(5px) brightness(0.3);
    left: 100vw;
    opacity: 0;
    transition: 0.75s;
    z-index: 999;
    top: 0;
    align-items: center;
    display: flex;
    overflow: hidden;
}
.lista {
    width: 50vw;
    height: 100vh;
    list-style: none;
    position: fixed;
    right: -50vw;
    align-content: center;
    padding: 0 4rem;
    transition: 0.75s;
}
.lista-checked {
    opacity: 1;
    transition: 0.75s;
    right: 0;
}
.lista a {
    color: var(--W);
    padding-left: 2rem;
}
.lista a:hover {
    color: var(--Y);
}
.lista li h3, .lista li h4 {
    line-height: 4rem;
}
.lista .selected {
    color: var(--G);
    cursor: default;
}
.menu-lista-checked {
    opacity: 1;
    transition: 0.75s;
    left: 0;
}
.close img {
    position: fixed;
    top: 0;
    right: 12vw;
    width: 2rem;
    margin: 1rem;
    margin-right: 4rem;
    cursor: pointer;
}
.logo-menu {
    position: fixed;
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-menu-img {
    max-width: min(25vw, 80vh);
    min-width: 15rem;
    max-height: 80vh;
    width: auto;
    transform: scale(0) rotate(180deg);
    transition: 0.25s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.logo-menu-img-checked {
    transform: scale(1) rotate(0deg);
    transition: 0.5s;
    transition-delay: 0.50s;
}
.hero {
    background-image: url('images/bg.webp');
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    height: 100vh;
    height: 100dvh;
    display: flex;
    color: var(--B);
    position: relative;
    z-index: 0;
    filter: grayscale(1) brightness(0.7);
    -webkit-transform: translate3d(0,0,0); /* iOS performance optimization */
    transform: translate3d(0,0,0);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}
.logo-hero {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 25vw;
    min-width: 15rem;
    z-index: 1;
    transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
}
.logo-hero img {
    width: 100%;
    height: auto;
    justify-content: center;
}


/* -----------Sobre Styles----------- */
#sobre {
    z-index: 2;
    background-color: var(--W);
}
.container_sobre {
    display: flex;
    text-align: justify;
    flex: 1;
    color: var(--G);
    gap: 4rem;
    align-items: center;
}
.sobre_statement {
    position: relative;
    text-align: center;
    font-style: italic;
    color: var(--B);
}
.sobre_statement h3 {
    padding: 0 1rem;
}
.sobre_statement img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(1);
}


/* -----------Servicos Styles----------- */
#servicos {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    color: var(--B);
    background-color: #E7E7E7;
}
.intro_servicos {
    z-index: 1;
    font-size: 1.2rem;
}
.container_servicos {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}
.container_circulo {
    position: relative;
}
.circulo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    min-width: 700px;
}
.center_box::after {
    content: '';
    position: absolute;
    inset: 200px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-left: 4px solid var(--W);
    border-right: 4px solid var(--G);
    animation: animate 8s linear infinite;
}
@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.center_box img {
    width: 200px;
    object-fit: cover;
    transition: 0.5s;
    pointer-events: none;
}
.service-content {
    opacity: 1;
    text-transform: uppercase;
    color: var(--B);
    text-align: center;
    max-width: 100%;
}
.service-content p {
    font-size: 0.9rem;
    padding-bottom: 0;
}
.service-segment {
    position: absolute;
    width: 150px;  
    height: 150px;  
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 4px var(--color);
    will-change: transform;
}
.service-segment:nth-child(1) { --color: #FABF00; transform: translate(260px, 0); }
.service-segment:nth-child(2) { --color: #E4B10A; transform: translate(199.2px, 167.1px); }
.service-segment:nth-child(3) { --color: #CFA313; transform: translate(45.155px, 256px); }
.service-segment:nth-child(4) { --color: #B9941D; transform: translate(-130px, 225.2px); }
.service-segment:nth-child(5) { --color: #A48627; transform: translate(-244.3px, 88.9px); }
.service-segment:nth-child(6) { --color: #8E7830; transform: translate(-244.3px, -88.9px); }
.service-segment:nth-child(7) { --color: #786A3A; transform: translate(-130px, -225.2px); }
.service-segment:nth-child(8) { --color: #635B43; transform: translate(45.15px, -256px); }
.service-segment:nth-child(9) { --color: #4D4D4D; transform: translate(199.2px, -167.1px); }


/* -----------Contactos Styles----------- */
#CONTACTOS {
    background-color: var(--G);
    padding: 8vh 15vw 1rem;
    z-index: 4;
}
.container_contactos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
.logo-contactos {
    max-width: 15vw;
}
.logo-contactos img {
    max-height: 12rem;
    width: auto;
}
#CONTACTOS ul li p {
    list-style: none;
    color: var(--W);
    line-height: 2rem;
    margin: 0;
    padding: 0;
}
#CONTACTOS ul li {
    display: flex;
    align-items: center;
}
.container_contactos ul {
    padding-left: 2rem;
    border-left: var(--W) 2px solid;
}
.kt {
    display: inline-block;
    white-space: nowrap;
}
footer {
    text-align: center;
    padding-bottom: 1rem;
    text-transform: uppercase;
    background-color: var(--G);
    width: 100%;
    padding: 0;
}
footer p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    justify-content: center;
}
footer a {
    color: var(--W);
    text-decoration: underline;
    margin: 0;
}
.phone, .email, .location, .icon_logo {
    width: auto;
    height: 1.2rem;
    padding-right: 1rem;
    fill: var(--W);
}
.cp {
    padding-left: 2.5rem!important;
}

/* -----------Portfolio Styles----------- */
#PORTFOLIO {
    z-index: 3;
    background-color: var(--W);
}
#PORTFOLIO h3 { 
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
    color: var(--G);
    padding: 0;
    margin-top: 0;
}
.grid {
    display: flex;
    gap: 5px;
    padding: 5px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}
.column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.column:nth-child(1) .grid-item:nth-child(1) { height: 30vh; width: 10vw;}
.column:nth-child(1) .grid-item:nth-child(2) { height: 15vh; width: 10vw;}
.column:nth-child(1) .grid-item:nth-child(3) { height: 25vh; width: 10vw;}
.column:nth-child(2) .grid-item:nth-child(1) { height: 15vh; width: 35vw;}
.column:nth-child(2) .grid-item:nth-child(2) { height: 40vh; width: 35vw;}
.column:nth-child(2) .grid-item:nth-child(3) { height: 15vh; width: 35vw;}
.column:nth-child(3) .grid-item:nth-child(1) { height: 25vh; width: 10vw;}
.column:nth-child(3) .grid-item:nth-child(2) { height: 20vh; width: 10vw;}
.column:nth-child(3) .grid-item:nth-child(3) { height: 25vh; width: 10vw;}
.grid-item {
    background: #3498db;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    opacity: 1;
    background-size: cover;
    background-position: center;
    width: 100%;
    transition: none;
}
.fade-transition {
    transition: opacity 1.5s ease-in-out;
}
.grid-item:hover::after {
    content: attr(data-info);
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}
.fade-out {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}


/* -----------Privacidade----------- */
.logo {
    padding: 1rem;
    padding-left: 15vw;
    position: fixed;
    background-color: var(--W);
    width: 100%;
}
.logo a img {
    height: 2rem;
}
.privacy-content {
    margin: 0 auto;
    padding-left: 15vw;
    padding-right: 15vw;
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    text-align: justify;
    align-items: baseline;
}
.privacy-content h3 {
    align-items: center;
}
.privacy-content h3, .privacy-content h4, .privacy-content p {
    padding-bottom: 0;
}
.privacy-content h4 {
    margin-bottom: 1rem;
}
.privacy-content .sec {
    padding-bottom: 1rem;
}
.privacy-content .sec p {
    margin: 0;
}
.privacy-content ul {
    padding-left: 1rem;
    list-style: disc;
}
.privacy-content ul li {
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
}
.privacy-content footer {
    all: unset;
    font-size: 1rem;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 3rem;

}
.priv_close img {
    height: 2rem;
}


/* -----------Media Queries----------- */
@media (max-width: 1359px) {
    .navbar {padding: 0 5vw;}
    section {padding-left: 5vw; padding-right: 5vw;}
    .close img {margin: 0; margin-top: 1rem;}
}
@media (max-width: 1025px) {
    body, p {font-size: 1rem; padding-bottom: 0.8rem;}
    body {padding-bottom: 0;}
    h1 {font-size: 4.2rem; padding-bottom: 4rem;}
    h2 {font-size: 2.925rem; padding-bottom: 2.7rem;}
    h3 {font-size: 1.3rem; padding-bottom: 1.15rem; margin: 0;}
    h4 {font-size: 1rem; padding-bottom: 0.9rem; margin: 0;}
    .navbar {padding: 0 2rem;}
    .container_sobre {flex-direction: column;}
    section, #PORTFOLIO {padding: 5rem 2rem 5rem;}
    #CONTACTOS, .privacy-content {padding: 5rem 2rem 3rem;}
    .logo {padding-left: 2rem;}
    .privacy-content h3 {margin-bottom: 2rem;}
    .privacy-content h4 {font-size: 1.1rem; margin-bottom: 1rem; font-weight: 500;}
    .sec {margin-bottom: 1.5rem;}
    .privacy-content ul li {padding-bottom: 0.1rem; font-size: 1rem;}
    .logo-contactos {max-width: 25vw;}
    .column:nth-child(1) .grid-item:nth-child(1), .column:nth-child(1) .grid-item:nth-child(2), .column:nth-child(1) .grid-item:nth-child(3), .column:nth-child(3) .grid-item:nth-child(1), .column:nth-child(3) .grid-item:nth-child(2), .column:nth-child(3) .grid-item:nth-child(3)  {width: 15vw;}
    .column:nth-child(2) .grid-item:nth-child(1), .column:nth-child(2) .grid-item:nth-child(2), .column:nth-child(2) .grid-item:nth-child(3) {width: 50vw;}
    .intro_servicos br {display: none;}
    footer p {margin-bottom: 1rem;}
}
@media (max-width: 820px) {
    body, p {font-size: 1rem; padding-bottom: 0rem;}
    h1 {font-size: 3.75rem; padding-bottom: 3.5rem;}
    h2 {font-size: 2.6rem; padding-bottom: 2.3rem;}
    h3 {font-size: 1.15rem; padding-bottom: 1.1rem; margin: 0;}
    h4 {font-size: 1rem; padding-bottom: 0.9rem; margin: 0;}
    .menu-lista {flex-direction: column; justify-content: space-between; overscroll-behavior: contain; touch-action: none;}
    .lista {height: 50%; padding: 0; margin: auto; margin-top: 80px; width: 200px; text-align: center;}
    .lista a {padding: 0;}
    .lista-checked {right: auto;}
    .logo-menu {position: relative; height: auto; padding: 2rem; margin-bottom: 3rem; min-height: 150px;}
    .sobre_statement h3 {padding: 0;}
    .lang h4 a {padding: 0 1rem 0;}
    #CONTACTOS {height: 100vh;}
    .container_contactos {flex-direction: column; height: calc(90% - 1.5rem);}
    footer {height: 1.5rem; width: 100%;}
    .logo-contactos {max-width: 40vw; min-width: 13rem;}
    .grid {flex-direction: column;}
    .column {flex-direction: row;}
    .colcent {flex-direction: column;}
    .column:nth-child(1) .grid-item:nth-child(1) { height: 20vh; width: 30vw;}
    .column:nth-child(1) .grid-item:nth-child(2) { height: 20vh; width: 20vw;}
    .column:nth-child(1) .grid-item:nth-child(3) { height: 20vh; width: 25vw;}
    .column:nth-child(2) .grid-item:nth-child(1) { height: 10vh; width: calc(75vw + 10px);}
    .column:nth-child(2) .grid-item:nth-child(2) { height: 35vh; width: calc(75vw + 10px);}
    .column:nth-child(2) .grid-item:nth-child(3) { height: 10vh; width: calc(75vw + 10px);}
    .column:nth-child(3) .grid-item:nth-child(1) { height: 20vh; width: 30vw;}
    .column:nth-child(3) .grid-item:nth-child(2) { height: 20vh; width: 35vw;}
    .column:nth-child(3) .grid-item:nth-child(3) { height: 20vh; width: 10vw;}
    .intro_servicos {text-align: center;}
    #servicos .bg_serv {filter: grayscale(1) contrast(2.5) brightness(0.2) saturate(0.8) blur(0.5px);}
    .intro_servicos {font-size: 1rem;}
    .circulo {width: 325px; height: 325px; margin: 0 auto; position: relative; min-width: auto; min-height: auto; margin-top: 4rem;}
    .service-segment {position: absolute; width: 40px; height: 40px; border-radius: 50%; transition: all 0.5s ease; box-shadow: none;}
    .service-segment:nth-child(1) { background: #FABF00; transform: translate(25.53px, -144.8px); }
    .service-segment:nth-child(2) { background: #E4B10A; transform: translate(-73.5px, -127.3px); }
    .service-segment:nth-child(3) { background: #CFA313; transform: translate(-138.13px, -50.28px); }
    .service-segment:nth-child(4) { background: #B9941D; transform: translate(-138.13px, 50.28px); }
    .service-segment:nth-child(5) { background: #A48627; transform: translate(-73.5px, 127.3px); }
    .service-segment:nth-child(6) { background: #8E7830; transform: translate(25.53px, 144.8px); }
    .service-segment:nth-child(7) { background: #786A3A; transform: translate(112.61px, 94.5px); }
    .service-segment:nth-child(8) { background: #635B43; transform: translate(147px, 0); }
    .service-segment:nth-child(9) { background: #4D4D4D; transform: translate(112.61px, -94.5px); }
    .service-content {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 200px; padding: 1rem;border-radius: 4px; opacity: 0;pointer-events: none;}
    .service-content p {text-align: center;padding: 0;position: absolute;top:0;left: 50%;transform: translate(-50%, -50%); }
    .service-segment.active {transform: translate(0, 0);width: 150px;height: 150px;z-index: 2;border: solid 1px #ffffff00;background-color: transparent;box-shadow: 0 2px 0 4px var(--color);}
    .service-segment.active .service-content {opacity: 1; transition: opacity 0.3s ease 0.2s;}
    .center_box::after {inset: 60px; border-left: 2px solid var(--W); border-right: 2px solid var(--G);}
    .center_box img {display: none; opacity: 0;}
    .logo-menu-img {max-width: min(60vw, 60vh);min-width: 10rem;}
} 
@media (max-height: 755px) {
        .logo-menu {height: 35%;}
        .lista {height: 60%; margin-top: 40px;}
}
/* iPad and tablet specific footer fixes */
@supports (-webkit-touch-callout: none) {
    footer {
        padding-bottom: env(safe-area-inset-bottom, 2rem);
    }
    
    footer p {
        margin-bottom: calc(env(safe-area-inset-bottom, 1rem));
        position: relative;
        bottom: 0;
    }
    .logo-menu {margin-bottom: 3.5rem;}
    #CONTACTOS {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 2rem));
    }
    body, p {font-size: 1rem; padding-bottom: 0.8rem;}
    body {padding-bottom: 0;}
    h1 {font-size: 4.2rem; padding-bottom: 4rem;}
    h2 {font-size: 2.925rem; padding-bottom: 2.7rem;}
    h3 {font-size: 1.3rem; padding-bottom: 1.15rem; margin: 0;}
    h4 {font-size: 1rem; padding-bottom: 0.9rem; margin: 0;}
}