/* ==========================================================================
   Variáveis e Paleta de Cores (Ref. Bianca e Bisognin Arquitetos)
   ========================================================================== */
:root {
    /* Cores da Paleta */
    --color-orange: #AB7340;   /* R 171, G 115, B 64 */
    --color-gray: #8A867D;     /* R 138, G 134, B 125 */
    --color-dark: #332F24;     /* R 51, G 47, B 36 */
    --color-olive: #69653F;    /* R 105, G 101, B 63 */
    --color-light: #EBEAE8;    /* R 235, G 234, B 232 */

    /* Tipografia */
    --font-title: 'Gowun Batang', serif;
    /* Usando Inter como fallback até que o arquivo da fonte Noah seja fornecido */
    --font-text: 'Noah', 'Inter', sans-serif; 
}

/* ==========================================================================
   Resets e Configurações Globais
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header Transparente
   ========================================================================== */
.header {
    position: fixed; /* Trocado de absolute para fixed para acompanhar a rolagem */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    background: linear-gradient(to bottom, rgba(51, 47, 36, 0.6) 0%, rgba(51, 47, 36, 0) 100%);
    transition: all 0.4s ease; /* Transição suave para o efeito de scroll */
}

/* Header com Fundo Branco ao rolar */
.header.scrolled {
    background: #FFFFFF;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header.scrolled .nav-menu a {
    color: var(--color-dark);
}

.header.scrolled .nav-menu a:hover {
    color: var(--color-orange);
}

.header.scrolled .logo img {
    /* Como o fundo fica branco e a logo é branca, transformamos ela em escura */
    filter: brightness(0) opacity(0.85);
}

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

/* Logo Styling */
.logo a {
    display: block;
}

.logo img {
    height: 45px; /* Tamanho elegante para a barra de navegação */
    width: auto;
    display: block;
}

/* Menu de Navegação */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* Ocultar hamburger no Desktop */
.hamburger {
    display: none;
}

/* Botão Header */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-orange);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-orange);
    color: var(--color-orange);
}

/* ==========================================================================
   Hero Section (Capa)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    /* Utilizando a imagem fornecida para o background */
    background-image: url("foto header.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Overlay para escurecer sutilmente a imagem e dar contraste aos textos */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 47, 36, 0.3); /* Escurece 30% usando a cor Dark da paleta */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    color: #FFFFFF;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 4.2rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-family: var(--font-text);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    max-width: 750px;
}

/* Botão Minimalista da Hero */
.btn-minimalist {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    padding-bottom: 6px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.05rem;
    font-family: var(--font-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.btn-minimalist:hover {
    border-bottom-color: #FFFFFF;
    gap: 18px; /* Move a setinha sutilmente para a direita */
    opacity: 0.9;
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
    background-color: var(--color-dark);
    padding: 80px 24px;
    text-align: center;
}

.quote-section blockquote {
    font-family: var(--font-title);
    font-size: 2.4rem;
    color: var(--color-light); /* Off-white da paleta */
    font-weight: 400;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   About & Services Section
   ========================================================================== */
.about-services-section {
    background-color: var(--color-light);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-dark);
    font-weight: 300;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

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

.service-card {
    border-top: 1px solid rgba(51, 47, 36, 0.2); /* Linha sutil usando a cor Dark da paleta com opacidade */
    padding-top: 24px;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-orange);
    font-weight: 400;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark);
    font-weight: 300;
}

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

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--color-dark);
    border-radius: 40px; /* Estilo 'pill' conforme referência */
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* ==========================================================================
   Main Services Area
   ========================================================================== */
.main-services {
    position: relative;
    padding: 100px 0;
    background-image: url('fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 50px;
    text-align: left;
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    border: 1px solid rgba(51, 47, 36, 0.3); /* Linha dark com opacidade */
    padding: 30px;
    text-align: center;
    background-color: transparent;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-orange);
}

.service-img {
    margin-bottom: 30px;
    width: 100%;
}

.service-img img {
    width: 100%;
    height: auto;
    display: block;
}

.service-box h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-orange);
    font-weight: 400;
    margin-bottom: 16px;
}

.service-box p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark);
    font-weight: 300;
    max-width: 280px;
    margin: 0 auto;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
    background-color: var(--color-light);
    padding: 100px 0;
}

.process-grid {
    display: grid;
    /* Colunas: passo, seta, passo, seta, passo */
    grid-template-columns: 1fr auto 1fr auto 1fr;
    row-gap: 80px;
    column-gap: 40px;
    align-items: start;
}

.process-step {
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.step-number {
    font-family: var(--font-title);
    font-size: 3.2rem;
    color: var(--color-orange);
    line-height: 1;
    font-weight: 400;
}

.step-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--color-orange);
    font-weight: 400;
}

.process-step p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark);
    font-weight: 300;
    max-width: 300px;
}

/* Seta desenhada puramente com CSS */
.process-arrow {
    width: 26px;
    height: 26px;
    border-top: 6px solid var(--color-olive);
    border-right: 6px solid var(--color-olive);
    transform: rotate(45deg);
    margin-top: 25px; /* Alinhamento visual com o título e número */
    opacity: 0.9;
}

