/* =========================================================
   SISTEMA VISUAL
========================================================= */

:root {
    --bg: #f7f6f3;
    --bg-soft: #efede9;
    --white: #ffffff;
    --dark: #1b1d1f;
    --dark-soft: #252729;
    --text: #181818;
    --muted: #77736d;
    --light-muted: #a09c95;
    --border: #dfddd8;
    --accent: #bda98e;
    --accent-soft: #d5c3aa;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Plus Jakarta Sans", Arial, sans-serif;
}



/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

    body.modal-open {
        overflow: hidden;
    }

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   CONTAINERS
========================================================= */

.header-container {
    width: min(1320px, 92%);
    margin: 0 auto;
}

.section-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.detail-container {
    width: min(1400px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid #eceae6;
}

.header-container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.logo-main {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.logo-sub {
    color: var(--muted);
    font-size: 0.68rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 7px 0;
    font-size: 0.72rem;
    font-weight: 500;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 1px;
        background: var(--text);
        transition: width 0.2s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

.btn-header {
    padding: 11px 20px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.7rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .btn-header:hover {
        opacity: 0.88;
        transform: translateY(-1px);
    }


/* =========================================================
   ELEMENTOS GERAIS
========================================================= */

.section-kicker,
.kicker {
    display: block;
    margin-bottom: 13px;
    color: #716d67;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 14px 19px;
    border: 0;
    background: var(--dark);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        opacity: 0.88;
        transform: translateY(-1px);
    }


/* =========================================================
   HOMEPAGE — HERO
========================================================= */

.hero-section {
    background: var(--white);
}

.hero-content {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .hero-image img {
        object-position: center;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( 90deg, rgba(247, 246, 243, 0.98) 0%, rgba(247, 246, 243, 0.90) 22%, rgba(247, 246, 243, 0.48) 48%, rgba(247, 246, 243, 0.05) 76%, rgba(247, 246, 243, 0) 100% );
}

.hero-text {
    position: relative;
    z-index: 3;
    width: min(1320px, 92%);
    margin: 0 auto;
    padding-top: 150px;
}

.hero-title {
    margin-bottom: 27px;
    font-family: var(--serif);
    font-size: clamp(3.5rem, 5.5vw, 5.2rem);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -2.5px;
}

.hero-description {
    max-width: 330px;
    margin-bottom: 34px;
    color: #57544f;
    font-size: 0.76rem;
    line-height: 1.8;
}


/* =========================================================
   HOMEPAGE — PROJETOS
========================================================= */

.projects-section {
    padding: 95px 0 105px;
    background: var(--bg);
}

.section-heading {
    margin-bottom: 52px;
}

    .section-heading h2 {
        font-family: var(--serif);
        font-size: 2.8rem;
        font-weight: 300;
        line-height: 1;
        letter-spacing: -1px;
    }

.project-card {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    gap: 55px;
    align-items: center;
    padding-bottom: 55px;
    margin-bottom: 55px;
    border-bottom: 1px solid var(--border);
}

    .project-card:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   PROJETO — EM BREVE
========================================================= */

.project-card-coming-soon {
    position: relative;
}

    /* Imagens desfocadas */
    .project-card-coming-soon .project-gallery-track {
        filter: blur(10px);
    }

    /* Informação do projeto desfocada */
    .project-card-coming-soon .project-info {
        filter: blur(2px);
    }

    /* Contador e pontos também desfocados */
    .project-card-coming-soon .project-gallery-counter,
    .project-card-coming-soon .project-gallery-dots {
        filter: blur(2px);
    }


/* =========================================================
   EM BREVE — TEXTO
========================================================= */

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    /* Apenas EM BREVE fica completamente nítido */
    .coming-soon-overlay span {
        padding: 12px 18px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--text);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 2.2px;
    }


/* =========================================================
   HOMEPAGE — GALERIA
========================================================= */

.project-gallery,
.project-gallery-embreve {
    position: relative;
    height: 530px;
    overflow: hidden;
    background: #eae8e3;
}

.project-gallery-track {
    width: 100%;
    height: 100%;
}

.project-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

    .project-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .project-slide img {
        transition: transform 0.8s ease;
    }

.project-gallery:hover .project-slide.active img {
    transform: scale(1.02);
}


/* =========================================================
   GALERIA — SETAS
========================================================= */

.project-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .project-gallery-arrow:hover {
        background: white;
        transform: translateY(-50%) scale(1.05);
    }

.project-gallery-prev {
    left: 18px;
}

.project-gallery-next {
    right: 18px;
}


/* =========================================================
   GALERIA — CONTADOR
========================================================= */

.project-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    padding: 6px 10px;
    background: rgba(27, 29, 31, 0.72);
    color: white;
    font-size: 0.62rem;
}

.counter-separator {
    margin: 0 4px;
    opacity: 0.5;
}


/* =========================================================
   GALERIA — DOTS
========================================================= */

.project-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 19px;
    z-index: 5;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.gallery-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

    .gallery-dot.active {
        background: white;
        transform: scale(1.3);
    }


/* =========================================================
   HOMEPAGE — INFORMAÇÃO DOS PROJETOS
========================================================= */

.project-info {
    padding-right: 10px;
}

.location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: #66615b;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.project-info h3 {
    margin-bottom: 21px;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.7px;
}

    .project-info h3 span {
        display: block;
        font-style: italic;
    }

.project-info > p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.75;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .spec i {
        color: #88837c;
        font-size: 0.95rem;
    }

    .spec strong {
        display: block;
        font-size: 0.65rem;
        font-weight: 500;
    }

    .spec small {
        display: block;
        margin-top: 2px;
        color: var(--light-muted);
        font-size: 0.54rem;
    }

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    min-width: 155px;
    padding: 12px 15px;
    border: 1px solid #c9c5bf;
    font-size: 0.66rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .project-link:hover {
        background: #efede9;
        border-color: #aaa59e;
        transform: translateX(2px);
    }


/* =========================================================
   HOMEPAGE — VALORES
========================================================= */

.features-section {
    padding: 90px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.features-intro {
    margin-bottom: 60px;
}

    .features-intro h2 {
        font-family: var(--serif);
        font-size: 2.7rem;
        font-weight: 300;
        line-height: 1;
        letter-spacing: -1px;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature {
    padding: 0 50px;
    text-align: center;
    border-right: 1px solid #d8d4ce;
}

    .feature:first-child {
        padding-left: 0;
    }

    .feature:last-child {
        padding-right: 0;
        border-right: none;
    }

.feature-number {
    margin-bottom: 20px;
    color: var(--light-muted);
    font-size: 0.58rem;
    letter-spacing: 2px;
}

.feature > i {
    display: block;
    margin-bottom: 16px;
    color: #77726b;
    font-size: 1.35rem;
}

.feature h3 {
    margin-bottom: 9px;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
}

.feature p {
    max-width: 230px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.65;
}


/* =========================================================
   CTA GERAL
========================================================= */

.cta-section {
    padding: 40px 0;
    background: var(--dark);
    color: var(--white);
    margin: 50px 0 0 0;
}

.cta-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 80px;
}

.cta-kicker {
    color: #858689;
}

.cta-container h2 {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 0.98;
}

    .cta-container h2 em {
        font-style: italic;
    }

.cta-container p {
    color: #aaa9a7;
    font-size: 0.68rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-width: 185px;
    padding: 14px 18px;
    border: 1px solid #5d5e60;
    font-size: 0.68rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .cta-button:hover {
        border-color: #999;
        transform: translateX(2px);
    }


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--dark);
    color: var(--white);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 55px 0 50px;
}

.footer-brand span {
    font-family: var(--serif);
    font-size: 1.7rem;
}

.footer-brand p {
    margin-top: 5px;
    color: #888;
    font-size: 0.65rem;
}

.footer-column strong {
    display: block;
    margin-bottom: 15px;
    font-size: 0.68rem;
    font-weight: 500;
}

.footer-column a,
.footer-column p {
    display: block;
    margin-bottom: 7px;
    color: #999;
    font-size: 0.63rem;
}

    .footer-column a:hover {
        color: white;
    }

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #666;
    font-size: 0.58rem;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-page {
    min-height: 680px;
    padding: 90px 0 110px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
    align-items: start;
}

.contact-info {
    padding-top: 20px;
}

    .contact-info h1 {
        margin-bottom: 28px;
        font-family: var(--serif);
        font-size: 4.2rem;
        font-weight: 300;
        line-height: 0.9;
        letter-spacing: -2px;
    }

        .contact-info h1 em {
            font-style: italic;
        }

.contact-intro {
    max-width: 390px;
    margin-bottom: 55px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.85;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 17px;
}

.contact-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: #77726b;
}

.contact-label {
    display: block;
    margin-bottom: 4px;
    color: #99948d;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 1.7px;
}

.contact-detail h3 {
    font-size: 0.72rem;
    font-weight: 500;
}


/* =========================================================
   CONTACTO — FORM
========================================================= */

.contact-form-container {
    padding: 50px;
    background: white;
    border: 1px solid var(--border);
}

.form-heading {
    padding-bottom: 28px;
    margin-bottom: 30px;
}

    .form-heading h2 {
        margin-bottom: 10px;
        font-family: var(--serif);
        font-size: 2rem;
        font-weight: 300;
    }

    .form-heading p {
        color: var(--muted);
        font-size: 0.67rem;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #55514c;
        font-size: 0.61rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 13px 0;
        border: 0;
        border-bottom: 1px solid #d5d2cc;
        outline: none;
        background: transparent;
        color: var(--text);
        font-size: 0.7rem;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--text);
        }

    .form-group textarea {
        min-height: 130px;
    }

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    min-width: 180px;
    padding: 14px 18px;
    border: 0;
    background: var(--dark);
    color: white;
    font-size: 0.68rem;
}


