/* Variables*/
:root {
    --red: #e53e39;
    --muddy-white: #eeeeee;
    --white: #ffffff;
    --black: #232323;

    /* Variações do black */
    --black-500: #a1a1a1;

    /* Variações do vermelho */
    --red-50: #e74c3c;
    --red-100: #c0392b;
    --red-dark-1: #ab312e;
    --red-dark-2: #721912;
    
    /* Transitions speeds */
    --transition-fast: 0.15s ease-in-out;
    --transition-medium: 0.5s ease-in;
    --transition-slow: 1s ease-in-out;
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);

}

/* END Variables*/

html {
    scroll-behavior: smooth;
    scrollbar-color:var(--red) var(--white);
    scrollbar-width: thin;
}
body {
    -ms-overflow-style: none; /* Esconde scrollbar no Edge */
}
html, body {
    height: 100%; /* Garante que o body ocupe toda a altura da tela */
    margin: 0;    /* Remove a margem padrão */
}
body {
    display: flex;
    flex-direction: column;  /* Coloca os itens em coluna */
}
main {
    flex: 1;  /* O conteúdo principal vai ocupar o espaço disponível, empurrando o footer para baixo */
}

/* Animation fade-in */
.fade-in {
opacity: 0;
animation: fadeIn 0.5s forwards; 
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


p {
    margin-bottom: 0.5rem !important;
    text-align: left !important;
}
.display-5 {
    font-weight: 500 !important;
}


.bottom-red-line:after {
    content: " ";
    border-bottom: 3px solid var(--red);
    width: 90px;
    margin-top: 12px;
    display: block;
    margin-bottom: 20px;
}

.bottom-red-line-small:after {
    content: " ";
    border-bottom: 3px solid var(--red);
    width: 30px;
    margin-top: 12px;
    display: block;
    margin-bottom: 20px;
}
.bckg-black {
    background-color: var(--black);
}
.bckg-muddy-white {
    background-color: var(--muddy-white);
    flex-grow: 1;
}
.color-red {
    color: var(--red);
}
/***
Header
***/
header {
    position: fixed;
    top: 0;
    left:0;
    z-index: 99999;
    width: 100%;
}
nav.navbar {
    background-color: var(--muddy-white) !important;
    display: flex;
    align-items: center;
    min-height: 70px;
}
a.navbar-brand {
    font-size: 24px !important; 
    font-weight: bold;
}
.navbar-brand {
    transition: var(--transition-fast);
}
.navbar-brand:hover {
    transform: scale(1.1) !important;
    transition: var(--transition-fast);
}
button.navbar-toggler {
    border: none;
}
nav .navbar-toggler:focus {
    box-shadow: none;
}
#hamburgerMenu,
#closePopup {
    width: 32px;
    font-size: 1.5em;
}
#hamburgerMenu i {
    color: var(--black);
}
#closePopup {
    margin-right: 24px;
    top:3px !important;
}
#closePopup i {
    color: var(--white);
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 160px;
    }
    .navbar-brand:hover {
        transform: scale(1) !important;
    }
}

.header-home,
.header-404error { 
    background-size: cover;
    background-position: center; 
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    width: 100%;
    display: flex;
    background-attachment: scroll;
    margin-top: 70px;
}
.header-home {
    /*background-color: var(--black);*/
    background-image: url('https://reviser.pt/assets/img/reviser-homepage-header.jpg'); 
}
.header-404error {
    /*background-color: var(--black);*/
    background-image: url('https://reviser.pt/assets/img/reviser-homepage-header.webp'); 
}

.header-home > *,
.header-404error > * {
    position: relative;
    z-index: 2;
}

/* Homepage Header */
.header-home .page-header-title,
.header-home .page-header-subtitle,
.header-home .page-header-text {
    color: var(--muddy-white);
}
.header-home .page-header-image {
    max-width: 500px;
}
.header-home .page-header-title,
.header-404error .page-header-title-error404 {
    font-size: 6.85em;    
    mix-blend-mode: soft-ligh;
    opacity: 0.75;
}