.process-arrow-mobile {
    display: none; /* Escondido no desktop, pois lá a grade já flui perfeitamente */
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    background-color: var(--color-light);
    padding: 100px 0;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto;
    font-weight: 300;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.projects-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
    padding-bottom: 10px;
    width: 100%;
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

.project-card {
    flex: 0 0 calc(25% - 15px); /* 4 colunas perfeitas no desktop com gap */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    aspect-ratio: 3/4; /* Mantém a proporção vertical (retrato) idêntica à referência */
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 2px;
}

.project-link {
    font-size: 0.95rem;
    color: var(--color-gray);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--color-orange);
}

.carousel-arrow-left, .carousel-arrow-right {
    width: 32px;
    height: 32px;
    border-top: 4px solid var(--color-gray);
    border-right: 4px solid var(--color-gray);
    cursor: pointer;
    position: absolute;
    top: 40%;
    z-index: 10;
    transition: border-color 0.3s ease;
}

.carousel-arrow-left {
    left: -50px;
    transform: translateY(-50%) rotate(-135deg);
}

.carousel-arrow-right {
    right: -50px;
    transform: translateY(-50%) rotate(45deg);
}

.carousel-arrow-left:hover, .carousel-arrow-right:hover {
    border-color: var(--color-orange);
}

.projects-cta {
    margin-top: 40px;
}

/* ==========================================================================
   Footer Contact Section
   ========================================================================== */
.footer-contact {
    position: relative;
    padding: 120px 0;
    background-image: url('img fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-light);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Para as redes sociais ficarem na base à direita */
}

.footer-content {
    max-width: 600px;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--color-light);
}

.footer-tel {
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--color-light);
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-light);
}

.info-block p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
    color: rgba(235, 234, 232, 0.85); /* Fica um pouco mais escuro que o título para criar hierarquia visual */
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-light);
    color: var(--color-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--color-orange);
    color: var(--color-light);
    transform: translateY(-3px);
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-container {
    width: 100%;
    line-height: 0; /* Remove aquele pequeno espaço branco que o navegador cria abaixo do iframe */
}

.map-container iframe {
    width: 100%;
    height: 450px;
    filter: grayscale(10%); /* Dá um tom levemente mais sóbrio para casar com o design */
}

/* ==========================================================================
   Copyright Footer
   ========================================================================== */
.copyright-footer {
    background-color: var(--color-dark);
    padding: 24px 0;
    text-align: center;
}

.copyright-footer p {
    font-size: 0.85rem;
    color: var(--color-light);
    opacity: 0.7;
    font-weight: 300;
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #FFF;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-orange);
}

.modal-gallery {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #FFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.prev-arrow { left: -20px; }
.next-arrow { right: -20px; }

.modal-info {
    padding: 20px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
}

.modal-info h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.modal-counter {
    font-family: var(--font-text);
    color: var(--color-light);
    opacity: 0.8;
    font-size: 1.1rem;
}

.modal-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1EBE55;
    transform: scale(1.05);
}

/* ==========================================================================
   Responsividade Básica
   ========================================================================== */
@media (max-width: 992px) {
    /* Menu Mobile Sidebar */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido para a direita */
        width: 260px;
        height: 100vh;
        background-color: var(--color-light);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0; /* Aparece deslizando da direita */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-menu a {
        color: var(--color-dark) !important; /* Sempre escuro no menu lateral claro */
        font-size: 1.25rem;
        font-family: var(--font-title);
    }
    
    /* Hamburger styling */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001; /* Sempre acima do menu lateral */
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 2px;
        background-color: #FFFFFF;
        transition: all 0.3s ease;
    }

    /* Quando o header rola para baixo, os traços ficam escuros */
    .header.scrolled .hamburger span {
        background-color: var(--color-dark);
    }
    
    /* Quando ativo (menu aberto), vira um X escuro */
    .hamburger.active span {
        background-color: var(--color-dark) !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 35px; /* Logo levemente menor no mobile */
    }

    .header-action {
        display: none; /* Ocultar botão no mobile header para simplificar, se desejar */
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .quote-section {
        padding: 60px 24px;
    }

    .quote-section blockquote {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text p {
        font-size: 1.15rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2.4rem;
        text-align: center;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        text-align: center;
    }

    .step-header {
        justify-content: center;
    }

    .process-step p {
        margin: 0 auto;
    }
    
    .process-arrow {
        transform: rotate(135deg); /* A seta aponta para baixo no mobile */
        margin: 0 auto;
    }

    .process-arrow-mobile {
        display: block; /* Mostra a seta extra no mobile para não quebrar a continuidade */
    }

    .project-card {
        flex: 0 0 calc(50% - 10px); /* 2 colunas no tablet */
    }

    .carousel-arrow-left { left: -10px; }
    .carousel-arrow-right { right: -10px; }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .footer-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 85%; /* 1 coluna gigante com 'hint' da próxima foto no mobile */
    }

    .carousel-arrow-left, .carousel-arrow-right {
        /* Exibe as setas no mobile, um pouco menores e recuadas para dentro */
        display: block;
        width: 22px;
        height: 22px;
        border-width: 3px;
        opacity: 0.8;
    }

    .carousel-arrow-left { left: -10px; }
    .carousel-arrow-right { right: -10px; }

    .map-container iframe {
        height: 350px; /* Mapa levemente menor no celular para rolar mais rápido */
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .modal-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
    .modal-close {
        top: -35px;
    }
    .modal-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .modal-actions {
        flex-direction: column;
        gap: 15px;
    }
}