/* =========================================================
   DETALHE — INTRO
========================================================= */

.detail-page {
    padding: 30px 0 5px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #585550;
    font-size: 0.7rem;
}

    .detail-back:hover {
        color: var(--text);
    }

.detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 27px;
}

    .detail-heading h1 {
        font-family: var(--serif);
        font-size: clamp(2.7rem, 4vw, 4rem);
        font-weight: 300;
        line-height: 0.95;
        letter-spacing: -1.7px;
    }

.detail-price {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 300;
    white-space: nowrap;
}


/* =========================================================
   DETALHE — GALERIA
========================================================= */

.detail-gallery {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 8px;
    height: 520px;
}

    .detail-gallery button {
        padding: 0;
        border: 0;
        background: none;
    }

.detail-gallery-main,
.detail-gallery-small {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #e4e2dc;
}

    .detail-gallery-main img,
    .detail-gallery-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .detail-gallery-main:hover img,
    .detail-gallery-small:hover img {
        transform: scale(1.018);
    }

.detail-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    min-height: 0;
}

.detail-gallery-hint {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 2px;
    pointer-events: none;
}

    .detail-gallery-hint i {
        font-size: 0.8rem;
    }


/* =========================================================
   DETALHE — RESUMO
========================================================= */

.detail-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.15fr;
    margin: 20px 0 28px;
    background: #efede9;
}

