@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0A0A0A;
    --bg-surface: #121212;
    --bg-surface-elevated: #1E1E1E;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    
    --gold-primary: #C5A059;
    --gold-light: #DFCDA1;
    --gold-dark: #9A7B3E;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

/* Typography Classes */
.heading-1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.heading-3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

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

.subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
    background-color: #0a0a0a;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), url('../Image/using/khong-gian/MGL4403-Pano.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--gold-light);
    margin-bottom: 2rem;
    font-weight: 300;
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Sections Base */
.section {
    padding: 8rem 5%;
    position: relative;
}

.section-bg-alt {
    background-color: var(--bg-surface);
}

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

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

/* Cards */
.card {
    background-color: var(--bg-surface-elevated);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.3);
}

.card p {
    color: var(--text-secondary);
}

/* About Section Specifics */
.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: brightness(0.8);
}

.company-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info p {
    color: var(--gold-light);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Timeline/Roadmap */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background: rgba(197, 160, 89, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

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

.timeline-year {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--gold-primary);
    transition: background-color var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--gold-primary);
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Forms */
.contact-form {
    display: grid;
    gap: 1.5rem;
    background-color: var(--bg-surface-elevated);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    letter-spacing: 0.1em;
}

.footer-slogan {
    color: var(--gold-light);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 5rem 5%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* ===== Shared additions: bilingual blocks, subpages, footer, cookie banner ===== */

/* Long-form bilingual content: blocks marked data-lang are shown for the active <html lang> */
html[lang="vi"] [data-lang="en"],
html[lang="en"] [data-lang="vi"] {
    display: none !important;
}

.nav-links a.active {
    color: var(--gold-primary);
}

/* Subpage header */
.page-hero {
    padding: 11rem 5% 5rem;
    background-image: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95)), url('../Image/using/khong-gian/MGL4403-Pano.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-hero .heading-1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

/* Legal / long-form content */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gold-primary);
    font-size: 1.6rem;
    margin: 3rem 0 1rem;
    scroll-margin-top: 110px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gold-light);
    font-size: 1.2rem;
    margin: 1.75rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 0.85rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-content a,
.link-gold {
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.legal-content a:hover,
.link-gold:hover {
    color: var(--gold-light);
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-toc {
    background-color: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.legal-toc ol {
    margin-bottom: 0;
}

.legal-toc li {
    margin-bottom: 0.35rem;
}

.highlight-box {
    background-color: var(--bg-surface-elevated);
    border-left: 3px solid var(--gold-primary);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

/* Information table (company details, cookie list) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.info-table th,
.info-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-table th {
    color: var(--gold-light);
    font-weight: 500;
    width: 35%;
}

.info-table td {
    color: var(--text-primary);
}

.info-table thead th {
    color: var(--gold-primary);
    width: auto;
    border-bottom-color: rgba(197, 160, 89, 0.3);
}

.table-scroll {
    overflow-x: auto;
}

/* Contact details list */
.contact-list {
    display: grid;
    gap: 1.25rem;
}

.contact-list .label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-list .value {
    color: var(--text-primary);
}

.contact-list a.value:hover {
    color: var(--gold-primary);
}

.map-embed {
    width: 100%;
    height: 420px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    filter: grayscale(0.6) contrast(1.05);
    display: block;
}

.form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-consent input {
    margin-top: 0.3rem;
    accent-color: var(--gold-primary);
}

.form-consent a {
    color: var(--gold-primary);
}

.brand-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.brand-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

/* Footer (multi-column) */
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

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

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-legal-name {
    color: var(--gold-light) !important;
    font-weight: 500;
    letter-spacing: 0.03em;
}

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

.footer-links a,
.footer-links button {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.footer-col-brand .footer-slogan {
    margin-top: 0.5rem;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--bg-surface-elevated);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    z-index: 2000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cookie-banner p a {
    color: var(--gold-primary);
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 10rem 5% 3.5rem;
    }

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

    .brand-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .info-table th {
        border-bottom: none;
        padding-top: 1rem;
    }

    .info-table thead {
        display: none;
    }

    .map-embed {
        height: 320px;
    }

    .cookie-banner .btn {
        flex: 1;
    }
}
