@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables for colors and sizes */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --highlight-color: #cfcc1e;
    --navbar-bg-color: rgba(0, 0, 0, 0.8);
    --navbar-hover-bg-color: rgba(255, 255, 255, 0.2);
    --footer-bg-color: #444444;
    --footer-text-color: #ffffff;
    --button-bg-color: #5c5c5c;
    --button-hover-bg-color: #8a8a8a;
    --button-active-bg-color: #b0b0b0;
    --carousel-overlay-bg-color: rgba(0, 0, 0, 0.5);
    --carousel-indicator-active-color: rgba(255, 255, 255, 1);
    --carousel-indicator-color: rgba(0, 0, 0, 0.5);
    --text-shadow-color: rgba(0, 0, 0, 0.5);
    --modal-bg-color: rgba(0, 0, 0, 0.8);
    --price-bg-color: #444444;
    --price-highlight-color: #cfcc1e;
    --font-family: 'Montserrat', sans-serif;
    --font-size-base: 20px;
    --font-size-small: 16px;
    --font-size-smaller: 14px;
    --font-size-large: 30px;
    --font-size-xlarge: 50px;
    --line-height-base: 1.6;
    --navbar-height-large: 80px;
    --navbar-height-small: 65px;
    --carousel-max-height: 600px;
    --footer-padding: 20px;
    --logo-height-large: 100px;
    --logo-height-small: 50px;
    --carousel-indicator-width: 50px;
    --carousel-indicator-height: 10px;
    --modal-max-width: 1000px;
    --price-font-size: 30px;
    --price-font-size-small: 20px;
    --price-h1-font-size: 50px;
    --price-h1-font-size-small: 24px;
    --map-width: 565px;
    --map-height: 450px;
    --map-height-small: 300px;
    --map-height-very-small: 250px;
}

.carousel-control-prev {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 5%; 
}

.carousel-control-next {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 95%; 
}

/* Video Play Button Styles */
.video-icon {
    position: absolute;
    color: var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--secondary-color);
}

.video-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent var(--secondary-color);
    margin-left: 8px;
    transition: all 0.3s ease;
}

