
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .18;
    pointer-events: none;
}

.app-shell::after {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(
            circle,
            rgba(143, 199, 124, .06) 0%,
            rgba(143, 199, 124, 0) 70%
        );
    pointer-events: none;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1000;
}

.app-header .icon-button {
    position: fixed;
    top: 40px;
    left: 40px;
}

.nav-back {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
}

.home-button {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D7E0B4;
    transition: .2s;
}

.home-button svg {
    width: 48px;
    height: 48px;
}

.home-button:active {
    transform: scale(.95);
}

.app-footer {
    width: 100%;
    height: 70px;
    z-index: 999;
    pointer-events: none;
    flex-shrink: 0;
}

/* FOOTER LOGO */

.footer-logo {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.footer-logo img {
     height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-logo-left {
    justify-content: flex-start;
    padding-inline-start: 60px;    
}

.footer-logo-center {
    justify-content: center;
}

.footer-logo-right {
    justify-content: flex-end;
    padding-inline-end: 60px;
}

/* HOME */

.home-container {

    width: 100%;
    margin: 0 auto;
    flex: 1;
    max-width: 1600px;
    min-height: auto;
    margin: 0 auto;
    min-height: calc(
        100vh - 140px
    );
    padding:
        40px
        clamp(20px,4vw,60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*
.home-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
*/

.logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.logo-area img {
    width: 300px;
}

/* MENU CARD GRID */

/*
.menu-grid {
    flex: 1;
    padding:
        100px
        220px
        180px
        220px;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 55px;
}
*/

.menu-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );
    gap: 32px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.menu-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
/*    border: 3px solid var(--color-primary);*/
    border:3px solid rgba(183,217,92,.75);
    animation:pulseBorder 4s ease-in-out infinite;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: #FFF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    
    
}

@keyframes pulseBorder {
    0% {
        border-color:
        rgba(183,217,92,.45);
    }
    50% {
        border-color:
        rgba(183,217,92,1);
    }
    100% {
        border-color:
        rgba(183,217,92,.45);
    }
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,.35) 50%,
            rgba(0,0,0,.65) 100%
        );
    z-index: 1;
}

.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,.06) 50%,
            transparent 100%
        );
    transform: translateX(-200%);
    animation:
        menuShine 10s linear infinite;
    z-index: 2;
}

.menu-card {
    transition:
        transform .2s ease,
        border-color .3s ease;
}

.menu-card:hover {
    border-color:
        rgba(183,217,92,1);
    transform:
        translateY(-3px);        
}

.menu-card:active {
    transform:
        scale(.98);
}

.menu-card span {
    position: relative;
    z-index: 3;
    padding: 20px;
    text-shadow:
        0 2px 10px
        rgba(
            0,
            0,
            0,
            .5
        );

    font-family:
        var(--font-display);

    font-size:
        clamp(
            1.4rem,
            1.6vw,
            2.4rem
        );

    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .02em;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    text-wrap: balance;
}

/* SVG Icons Menu Nav */

.icon-button {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #D7E0B4;
    transition: .2s;
    cursor: pointer;
}

.icon-button svg {
    width: 42px;
    height: 42px;
}

.icon-button:hover {
    background:
        rgba(255,255,255,.05);
}

.icon-button:active {
    transform: scale(.94);
}


/* Thumbs Menu Nav */
.cardVideoConceito {
    background-image:
        url('../img/thumb_VideoConceito.jpg');
}
.cardAreaComum {
    background-image:
        url('../img/thumb_PlantasAreaComum.jpg');
}
.cardApartamentos {
    background-image:
        url('../img/thumb_Apartamentos.jpg');
}
.cardVideosVistas {
    background-image:
        url('../img/thumb_VideosVistas.jpg');
}
.cardPlantasAreasComunsGaragens {
    background-image:
        url('../img/thumb_PlantasAreasComunsGaragens.jpg');
}
.cardPlantasApartamentos {
    background-image:
        url('../img/thumb_PlantasApartamentos.jpg');
}

/* Efeito visual nos cards */
.cardVideoConceito,
.cardAreaComum,
.cardApartamentos,
.cardVideosVistas,
.cardPlantasAreasComunsGaragens,
.cardPlantasApartamentos {
    background-size: 105%;
    animation:
        cardBackgroundFloat 20s ease-in-out infinite;
}

.cardVideoConceito {
    animation-duration: 18s;
}

.cardAreaComum {
    animation-duration: 21s;
}

