/* Root Variables Default for Mộng Homestay */
:root {
    --primary-color: #8A1521; /* Red Mông */
    --primary-hover: #670F19;
    --bg-light: #FAF5F0; /* Beige soft */
    --bg-white: #FFFFFF;
    --text-dark: #332B2A;
    --text-muted: #6B5E5C;
    --border-color: #EADCD1;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 12px rgba(138, 21, 33, 0.05);
    --shadow-md: 0 8px 32px rgba(138, 21, 33, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

i {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

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

.bg-beige {
    background-color: #F3EAE0;
}

/* Typography Classes */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 21, 33, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition-fast);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm); 
    transition: var(--transition-fast);
}

header.scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    position: relative;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
}

header.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: var(--transition-fast);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Rooms Section */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.room-item {
    display: flex;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.room-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.room-item.reverse {
    flex-direction: row-reverse;
}

.room-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.room-item:hover .room-image img {
    transform: scale(1.05);
}

.room-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-fast);
}

.room-image:hover .room-zoom {
    opacity: 1;
}

.room-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.room-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 30px;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.room-actions {
    display: flex;
    gap: 15px;
}

/* Amenities Section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.amenity-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.amenity-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.amenity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.amenity-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 0 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-info h2 i {
    color: var(--bg-light);
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    opacity: 1;
}

.contact-details a {
    color: var(--bg-light);
    font-weight: 600;
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Lightbox/Popup */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: none;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
    .about-grid, .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .room-item, .room-item.reverse {
        flex-direction: column;
    }
    
    .room-info {
        padding: 30px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links, .header-action {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .about-grid {
        gap: 40px;
    }

    .stats {
        margin-top: 30px;
        gap: 25px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .room-list {
        margin-top: 40px;
        gap: 40px;
    }
    
    .room-info {
        padding: 25px;
    }

    .room-info h3 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .room-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .room-features {
        gap: 12px 20px;
        margin-bottom: 25px;
    }
    
    .room-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding-top: 15px;
    }

    .price {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .room-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .room-actions .btn {
        padding: 12px 10px;
        text-align: center;
        font-size: 0.95rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .amenities-grid {
        margin-top: 40px;
        gap: 20px;
    }

    .amenity-card {
        padding: 30px 20px;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-inner {
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-info h2 {
        font-size: 2.2rem;
    }
}