.video-icon:hover {
    background: var(--highlight-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.video-icon:hover::before {
    border-color: transparent transparent transparent var(--primary-color);
}

.video-icon::after {
    content: 'PLAY';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.video-icon:hover::after {
    opacity: 1;
}

/* Video Thumbnail Container */
.carousel-item {
    position: relative;
}

.carousel-item a {
    display: block;
    position: relative;
}

/* Video Modal and Container Styles */
.video-modal,
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg-color);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-modal-content,
.modal-content {
    position: relative;
    width: 90%;
    max-width: var(--modal-max-width, 1000px);
    margin: 0 auto;
    background-color: transparent !important;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close-video,
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.close-video:hover,
.close:hover {
    color: var(--highlight-color);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

body {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    overflow-x: hidden;
}

/* Video Styles */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.video-hover {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.video-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hover:not(:valid) + .video-fallback {
    display: block;
}

.error-message {
    display: none;
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
}

.video-hover:not(:valid) + .error-message {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-base);
}
.nav-link {
    font-style: none ;
}

.image_inicial {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.image_inicial img {
    width: 100%;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.image_inicial .mensagem_descolagem {
    z-index: 2;
}

a strong {
    color: var(--secondary-color);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-out {
    opacity: 1;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.content {
    opacity: 1;
    transition: opacity 2s;
}

.fade-out {
    opacity: 0;
}

.carousel-control img {
    width: 50px;
    height: 50px;
    top: 50%;
    margin-top: 250px;
    transform: translateY(50%);
}

.quem {
    text-align: center;
}

.arrow-down {
    position: relative;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    margin: 10px auto;
    animation: bounce 5s infinite;
    margin-top: 50px;
    background: linear-gradient(180deg, var(--secondary-color), rgba(255, 255, 255, 0));
}

.arrow-down::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid rgba(255, 255, 255, 1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.go-on {
    text-align: center;
    margin-top: 50px;
}

.image-casa {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Carousel Items */
.carousel-inner .item img,
.carousel-inner .item video {
    width: 100%;
    height: auto;
    max-height: var(--carousel-max-height);
    object-fit: cover;
    image-rendering: optimizeQuality;
}

.carousel-inner #alternative .item img,
.carousel-inner #alternative .item video {
    background-color: rgb(133, 152, 201);
}

/* Cover Image */
#cover {
    display: block !important;
    position: relative;
}

/* Modal Content and Video */
.modal-content video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close {
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 15;
}

/* Estilo padrão dos botões */
.btn-custom {
    background-color: var(--button-bg-color);
    /* Cinza padrão */
    color: var(--secondary-color);
    border: none;
    transition: 0.3s;
    border-right: var(--secondary-color);
}

/* Quando o mouse passa por cima */
.btn-custom:hover {
    background-color: var(--button-hover-bg-color);
    
}

/* Quando o botão está ativo (seção expandida) */
.btn-custom.active {
    background-color: #ffcc00;
    /* Cor de destaque */
    color: #000000;
    /* Cor do texto em destaque */
    font-weight: bold;
    /* Texto em negrito */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra para destaque */
}

.ling {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

#carousel {
    position: absolute;
    overflow: hidden;
}

.carousel-overlay {
    position: absolute;
    top: 10%;
    left: 95%;
    transform: translate(-70%, -40%);
    z-index: 10;
    /* Garante que fique acima do carrossel */
    pointer-events: none;
    /* Evita interferência com cliques */
}

.carousel-overlay img {
    width: 150px;
    /* Ajuste conforme necessário */
    height: auto;
    opacity: 0.8;
    /* Ajuste a transparência se quiser */
}

/* Navbar styles fix */
.navbar {

    height: var(--navbar-height-small) !important;
    padding: 10px 20px !important;
    background-color: var(--navbar-bg-color) !important;
    z-index: 10000;
    overflow: visible;
    /* Allow the logo to extend beyond the navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.solid {
    background-color: #000000 !important;
    height: var(--navbar-height-small) !important;
}

/* Adiciona a classe solid para a navbar quando o scroll é maior que 100px */
.navbar.solid {
  background-color: rgba(0, 0, 0, 0.9); /* Exemplo de cor sólida */
  transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    background-color: var(--navbar-bg-color);
    display: flex;
    align-items: center;
    margin-right: auto;
}

#carouselExampleIndicators {
    margin-top: 0px;
}

/* Adjust logo size in navbar */
.navbar-brand img {
    height: 140px !important;
    /* Further increase the height of the logo */
    width: auto !important;
    max-width: 220px;
    object-fit: contain;
    margin-right: 20px;
    position: relative;
    top: 40px;
    /* Adjust to make the logo appear larger */
    transition: height 0.3s ease;
}

.navbar.solid .navbar-brand img {
    height: var(--logo-height-small) !important;
    top: 5px;

}

.navbar-header {
    max-height: 0;
}

.navbar-nav {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 auto !important;
    margin-left: auto !important;
}

.navbar-nav li a {
    color: var(--secondary-color) !important;
    padding: 10px 15px !important;
    font-size: var(--font-size-small) !important;
    text-transform: uppercase;
    font-weight: lighter;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Update navbar hover styles */
.navbar-nav li a:hover {
    background-color: var(--navbar-hover-bg-color) !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: bold;
    text-decoration: none;
}

.navbar.solid .navbar-brand img {
    content: url('../images/ICON.png');
}

.navbar-header {
    max-height: 0;
}

.navbar-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.navbar-brand {
    background-color: radial-gradient(180deg, var(--primary-color), rgba(0, 0, 0, 0));
    padding: 0px;
    height: 1em;
    width: auto;
}

.nav .navbar .navbar-left {
    padding-left: 30 px;
}

.dropdown-menu {
    background-color: var(--primary-color);
}

.dropdown-menu li a {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.dropdown-menu li a.nav-link {
    background-color: #333333;
    color: rgb(161, 161, 161);
}

.dropdown-menu li a.nav-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.nav .container-fluid {
    width: 100%;
    max-height: 20px !important;
}

#home {
    padding: auto;
    height: auto;
}

#sobre {
    padding-top: 5%;
    height: auto;
}

#nossas-casas {
    padding-top: 5%;
    height: auto;
}

#projetos {
    padding-top: 5%;
    height: auto;
}

#contato {
    padding-top: 5%;
    height: auto;
}

#projetosf {
    padding-top: 5%;
    height: auto;
}

#projetosp {
    padding-top: 5%;
    height: auto;
}

#myCarousel {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: auto;
    max-height: 850px;
    max-width: 100%;
    object-fit: cover;
}

.information #myCarousel {
    position: relative;
    margin-top: 60px;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 700px;
    max-width: 100%;
    object-fit: cover;
    background-color: #222222;
}

#myCarousel .item {
    width: 100%;
    height: 750px;
    max-height: 850px;
    max-width: 100%;
    object-fit: cover;
    padding: auto;
}