.cardApartamentos {
    animation-duration: 24s;
}

.cardVideosVistas {
    animation-duration: 24s;
}

.cardPlantasAreasComunsGaragens {
    animation-duration: 21s;
}

.cardPlantasAreasComunsGaragens {
    animation-duration: 18s;
}


@keyframes cardBackgroundFloat {
    0% {
        background-position:
            center center;
        background-size:
            105%;
    }

    50% {
        background-position:
            center 48%;
        background-size:
            110%;
    }

    100% {
        background-position:
            center center;
        background-size:
            105%;
    }
}

/* PAGE LOGO INTERNA */

.page-logo {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.page-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.main-content {
    flex: 1;
}

/* ========================================================== */ 
/* Header Páginas internas                                    */ 
/* ========================================================== */

.page-galeria .app-header,
.page-videos .app-header,
.page-plantas .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 1000;
}

.page-home .app-header {
    position: relative;
}
.page-home .app-header {
    position: static;
}

.page-home .app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 40px;
    height: auto;
    z-index: 999;
}

body.page-home {
    overflow-x: hidden;
    overflow-y: auto;
}

.page-home .home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================================== */ 
/* Galeria                                                    */ 
/* ========================================================== */


.gallery-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    padding-top: 120px;
    box-sizing: border-box;
}

.gallery-content {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/*
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

.gallery-image-wrapper {
    width: min(
        88vw,
        1200px
    );
    height: 68vh;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* cover */
    display: block;
    border-radius: 12px;
    box-shadow:
        0 20px 60px
        rgba(0,0,0,.35);

    transition:
        opacity .18s ease,
        transform .18s ease;

    will-change:
        opacity,
        transform;
}

.gallery-changing {
    opacity: .75;
    transform:
        scale(.995);
    transition:
        opacity .25s ease,
        transform .25s ease;
}

/*
.gallery-info {
    flex-shrink: 0;
    padding:
        20px
        80px
        30px;
} 
*/

.gallery-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
}


.gallery-title {
    margin: 0 0 8px;
    color: #FFF;
    text-align: center;
    text-transform: uppercase;
    font-family:
        var(--font-display);
    font-size: clamp(
        1.2rem,
        2vw,
        2.2rem
    );
    line-height: 1.1;
}


.gallery-description {
    margin: 0 0 12px;
    color:
        rgba(
            255,
            255,
            255,
            .85
        );
    text-align: center;
    font-size: clamp(
        .8rem,
        1vw,
        1rem
    );
    line-height: 1.4;
    font-family:
       var(--font-display);
    text-transform: uppercase;
}

.gallery-prev,
.gallery-next {
    position: fixed;
    top: 50%;
    transform:
        translateY(-50%);
    z-index: 100;
}

.gallery-prev {
    left: 60px;
}

.gallery-next {
    right: 60px;

}

.gallery-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.gallery-fullscreen {
    position: fixed;
    right: 60px;
    bottom: 140px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background:
        rgba(
            0,
            0,
            0,
            .35
        );

    backdrop-filter:
        blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        transform .2s ease,
        background .2s ease,
        opacity .2s ease;

    z-index: 200;
}

.gallery-fullscreen:hover {
    transform:
        scale(1.08);

    background:
        rgba(
            0,
            0,
            0,
            .55
        );
}

.gallery-fullscreen:active {
    transform:
        scale(.95);
}

.gallery-fullscreen svg {
    width: 22px;
    height: 22px;
}

/* Mobile Fullscreen Fallback */
.mobile-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-fullscreen .gallery-image {

    width: 100%;

    height: 100%;

    object-fit: contain;
}

.mobile-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Botão fechar quando estiver no fallback mobile */
.mobile-fullscreen::after {
    content: '✕';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background:
        rgba(
            0,
            0,
            0,
            .5
        );

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 100000;
}

/* Botão fechar quando em tela cheia no mobile */
.gallery-close-fullscreen {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background:
        rgba(
            0,
            0,
            0,
            .55
        );

    color: #fff;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 999999999;
}

.gallery-close-fullscreen.visible {
    display: flex;
}

.mobile-fullscreen
.gallery-close-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background:
        rgba(255,255,255,.35);
    transition:
        all .25s ease;
}

.gallery-dot.active {
    background:
        #c4d66b;
    transform:
        scale(1.4);
}

/*
.gallery-counter {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: .08em;
    opacity: .7;
    text-align: center;
}
*/