.overview-item {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 26px;
    border-right: 1px solid #dad6cf;
}

    .overview-item > i {
        flex-shrink: 0;
        color: var(--accent);
        font-size: 1.45rem;
    }

.overview-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.58rem;
}

.overview-value {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
}

.overview-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 16px;
    padding: 0 22px;
    background: var(--accent-soft);
    font-size: 0.7rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .overview-contact:hover {
        background: var(--accent);
        transform: translateX(2px);
    }


/* =========================================================
   DETALHE — CONTEÚDO
========================================================= */

.detail-content {
    display: grid;
    grid-template-columns: 1.6fr 0.95fr;
    gap: 55px;
    align-items: start;
}

.detail-section-title {
    margin-bottom: 20px;
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 300;
    line-height: 1;
}

.detail-description {
    padding-right: 25px;
}

    .detail-description p {
        max-width: 760px;
        margin-bottom: 14px;
        color: #625f59;
        font-size: 0.73rem;
        line-height: 1.8;
    }

.description-more {
    margin-top: 24px;
}

    .description-more summary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        list-style: none;
        font-size: 0.7rem;
        font-weight: 500;
        cursor: pointer;
    }

        .description-more summary::-webkit-details-marker {
            display: none;
        }

        .description-more summary::after {
            content: "⌄";
            font-size: 0.9rem;
        }

    .description-more[open] summary::after {
        content: "⌃";
    }

