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

html {
    scroll-behavior: smooth;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
    font-family: var(--font-sans);
    color: var(--color-slate-800);
    background-color: var(--color-slate-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-slate-900);
    line-height: 1.25;
}

/* Common Layout Containers (Responsive up to 4K) */
.header-container,
.footer-container,
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 80rem; /* 1280px */
}

@media (min-width: 640px) {
    .header-container, .footer-container, .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .header-container, .footer-container, .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1920px) {
    .header-container, .footer-container, .container {
        max-width: 110rem; /* 1760px */
    }
}
@media (min-width: 2560px) {
    .header-container, .footer-container, .container {
        max-width: 150rem; /* 2400px */
    }
    body {
        font-size: 1.0625rem;
    }
}
@media (min-width: 3840px) {
    .header-container, .footer-container, .container {
        max-width: 220rem; /* 3520px */
    }
    body {
        font-size: 1.1875rem;
    }
}

/* Sticky Main Header */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-slate-100);
    box-shadow: var(--shadow-sm);
    height: 5rem;
    display: flex;
    align-items: center;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Brand Logo Group */
.header-logo-container {
    display: flex;
    align-items: center;
}

.brand-logo-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 850;
    font-size: 1.35rem;
    color: var(--color-brand-navy);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-brand-teal);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-left: 2px;
}

.brand-subtitle {
    font-size: 9px;
    color: var(--color-slate-400);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* Desktop Navigation */
.desktop-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-navigation {
        display: block;
    }
}

.nav-menu-list {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

.nav-menu-list li a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-slate-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu-list li a:hover,
.nav-menu-list li a.active {
    color: var(--color-brand-teal);
}

/* Header Action buttons */
.desktop-actions {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .desktop-actions {
        display: flex;
    }
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-slate-200);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-700);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--color-brand-teal);
    color: var(--color-brand-teal);
}

.icon-globe {
    width: 0.875rem;
    height: 0.875rem;
}

.caret-down {
    font-size: 8px;
    color: var(--color-slate-400);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.5rem 0;
    width: 6rem;
    display: none;
    z-index: 100;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    display: block;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-700);
    text-transform: uppercase;
}

.lang-dropdown li a:hover {
    background-color: var(--color-brand-bg);
    color: var(--color-brand-teal);
}

.search-toggle {
    background: none;
    border: none;
    color: var(--color-slate-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
}

.search-toggle:hover {
    color: var(--color-brand-teal);
}

.icon-search {
    width: 1.125rem;
    height: 1.125rem;
}

.btn-contact-header {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-contact-header:hover {
    background-color: var(--color-brand-teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.icon-phone {
    width: 0.875rem;
    height: 0.875rem;
    fill: currentColor;
}

/* Mobile Menu Button */
.mobile-menu-trigger-container {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu-trigger-container {
        display: none;
    }
}

.mobile-toggle-btn {
    background: none;
    border: none;
    color: var(--color-slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.icon-menu-open,
.icon-menu-close {
    width: 1.5rem;
    height: 1.5rem;
}

/* Search Overlay Popup Panel */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-container {
    width: 100%;
    max-width: 36rem;
    position: relative;
}

.search-form-popup {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-input-field {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.25rem;
    color: var(--color-white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input-field:focus {
    border-color: var(--color-brand-teal);
    background-color: rgba(255, 255, 255, 0.08);
}

.search-submit-btn {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    border: none;
    padding: 0 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit-btn:hover {
    background-color: var(--color-brand-teal-dark);
}

.close-search-btn {
    position: absolute;
    top: -3.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.close-search-btn:hover {
    color: var(--color-brand-teal);
}

/* Mobile Sidebar Drawer Navigation */
.mobile-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 24rem;
    background-color: var(--color-white);
    box-shadow: var(--shadow-2xl);
    z-index: 150;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
}

.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-slate-100);
}

.sidebar-brand .brand-title {
    font-size: 1.25rem;
}

.close-sidebar-btn-node {
    background: none;
    border: none;
    color: var(--color-slate-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.close-sidebar-btn-node:hover {
    background-color: var(--color-slate-50);
}

.icon-close {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    margin-top: 2rem;
    flex-grow: 1;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-list a {
    display: block;
    color: var(--color-slate-700);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-slate-50);
}

.mobile-nav-list a:hover {
    color: var(--color-brand-teal);
    padding-left: 0.25rem;
}

.sidebar-bottom {
    border-top: 1px solid var(--color-slate-100);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.lang-label {
    color: var(--color-slate-500);
    font-weight: 500;
    font-size: 0.875rem;
}

.mobile-lang-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.mobile-lang-list li a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-700);
}

.current-lang {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-700);
}

.btn-contact-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    width: 100%;
    padding: 0.875rem 0;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.btn-contact-mobile:hover {
    background-color: var(--color-brand-navy-light);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 140;
}

/* Javascript helper classes */
.hidden { display: none !important; }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }


/* Standard Footer */
.main-footer {
    background-color: var(--color-slate-950);
    color: var(--color-slate-400);
    font-size: 0.875rem;
    border-top: 1px solid var(--color-slate-900);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .footer-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 3rem;
    }
}

.col-span-3 {
    grid-column: span 12 / span 12;
}
@media (min-width: 1024px) { .col-span-3 { grid-column: span 3 / span 3; } }

.col-span-2 {
    grid-column: span 12 / span 12;
}
@media (min-width: 640px) { .col-span-2 { grid-column: span 1 / span 1; } }
@media (min-width: 1024px) { .col-span-2 { grid-column: span 2 / span 2; } }

.footer-logo-wrap {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}

.footer-logo-sub {
    font-size: 10px;
    color: var(--color-slate-500);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-top: 0.5rem;
}

.footer-brand-desc {
    font-size: 0.75rem;
    color: var(--color-slate-500);
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background-color: var(--color-slate-900);
    color: var(--color-slate-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--color-brand-teal);
    color: var(--color-brand-navy);
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 2px solid var(--color-brand-teal);
    padding-left: 0.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.footer-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-menu-links a {
    font-size: 0.75rem;
    color: var(--color-slate-500);
}

.footer-menu-links a:hover {
    color: var(--color-brand-teal);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: var(--color-slate-500);
}

.detail-icon {
    color: var(--color-brand-teal);
    flex-shrink: 0;
}

.detail-row p {
    line-height: 1.5;
}

.zalo-qr-block {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-slate-900);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zalo-qr-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-qrcode {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-slate-950);
}

.zalo-text {
    text-align: left;
}

.zalo-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.zalo-desc {
    font-size: 9px;
    color: var(--color-slate-500);
    margin-top: 2px;
    line-height: 1.3;
}

.footer-bottom-wrap {
    margin-top: 4rem;
    border-top: 1px solid var(--color-slate-900);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-wrap {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright-text {
    font-size: 0.75rem;
    color: var(--color-slate-600);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-links a {
    font-size: 0.75rem;
    color: var(--color-slate-600);
}

.legal-links a:hover {
    color: var(--color-slate-400);
}

.bullet-dot {
    width: 3px;
    height: 3px;
    background-color: var(--color-slate-800);
    border-radius: var(--radius-full);
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-15%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}
.animate-bounce {
    animation: bounce 1.2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(1.15);
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.page-default {
    background-color: var(--color-slate-50);
    min-height: calc(100vh - 12rem);
}

.page-container {
    width: 100%;
}