.gallery-counter {
    display: block;
    margin-top: 20px;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Inter', Helvetica, Arial, sans serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    color:
        rgba(
            255,
            255,
            255,
            .75
        );
}

/* Gallery Loader */
.gallery-image-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        rgba(
            0,
            0,
            0,
            .25
        );

    backdrop-filter:
        blur(2px);

    opacity: 0;
    visibility: hidden;
    transition:
        opacity .2s ease;
    z-index: 999;
}

.gallery-image-loader.active {
    opacity: 1;
    visibility: visible;
}

.gallery-image-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border:
        3px solid
        rgba(
            255,
            255,
            255,
            .15
        );
    border-top-color:
        rgba(
            255,
            255,
            255,
            .9
        );
    animation:
        gallerySpin
        .8s linear infinite;
}

@keyframes gallerySpin {
    from {
        transform:
            rotate(0deg);
    }
    to {
        transform:
            rotate(360deg);
    }
}

.gallery-overlay {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition:
        opacity .25s ease;
}

.gallery-overlay.visible {
    opacity: 1;
}

.gallery-overlay.visible {
    opacity: 1;
}

.gallery-image:fullscreen + .gallery-overlay {
    opacity: 1;
}

.gallery-overlay.visible {
    opacity: 1;
}

.gallery-overlay-title,
.gallery-overlay-description {
    width: fit-content;
    max-width: 70%;
    padding:
        10px 16px;

    border-radius: 14px;
    backdrop-filter:
        blur(12px);

    background:
        linear-gradient(
            135deg,
            #02130d 0%,
            #17332c 100%
        );

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .20
        );
    color: #fff;
}

.gallery-overlay-title {
    width: fit-content;
    max-width: 75%;
    margin: 0;
    padding: 12px 18px;
    border-radius: 14px;
    color: #fff;
    font-family:
        var(--font-display);
    font-size:24px;
    font-weight:600;
    text-transform:uppercase;
    line-height: 1.1;
    background:
        linear-gradient(
            135deg,
            rgba(11,22,20,.95) 0%,
            rgba(23,43,39,.92) 100%
        );

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .25
        );

    backdrop-filter:
        blur(10px);
}

.gallery-overlay-description {
    width: fit-content;
    max-width: 75%;
    margin: 0;
    padding: 10px 18px;
    border-radius: 14px;
    color:rgba(255,255,255,.95);
    font-family:
        var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.1;
    background:
        linear-gradient(
            135deg,
            rgba(11,22,20,.88) 0%,
            rgba(23,43,39,.85) 100%
        );

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .20
        );

    backdrop-filter:
        blur(10px);
}

.gallery-overlay-title,
.gallery-overlay-description {
    width: fit-content;
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 14px;
    color: #fff;
    background:
        rgba(
            0,
            0,
            0,
            .45
        );

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 4px 20px
        rgba(
            0,
            0,
            0,
            .25
        );
}


/* RESPONSIVE */

@media (max-width: 1800px)
{
    .menu-grid {
        gap: 20px;
    }

    .menu-card {
        aspect-ratio:
            2.2 / 1;
    }
}

@media (max-width: 1024px)
{
    .menu-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }
}

@media (max-width: 768px)
{
    .menu-grid {
        grid-template-columns:
            1fr;
    }

    .gallery-dots {
        gap: 5px;
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: center;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }

        .home-container {
        min-height: auto;
        padding: 120px 20px 120px;
    }

    .menu-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .menu-card {
        min-height: 140px;
    }

    .page-home .app-footer {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }
    
}


@media (orientation: landscape) and (max-width: 1024px) {
    .gallery-page {
        display: flex;
        flex-direction: row;
    }

    .gallery-content {
        flex: 1;
        min-height: 100vh;
    }

    .gallery-image-wrapper {
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
        max-height: 100vh;
    }
}

@media (orientation: landscape) and (max-width: 1024px) {
    .gallery-image {
        aspect-ratio: auto;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .gallery-page {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
    }

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

    .gallery-image-wrapper {
        width: 100%;
        height: calc(100vh - 220px);
        max-height: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-image {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .gallery-info {
        position: static;
        background: none;
        backdrop-filter: none;
        max-width: none;
        width: 100%;
        padding: 12px 20px 0;
        text-align: center;
    }

    .gallery-title {
        text-align: center;
        font-size:
            clamp(
                1.1rem,
                4vw,
                1.5rem
            );
    }

    .gallery-description {
        text-align: center;
        font-size: .85rem;
    }

}