/* Reset Básico para limpar margens do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* Fonte moderna para textos longos */
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

html {
    scroll-padding-top: 100px;
}

/* Fonte Serifada para Títulos (Efeito Luxo) */
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
}

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

/* =========================================
   HEADER STICKY (Menu de Topo)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Classe ativada pelo Javascript quando o usuário rola o mouse */
header.scrolled {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    color: #ffffff;
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #D4AF37; /* Cor Dourado Champagne */
}

/* =========================================
   HERO BANNER
   ========================================= */
/* =========================================
   HERO BANNER E CARROSSEL ALTERNADO
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden; /* Impede que as fotos vazem a tela */
    font-size: 18px;
}

/* Configuração dos Slides de Fundo */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Começam invisíveis */
    transition: opacity 1.5s ease-in-out; /* Transição suave de fade */
    z-index: 0;
}

/* Classe que ativa o slide atual */
.carousel-slide.active {
    opacity: 1; /* Fica visível */
}

/* WebP com fallback JPG — LCP sem mudar o visual */
.carousel-slide--01 {
    background-image: url('/img/01-construtora-cavalheiro-imoveis-alto-padrao-em-curitiba.jpg');
}
.carousel-slide--02 {
    background-image: url('/img/02-construtora-cavalheiro-arquitetura-contemporanea-curitiba.jpg');
}
.carousel-slide--03 {
    background-image: url('/img/03-construtora-cavalheiro-residencia-exclusiva-curitiba.jpg');
}

@supports (background-image: image-set(url('/img/01-construtora-cavalheiro-imoveis-alto-padrao-em-curitiba.webp') type('image/webp'))) {
    .carousel-slide--01 {
        background-image: image-set(
            url('/img/01-construtora-cavalheiro-imoveis-alto-padrao-em-curitiba.webp') type('image/webp'),
            url('/img/01-construtora-cavalheiro-imoveis-alto-padrao-em-curitiba.jpg') type('image/jpeg')
        );
    }
    .carousel-slide--02 {
        background-image: image-set(
            url('/img/02-construtora-cavalheiro-arquitetura-contemporanea-curitiba.webp') type('image/webp'),
            url('/img/02-construtora-cavalheiro-arquitetura-contemporanea-curitiba.jpg') type('image/jpeg')
        );
    }
    .carousel-slide--03 {
        background-image: image-set(
            url('/img/03-construtora-cavalheiro-residencia-exclusiva-curitiba.webp') type('image/webp'),
            url('/img/03-construtora-cavalheiro-residencia-exclusiva-curitiba.jpg') type('image/jpeg')
        );
    }
}

/* Película preta que fica à frente das fotos mas atrás do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* 55% de escurecimento para dar leitura */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Garante que o texto fique por cima de tudo */
    max-width: 850px;
    padding: 0 20px;
}

/* Botão de Chamada para Ação */
.btn-gold {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #D4AF37;
    color: #111111;
}

/* =========================================
   SEÇÃO MINIMALISTA (Respiro)
   ========================================= */
.section-light {
    padding: 120px 0;
    background-color: #ffffff;
}

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

.section-title {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #111111;
}

.section-text {
    font-size: 21px;
    color: #595959;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* =========================================
   SEÇÃO ESCURA E GRIDS
   ========================================= */
.section-dark {
    padding: 100px 0;
    background-color: #111111;
    color: #ffffff;
}

/* Cinza chumbo — transição entre seções claras e escuras */
.section-faq {
    padding: 100px 0;
    background-color: #1e1e1e;
    color: #f2f2f2;
}

.text-gold {
    color: #D4AF37;
    font-family: 'Playfair Display', serif;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.card-luxo {
    padding: 40px 30px;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borda dourada bem sutil */
    transition: transform 0.3s, border-color 0.3s;
}

.card-luxo:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
}

.card-luxo h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #D4AF37;
}

.card-luxo p {
    font-size: 14px;
    color: #aaaaaa;
}

/* =========================================
   PORTFÓLIO DE OBRAS (Galeria 2×3)
   ========================================= */
.grid-obras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.obra-item {
    height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-sizing: border-box;
    min-width: 0;
    isolation: isolate;
}

.obra-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.obra-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
    transition: bottom 0.4s ease;
    text-align: left;
    z-index: 1;
}

.obra-item:hover .obra-overlay {
    bottom: 0; /* Sobe suavemente ao passar o mouse */
}

.obra-overlay h3 {
    color: #ffffff;
    font-size: 18px;
    border-left: 2px solid #D4AF37;
    padding-left: 10px;
}

/* =========================================
   CONTATO DE ALTO PADRÃO
   ========================================= */
.contato-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.contato-main {
    flex: 1;
    max-width: 650px;
}

.contato-info p {
    color: #aaaaaa;
}

.contato-main .btn-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    width: fit-content;
    white-space: nowrap;
}

.contato-main .btn-gold svg {
    flex-shrink: 0;
}

.contato-social {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-shrink: 0;
    margin-top: 89px;
    /* Regulagem de opacidade dos ícones (0 = invisível · 1 = sólido) */
    --social-icon-opacity: 1;
}

.contato-social a:first-child {
    margin-left: -12px;
}