.information img {
    max-width: 100%;
    max-height: 100%;
}

.carousel-indicators li {
    width: var(--carousel-indicator-width) !important;
    height: var(--carousel-indicator-height);
    background-color: var(--carousel-indicator-color) !important;
    border-radius: 0 !important;
}

.carousel-indicators .active {
    background-color: var(--carousel-indicator-active-color) !important;
}

.carousel-caption {
    position: absolute;
    top: 90%;
    left: 20%;
    transform: translate(-150%, -50%);
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px var(--text-shadow-color);
    background-color: var(--carousel-overlay-bg-color);
    padding: 10px;
    border-radius: 0px;
}

.carousel-caption h3,
.carousel-caption p {
    margin: 0;
}

.container-casa {
    position: relative;
    image-rendering: optimizeQuality;
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 300px !important;
    margin: 20px;
    object-fit: cover;
}

.container-casa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz o vídeo cobrir todo o fundo */
}

.mensagem_descolagem {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    text-shadow: 2px 2px 2px var(--text-shadow-color);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
}

.image-casa {
    display: flex;
    width: 100%;
    height: auto;
    max-height: 300px;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--carousel-overlay-bg-color);
}

.overlay button {
    position: absolute;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    font-size: 20px;
}

.vid img{
    filter: blur(10px);
}

.vid {
    position: relative;
    display: inline-block;
}

.vid #play {
    filter: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 5px; /* Ajuste o tamanho do ícone conforme necessário */
    height: 5px; /* Ajuste o tamanho do ícone conforme necessário */
    pointer-events: none;
}

.vid img.d-block {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


.container-casa:hover .overlay {
    opacity: 1;
}

.text {
    color: var(--secondary-color);
    font-size: 20px;
    position: absolute;
    top: 30%;
    left: 10%;
    text-align: center;
}

.btn-overlay {
    position: absolute;
    bottom: 10%;
    left: 45%;
    transform: translateX(-20%);
    padding: 10px 10px;
    background-color: var(--secondary-color);
    font-size: large;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-overlay:hover {
    background-color: #ddd;
}

.overlay .warning {
    position: relative;
    padding: 0 0;
    margin: 0;
    width: 100%;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(255, 0, 0, 0.5);
    color: var(--secondary-color);
    box-sizing: border-box;
    z-index: 10;
}

.overlay .disponivel {
    position: relative;
    padding: 0 0;
    margin: 0;
    width: 100%;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(0, 255, 20, 0.5);
    color: var(--secondary-color);
    box-sizing: border-box;
    z-index: 10;
}

.header-termos {
    position: relative;
    padding-top: 80px;
}

.termos {
    position: relative;
    padding-top: 10px;
}

.logo-termos {
    text-align: center;
    padding-top: 20px;
}

/*footer*/

footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: var(--footer-padding);
}

footer .esquerda {
    font-size: 26px;
    float: left;
    text-align: left;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--footer-text-color);
    text-decoration: none;
    display: block;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a:hover {
    color: var(--footer-text-color);
    text-decoration: underline;
}

footer input {
    background-color: rgba(190, 190, 190, 0.5);
    border: none;
    padding: 10px;
    margin: 10px 0;
    outline: none;
}

footer button {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    margin: 10px 0;
    outline: none;
}

footer button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

footer button:active {
    background-color: rgba(255, 255, 255, 1);
}

footer button {
    background-color: rgba(250, 250, 250, 0.5);
    border: none;
    cursor: pointer;
    outline: none;
}

footer #redes-sociais {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

footer .direita {
    margin: 0 10px;
    text-align: right;
}

.price {
    background-color: var(--price-bg-color);
    padding: 1em;
    border-radius: 0px;
    text-align: left;
    font-size: var(--price-font-size);
}

.price h1 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0 0 10px 0;
    color: var(--price-highlight-color);
    font-size: var(--price-h1-font-size);
}

