/* ===================================================
   GLOBAL.CSS — Biến màu, Reset, Layout chung
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

:root {
    /* Màu chủ đạo */
    --navy:         #1b2f4e;
    --navy-light:   #2a4570;
    --teal:         #0e9f8c;
    --teal-hover:   #0a8475;
    --teal-light:   #e5f7f5;
    --gold:         #e9aa33;
    --gold-light:   #fdf3dc;

    /* Nền & Card */
    --bg:           #f4f7fb;
    --bg-alt:       #eaeff6;
    --card-bg:      #ffffff;
    --card-border:  #e0e8f0;

    /* Văn bản */
    --text-dark:    #1b2f4e;
    --text-mid:     #445577;
    --text-light:   #7a8fa8;

    /* Hiệu ứng */
    --shadow-sm:    0 2px 10px rgba(27, 47, 78, 0.06);
    --shadow-md:    0 8px 28px rgba(27, 47, 78, 0.10);
    --shadow-hover: 0 22px 52px rgba(27, 47, 78, 0.16);
    --radius:       14px;
    --transition:   all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== PROGRESS BAR ĐỌC TRANG ===== */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--teal), var(--gold));
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    transition: width 0.12s linear;
}

/* ===== LAYOUT CÁC SECTION ===== */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 88px 28px 64px;
}

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

/* ===== TIÊU ĐỀ SECTION ===== */
.section-header {
    margin-bottom: 48px;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--teal);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    color: var(--navy);
    line-height: 1.2;
}

.section-divider {
    width: 44px;
    height: 3px;
    background: linear-gradient(to right, var(--teal), var(--gold));
    border-radius: 2px;
    margin: 14px 0 16px;
}

.section-desc {
    color: var(--text-light);
    font-size: 0.93rem;
    max-width: 520px;
}

/* ===== ANIMATION FADE-UP KHI SCROLL ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Delay stagger cho các phần tử trong grid */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ===== FOOTER ===== */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 40px 24px;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

footer p {
    font-size: 0.83rem;
    margin-bottom: 4px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal); }

.footer-copy {
    font-size: 0.76rem;
    opacity: 0.4;
    margin-top: 8px;
}
