/* 
   Khách Sạn Xanh - Vũ Quang, Hà Tĩnh 
   Unified Design System 
*/

:root {
    --primary-green: #2d7a4f;
    --secondary-green: #52b788;
    --light-green: #95d5b2;
    --dark-green: #1b4332;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f4f7f5;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

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

/* ─── Base Animations ─────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── Navigation ──────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    z-index: 1000;
    transition: var(--transition-standard);
    border-bottom: 1px solid rgba(45, 122, 79, 0.08);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bilingual-header {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bilingual-header .vi {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    font-weight: 700;
}

.bilingual-header .en {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-standard);
    position: relative;
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-links li a .vi {
    font-size: 0.92rem;
}

.nav-links li a .lang-en {
    font-size: 0.65rem;
    opacity: 0.55;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-green);
}

/* ─── Hero Content ────────────────────────── */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ─── Sections ────────────────────────────── */
section {
    padding: 6rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    color: var(--dark-green);
    line-height: 1.2;
}

.section-title .vi {
    display: block;
}

.section-title .en {
    display: block;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.05rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Cards & Hover Effects ───────────────── */
.premium-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* ─── Amenities ───────────────────────────── */
.amenities {
    background: var(--bg-light);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.amenity-card {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.amenity-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(45, 122, 79, 0.2));
}

.amenity-card .bilingual-header {
    align-items: center;
}

.amenity-card .bilingual-header .vi {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-green);
}

.amenity-card .bilingual-header .en {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ─── Rooms ───────────────────────────────── */
.rooms {
    background: #fff;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.room-card {
    display: flex;
    flex-direction: column;
}

.room-image {
    height: 230px;
    overflow: hidden;
}

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

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

.room-content {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-content h3 {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.room-content h3 .vi {
    display: block;
}

.room-content h3 .en {
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.room-features {
    list-style: none;
    margin: 1rem 0;
    flex: 1;
}

.room-features li {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.room-features li:last-child {
    border-bottom: none;
}

.room-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'Playfair Display', serif;
}

.book-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    text-decoration: none;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    min-height: 44px;
    justify-content: center;
}

.book-btn .en {
    font-size: 0.7rem;
    opacity: 0.8;
}

.book-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(45, 122, 79, 0.3);
}

/* ─── Gallery ─────────────────────────────── */
.gallery {
    background: var(--bg-light);
}

/* ─── Contact ─────────────────────────────── */
.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition-standard);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1rem;
    color: var(--dark-green);
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 380px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Custom Buttons ──────────────────────── */
.cta-button {
    display: inline-block;
    padding: 1.1rem 2.6rem;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(45, 122, 79, 0.25);
    transition: var(--transition-standard);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 35px rgba(45, 122, 79, 0.35);
}

/* ─── Footer ──────────────────────────────── */
footer {
    background: var(--dark-green);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.footer-col h3 .vi,
.footer-col h3 .en {
    display: block;
}

.footer-col h3 .en {
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(212, 175, 55, 0.7);
    margin-top: 0.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact p a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact p a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-standard);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

.social-link span {
    width: 26px;
    height: 26px;
    background: var(--primary-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Sub-page: Content Areas ─────────────── */
.content-section {
    padding: 4rem 0 6rem;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-green);
    line-height: 1.8;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(45, 122, 79, 0.04), rgba(43, 175, 136, 0.04));
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-green);
}

/* ─── Sub-page: Delicacy Grid ─────────────── */
.delicacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.delicacy-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 220px;
    overflow: hidden;
}

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

.delicacy-card:hover .card-image img {
    transform: scale(1.06);
}

.card-content {
    padding: 1.6rem;
    flex: 1;
}

.card-content h2.vi {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin-bottom: 0.2rem;
}

/* ─── Sub-page: Highlight Section ─────────── */
.highlight-section {
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.highlight-content {
    flex: 1;
}

.highlight-content h2.vi,
.highlight-section h3.vi {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 0.3rem;
}

.highlight-section h3.vi {
    font-size: 1.6rem;
}

.highlight-img {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.highlight-img:hover img {
    transform: scale(1.04);
}

/* ─── Mobile Menu ─────────────────────────── */
.mobile-menu-btn {
    display: none;
    font-size: 1.7rem;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(45, 122, 79, 0.08);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

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

/* ─── Back to Top ─────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(45, 122, 79, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 122, 79, 0.45);
}

/* ─── Accessibility ───────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── Responsive: Tablet ──────────────────── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li a {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.9rem 0.5rem;
        font-size: 1.05rem;
        min-height: 50px;
        width: 100%;
    }

    .nav-links li a .vi {
        font-size: 1.05rem;
    }

    .nav-links li a .lang-en {
        font-size: 0.72rem;
        opacity: 0.5;
    }

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

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

    .map-container {
        height: 300px;
    }

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

    .highlight-section {
        flex-direction: column;
    }
}

/* ─── Responsive: Mobile ──────────────────── */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .book-btn {
        min-height: 44px;
    }

    .nav-container {
        padding: 0.7rem 1.2rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 1.8rem;
    }

    .highlight-section {
        padding: 2rem;
    }

    .content-section {
        padding: 2rem 0 4rem;
    }
}