/* ==========================================================================
   BRAND & DESIGN SYSTEM (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-light: #F9F6F2; /* Trắng ngà - Warm Modern */
    --bg-dark: #1A1A1A;  /* Đen nhám - Footer/Dark sections */
    --accent-gold: #C5A059; /* Vàng sâm panh */
    --accent-brown: #4A3728; /* Nâu cà phê */
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing (Generous Whitespace) */
    --spacing-section: 120px;
    --spacing-container: 5%;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

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

/* ==========================================================================
   UTILITIES & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.text-center {
    text-align: center;
}

.gold-text {
    color: var(--accent-gold);
}

/* Micro-interactions: Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button / CTA */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    outline: none;
}

.btn-gold {
    background: linear-gradient(135deg, #C5A059 0%, #E8D099 50%, #C5A059 100%);
    background-size: 200% auto;
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.brand-logo span {
    color: var(--accent-gold);
    font-size: 0.8rem;
    display: block;
    font-family: var(--font-body);
    letter-spacing: 3px;
    font-weight: 300;
}

/* Thêm Navigation Menu */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-menu a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.contact-hotline {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    padding: 8px 24px;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

/* Giống Sola: <button type="button" data-cta="header-cta"> — không dùng <a href="#..."> để tránh cuộn trang */
button.contact-hotline {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-body);
    background: transparent;
    cursor: pointer;
    line-height: inherit;
}

.contact-hotline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2500&q=80'); /* Luxury architecture */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    transform: scale(1.05);
    animation: kenburns 20s ease-out infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    color: var(--text-light);
    font-size: 5rem;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   STORY / INTRO SECTION (Refined Editorial Layout)
   ========================================================================== */
.story-section {
    background-color: var(--bg-light);
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-left {
    position: relative;
}

.accent-line {
    width: 80px;
    height: 2px;
    background-color: var(--accent-gold);
    margin-bottom: 30px;
}

.story-left h2 {
    font-size: 3.5rem;
    color: var(--accent-brown);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
}

.story-right {
    border-left: 1px solid rgba(74, 55, 40, 0.15);
    padding-left: 50px;
}

.story-right .lead-text {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.story-right p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-signature {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==========================================================================
   BENTO GRID USPs (The Privileges)
   ========================================================================== */
.privileges-section {
    background-color: var(--bg-light);
    padding-bottom: var(--spacing-section);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 55, 40, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Span across columns for emphasis */
.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
}

.bento-item:nth-child(2) {
    grid-column: span 2;
}

.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26,26,26,0.1) 0%, rgba(26,26,26,0.8) 100%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item:nth-child(1) .bento-content h3 {
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.bento-item:nth-child(1) .bento-content p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.bento-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.bento-content h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-brown);
}

/* ==========================================================================
   LOCATION & CONNECTIVITY
   ========================================================================== */
.location-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.location-content {
    flex: 1;
    padding-right: 40px;
}

.location-content h2 {
    color: var(--accent-gold);
    font-size: 2.5rem;
}

.location-content p {
    color: rgba(255,255,255,0.7);
}

.location-list {
    list-style: none;
    margin-top: 40px;
}

.location-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-time {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-right: 20px;
    min-width: 80px;
}

.location-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

/* ==========================================================================
   GALLERY & VIDEO SECTION (Editorial Grid)
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-light);
    padding-bottom: var(--spacing-section);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    group: gallery;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Span classes for asymmetrical grid */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* Play Button icon for Video item */
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 2rem;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .play-btn {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox (Vanilla JS) */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,26,26,0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-video-wrap {
    width: min(90vw, 1200px);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-body);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   CONTACT & FOOTER (Dark Mode, 2 Columns)
   ========================================================================== */
#register {
    scroll-margin-top: 100px;
}

.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.08; /* Tạo texture chìm, không làm rối chữ */
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 3.5rem;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 20px;
}

.contact-info .lead-text {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 90%;
}

.contact-details {
    border-left: 2px solid var(--accent-gold);
    padding-left: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.contact-item .value {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}

.value.gold-text {
    color: var(--accent-gold);
}

.form-container {
    background: rgba(255,255,255,0.03);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.form-container h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.form-container p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

.success-msg {
    display: none;
    color: var(--accent-gold); /* Màu vàng sang trọng */
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

.main-footer {
    background-color: #111111;
    padding: 30px 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    margin-left: 15px;
    font-weight: 400;
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .main-nav {
        display: none; /* Ẩn menu trên tablet/mobile để giữ giao diện tối giản */
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-item:nth-child(1) {
        grid-column: span 2;
    }
    .hero-title { font-size: 4rem; }
    .story-grid { gap: 40px; }
    .story-left h2 { font-size: 3rem; }
    .contact-grid { gap: 40px; }
    .contact-info h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .location-wrapper {
        flex-direction: column;
    }
    .location-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-item {
        min-height: 250px;
    }
    .bento-item:nth-child(1), .bento-item:nth-child(2) {
        grid-column: span 1;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .hero-title { font-size: 3rem; }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story-right {
        border-left: none;
        border-top: 1px solid rgba(74, 55, 40, 0.15);
        padding-left: 0;
        padding-top: 40px;
    }
    .story-left h2 { font-size: 2.5rem; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-logo span {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Lead API (thuvien/script.js): .hidden từ Tailwind bundle */
#bottom-phone-error.hidden,
#bottom-success.hidden {
    display: none !important;
}

#bottom-success:not(.hidden) {
    display: block;
    color: var(--accent-gold);
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