.contato-social a {
    display: block;
    line-height: 0;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.contato-social a:hover {
    transform: translateY(-2px);
}

.contato-social a:hover img {
    opacity: 0.70;
}

.contato-social a:focus-visible {
    outline: 1px solid #D4AF37;
    outline-offset: 4px;
}

.contato-social img {
    width: 104px;
    height: auto;
    display: block;
    border-radius: 18px;
    opacity: var(--social-icon-opacity);
    transition: opacity 0.3s ease;
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 30px 0;
    font-size: 14px;
}

footer p[itemprop="copyrightHolder"] {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.credit-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: #FF6B2C;
}


/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MOBILE)
   ========================================= */
@media (max-width: 768px) {
    
    /* Ajuste do Banner Principal */
    .hero-content h1 {
        font-size: 36px; /* Diminui o título para não estourar a tela */
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Menu do Topo Mobile */
    header {
        padding: 15px 0;
        background-color: rgba(15, 15, 15, 0.98); /* Força fundo escuro no mobile */
    }

    .nav-container {
        flex-direction: column; /* Empilha Logo e Menu */
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 11px;
    }

    /* Transformação das Grades em Coluna Única */
    .grid-3, .grid-obras {
        grid-template-columns: 1fr; /* Tudo vira uma coluna só, empilhado */
        gap: 30px;
    }

    /* Ajuste das seções de texto */
    .section-light, .section-dark, .section-faq {
        padding: 60px 0; /* Diminui o recuo para telas menores */
    }

    .section-title {
        font-size: 28px;
    }

    /* Ajuste do Portfólio no Celular */
    .obra-item {
        height: 280px;
    }

    .obra-overlay {
        bottom: 0; /* No celular, o título fica sempre visível (não há "hover") */
        background: linear-gradient(to top, rgba(17,17,17,0.95), rgba(17,17,17,0.4));
    }

    .contato-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
    }

    .contato-social {
        align-self: center;
    }

    .contato-main .btn-gold {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 14px 22px;
    }
}

@media (max-width: 480px) {
    .contato-main .btn-gold {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 12px 16px;
        gap: 8px;
    }

    .contato-main .btn-gold svg {
        width: 16px;
        height: 16px;
    }

    .contato-social img {
        width: 88px;
    }
}


/* =========================================
   NOVOS BLOCOS: LEGADO E DEPOIMENTOS
   ========================================= */
   .legado-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Fade-In Up — seção Legado */
#legado .fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 2.0s cubic-bezier(0.22, 1, 0.36, 1),
        transform 2.0s cubic-bezier(0.22, 1, 0.36, 1);
}

#legado.is-visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

#legado.is-visible .fade-up--delay {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    #legado .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.grid-depoimentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card-depoimento {
    background-color: rgba(255, 255, 255, 0.03); /* Fundo escuro sutil e luxuoso */
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borda dourada muito suave */
    padding: 40px 30px;
    border-radius: 4px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-depoimento:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.depoimento-texto {
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.depoimento-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37; 
}

.depoimento-info h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.depoimento-info span {
    font-size: 13px;
    color: #D4AF37;
}

/* =========================================
   LIGHTBOX OBRAS (ZOOM CHIQUE)
   ========================================= */
.obra-item {
    cursor: pointer; /* Transforma a seta em "mãozinha" para mostrar que clica */
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #D4AF37;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    color: #D4AF37;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-nav:hover {
    color: #ffffff;
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.08);
}

.lightbox-nav:focus-visible {
    outline: 1px solid #D4AF37;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* =========================================
   FAQ (acordeão — cinza chumbo)
   ========================================= */
.faq-list {
    max-width: 760px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    color: #f5f5f5;
    padding: 18px 28px 18px 0;
    position: relative;
    outline: none;
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: #ffffff;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 26px;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item[open] summary {
    color: #D4AF37;
}

.faq-item p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
    padding: 0 0 20px;
    margin: 0;
}

.text-link-inline {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.55);
    text-underline-offset: 3px;
    transition: color 0.3s, text-decoration-color 0.3s;
}

.text-link-inline:hover {
    color: #D4AF37;
    text-decoration-color: #D4AF37;
}

.section-light .text-link-inline {
    color: #333;
}

.footer-seo-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 16px;
}

.footer-seo-nav a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-seo-nav a:hover {
    color: #D4AF37;
}

/* Páginas satélite (mesmo DNA visual) */
.page-inner-header {
    background-color: rgba(15, 15, 15, 0.98);
    padding: 18px 0;
}

.page-hero {
    background-color: #0f0f0f;
    color: #fff;
    padding: 140px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 18px;
    color: #fff;
}

.page-hero .page-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.page-breadcrumb {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.45);
}

.page-breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
}

.page-content {
    padding: 70px 0;
}

.page-content .section-text {
    max-width: 760px;
    margin: 0 auto 22px;
}

.page-cta {
    text-align: center;
    padding: 72px 0;
}

.page-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-back-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #C5A46A;
    border-bottom: 1px solid rgba(197, 164, 106, 0.35);
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-back-link:hover {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .faq-item summary {
        font-size: 16px;
        padding-right: 32px;
    }
}