.detail-spec-list {
    max-width: 650px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.detail-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.66rem;
}

    .detail-spec-row span {
        color: var(--muted);
    }

    .detail-spec-row strong {
        font-weight: 500;
    }


/* =========================================================
   DETALHE — LOCALIZAÇÃO
========================================================= */

.detail-location {
    padding-left: 35px;
    border-left: 1px solid var(--border);
}


/* MAPA NORMAL */

.detail-map {
    position: relative;
    height: 285px;
    overflow: hidden;
    background: #e5e4df;
}

#project-map {
    width: 100%;
    height: 100%;
}


/* BOTÃO ABRIR MAPA */

.map-expand-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 0.62rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .map-expand-button:hover {
        background: white;
        transform: translateY(-1px);
    }

/* =========================================================
   DETALHE — CONTACTO JUNTO À DOCUMENTAÇÃO
========================================================= */

.documents-grid .cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    min-width: 0;
    padding: 18px 22px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 25px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .documents-grid .cta-button:hover {
        background: #efede9;
        border-color: #c5c0b8;
        transform: none;
    }

    .documents-grid .cta-button i {
        font-size: 0.8rem;
        color: var(--muted);
    }

/* =========================================================
   MAPA EM GRANDE
========================================================= */

/* =========================================================
   MAPA EXPANDIDO
========================================================= */

.detail-map.map-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vh;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

    .detail-map.map-expanded #project-map {
        width: 100%;
        height: 100%;
    }

    /* Botão mantém-se no canto superior direito */
    .detail-map.map-expanded .map-expand-button {
        top: 14px;
        right: 14px;
        bottom: auto;
        z-index: 1001;
    }

/* Fundo ligeiramente escurecido atrás do mapa */
body.map-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 25, 30, 0.35);
    z-index: 999;
}

/* Impede scroll enquanto o mapa está aberto */
body.map-open {
    overflow: hidden;
}

/* ENDEREÇO / GOOGLE MAPS */

.detail-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.65rem;
    transition: color 0.2s ease;
}

    .detail-address > i:first-child {
        color: var(--accent);
    }

    .detail-address strong {
        display: block;
        color: var(--text);
        font-weight: 500;
    }

    .detail-address span {
        display: block;
        margin-top: 3px;
        color: var(--muted);
    }

    .detail-address:hover strong {
        text-decoration: underline;
    }

.location-points {
    margin-top: 10px;
}


/* =========================================================
   MAPA — PINS
========================================================= */

.project-map-marker,
.location-map-marker {
    background: none;
    border: 0;
}

.project-pin {
    width: 34px;
    height: 35px;
    position: relative;
    background: var(--dark);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.project-pin-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 12px;
    left: 12px;
    background: var(--accent-soft);
    border-radius: 50%;
}

.location-pin {
    width: 24px;
    height: 25px;
    position: relative;
    background: var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.location-pin-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    top: 9px;
    left: 9px;
    background: var(--white);
    border-radius: 50%;
}


/* =========================================================
   MAPA — LIMPEZA
========================================================= */

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.72) !important;
    padding: 3px 7px !important;
    font-size: 9px !important;
    color: #777 !important;
}

    .leaflet-control-attribution a {
        color: #666 !important;
    }


/* =========================================================
   MAPA / LIGHTBOX — Z-INDEX
========================================================= */

