/* ============================================
   TRELLIA COVE — Landing Page Styles
   Tông xanh lá sinh thái + vàng sang trọng
   ============================================ */

/* ---- Scroll Animation Classes (anti-reflow) ---- */
.pre-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---- CSS Variables ---- */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent: #d4a843;
    --accent-light: #e8c777;
    --dark-bg: #1a3c34;
    --dark-bg-2: #0d2620;
    --light-bg: #f5f5f0;
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --text-white: #f0f0f0;
    --border: #dfe6e9;
    --shadow: rgba(0, 0, 0, 0.15);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    font-size: 16px;
    /* Tăng từ 14px → 16px cho người trung niên dễ đọc */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Placeholder Image ---- */
.placeholder-img {
    background: linear-gradient(135deg, #8dd3bb 0%, #52b788 25%, #40916c 50%, #2d6a4f 75%, #1b4332 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    border-radius: 8px;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left a,
.top-bar-right span {
    margin-right: 20px;
    color: var(--text-white);
    transition: color .3s;
}

.top-bar-left a:hover {
    color: var(--accent);
}

.top-bar .icon {
    margin-right: 4px;
}

/* ========== MAIN HEADER ========== */
.main-header {
    background: var(--white);
    padding: 12px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.header-hotline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    white-space: nowrap;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 24px;
    letter-spacing: 0.5px;
    transition: all .3s;
}

.header-hotline:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('images/sectionherio.jpg') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.05) 30%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0.75) 85%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    color: var(--white);
    background: none;
    padding: 0 20px;
    /* Fade-in animation */
    animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-logos {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 2;
}

.hero-logo-dev,
.hero-logo-dist {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0.9;
}

.hero-subtitle-top {
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 88px;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.3);
}

.hero-by {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Hero CTA Buttons */
.hero-cta {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all .3s;
    text-transform: uppercase;
    /* Nút vàng gold chính */
    background: linear-gradient(135deg, #d4a843 0%, #c49630 100%);
    color: #1b4332;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.5);
    text-shadow: none;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.6);
}

.hero-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white) !important;
    opacity: 1 !important;
    transition: all .3s;
}

.footer-social-btn:hover {
    background: var(--accent);
    color: var(--dark-bg-2) !important;
    border-color: var(--accent);
}

/* ========== STICKY SUB NAV ========== */
.sub-nav {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.sub-nav-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    padding: 14px 0;
    border-bottom: 3px solid var(--accent);
}

.sub-nav-links {
    display: flex;
    gap: 0;
}

.sub-nav-links a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    padding: 16px 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all .3s;
    border-bottom: 3px solid transparent;
}

.sub-nav-links a:hover,
.sub-nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ========== REASONS ========== */
.reasons-section {
    background: var(--dark-bg);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.reasons-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" width="100" height="100"/></svg>');
}

.reasons-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.reason-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.reason-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.reason-text {
    padding: 28px;
}

