:root {
    /* Vàng cổ điển / champagne */
    --gold: #B1863B;
    --gold-light: #D5AE68;
    --gold-dark: #5D421C;
    --gold-mist: rgba(177, 134, 59, 0.24);
    /* Nền ấm */
    --light-bg: #F3ECE1;
    --dark: #E7DAC8;
    --dark2: #D8C7B1;
    --charcoal: #C9B59A;
    --mid: #6B5A45;
    --light: #2A1F14;
    --cream: #FBF6EE;
    --dark-text: #1A1209;
    --rose-dust: rgba(98, 54, 47, 0.11);
    --shadow-soft: 0 30px 82px rgba(45, 31, 17, 0.12);
    --shadow-card: 0 12px 34px rgba(45, 31, 17, 0.11);
    --border-art: rgba(93, 66, 28, 0.26);
    --radius-lg: 18px;
    --radius-md: 12px;
    --display-font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Loại bỏ chớp viền xám/xanh mặc định khi bấm nút trên điện thoại */
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* Lớp grain nhẹ — cảm giác giấy / phòng triển lãm */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* BUG FIX #5: z-index nâng lên để đảm bảo grain luôn nằm trên nền
       nhưng dưới nội dung (main z-index: 1), tránh mix-blend-mode
       ảnh hưởng section tối bằng cách giới hạn opacity thấp hơn */
    z-index: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

body {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #FDF9F2 0%, #F7EFE4 48%, #F3E7D9 100%);
    color: #1A1209;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

main#main-content,
footer {
    position: relative;
    z-index: 1;
}

/* ===== CURSOR ===== */
.cursor,
.cursor-ring {
    display: none;
}

body.custom-cursor * {
    cursor: none;
}

body.custom-cursor .cursor,
body.custom-cursor .cursor-ring {
    display: block;
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    will-change: transform;
    transform: translateZ(0);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, opacity 0.2s;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@media (max-width: 900px),
(pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor,
    .cursor-ring {
        display: none !important;
    }
}

/* ===== NAV ===== */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(248, 239, 226, 0.32), rgba(248, 239, 226, 0));
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

#mainNav.scrolled {
    background: rgba(243, 231, 213, 0.4);
    border-bottom-color: var(--border-art);
    box-shadow: 0 10px 28px rgba(45, 32, 22, 0.06);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #2A1F14;
    text-decoration: none;
    text-shadow: none;
}

.nav-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.03) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
    transform: scale(2.85);
    transform-origin: left center;
    translate: -14px 0;
    margin-right: 36px;
}

.nav-logo-text {
    font-family: var(--display-font) !important;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 0.9;
    color: #A67C32;
    text-transform: uppercase;
    font-feature-settings: "liga"1, "kern"1, "ss01"1;
}

.nav-logo-text span {
    font-style: inherit;
    font-weight: inherit;
    color: #2A1F14;
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(42, 31, 20, 0.92);
    text-decoration: none;
    opacity: 0.86;
    transition: opacity 0.3s, color 0.3s;
}

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