/*
   O Leaflet usa z-index elevado nos controlos.
   O modal tem de ficar acima deles.
*/

.leaflet-pane,
.leaflet-control-container {
    z-index: 1;
}

.image-modal {
    z-index: 99999 !important;
}

/* =========================================================
   DETALHE — DOCUMENTOS
========================================================= */
.documents-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.documents-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

    .documents-heading > div {
        max-width: 760px;
    }

    .documents-heading h2 {
        margin-bottom: 8px;
        font-family: var(--serif);
        font-size: 2rem;
        font-weight: 300;
    }

    .documents-heading p {
        max-width: 520px;
        margin-top: 12px;
        color: var(--muted);
        font-size: 0.7rem;
        line-height: 1.7;
    }

.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.document-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 82px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .document-button:hover {
        background: #efede9;
        border-color: #c5c0b8;
    }

.document-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.document-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efede9;
    color: #877967;
    font-size: 1rem;
}

.document-button strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.7rem;
    font-weight: 500;
}

.document-button small {
    display: block;
    color: var(--muted);
    font-size: 0.56rem;
}


/* =========================================================
   DETALHE — CTA
========================================================= */

.detail-cta {
    margin-top: 80px;
    padding: 65px 0;
    background: var(--dark);
    color: white;
}

.detail-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.detail-cta h2 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 300;
}

.detail-cta p {
    color: #999;
    font-size: 0.67rem;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #182537;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .image-modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.modal-topbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 22px;
    color: white;
}

.modal-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: white;
    font-size: 1rem;
    line-height: 1;
}

    .modal-close i {
        display: block;
        line-height: 1;
    }

.modal-counter {
    font-size: 0.7rem;
    font-weight: 500;
}

.modal-stage-area {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 85px;
}

