/* CSS Reset & Variables */
:root {
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --gray: #333333;
    --text-light: #F5F5F5;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --overlay-dark: rgba(10, 10, 10, 0.75);
}

/* */
/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 3000; /* Fica acima de todos os elementos, incluindo o header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito de hover (passar o mouse) */
.whatsapp-float:hover {
    transform: scale(1.1); /* Aumenta levemente */
    background-color: #128c7e; /* Verde um pouco mais escuro */
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Ajuste para celular para não atrapalhar o conteúdo */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* Layout Base do Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- DESKTOP: nav posicionada fixamente na área do header, hambúrguer escondido --- */
.nav-menu {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    right: 20px;
    height: 93px; /* mesma altura do header (padding 12px * 2 + logo ~69px) */
    z-index: 1001; /* logo acima do header (1000) */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

.mobile-menu-icon {
    display: none;
}

/* Overlay escondido por padrão (nunca aparece no desktop) */
.menu-overlay {
    display: none;
}

/* --- MOBILE: hambúrguer aparece, nav vira sidebar --- */
@media (max-width: 768px) {

    /* Hambúrguer visível */
    .mobile-menu-icon {
        display: block;
        cursor: pointer;
        z-index: 1200;
        color: var(--gold);
        font-size: 1.8rem;
    }

    /* Overlay re-ativado no mobile */
    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Sidebar: escondida à direita por padrão */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1200;
        border-left: 2px solid var(--gold);
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .nav-cta {
        border-color: var(--gold);
        width: auto !important;
        min-width: 150px;
        padding: 12px 25px !important;
        margin: 20px auto 0;
        text-align: center;
        display: inline-block;
    }

    /* Blur somente no conteúdo do site, não na barra lateral */
    body.menu-open .site-content {
        filter: blur(3px);
        transition: filter 0.4s ease;
    }

    body.menu-open {
        overflow: hidden;
    }
}
/* */

/* Serviços com Imagens */
.services {
    padding: 80px 0;
    background-color: var(--black);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--gold);
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* Nova Grade para Cartões com Imagens */
.services-grid-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Responsivo Automático */
    gap: 30px;
    padding: 0 20px;
}

/* O Cartão Individual */
.service-card-image {
    background-color: var(--dark-gray); /* Um cinza muito escuro para contraste */
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    overflow: hidden; /* Garante que a imagem respeite o border-radius */
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column; /* Organiza itens em coluna: imagem -> conteúdo */
}

.service-card-image:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* O Container da Imagem */
.card-image-wrapper {
    width: 100%;
    height: 250px; /* Altura fixa para manter todas as imagens iguais */
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha sem distorcer */
    transition: transform 0.6s ease;
}

.service-card-image:hover .card-image-wrapper img {
    transform: scale(1.05); /* Pequeno zoom na imagem ao passar o mouse */
}

/* O Container do Texto */
.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o conteúdo preencher o cartão */
}

.service-location {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 15px;
}

.card-content h3 {
    color: var(--white);
    font-family: var(--font-main);
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.card-content p {
    color: #bbb; /* Cinza claro para o parágrafo */
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px; /* Espaço para o botão */
    flex-grow: 1; /* Garante que o parágrafo empurre o botão para baixo */
}

/* O Botão de Orçamento no Cartão */
.card-cta {
    align-self: flex-start; /* Alinha o botão à esquerda */
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .services-grid-images {
        grid-template-columns: 1fr; /* Coluna única no celular */
    }
    
    .card-image-wrapper {
        height: 200px; /* Imagens menores no celular */
    }
}
/* */

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--black); /* Fundo preto luxuoso */
    border-bottom: 2px solid var(--gold); /* Linha fina dourada abaixo do menu */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 69px; /* Ajuste conforme necessário */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}



/* Botão de Destaque (Orçamento) */
.nav-cta {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    transition: all 0.4s ease !important;
}