.nav-cta {
    background: linear-gradient(140deg, #dcbc7d 0%, #b88b3f 100%);
    border: 1px solid rgba(93, 66, 28, 0.34);
    color: #1A1209 !important;
    padding: 10px 22px;
    opacity: 1 !important;
    transition: background 0.3s !important;
    font-weight: 700;
    text-shadow: none;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(93, 66, 28, 0.16);
}

.nav-cta:hover {
    background: linear-gradient(140deg, #e3c98f 0%, #c99b4f 100%) !important;
    color: #1A1209 !important;
}

.nav-links a.nav-link-active {
    color: var(--gold) !important;
    opacity: 1 !important;
    font-weight: 500;
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* BUG FIX #1: Hamburger → dấu ✕
     Cách đơn giản & đúng nhất: bỏ translateY để tự động đưa về 0, sau đó rotate. */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
}

/* ===== MOBILE RESPONSIVE NAV =====
     BUG FIX #2: Gộp toàn bộ nav mobile vào một media query duy nhất (max-width: 900px)
     để tránh trùng lặp và mâu thuẫn giữa 768px và 900px.
     Đặc biệt: .nav-cta mobile cần được định nghĩa ở đây thay vì chỉ trong 768px. */
@media (max-width: 900px) {
    #mainNav {
        padding: 16px 24px;
    }

    .nav-logo {
        font-size: 24px;
        letter-spacing: 2px;
        gap: 8px;
    }

    .nav-brand-logo {
        width: 28px;
        height: 28px;
        transform: scale(2.5);
        translate: -10px 0;
        margin-right: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(212, 193, 167, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links[aria-expanded="true"] {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(93, 66, 28, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
        font-size: 14px;
    }

    /* nav-cta mobile: style riêng áp dụng cho tất cả mobile (không bị mất ở 769-900px) */
    .nav-cta {
        border: none !important;
        background: var(--gold) !important;
        color: #1A1209 !important;
        margin: 12px !important;
        border-radius: 4px;
    }

    .nav-cta:hover {
        background: var(--gold-light) !important;
        color: #1A1209 !important;
    }
}

@media (max-width: 480px) {
    #mainNav {
        padding: 12px 16px;
    }

    .nav-logo {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(var(--hero-blur-px, 1px)) brightness(var(--hero-bg-brightness, 1.02)) saturate(var(--hero-bg-saturation, 1.02));
    transform: scale(1.02);
    /* Chống lẹm viền trắng khi làm nhòe */
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero.has-bg-img::before {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 95% 68% at 80% 16%, rgba(177, 134, 59, 0.3), transparent 58%),
        radial-gradient(ellipse 58% 48% at 10% 88%, rgba(93, 66, 28, 0.2), transparent 50%),
        radial-gradient(ellipse 50% 35% at 50% 100%, var(--rose-dust), transparent 60%),
        linear-gradient(162deg, #E9DCC8 0%, #D8C5AA 45%, #C7B091 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 92% 70% at 50% 18%, rgba(0, 0, 0, calc(var(--hero-overlay-strength, 0.24) * 0.38)), transparent 58%),
        linear-gradient(160deg,
            rgba(24, 16, 10, calc(var(--hero-overlay-strength, 0.24) * 1.04)) 0%,
            rgba(22, 15, 10, calc(var(--hero-overlay-strength, 0.24) * 0.76)) 48%,
            rgba(16, 10, 7, calc(var(--hero-overlay-strength, 0.24) * 1.16)) 100%);
    transition: background 0.35s ease;
    z-index: 0;
}

/* Làm trong suốt bớt màu gradient mặc định nếu có ảnh nền để khoe ảnh */
.hero.has-bg-img .hero-bg {
    background:
        radial-gradient(ellipse 95% 68% at 82% 18%, rgba(255, 236, 207, 0.14), transparent 56%),
        radial-gradient(ellipse 58% 48% at 10% 88%, rgba(92, 66, 30, 0.14), transparent 50%),
        linear-gradient(160deg, rgba(44, 31, 19, 0.36) 0%, rgba(44, 31, 19, 0.18) 44%, rgba(20, 14, 9, 0.46) 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(-12deg,
            transparent,
            transparent 2px,
            rgba(93, 66, 28, 0.05) 2px,
            rgba(93, 66, 28, 0.05) 3px);
    pointer-events: none;
    opacity: calc(0.22 + var(--hero-busy-strength, 0.12));
    z-index: 1;
}

.hero-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    left: 200px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero.has-bg-img .hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -28px;
    right: -24px;
    top: -26px;
    bottom: -26px;
    border-radius: 14px;
    pointer-events: none;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero.has-bg-img .hero-eyebrow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-family: var(--display-font) !important;
    font-size: clamp(52px, 7vw, 86px);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--dark-text);
    margin-bottom: 36px;
    text-shadow: 0 2px 10px rgba(34, 23, 14, 0.08);
}

.hero-title em {
    font-style: normal;
    color: var(--gold);
    display: inline;
}

.hero.has-bg-img .hero-title {
    color: #FFF8ED;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34), 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.95;
    color: rgba(53, 39, 24, 0.85);
    max-width: 560px;
    margin-bottom: 58px;
}

.hero.has-bg-img .hero-desc {
    color: rgba(255, 248, 236, 0.94);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
    font-weight: 400;
}

.hero.has-bg-img.hero-bg-bright .hero-bg {
    background:
        radial-gradient(ellipse 95% 70% at 82% 18%, rgba(255, 239, 214, 0.09), transparent 56%),
        linear-gradient(158deg, rgba(15, 10, 6, 0.6) 0%, rgba(24, 17, 10, 0.36) 44%, rgba(12, 8, 5, 0.68) 100%);
}

.hero.has-bg-img.hero-bg-bright .hero-title,
.hero.has-bg-img.hero-bg-bright .hero-desc,
.hero.has-bg-img.hero-bg-bright .hero-eyebrow {
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.56), 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero.has-bg-img.hero-bg-busy .hero-content::before {
    background: rgba(20, 14, 9, 0.24);
    border-color: rgba(255, 244, 224, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero.has-bg-img.hero-bg-adaptive .hero-content::before {
    background: rgba(20, 14, 9, calc(0.14 + var(--hero-busy-strength, 0.1)));
    border-color: rgba(255, 244, 224, calc(0.08 + var(--hero-busy-strength, 0.08)));
    backdrop-filter: blur(calc(1px + (var(--hero-busy-strength, 0.1) * 10px)));
    -webkit-backdrop-filter: blur(calc(1px + (var(--hero-busy-strength, 0.1) * 10px)));
}

.hero.has-bg-img.hero-bg-dark .hero-bg {
    background:
        radial-gradient(ellipse 95% 68% at 82% 18%, rgba(255, 236, 207, 0.18), transparent 56%),
        linear-gradient(160deg, rgba(30, 20, 13, 0.24) 0%, rgba(30, 20, 13, 0.08) 44%, rgba(18, 12, 8, 0.34) 100%);
}

.hero.has-bg-img.hero-bg-dark .hero-title {
    color: #FFF9F0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 6px rgba(0, 0, 0, 0.18);
}

.hero.has-bg-img.hero-bg-dark .hero-desc {
    color: rgba(255, 248, 236, 0.96);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 55%, #8F6A28 100%);
    color: #FDF8F0;
    padding: 16px 44px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    will-change: transform, background;
    transform: translateZ(0);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.btn-primary:hover::after {
    transform: scaleX(1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(93, 66, 28, 0.32);
}

/* Hiệu ứng lún nút (app-like) khi ngón tay chạm vào */
.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 14px rgba(93, 66, 28, 0.2);
}

.btn-outline {
    border: 1px solid rgba(53, 39, 24, 0.35);
    color: var(--light);
    padding: 16px 44px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: scale(0.96);
}

.hero.has-bg-img .btn-outline {
    border-color: rgba(255, 247, 237, 0.35);
    color: #FFF7ED;
}

.hero.has-bg-img .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-stats {
    position: absolute;
    right: 72px;
    bottom: 86px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 2;
    align-items: flex-end;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-left: 12px;
    scrollbar-gutter: stable;
}

.hero-stats.hero-stats--empty {
    display: none;
}

.stat-item {
    text-align: right;
}

.stat-num {
    font-size: 52px;
    font-weight: 600;
    color: #D4A95E;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
}

.hero.has-bg-img .stat-label {
    color: rgba(255, 247, 237, 0.8);
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ===== DIVIDER ===== */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 60px;
}

.gold-divider::before,
.gold-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(166, 124, 50, 0.72), transparent);
}

.gold-divider::after {
    background: linear-gradient(to left, transparent, rgba(166, 124, 50, 0.72), transparent);
}

.divider-diamond {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    transform: rotate(45deg);
    box-shadow: 0 0 0 1px rgba(255, 252, 245, 0.45), 0 4px 12px rgba(107, 78, 36, 0.3);
}

/* ===== SERVICES ===== */
section {
    padding: 124px 60px;
    position: relative;
}

/* Tăng tốc render lần đầu: section dưới màn hình đầu defer paint/layout. */
section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.section-eyebrow {
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--display-font) !important;
    font-size: clamp(46px, 5.2vw, 70px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 68px;
    letter-spacing: -0.015em;
}

.section-title em {
    font-style: normal;
    color: var(--gold);
}

.section-title.section-title--tight {
    margin-bottom: 0;
}

.section-eyebrow.section-eyebrow--center {
    justify-content: center;
}

.whyus-lead {
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.75;
    font-weight: 500;
    color: rgba(26, 18, 9, 0.88);
    margin-bottom: 12px;
    max-width: 38em;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 108px;
    width: min(1680px, calc(100vw - 56px));
    margin: 0 auto;
}

.service-entry {
    background: transparent;
}

.service-entry+.service-entry {
    padding-top: 48px;
    border-top: 1px solid rgba(93, 66, 28, 0.18);
}

#services {
    background:
        radial-gradient(ellipse 82% 52% at 50% 0%, rgba(177, 134, 59, 0.1), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(98, 54, 47, 0.05), transparent 45%),
        linear-gradient(180deg, #f6eee2 0%, #efdfcb 100%);
}

.service-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.service-index {
    font-size: 18px;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: rgba(93, 66, 28, 0.7);
    min-width: 28px;
}

.service-head-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(177, 134, 59, 0.9), rgba(177, 134, 59, 0.2));
    transform: translateY(-7px);
}

.service-name {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 0;
    color: #2B1C10;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.15;
}

.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    justify-content: start;
    gap: 20px;
    margin-top: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
    aspect-ratio: 4/5;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    box-shadow:
        0 10px 22px rgba(20, 13, 8, 0.1),
        0 22px 46px rgba(20, 13, 8, 0.16),
        0 2px 5px rgba(20, 13, 8, 0.12);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 231, 0.28);
    border-radius: inherit;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    opacity: 1;
    will-change: transform;
}

.gallery-item img.img-loaded {
    opacity: 1;
}

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

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 28px rgba(20, 13, 8, 0.12),
        0 34px 72px rgba(20, 13, 8, 0.25),
        0 2px 5px rgba(20, 13, 8, 0.14);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 25, 14, 0.38), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-overlay-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* BUG FIX #4: Xóa logic kết hợp display:none + class .visible gây lỗi
     Nếu JS không gắn class, nút không bao giờ hiện.
     Đơn giản hóa: dùng CSS hover thuần, không cần class .visible */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(200, 30, 30, 0.85);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-item:hover .delete-btn {
    display: flex;
}