.modal-image-wrap {
    width: min(1050px, 78vw);
    height: min(66vh, 690px);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.modal-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #182537;
    transform: translateY(-50%);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-bottom {
    padding: 15px 25px 20px;
}

.modal-description {
    max-width: 900px;
    margin: 0 auto 13px;
    color: white;
    text-align: center;
}

    .modal-description strong {
        display: block;
        margin-bottom: 3px;
        font-family: var(--serif);
        font-size: 1rem;
        font-weight: 400;
    }

    .modal-description span {
        color: #b7bec7;
        font-size: 0.6rem;
    }

.modal-thumbnails {
    display: flex;
    justify-content: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    gap: 8px;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch; /* Melhora o scroll em iOS */
}


/* Cada botão/miniatura individual */
.modal-thumbnail {
    flex: 0 0 auto !important; /* Impede que as miniaturas encolham */
    width: 70px; /* Ajuste a largura conforme preferir */
    height: 50px;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

    /* Estilo da miniatura ativa */
    .modal-thumbnail.active {
        border-color: #ffffff !important;
    }

    .modal-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


/* =========================================================
   RESPONSIVO — TABLET
========================================================= */

@media (max-width: 1000px) {

    .project-card {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project-gallery,
    .project-gallery-embreve {
        height: 480px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .detail-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-contact {
        grid-column: 1 / -1;
        min-height: 58px;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .detail-location {
        padding-left: 0;
        padding-top: 45px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .footer-container {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
    .modal-thumbnails {
        justify-content: flex-start;
    }
}


/* =========================================================
   RESPONSIVO — MOBILE
========================================================= */

@media (max-width: 750px) {

    /* HEADER */

    .header-container {
        min-height: 72px;
    }

    .logo-sub {
        display: none;
    }

    .main-nav {
        gap: 14px;
    }

    .nav-link {
        display: none;
    }

    .btn-header {
        padding: 9px 13px;
    }


    /* HERO */

    .hero-content {
        min-height: 590px;
    }

    .hero-text {
        padding-top: 95px;
    }

    .hero-title {
        font-size: 3.15rem;
    }

    .hero-overlay {
        background: linear-gradient( 90deg, rgba(247, 246, 243, 0.98) 0%, rgba(247, 246, 243, 0.80) 48%, rgba(247, 246, 243, 0.12) 100% );
    }


    /* PROJETOS */

    .projects-section {
        padding: 65px 0 75px;
    }

    .section-heading h2 {
        font-size: 2.2rem;
    }

    .project-gallery,
    .project-gallery-embreve {
        height: 360px;
    }

    .project-info h3 {
        font-size: 1.9rem;
    }


    /* VALORES */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 30px 0;
        border-right: 0;
        border-bottom: 1px solid #d8d4ce;
    }

        .feature:last-child {
            border-bottom: 0;
        }


    /* CTA */

    .cta-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }


    /* CONTACTO */

    .contact-page {
        padding: 60px 0 80px;
    }

    .contact-info {
        padding-top: 0;
    }

        .contact-info h1 {
            font-size: 3.4rem;
        }

    .contact-form-container {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


    /* DETALHE */

    .detail-page {
        padding-top: 24px;
    }

    .detail-heading {
        display: block;
    }

        .detail-heading h1 {
            margin-bottom: 12px;
            font-size: 2.6rem;
        }

    .detail-price {
        font-size: 1.3rem;
    }

    .detail-gallery {
        display: block;
        height: auto;
    }

    .detail-gallery-main {
        height: 330px;
    }

    .detail-gallery-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px;
        gap: 6px;
        margin-top: 6px;
    }

    .gallery-progress {
        display: none;
    }

    .gallery-meta {
        justify-content: flex-end;
    }

    .detail-overview {
        grid-template-columns: 1fr;
    }

    .overview-item {
        min-height: 75px;
        border-right: 0;
        border-bottom: 1px solid #dad6cf;
    }

    .overview-contact {
        grid-column: auto;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .documents-heading {
        display: block;
    }

        .documents-heading p {
            margin-top: 10px;
        }

    .detail-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }


    /* MAPA */

    .map-expand-button {
        top: 10px;
        right: 10px;
    }


    /* LIGHTBOX */

    .modal-stage-area {
        padding: 0 58px;
    }

    .modal-image-wrap {
        width: 100%;
        height: 58vh;
    }

    .modal-thumbnail {
        flex-basis: 90px;
        height: 58px;
        justify-content: flex-start;
    }
}


/* =========================================================
   RESPONSIVO — SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .section-container,
    .detail-container {
        width: 92%;
    }

    .project-gallery,
    .project-gallery-embreve {
        height: 300px;
    }

    .project-specs {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-form-container {
        padding: 25px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .detail-gallery-main {
        height: 275px;
    }

    .detail-gallery-side {
        grid-template-rows: 105px;
    }

    .detail-gallery-hint {
        left: 12px;
        bottom: 12px;
        padding: 8px 10px;
    }

    .modal-stage-area {
        padding: 0 45px;
    }

    .modal-prev {
        left: 7px;
    }

    .modal-next {
        right: 7px;
    }

    .map-expand-button span {
        display: none;
    }
    .modal-thumbnails {
        justify-content: flex-start;
    }
}

/* =========================================================
   MODAL DE FEEDBACK DO FORMULÁRIO
========================================================= */

.feedback-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.active {
    opacity: 1;
}

.feedback-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    padding: 40px 32px;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.feedback-modal.active .feedback-modal-content {
    transform: translateY(0);
}

.feedback-modal-icon {
    margin-bottom: 16px;
    font-size: 28px;
}

.feedback-modal-content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.feedback-modal-content p {
    margin: 0 0 28px;
    color: #cccccc;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.feedback-modal-close {
    padding: 12px 36px;
    border: none;
    border-radius: 2px;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.feedback-modal-close:hover {
    background-color: #e0e0e0;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-consent {
    margin-top: -4px;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--dark);
}

.form-consent a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-bottom-color: #d93025 !important;
}

.form-consent.has-error label {
    color: #d93025;
}

.field-error-msg {
    display: block;
    margin-top: 6px;
    color: #d93025;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeInError 0.25s ease forwards;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