.header-home .page-header-subtitle {
    font-size: 4em;    
}
.header-404error .page-header-subtitle-error404 {
    font-size: 2.8em; 
}
.header-home .page-header-text {
    font-size: 2em;
    line-height: 1.2em;
}
@media (max-width: 768px) {
    .header-home .page-header-image {
        max-width: 80%;
    }
    .header-home .page-header-title {
        font-size: 4em; 
    }
    .header-404error .page-header-title-error404 {
        font-size: 2.8em; 
    }
    .header-home .page-header-subtitle {
        font-size: 2em;    
    }
    .header-404error .page-header-subtitle-error404 {
        font-size: 1.4em; 
    }
    .header-home .page-header-text {
        font-weight: 600;
        font-size: 1em;
        line-height: initial;
    }
}

.header-pages {
    margin-top: 100px;
}
/* Other Pages Header */
@media (max-width: 991px) {
    .header-pages {
        margin-top: 70px;
    }
}


 /* Ajustar imagens para serem fullwidth */
 .project-image-box-right #imageSlider,
 .project-image-box-left #imageSlider {
    padding: 0 !important;
 }
 @media (min-width: 992px) {
    .project-image-box-right .carousel-inner,
    .project-image-box-left .carousel-inner {
        aspect-ratio: 16 / 9;
     }
    
}

.carousel-about-us .carousel-item img {
    width: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
}
#imageSlider .carousel-control-next,
#imageSlider .carousel-control-prev,
.carousel-project .carousel-control-next,
.carousel-project .carousel-control-prev {
    width: 120px;
    opacity: 0.9;
}
@media (max-width: 991px) {
    #imageSlider .carousel-control-next,
    #imageSlider .carousel-control-prev,
    .carousel-project .carousel-control-next,
    .carousel-project .carousel-control-prev {
    width: 60px;
    }
}

#imageSlider {
    padding-left: calc(.5 * var(--bs-gutter-x)) !important;
    padding-right: calc(.5 * var(--bs-gutter-x)) !important;
}


/* Override Bootstrap transition for a true smooth effect */
.carousel-item {
    transition: var(--transition-medium) !important;
}
/* Prevent flickering when sliding */
.carousel-inner {
    display: flex;
}
.carousel-item {
    flex: 0 0 100%;
}

/******
Custom Button
******/
a.btn-cta,
.btn-cta {
    color: var(--white) !important;
    border-radius: 0px !important;
    background-color: var(--red) !important;
    border: 1px solid var(--red) !important;
    transition: var(--transition-fast) !important;
    line-height: 28px;
}
a.btn-cta:hover,
.btn-cta:hover {
    color: var(--black) !important;
    background-color: transparent !important;
    border: 1px solid var(--red) !important;
    transition: var(--transition-fast);
}

a.btn-cta-light,
.btn-cta-light {
    color: var(--white) !important;
    border-radius: 0px !important;
    background-color: var(--red) !important;
    border: 1px solid var(--red) !important;
    transition: var(--transition-fast) !important;
    line-height: 28px;
}
a.btn-cta-light:hover,
.btn-cta-light:hover {
    color: var(--white) !important;
    background-color: transparent !important;
    border: 1px solid var(--red) !important;
    transition: var(--transition-fast);
}

a.btn-cta-sec,
.btn-cta-sec {
    color: var(--white);
    border-radius: 0px;
    background-color: var(--black);
    border: 1px solid var(--black);
    transition: var(--transition-fast);
    line-height: 28px;
}
a.btn-cta-sec:hover,
.btn-cta-sec:hover {
    color: var(--black);
    background-color: transparent;
    border: 1px solid var(--black);
    transition: var(--transition-fast);
}

.btn-cta-white,
a.btn-cta-white {
    color: var(--black);
    border-radius: 0px;
    background-color: var(--white);
    border: 1px solid var(--white);
    transition: var(--transition-fast);
    line-height: 28px;
}