.delete-btn:hover {
    background: rgba(220, 50, 50, 1);
}

/* ===== WHY US ===== */
#whyus {
    background:
        radial-gradient(ellipse 70% 45% at 15% 50%, rgba(166, 124, 50, 0.05), transparent 50%),
        linear-gradient(175deg, #EDE4D3 0%, #E5D8C8 100%);
}

#whyus .section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.38em;
    font-weight: 600;
    margin-bottom: 22px;
}

#whyus .section-title {
    font-size: clamp(48px, 5.6vw, 80px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 36px;
    color: var(--dark-text);
}

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

.whyus-visual {
    position: relative;
}

.whyus-visual-bg {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--dark2);
    position: relative;
    overflow: hidden;
}

.whyus-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.whyus-visual-bg img.img-loaded {
    opacity: 1;
}

/* BUG FIX #3: .whyus-accent dùng z-index: -1 khiến khung vàng chui xuống
     dưới background của section, trở nên vô hình.
     Thay bằng z-index: 0 và đặt .whyus-visual tạo stacking context
     để con cái z-index âm không ảnh hưởng ra ngoài. */
.whyus-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--gold-dark);
    z-index: 0;
}

.whyus-visual-bg {
    position: relative;
    z-index: 1;
}

.whyus-badge {
    position: absolute;
    top: 32px;
    left: -32px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    padding: 24px 28px;
    color: #1A1209;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.whyus-badge-num {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.whyus-badge-text {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.35;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 48px;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-title {
    font-size: clamp(17px, 1.25vw, 20px);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.feature-desc {
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.82;
    color: rgba(26, 18, 9, 0.78);
    overflow-wrap: anywhere;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
    background:
        radial-gradient(ellipse 55% 40% at 50% 0%, rgba(177, 134, 59, 0.1), transparent 52%),
        linear-gradient(180deg, #f2e5d4 0%, #ead8c1 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    align-items: stretch;
}

.testimonial-card {
    background: linear-gradient(160deg, rgba(255, 252, 248, 0.78) 0%, rgba(244, 235, 221, 0.96) 100%);
    border: 1px solid var(--border-art);
    box-shadow: var(--shadow-card);
    padding: 44px 36px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.testimonial-byline {
    margin: 0 0 14px;
}

.testimonial-customer-name {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.25;
}

.testimonial-customer-name span {
    font-style: normal;
}

.testimonial-text {
    font-size: 16px;
    font-style: normal;
    line-height: 1.8;
    font-weight: 500;
    color: rgba(53, 39, 24, 0.88);
    margin-bottom: 28px;
    overflow-wrap: anywhere;
}

.testimonial-text p {
    margin: 0;
}

.testimonial-feedback-figure {
    position: relative;
    margin: 0 0 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(30, 26, 22, 0.35);
    border: 1px solid rgba(93, 66, 28, 0.18);
}

.testimonial-card--has-feedback .testimonial-feedback-figure {
    margin: -44px -36px 20px;
    width: calc(100% + 72px);
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
    border-bottom: 1px solid rgba(93, 66, 28, 0.18);
    aspect-ratio: 4 / 3;
    min-height: min(320px, 72vw);
}

.testimonial-feedback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stars {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

/* ===== CTA / CONTACT ===== */
#contact {
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(93, 66, 28, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 45% at 90% 10%, rgba(177, 134, 59, 0.12), transparent 50%),
        linear-gradient(145deg, #b39a7d 0%, #9f8569 50%, #8a7158 100%);
    position: relative;
    overflow: hidden;
}

#contact .section-eyebrow,
#contact .section-title,
#contact .contact-subtitle {
    color: #FFF7ED;
}

#contact .section-title em {
    color: #E8D4A8;
}

#contact .section-eyebrow::before {
    background: #E8D4A8;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 212, 168, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
}

.contact-inner .section-title {
    margin-bottom: 24px;
}

.contact-subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 247, 237, 0.92);
    margin-bottom: 56px;
}