.nav-cta:hover {
    background-color: var(--gold);
    color: var(--black) !important;
    box-shadow: 0 0 15px var(--gold-hover);
}

/* Ajuste do Hero para não sumir atrás do Header */
.hero {
    padding-top: 100px; /* Compensação da altura do header fixo */
}

/* Unificado na media query no topo */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--black);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Global Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-instagram {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-instagram:hover {
    background-color: var(--gold);
    color: var(--black);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('imagens/sala/1.jpeg') no-repeat center right/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Solid black on the left for text readability, transitioning to transparent to show the image on the right */
    background: linear-gradient(to right, 
        rgba(10, 10, 10, 1) 0%, 
        rgba(10, 10, 10, 1) 40%, 
        rgba(10, 10, 10, 0.7) 60%, 
        rgba(10, 10, 10, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    width: 50%;
    animation: fadeIn 1.5s ease;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text h1 span {
    color: var(--gold);
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: #e0e0e0;
}

.hero-empty {
    width: 50%; /* Leaves the right side empty for the background image */
}

/* --- Portfolio Section --- */
.portfolio {
    padding: 100px 0;
    background-color: var(--dark-gray);
}

.section-title {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 50px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto 0;
}

/* The Grid corresponding to the reference image */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.portfolio-item {
    position: relative;
    height: 600px; /* Slimmer for 5 columns */
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Overlay for text at the bottom */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Modal / Lightbox Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
}

.close-modal {
    color: white;
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2100;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--gold);
    text-decoration: none;
}

.mySlides {
    display: none;
    text-align: center;
}

.mySlides img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,1);
    border: 1px solid #333;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--gold);
    color: var(--black);
}

.caption-container {
    text-align: center;
    background-color: transparent;
    padding: 20px;
    color: var(--gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Contato Section --- */
.contato {
    padding: 80px 0;
    background-color: var(--black);
    text-align: center;
    border-top: 1px solid var(--gray);
}

.contato-content h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.contato-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #ccc;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--text-light);
    padding: 12px 25px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centraliza o conteúdo no botão */
    gap: 10px;
    width: 240px; /* Tamanho padronizado para ambos */
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.btn-whatsapp i {
    color: var(--gold);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-whatsapp:hover i {
    color: var(--black);
}

.location {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location i {
    color: var(--gold);
    font-size: 1.4rem;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    width: 200px;
    text-align: center;
}

.preloader-text {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.loader-container {
    width: 100%;
    height: 2px;
    background-color: #1A1A1A;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background-color: var(--gold);
    position: absolute;
    top: 0;
    left: 0;
    animation: loading 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes loading {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* --- Footer --- */
footer {
    background-color: #050505;
    padding: 30px 0;
    border-top: 1px solid var(--gray);
}

.text-center {
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

footer p span {
    color: var(--gold);
    font-weight: 600;
}

/* --- Animations & Responsiveness --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .portfolio-item {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .portfolio-item {
        height: 500px;
    }

    .about-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .hero {
        text-align: center;
        background-position: center;
    }

    .hero-overlay {
        background: rgba(10, 10, 10, 0.85);
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
    }

    .hero-text {
        width: 100%;
    }
    
    .hero-empty {
        display: none;
    }

    .contact-info {
        flex-direction: column;
        align-items: center; /* Garante que os botões fiquem centrados e empilhados */
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}
/* Seção Por Que Nos Contratar */
.about-us {
    padding: 100px 0;
    background-color: var(--black);
    color: var(--text-light);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 25px;
}

/* Lista de Diferenciais */
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas no desktop */
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    color: var(--gold);
    font-size: 1.4rem;
    margin-top: 3px;
}

.feature-item strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.feature-item span {
    font-size: 0.85rem;
    color: #888;
}

/* Lado da Imagem */
.about-image {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
    box-shadow: 20px 20px 0px var(--dark-gray);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--gold);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.experience-badge .exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsividade */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-image img {
        box-shadow: none;
        border-left: none;
        border-bottom: 5px solid var(--gold);
    }
}