/* Define font faces using provided TTF resources */
@font-face {
    font-family: 'Gotham Black';
    src: url('TPMG WEBSITE PAGE UPDATE/FONTS/TPMGTOWER.COM/GOTHAM-BLACK.TTF') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Book';
    src: url('TPMG WEBSITE PAGE UPDATE/FONTS/BY TP MORAL GROUP/GOTHAMBOOK_0.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bell MT Bold';
    src: url('TPMG WEBSITE PAGE UPDATE/FONTS/UNDER CONSTRUCTION/BELLB.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Bell MT';
    src: url('TPMG WEBSITE PAGE UPDATE/FONTS/Copyright © 2025 tpmgtower.com - All Rights Reserved/BELL.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base Reset & Variables */
:root {
    --primary-color: #0b2240;
    /* Navy blue */
    --text-dark: #001c3d;
    --text-muted: #576574;
    --bg-light: #f5f6f8;
    /* Light gray background matching mockup */
    --transition-speed: 0.3s;
    /* Điểm neo ngang của ảnh nền hero, tính theo vị trí thực tế
       của tòa nhà trong ảnh gốc (~35% từ trái) và đã hiệu chỉnh
       theo công thức background-size:cover để tòa nhà vẫn nằm
       giữa khung hình ngay cả khi ảnh bị crop mạnh trên tablet/mobile.
       Chỉnh số này nếu vẫn thấy lệch: tăng % nếu tòa nhà đang lệch
       trái, giảm % nếu đang lệch phải. */
    --hero-focus-x: 22%;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Gotham Book', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Page Wrapper */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 380px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('TPMG WEBSITE PAGE UPDATE/IMAGE/TPMG-Tower-\(5\)-Recovered.jpg');
    background-size: cover;
    background-position: var(--hero-focus-x) 15%;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 6s ease-out;
}

.hero-section:hover .hero-background {
    transform: scale(1.02);
}

/* Under Construction Banner overlay (positioned higher up in the bottom half) */
.construction-banner {
    position: absolute;
    bottom: 20px;
    right: 0;
    z-index: 3;
    width: 100%;
    background: linear-gradient(90deg, #001022 0%, rgba(0, 28, 61, 0.00) 100%);
    padding: 1.5rem 35px;
    text-align: left;
    animation: slideInLeftToRight 1.2s ease-out;
}

.construction-banner h1 {
    font-family: 'Bell MT Bold', serif;
    color: #ffffff;
    font-size: 2.75rem;
    letter-spacing: 0.18em;
    font-weight: normal;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Watermark Text (positioned at the bottom-right corner) */
.watermark {
    position: absolute;
    bottom: 450px;
    right: 35px;
    z-index: 3;
    font-family: 'Gotham Black', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Brand Section */
.brand-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 0rem 1.5rem 6rem;
    width: 100%;
    z-index: 2;
}

.brand-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.brand-content .title {
    font-family: 'Gotham Black', sans-serif;
    font-size: 4.2rem;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.brand-content .subtitle {
    font-family: 'Gotham Book', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.logo-container {
    display: inline-block;
    padding: 0px 24px;
    transition: transform var(--transition-speed);
}

.logo-container:hover {
    transform: scale(1.03);
}

.brand-logo {
    max-width: 190px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Footer style matching design specs - left aligned */
.footer {
    width: 100%;
    text-align: left;
    padding: 2.5rem 35px 2rem;
    background-color: var(--bg-light);
    z-index: 4;
}

.footer p {
    font-family: 'Bell MT', serif;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    /* Dark gray for readability on light background */
}

/* Animations */
@keyframes slideInLeftToRight {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
   Breakpoints: Tablet ≤1024px · Mobile ≤768px · Small Mobile ≤480px
   ============================================================ */

/* ------------------------------------------------------------
   TABLET (iPad, Surface, tablet ngang/dọc) — 769px to 1024px
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-section {
        height: 55vh;
        min-height: 360px;
    }

    .construction-banner {
        padding: 1.4rem 28px;
    }

    .construction-banner h1 {
        font-size: 2.3rem;
        letter-spacing: 0.16em;
    }

    .watermark {
        right: 28px;
        bottom: 370px;
        font-size: 1.4rem;
    }

    .brand-section {
        padding: 1.5rem 1.5rem 5.5rem;
    }

    .brand-content .title {
        font-size: 3.2rem;
    }

    .brand-content .subtitle {
        font-size: 1.5rem;
    }

    .brand-logo {
        max-width: 170px;
    }
}

/* ------------------------------------------------------------
   MOBILE (điện thoại lớn/nhỏ nói chung) — up to 768px
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 320px;
    }

    .construction-banner {
        padding: 1.3rem 20px;
    }

    .construction-banner h1 {
        font-size: 1.8rem;
        letter-spacing: 0.12em;
    }

    .watermark {
        right: 20px;
        bottom: 345px;
        font-size: 0.8rem;
    }

    .brand-section {
        padding: 2.5rem 1rem 5rem;
    }

    .brand-content .title {
        font-size: 1.7rem;
    }

    .brand-content .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
    }

    .brand-logo {
        max-width: 140px;
    }
}

/* ------------------------------------------------------------
   SMALL MOBILE (iPhone SE và các máy màn hình nhỏ) — up to 480px
   ------------------------------------------------------------ */
@media (max-width: 480px) {
    .hero-section {
        height: 45vh;
        min-height: 280px;
    }

    .construction-banner h1 {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }

    .watermark {
        font-size: 0.75rem;
        bottom: 310px;
    }

    .brand-content .title {
        font-size: 1.45rem;
    }

    .brand-content .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .brand-logo {
        max-width: 120px;
    }

    .footer {
        padding-left: 20px;
    }

    .footer p {
        font-size: 0.65rem;
    }
}

/* ------------------------------------------------------------
   EXTRA SMALL MOBILE (máy rất nhỏ / cũ) — up to 360px
   ------------------------------------------------------------ */
@media (max-width: 360px) {
    .construction-banner {
        padding: 1rem 16px;
    }

    .construction-banner h1 {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }

    .watermark {
        right: 16px;
        bottom: 310px;
        font-size: 0.65rem;
    }

    .brand-content .title {
        font-size: 1.2rem;
    }

    .brand-logo {
        max-width: 100px;
    }
}

/* ------------------------------------------------------------
   MOBILE LANDSCAPE (điện thoại xoay ngang, viewport thấp)
   Tránh banner/watermark chồng lên nhau khi chiều cao quá thấp
   ------------------------------------------------------------ */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
    .hero-section {
        height: 78vh;
        min-height: 220px;
    }

    .construction-banner {
        bottom: 15px;
        padding: 0.8rem 20px;
    }

    .construction-banner h1 {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }

    .watermark {
        bottom: 55px;
        right: 20px;
        font-size: 0.75rem;
    }

    .brand-section {
        padding: 1rem 1rem 1.5rem;
    }

    .brand-content .title {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
    }

    .brand-content .subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .brand-logo {
        max-width: 90px;
    }

    .footer {
        padding: 0.8rem 20px;
    }
}

/* ------------------------------------------------------------
   MÀN HÌNH CAO (desktop/laptop tỉ lệ dọc lớn, ví dụ 16:10, 4K)
   Chỉ áp dụng ở độ rộng desktop để không đụng breakpoint tablet
   ------------------------------------------------------------ */
@media (min-width: 1025px) and (min-height: 1000px) {
    .hero-section {
        height: 65vh;
    }
}