/* ================================================================
 * HABITAT GRAND – COMING SOON FULL SCREEN (100DVH)
 * Pixel-Perfect Replica from Figma Design (1920x1080)
 * ================================================================ */

@charset "UTF-8";

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #152B1F;
    --color-gold: #FFDBB3;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Fullscreen Container ─── */
.coming-soon {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: relative;
    background-color: var(--color-bg);
    overflow: hidden;
}

/* ─── 1. Logo Habitat Grand (Top: 67px, W: 290px, H: 235px in 1920x1080) ─── */
.coming-soon__logo-wrap {
    position: absolute;
    top: 6.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 15.08%;
    max-width: 290px;
    height: 21.79%;
    max-height: 235px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.coming-soon__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ─── 2. Title & Description (Top: 348px, W: 1313px, H: 135px in 1920x1080) ─── */
.coming-soon__title-wrap {
    position: absolute;
    top: 32.22%;
    left: 50%;
    transform: translateX(-50%);
    width: 68.38%;
    max-width: 1313px;
    height: 12.49%;
    max-height: 135px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.coming-soon__title-picture {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon__title-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ─── 3. Dải Nền Gradient Đồng (Y: 820px, H: 260px in 1920x1080) ─── */
.coming-soon__gradient-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24.07%;
    background: linear-gradient(90deg, 
        rgba(107, 77, 48, 1) 0%, 
        rgba(111, 81, 52, 1) 11%, 
        rgba(124, 92, 63, 1) 21%, 
        rgba(144, 112, 81, 1) 33%, 
        rgba(173, 139, 106, 1) 44%, 
        rgba(193, 157, 124, 1) 50%, 
        rgba(173, 139, 106, 1) 56%, 
        rgba(144, 112, 81, 1) 67%, 
        rgba(124, 92, 63, 1) 79%, 
        rgba(111, 81, 52, 1) 90%, 
        rgba(107, 77, 48, 1) 100%
    );
    z-index: 1;
}

/* ─── 4. Tòa Nhà Ở Giữa (Top: 507px, W: 719px, H: 719px, Đáy lún 146px) ─── */
.coming-soon__part-center {
    position: absolute;
    top: 46.94%;
    left: 50%;
    transform: translateX(-50%);
    width: 37.45%;
    max-width: 719px;
    height: 66.57%;
    max-height: 719px;
    z-index: 2;
    pointer-events: none;
}

.coming-soon__building-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    filter: drop-shadow(0 -10px 24px rgba(0, 0, 0, 0.35));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.coming-soon__building-img:hover {
    transform: scale(1.02);
}

/* ─── 5. Bên Trái: Đối Tác VSIP & Sembcorp (X: 118px, Y: 880px, W: 470px, H: 140px) ─── */
.coming-soon__part-left {
    position: absolute;
    left: 6.15%;
    bottom: 5.5%;
    width: 24.48%;
    max-width: 470px;
    height: 12.96%;
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 4;
}

.coming-soon__partners-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* ─── 6. Bên Phải: Hotline Desktop (X: 1445px, Y: 893px, W: 335px, H: 61px) ─── */
.coming-soon__part-right {
    position: absolute;
    right: 7.29%;
    bottom: 5.5%;
    width: 17.45%;
    max-width: 335px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.coming-soon__hotline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.coming-soon__hotline-label {
    font-size: clamp(14px, 1.46vw, 28px);
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 0.04em;
    line-height: 1;
}

.coming-soon__hotline-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: clamp(40px, 5.65vh, 61px);
    border: 2px solid var(--color-gold);
    border-radius: 9999px;
    font-size: clamp(18px, 2.29vw, 44px);
    font-weight: 400;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.06em;
    background-color: transparent;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon__hotline-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 219, 179, 0.35);
}

/* Mobile hotline hidden by default on desktop */
.coming-soon__hotline--mobile {
    display: none;
}

/* ─── Mobile Media Query (Figma Frame 290:644 Exact Replica) ─── */
@media (max-width: 820px) {
    .coming-soon__logo-wrap {
        top: 3.66%;
        width: 36.7%;
        max-width: 148px;
        height: 13.73%;
        max-height: 120px;
    }

    .coming-soon__title-wrap {
        top: 22.5%;
        width: 82%;
        max-width: 330px;
        height: 13.2%;
        max-height: 115px;
    }

    .coming-soon__hotline--mobile {
        display: flex;
        position: absolute;
        top: 40.5%;
        left: 50%;
        transform: translateX(-50%);
        width: 54%;
        max-width: 215px;
        z-index: 10;
        gap: 5px;
    }

    .coming-soon__hotline--mobile .coming-soon__hotline-label {
        font-size: clamp(12px, 3.2vw, 15px);
    }

    .coming-soon__hotline--mobile .coming-soon__hotline-btn {
        height: clamp(34px, 4.5vh, 40px);
        font-size: clamp(16px, 4.4vw, 20px);
        padding: 4px 20px;
    }

    .coming-soon__part-right {
        display: none;
    }

    .coming-soon__part-center {
        top: 51.5%;
        bottom: auto;
        width: 75.6%;
        max-width: 310px;
        height: 35.5%;
        max-height: 310px;
    }

    .coming-soon__gradient-strip {
        height: 23%;
    }

    .coming-soon__part-left {
        left: 50%;
        transform: translateX(-50%);
        bottom: 3.8%;
        width: 48.4%;
        max-width: 195px;
        height: 7%;
        max-height: 60px;
        justify-content: center;
    }

    .coming-soon__partners-img {
        object-position: center;
    }
}

/* ==========================================================================
   Cổng mật khẩu (inc/site-gate.php) – trang nhập mật khẩu xem site
   ========================================================================== */
.habitat-gate-page {
    margin: 0;
    background: #152a1f;
}

.habitat-gate {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 16px;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #3a2a1a;
}

.habitat-gate__logo {
    width: 145px;
    height: auto;
}

.habitat-gate__card {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid #e8d9c5;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(60, 35, 15, 0.25);
}

.habitat-gate__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.habitat-gate__desc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #6b5a48;
}

.habitat-gate__error {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 14px;
    color: #9b1c1c;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
}

.habitat-gate__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.habitat-gate__input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 14px;
    font-size: 16px;
    color: inherit;
    background: #fff;
    border: 1px solid #cdb89c;
    border-radius: 8px;
}

.habitat-gate__input:focus {
    outline: 2px solid #b8895b;
    outline-offset: 1px;
}

.habitat-gate__button {
    width: 100%;
    height: 46px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #b8895b;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.habitat-gate__button:hover {
    background: #a3774b;
}

.habitat-gate__back {
    font-size: 14px;
    color: #f3d9b8;
    text-decoration: none;
}

.habitat-gate__back:hover {
    text-decoration: underline;
}
