
/* =========================================================
   BDM ARQUITETURA — ESTILO EDITORIAL PREMIUM
   Inspirado em OODA / Hori‑zonte
   ========================================================= */

:root {
    --bg: #f5f3ee;
    --bg-alt: #e8e4dc;
    --verde: #b3b792;
    --preto: #1b1b1b;
    --cinza: #777;
    --linha: #d0ccc4;

    --fonte-titulo: 'Montserrat', system-ui, sans-serif;
    --fonte-texto: 'Inter', system-ui, sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--preto);
    font-family: var(--fonte-texto);
    line-height: 1.7;
    font-size: 17px;
}

/* =========================================================
   HEADER (todas as páginas)
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 243, 238, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linha);
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 42px;
}

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--preto);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

nav a:hover {
    opacity: 0.5;
}

/* =========================================================
   HOME — HERO COM VÍDEO
   ========================================================= */

.home-hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
}

.home-hero-text h1 {
    font-family: var(--fonte-titulo);
    font-size: 3.4rem;
    line-height: 1.1;
    margin-bottom: 18px;
}

.home-hero-text p {
    color: var(--cinza);
    max-width: 420px;
}

.home-hero-meta {
    margin-top: 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cinza);
}

.home-hero-video {
    background: var(--verde);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,0.12);
    transform: translateY(0);
    transition: transform .5s ease, box-shadow .5s ease;
}

.home-hero-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.16);
}

.home-hero-video video {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   SECÇÕES GENÉRICAS
   ========================================================= */

section {
    padding: 80px 60px;
}

.page-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--linha);
    padding-bottom: 16px;
}

.page-section-header h2 {
    font-family: var(--fonte-titulo);
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.page-section-header span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cinza);
}

/* =========================================================
   SOBRE — FOTO + TEXTO (NOVO)
   ========================================================= */

.sobre-bloco {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.sobre-foto img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4 / 2;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.sobre-texto p {
    margin-bottom: 22px;
    font-size: 1.05rem;
    color: var(--cinza);
    max-width: 600px;
}

/* =========================================================
   PROJETOS — 3 POR LINHA + CAPA ÚNICA + NOME
   ========================================================= */

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.projeto-item {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.projeto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.projeto-capa {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .3s ease, box-shadow .3s ease;
}

.projeto-capa:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

/* Nome do projeto com o mesmo estilo do texto anterior */
.projeto-nome {
    font-size: 0.95rem;
    color: var(--cinza);
    letter-spacing: 0.06em;
}

/* =========================================================
   GALERIA FULLSCREEN — VERSÃO FINAL
========================================================= */

.galeria-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;                 /* modal fechado */
    pointer-events: none;          /* impede cliques em modais fechados */
    z-index: 2000;
    overflow: hidden;
}

/* Modal aberto */
.galeria-fullscreen.aberta {
    display: block !important;
    pointer-events: auto !important;   /* só o modal aberto recebe cliques */
}

/* Botões */
.galeria-x,
.galeria-prev,
.galeria-next {
    position: absolute;
    z-index: 3000;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.galeria-x {
    top: 20px;
    right: 30px;
    font-size: 2rem;
}

.galeria-prev,
.galeria-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 0 10px;
}

.galeria-prev { left: 20px; }
.galeria-next { right: 20px; }

/* Slider */
.galeria-slider {
    display: flex !important;
    flex-direction: row !important;
    width: 100vw !important;
    height: 100vh !important;
    transition: transform .4s ease;
}

/* Foto */
.foto {
    min-width: 100vw !important;
    height: 100vh !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

/* Imagem dentro da foto */
.foto img {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    max-width: none !important;
    max-height: none !important;
}

/* Texto da capa */
.galeria-texto {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.foto:not(.foto-capa) .galeria-texto {
    display: none !important;
}

/* =========================================================
   SERVIÇOS
   ========================================================= */

.servicos-lista {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr;
    gap: 32px;
}

.servico-bloco {
    border-top: 1px solid var(--linha);
    padding-top: 18px;
}

.servico-bloco h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.servico-bloco p {
    font-size: 0.95rem;
    color: var(--cinza);
}

/* =========================================================
   CONTACTOS
   ========================================================= */

.contactos-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr;
    gap: 32px;
}

.contactos-grid p {
    margin-bottom: 10px;
}

.contactos-grid a {
    color: var(--preto);
    text-decoration: none;
    border-bottom: 1px solid var(--linha);
    padding-bottom: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 40px 60px;
    border-top: 1px solid var(--linha);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cinza);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 960px) {

    header {
        padding: 14px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    section {
        padding: 60px 20px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .home-hero-text h1 {
        font-size: 2.4rem;
    }

    .sobre-bloco {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sobre-foto img {
        aspect-ratio: 3 / 2;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .servicos-lista,
    .contactos-grid {
        grid-template-columns: 1fr;
    }
}