.btn-cta-white:hover,
a.btn-cta-white:hover {
    color: var(--white);
    border-radius: 0px;
    background-color: transparent;
    border: 1px solid var(--white);
    transition: var(--transition-fast);
}





/******
Custom CTA box image
******/
/*.project-image-box-right img,
.project-image-box-left img,*/
.cta-box img {
    transition: var(--transition-slow);
}
/*.project-image-box-right:hover img,
.project-image-box-left:hover img,*/
.cta-box:hover img {
    transform: scale(1.1);
    transition: var(--transition-slow);
}
.cta-box,
.cta-box-text {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
}
.cta-box-text {
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: space-around;
    color: var(--black);
    background-color: var(--red);
    transition: var(--transition-fast);
}
.cta-box-text-topo {
    color: var(--white);
    font-size: 2em;
    font-weight: 700;
    text-transform:uppercase ;
    transition: var(--transition-fast);
}
.cta-box-text:hover {
    color: var(--white);
    background-color: var(--black);
    transition: var(--transition-fast);
}
.cta-box-text:hover .cta-box-text-topo {
    color: var(--red);
    transition: var(--transition-fast);
}
.link-cta-box-text {
    text-decoration: none !important;
}

.cta-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra toda a área do box */
}

@media (max-width: 768px) {
    .cta-box-text {
        aspect-ratio: auto;
    }
}

/*****
END Custom CTA box image
******/
/*****
Nossos Serviços
******/
#nossos-servicos {
    overflow-x: hidden;
}
.servico-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Mantém o aspecto 1:1 */
    overflow: hidden;
    object-fit: cover;
    min-height: 100%;
}

.servico-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha a área */
    border-radius: 0; /* Cantos retos */
}
.service_column {
    display: flex;
    flex-wrap: wrap;
}
.individual_service {
    display: flex;
    flex-direction: column;
}

/*****
END Nossos Serviços
******/

/*****
Conheça os Nossos Projetos
******/
.project-text-box-left, 
.project-text-box-right {
    background: var(--muddy-white);
}
@media (min-width: 992px) {
    .project-text-box-left,
    .project-text-box-right {
        width: 450px !important;
    }
    .project-image-box-right {
        width: calc(100% - 470px)  !important;
        margin-left: auto;
    }
    .project-image-box-left {
        width: calc(100% - 470px)  !important;
        margin-right: auto;
    }
    .projeto-img {
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .projeto-img img {
        aspect-ratio: 16 / 9;
        object-fit: cover; /* Mantém a imagem cobrindo todo o espaço */
        display: block;
        min-width: 100%;
    }
}
@media (max-width: 991px) {
    .project-image-box-right {
        order:-1;
    }
}

/*****
END Conheça os Nossos Projetos
******/

/*****
Zona de Formulário de COntactos
******/
#contactForm input,
#contactForm textarea {
    border-radius: 0 !important;
}

#contactForm .form-control:focus {
    box-shadow: 0 0 0 .5px var(--black);
    border-color: var(--black);
}
#contactForm button {
    height: 42px;
}

/*****
END Zona de Formulário de COntactos
******/



#contactos-intro i {
    color: var(--red);
    margin-right: 12px;
    margin-top: 4px;
}

/****
Footer
****/
.custom-footer .row {
    gap:60px;
}
.row .custom-col {
    width: auto !important;
}
footer .custom-col a {
    text-decoration: none;
}
footer .regra-chamada,
.regra-chamada {
    display: block;
    font-size: 12px;;
    opacity: 0.7;
    margin-top: -4px;
}
.social-media-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
}
.social-media-icons a i {
    font-size: 24px;
    color: var(--muddy-white);
}
.all-rights,
.developed-by,
.developed-by a {
    color: var(--black-500);
}
/* Responsividade */
@media (max-width: 768px) {
    .custom-footer .row {
        gap:20px;
    } 
    .social-media-icons {
        justify-content: flex-start;
    }
}
/******
END Footer
*******/