.contact-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    text-align: left;
    align-items: start;
}

.contact-card {
    background: linear-gradient(155deg, rgba(255, 250, 240, 0.15) 0%, rgba(255, 243, 225, 0.06) 100%);
    border: 1px solid rgba(248, 242, 234, 0.22);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: 0 10px 24px rgba(26, 18, 9, 0.14);
}

.contact-card-title {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0deb8;
    margin-bottom: 14px;
    font-weight: 600;
}

.contact-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contactFanpageList {
    max-height: 340px !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-right: 6px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#contact .contact-card:first-child {
    align-self: start;
}

.contact-detail-list li {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 247, 237, 0.92);
}

.contact-detail-list a {
    color: #fff7ed;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 222, 184, 0.3);
}

.contact-detail-list a:hover {
    border-bottom-color: rgba(240, 222, 184, 0.65);
}

.contact-fanpage-meta {
    font-size: 12px;
    opacity: 0.95;
}

.contact-fanpage-meta a {
    color: #f0deb8;
    border-bottom-color: rgba(240, 222, 184, 0.5);
}

.branch-address-list {
    margin: 0;
    padding-left: 18px;
    max-height: 340px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-address-list li {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 247, 237, 0.9);
    padding-right: 6px;
}

.branch-address-list a {
    color: #fff7ed;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 222, 184, 0.3);
}