.reason-text h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.reason-text p {
    color: var(--text-white);
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ========== CTA / FORM ========== */
.cta-section {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    padding: 60px 0;
    position: relative;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* --- Promo + Form 2-Column Layout --- */
.cta-promo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.cta-promo-layout .cta-form-wrapper {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.cta-promo-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.cta-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.promo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #d4a843, #e8c777);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
    z-index: 2;
}

.promo-highlight {
    text-align: center;
    color: #c0392b;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(90deg, #fff5f5, #ffeaa7, #fff5f5);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #f1c40f;
}

.promo-highlight strong {
    color: #e74c3c;
    font-weight: 800;
}

.cta-form-wrapper .form-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.cta-form-wrapper p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color .3s;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4a843 0%, #c49630 100%);
    /* Vàng gold CTA nổi bật */
    color: #1b4332;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    transition: all .3s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c49630 0%, #b38520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

/* ========== PRODUCTS ========== */
.products-section {
    padding: 70px 0;
    background: var(--light-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    /* Shadow đậm hơn → premium */
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.product-card-featured {
    border: 2px solid var(--accent);
}

.product-card-featured .product-info h3 {
    color: var(--accent);
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    /* Đậm hơn cho dễ đọc */
    margin-bottom: 14px;
}

.product-info ul {
    margin: 0;
}

.product-info li {
    padding: 6px 0;
    font-size: 16px;
    /* Tăng từ 14 → 16 */
    color: var(--text-dark);
    line-height: 1.6;
}

.btn-product-trigger {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 0;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite ease-in-out;
    margin-top: auto;
    display: block;
}

.btn-product-trigger:hover {
    background-color: var(--accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

.product-card {
    cursor: default;
}

.product-inline-form {
    max-height: 0;
    overflow: hidden;
    background: #f8fbfa;
    padding: 0 24px;
    border-top: 1px solid transparent;
    transition: max-height 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

.product-card.active .product-inline-form {
    max-height: 400px;
    padding: 24px;
    border-color: var(--border);
}

.product-inline-form h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.product-inline-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
}

.product-inline-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.product-inline-form .inline-submit {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* ========== OVERVIEW ========== */
.overview-section {
    padding: 70px 0;
    background: var(--white);
}

.overview-table {
    margin-top: 40px;
}

.overview-table table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    vertical-align: top;
    line-height: 1.7;
}

.overview-table .label {
    font-weight: 700;
    color: var(--primary);
    width: 220px;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.master-plan {
    margin-top: 50px;
    text-align: center;
}

.master-plan-label {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    font-size: 15px;
    font-style: italic;
}

.master-plan-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    cursor: pointer;
    transition: opacity .3s ease, transform .3s;
}

.master-plan-img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ========== POLICY / PAYMENT ========== */
.policy-section {
    padding: 70px 0;
    background: var(--light-bg);
}

.policy-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.policy-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform .3s;
    border-top: 4px solid var(--primary);
}

.policy-card:hover {
    transform: translateY(-4px);
}

.policy-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.policy-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.policy-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.policy-example {
    margin-top: 40px;
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
}

.policy-example h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.policy-table table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}

.policy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.policy-table td:last-child {
    text-align: right;
}

.policy-detail-note {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.policy-schedule-block {
    margin-top: 40px;
}

.policy-schedule-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.policy-schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.policy-image-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform .3s;
}

.policy-image-item:hover {
    transform: translateY(-4px);
}

.policy-schedule-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: opacity .2s;
}

.policy-schedule-img:hover {
    opacity: 0.85;
}

.policy-content-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 95%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ========== DEVELOPER ========== */
.developer-section {
    padding: 70px 0;
    background: var(--white);
}

.developer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.developer-text p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.developer-text ul {
    margin: 12px 0 16px;
}

.developer-text li {
    padding: 6px 0;
    font-size: 14px;
}

.developer-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.developer-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.developer-projects-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.developer-records p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.developer-records li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== LOCATION ========== */
.location-section {
    padding: 70px 0;
    background: var(--light-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.location-text p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.location-infra-title {
    font-weight: 700;
    color: var(--primary);
    margin-top: 20px;
}

.location-text ul {
    margin: 12px 0;
}

.location-text li {
    padding: 6px 0;
    font-size: 14px;
}

.location-map {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .3s ease, transform .3s;
}

.location-map:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ========== AMENITIES ========== */
.amenities-section {
    padding: 70px 0;
    background: var(--white);
}

.amenities-intro {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 8px;
    font-style: italic;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.amenity-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.amenity-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity .3s ease;
}

.amenity-img:hover {
    opacity: 0.85;
}

.amenity-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 20px 8px;
    margin: 0;
}

.amenity-card p {
    padding: 0 20px 20px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== SALES POLICY ========== */
.sales-policy-section {
    padding: 70px 0;
    background: var(--light-bg);
}

.sales-policy-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 30px;
    font-style: italic;
}

.sales-policy-img {
    height: auto;
    max-width: 600px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .3s ease, transform .3s;
}

.sales-policy-img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--dark-bg-2);
    color: var(--text-white);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-col .footer-heading {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col ul li {
    padding: 6px 0;
}

.footer-col a {
    color: var(--text-white);
    opacity: 0.8;
    transition: opacity .3s;
    font-size: 14px;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-logo-placeholder {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13.5px;
    opacity: 0.7;
    font-style: italic;
    line-height: 1.7;
    max-width: 90%;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.5;
}

/* ========== FLOATING BUTTONS ========== */
.floating-buttons {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    transition: all .3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.floating-btn .btn-label {
    display: none;
}

.zalo-btn {
    background: #0068ff;
    color: white;
}

.zalo-btn:hover {
    background: #0050cc;
    transform: scale(1.1);
}

.phone-btn {
    background: var(--primary);
    color: white;
}

.phone-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ========== POPUP ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform .4s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-form {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color .3s;
}

.popup-close:hover {
    color: var(--text-dark);
}

.popup-form .form-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: center;
}

.popup-form p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 145px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(45, 106, 79, 0.85);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .policy-content {
        grid-template-columns: 1fr;
    }

    .developer-content,
    .developer-highlight {
        grid-template-columns: 1fr;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 56px;
        letter-spacing: 6px;
    }
}

@media (max-width: 768px) {

    /* --- Top Bar & Header --- */
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .header-hotline {
        display: none;
    }

    .logo-img {
        height: 32px;
    }

    /* --- Hero --- */
    .hero {
        height: 520px;
    }

    .hero-content {
        bottom: 40px;
        width: 95%;
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: 4px;
    }

    .hero-subtitle-top {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .hero-by {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 80%;
        text-align: center;
    }

    /* --- Sub Nav --- */
    .sub-nav-links {
        display: none;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* --- Grids → single column --- */
    .reasons-grid,
    .products-grid,
    .policy-content,
    .developer-content,
    .developer-highlight,
    .location-content {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* --- Overview Table --- */
    .overview-table .label {
        white-space: normal;
        width: auto;
    }

    .overview-table td {
        display: block;
        padding: 10px 16px;
    }

    .overview-table .label {
        padding-bottom: 2px;
        border-bottom: none;
        font-size: 14px;
    }

    /* --- Form --- */
    .cta-promo-layout {
        grid-template-columns: 1fr;
    }

    .cta-promo-image {
        max-height: 300px;
    }

    .cta-form-wrapper {
        padding: 24px 16px;
    }

    /* --- Floating Buttons --- */
    .floating-buttons {
        right: 12px;
        bottom: 16px;
        gap: 8px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .back-to-top {
        bottom: 130px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* --- Popup --- */
    .popup-form {
        width: 95%;
        padding: 24px 16px;
    }

    .faq-question {
        padding: 16px;
        font-size: 15px;
    }
}

/* ========== FAQ ========== */
.faq-section {
    padding: 70px 0;
    background: var(--white);
}

.faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(45, 106, 79, 0.05);
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.faq-answer p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}