.price .btn {
    background-color: #333333;
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

.price .btn:hover {
    background-color: #555555;
}

.mapa iframe {
    width: var(--map-width);
    height: var(--map-height);
}

.redes-sociais {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.redes .row .col-md-12 a {
    display: inline-block;
    margin-right: 10px;
    fill: var(--secondary-color);
}

a .telefone:hover {
    text-decoration: underline;
}

.row .col-md-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.space {
    margin-top: 150px;
}

@media (max-width: 1179px) {
    body {
        font-size: var(--font-size-small);
    }

    .navbar {
        height: auto !important;
        padding: 10px;
    }

    .navbar-nav li {
        display: inline-block;
        margin: 5px 0;
    }

    .btn:hover,
    .btn-overlay:hover,
    .btn-custom:hover,
    .telefone:hover,
    .close:hover,
    .video-hover,
    .overlay:hover {
        display: block;
    }

    .space {
        margin-top: 150px;
    }

    .overlay .warning {
        position: relative;
        padding: 30%;
        padding-bottom: 0%;
        padding-top: 0%;
        font-size: 20px;
        text-align: center;
        font-weight: bold;
        background-color: rgba(255, 0, 0, 0.5);
        color: var(--secondary-color);
    }

    .text {
        color: var(--secondary-color);
        font-size: 20px;
        position: absolute;
        top: 16%;
        left: 3%;
        text-align: center;
    }


    .navbar-brand img {
        height: 40px;
    }

    .carousel-inner .item img {
        max-height: 400px;
    }

    .mapa iframe {
        height: var(--map-height-small);
    }
    .navbar {
        background-size: 100% 200%; /* Extend background vertically */
        background-position: top; /* Ensure it starts from the top */
    }

}

/* Mobile-specific styles */
@media (max-width: 768px) {
    body {
        font-size: var(--font-size-small);
    }

    .navbar {
        height: auto !important;
        padding: 10px;
    }

    .navbar-nav li {
        display: inline-block;
        margin: 5px 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .carousel-inner .item img {
        max-height: 400px;
    }

    .mapa iframe {
        height: var(--map-height-small);
    }
    .navbar {
        background-size: 100% 200%; /* Extend background vertically */
        background-position: top; /* Ensure it starts from the top */
    }
    .image_inicial {
        padding-top: 60px;

    }

    .mensagem_descolagem{
        top: 200px;

    }
    #home {
        padding-top: 0;
        height: 300px;
    }

    .arrow-down {
        display: none;
    }
}

/* Mobile-specific styles for very small screens */
@media (max-width: 480px) {
    body {
        font-size: var(--font-size-smaller);
    }

    .navbar {
        height: auto !important;
        padding: 8px;
    }

    .navbar-nav li {
        display: block;
        margin: 5px 0;
    }

    .navbar-brand img {
        height: 30px;
    }

    .carousel-inner .item img {
        max-height: 300px;
    }

    .mapa iframe {
        width: 100%; /* Adjust width to fit smaller screens */
        height: 200px; /* Reduce height for better proportions */
    }

    .navbar {
        background-size: 100% 200%; /* Extend background vertically */
        background-position: top; /* Ensure it starts from the top */
    }

    .navbar-collapse {
        margin-top: 15px;
        background-color: var(--button-bg-color); /* Set background to black for mobile menu */
    }

    video {
        object-fit: cover; /* Ensure video covers the background */
        pointer-events: none; /* Disable user interaction */
        user-select: none; /* Prevent selection */
    }

    .btn-custom {
        width: 100%; /* Ensure buttons take full width on mobile */
        margin-bottom: 10px; /* Add spacing between buttons */
    }

}


#descricao .carousel-inner .carousel-item img {
    height: 700px; /* Ensure images fit within the new height */
    object-fit: cover;
}