.branch-address-list a:hover {
    border-bottom-color: rgba(240, 222, 184, 0.7);
}

.branch-address-list em {
    color: #f0deb8;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.btn-zalo {
    background: #0068FF;
    color: white;
    padding: 18px 48px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 252px;
    height: 58px;
    white-space: nowrap;
    flex: 0 0 252px;
    box-sizing: border-box;
    transition: background 0.3s, transform 0.2s;
}

.btn-zalo:hover {
    background: #0052CC;
    transform: translateY(-3px);
}

.btn-zalo:active {
    transform: scale(0.96);
}

.btn-messenger {
    background: linear-gradient(135deg, #0099FF, #A033FF);
    color: white;
    padding: 18px 48px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 252px;
    height: 58px;
    white-space: nowrap;
    flex: 0 0 252px;
    box-sizing: border-box;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-zalo svg,
.btn-messenger svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.btn-messenger:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}

.btn-messenger:active {
    transform: scale(0.96);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 48px;
    border-top: 1px solid rgba(248, 242, 234, 0.2);
    font-style: normal;
}

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

.info-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #F0DEB8;
    margin-bottom: 10px;
}

#contact .info-value {
    font-size: 18px;
    color: #FFF7ED;
    font-weight: 600;
}

#contact .info-value a {
    color: inherit;
}

/* ===== QUICK TOOLBAR ===== */
.quick-toolbar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(247, 239, 228, 0.58) 0%, rgba(231, 216, 195, 0.44) 100%);
    border: 1px solid rgba(93, 66, 28, 0.12);
    box-shadow: 0 10px 24px rgba(45, 31, 17, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quick-tool {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(36, 25, 14, 0.22);
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.quick-tool:hover {
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 12px 24px rgba(36, 25, 14, 0.28);
}

.quick-tool:active {
    transform: translateY(0) scale(0.96);
}

.quick-tool svg {
    width: 22px;
    height: 22px;
    display: block;
}

.quick-tool--zalo {
    background: linear-gradient(145deg, #1073ff, #0058d4);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.quick-tool--messenger {
    background: linear-gradient(145deg, #02a0ff, #a038ff);
}

.quick-tool--instagram {
    background: linear-gradient(145deg, #f58529, #dd2a7b 52%, #8134af);
}

.quick-tool--whatsapp {
    background: linear-gradient(145deg, #25d366, #128c7e);
}

.quick-tool--phone {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: #1a1209;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    left: calc(50% + 168px);
    right: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
    background: rgba(247, 239, 228, 0.26);
    border: 1px solid rgba(201, 168, 76, 0.18);
    color: #111;
    font-size: 18px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, border-color 0.3s;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.scroll-top:hover {
    background: rgba(247, 239, 228, 0.4);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .quick-toolbar {
        bottom: 10px;
        gap: 8px;
        padding: 8px 10px;
    }

    .quick-tool {
        width: 40px;
        height: 40px;
    }

    .quick-tool svg {
        width: 20px;
        height: 20px;
    }

    .scroll-top {
        left: calc(50% + 148px);
        right: auto;
        bottom: 12px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(175deg, #bca78f 0%, #a08a72 100%);
    padding: 60px;
    border-top: 1px solid rgba(248, 242, 234, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #E8D4A8;
    margin-bottom: 12px;
}

.footer-logo span {
    font-style: normal;
    font-weight: 400;
    color: rgba(248, 242, 234, 0.7);
}

.footer-text {
    font-size: 12px;
    color: rgba(248, 242, 234, 0.72);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(248, 242, 234, 0.56);
}

.footer-col-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0deb8;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-nav-links {
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-nav-links a {
    color: rgba(248, 242, 234, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: #E8D4A8;
    text-decoration: underline;
}

.footer-contact-line {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(248, 242, 234, 0.9);
}

.footer-contact-line a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 242, 234, 0.24);
}

.footer-contact-line a:hover {
    border-bottom-color: rgba(248, 242, 234, 0.58);
}

/* ===== TRANG CHI NHÁNH (SEO / nội dung) ===== */
.breadcrumb {
    margin-bottom: 28px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(53, 39, 24, 0.55);
}

.breadcrumb-list a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb-list a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.45;
    color: rgba(53, 39, 24, 0.45);
}

.page-branches {
    padding: 120px 60px 100px;
    max-width: 960px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(177, 134, 59, 0.08), transparent 55%),
        linear-gradient(180deg, #E7D8C3 0%, #D7C5AE 100%);
}

.page-branches-intro {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(53, 39, 24, 0.78);
    margin-bottom: 48px;
    max-width: 720px;
}

.page-branches-intro strong {
    color: var(--gold-dark);
    font-weight: 600;
}

.branch-region-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--dark-text);
    margin: 56px 0 20px;
    letter-spacing: -0.01em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-art);
}

.branch-region-title:first-of-type {
    margin-top: 8px;
}

.branch-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.branch-card {
    background: linear-gradient(155deg, rgba(255, 252, 248, 0.72) 0%, rgba(242, 232, 218, 0.95) 100%);
    border: 1px solid var(--border-art);
    box-shadow: var(--shadow-card);
    padding: 22px 26px;
    transition: box-shadow 0.3s, transform 0.25s;
}

.branch-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.branch-card--soon {
    border-style: dashed;
    opacity: 0.96;
}

.branch-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.branch-address {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(53, 39, 24, 0.72);
    margin: 0;
}

.branch-links {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.branch-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(177, 134, 59, 0.45);
    background: rgba(177, 134, 59, 0.08);
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.branch-link-btn:hover {
    background: rgba(177, 134, 59, 0.14);
    border-color: rgba(177, 134, 59, 0.75);
    transform: translateY(-1px);
}

.branch-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    border: 1px solid rgba(177, 134, 59, 0.45);
    padding: 6px 12px;
    background: rgba(177, 134, 59, 0.08);
}

.page-branches-cta {
    margin-top: 48px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(53, 39, 24, 0.72);
}

.page-branches-cta a {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(177, 134, 59, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.page-branches-cta a:hover {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
}

.contact-inline-link {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(177, 134, 59, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.contact-inline-link:hover {
    color: #F0DEB8;
    border-bottom-color: #F0DEB8;
}

#contact .contact-subtitle a.contact-inline-link {
    color: var(--gold);
}

/* ===== MODAL (lightbox + admin) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    display: none;
    overflow: auto;
    text-align: center;
    white-space: nowrap;
    touch-action: pan-x pan-y;
}

.modal-overlay.active {
    display: block;
}

.modal-overlay::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-box {
    background: var(--dark2);
    border: 1px solid rgba(201, 168, 76, 0.2);
    max-width: 700px;
    width: 100%;
    padding: 48px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    opacity: 0.5;
    transition: opacity 0.2s;
    cursor: pointer;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--gold);
    font-weight: 700;
}

.upload-area {
    border: 1px dashed rgba(201, 168, 76, 0.3);
    padding: 48px;
    text-align: center;
    margin-bottom: 24px;
    transition: border-color 0.3s, background 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
}

.upload-area-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.upload-area-text {
    font-size: 13px;
    color: rgba(53, 39, 24, 0.62);
    line-height: 1.7;
}

.upload-input {
    display: none;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.preview-item:hover .preview-remove {
    opacity: 1;
}

/* Lightbox */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: width 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.lightbox-img.zoomed {
    max-width: none;
    max-height: none;
    width: max(150vw, 800px);
    cursor: zoom-out;
}

/* ===== ANIMATE ===== */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    /* Ép điện thoại dùng GPU xử lý chuyển động để tránh giật lag khi cuộn */
    will-change: opacity, transform;
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== RESPONSIVE (non-nav) ===== */
@media (max-width: 900px) {
    body::before {
        opacity: 0.03;
        mix-blend-mode: normal;
    }

    #mainNav,
    .quick-toolbar,
    .scroll-top {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero.has-bg-img .hero-content::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    section {
        padding: 84px 24px;
    }

    .page-branches {
        padding: 100px 24px 80px;
    }

    .hero {
        padding: 0 24px;
    }

    .hero-stats {
        display: none;
    }

    .hero-title {
        font-size: 52px;
    }

    .services-container {
        width: 100%;
        gap: 72px;
    }

    .service-entry+.service-entry {
        padding-top: 28px;
    }

    .service-name {
        letter-spacing: 0.04em;
        margin-bottom: 0;
    }

    .service-head {
        margin-bottom: 14px;
    }

    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-item.wide {
        grid-column: span 1;
        aspect-ratio: 3/4;
    }

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

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

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

    .branch-address-list {
        max-height: 280px;
    }

    .contact-info {
        gap: 30px;
    }

    footer {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gold-divider {
        padding: 0 24px;
    }
}

/* ===== SEO / ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--gold);
    color: #1A1209;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 500;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    outline: 2px solid var(--dark-text);
    outline-offset: 2px;
}

.nav-links a:focus-visible,
.nav-links a.nav-link-active:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-zalo:focus-visible,
.btn-messenger:focus-visible,
.quick-tool:focus-visible,
.scroll-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ===== SERVICES CTA (không hiển thị giá công khai) ===== */
.services-note {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(53, 39, 24, 0.72);
    margin-top: -22px;
    margin-bottom: 16px;
}

a.service-cta,
.service-cta.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 28px;
    font-size: 11px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: fit-content;
}

@media (max-width: 560px) {
    .service-name {
        font-size: 21px;
        margin-bottom: 0;
        letter-spacing: 0.03em;
    }

    .service-index {
        font-size: 11px;
        min-width: 24px;
    }

    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-item {
        border-radius: 10px;
        box-shadow:
            0 8px 14px rgba(21, 15, 10, 0.11),
            0 18px 38px rgba(21, 15, 10, 0.2),
            0 2px 4px rgba(21, 15, 10, 0.08);
    }
}

/* ===== BLOG / API OFFLINE ===== */
.page-blog {
    padding: 100px 60px 120px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, #EDE4D3 0%, #E5D8C8 100%);
}

/* Đang đọc bài: ẩn eyebrow + H1 danh sách (breadcrumb + nội bài đủ ngữ cảnh). */
.page-blog--reading .section-eyebrow,
.page-blog--reading #blog-heading {
    display: none;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-item {
    border-bottom: 1px solid rgba(53, 39, 24, 0.12);
}

.blog-link {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.blog-link:hover {
    opacity: 0.85;
}

.blog-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.blog-excerpt {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(53, 39, 24, 0.62);
}

.blog-empty,
.blog-loading,
.blog-error,
.content-offline,
.content-section-empty {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(53, 39, 24, 0.75);
}

.content-section-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.content-section-empty--tight {
    padding: 24px 0;
    text-align: left;
    margin-left: 0;
}

.content-section-empty--inverse {
    color: rgba(255, 247, 237, 0.72);
}

.content-offline code {
    font-size: 0.9em;
    background: rgba(53, 39, 24, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-detail-host {
    margin-top: 8px;
}

.post-article .post-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-meta {
    font-size: 13px;
    color: rgba(53, 39, 24, 0.5);
    margin-bottom: 28px;
}

.post-branch {
    font-size: 14px;
    color: rgba(53, 39, 24, 0.72);
    margin: -4px 0 16px;
    line-height: 1.5;
}

.post-featured {
    margin: 0 0 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(53, 39, 24, 0.1);
    box-shadow: 0 12px 28px rgba(53, 39, 24, 0.08);
}

.post-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(420px, 56vh);
    object-fit: cover;
}

.post-body {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(53, 39, 24, 0.88);
}

.post-body p {
    margin-bottom: 1em;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body br {
    line-height: inherit;
}

/* ===== VẤN ĐỀ 1: ĐỊNH DẠNG HIỂN THỊ HTML CHO BÀI VIẾT ===== */
.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--dark-text);
    margin: 1.5em 0 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

.post-body h2 {
    font-size: 1.5em;
}

.post-body h3 {
    font-size: 1.25em;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body strong,
.post-body b {
    color: var(--dark-text);
    font-weight: 700;
}

.post-body blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.2em;
    font-style: italic;
    color: var(--charcoal);
    margin: 1.5em 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* ===== VẤN ĐỀ 3: NÚT QUỐC KỲ ĐỔI NGÔN NGỮ ===== */
.lang-flag {
    display: inline-flex;
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.lang-flag:hover {
    transform: scale(1.1);
}

.post-back {
    margin-top: 40px;
    font-size: 14px;
}

.post-back a {
    color: var(--gold-dark);
    font-weight: 600;
}

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

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.6) rgba(53, 39, 24, 0.08);
}

.home-news-grid::-webkit-scrollbar {
    width: 8px;
}

.home-news-grid::-webkit-scrollbar-track {
    background: rgba(53, 39, 24, 0.08);
    border-radius: 999px;
}

.home-news-grid::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.72);
    border-radius: 999px;
}

.home-news-thumb {
    margin: -22px -20px 14px -20px;
    border-radius: 17px 17px 0 0;
    overflow: hidden;
    background: rgba(53, 39, 24, 0.06);
}

.home-news-thumb img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.home-news-card {
    background: linear-gradient(160deg, rgba(255, 250, 240, 0.76), rgba(255, 247, 233, 0.58));
    border: 1px solid rgba(53, 39, 24, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(53, 39, 24, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(53, 39, 24, 0.14);
}

.home-news-link {
    display: block;
    padding: 22px 20px;
    color: inherit;
    text-decoration: none;
    min-height: 220px;
    white-space: normal;
}

.home-news-title {
    font-size: 20px;
    line-height: 1.4;
    color: var(--dark-text);
    margin-bottom: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.home-news-date {
    font-size: 12px;
    color: rgba(53, 39, 24, 0.48);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-news-excerpt {
    color: rgba(53, 39, 24, 0.72);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.home-news-cta {
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: 62vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 6px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(201, 168, 76, 0.6) rgba(53, 39, 24, 0.08);
    }

    .home-news-link {
        min-height: 0;
    }

    .home-news-grid::-webkit-scrollbar {
        width: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cursor,
    .cursor-ring {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    .quick-tool {
        transition: none !important;
    }
}