/* ============================================================
   MINH DUONG MATH — Shared Stylesheet
   Dùng chung cho tất cả trang.
   Trang-riêng: home.css, methodology/styles.css,
                gallery/styles.css, thi-thu/styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary-dark:  #2a6080;
    --primary-light: #4a8fa4;
    --primary-pale:  #e8f3f8;

    --cream:         #f9f8f5;
    --cream-warm:    #f2efea;
    --white:         #ffffff;
    --dark-bg:       #07111C;

    --text-dark:     #1a2e3a;
    --text-gray:     #546975;
    --border:        #cce0ea;

    --gold:          #C8A86B;
    --gold-dim:      rgba(200, 168, 107, 0.60);
    --gold-faint:    rgba(200, 168, 107, 0.15);

    --nav-bg:        #f0f7fa;
    --footer-bg:     #e4f0f6;
    --blue-border:   rgba(42, 96, 128, 0.15);

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-pill: 24px;

    --transition: 0.3s ease;
    --shadow-card: 0 8px 24px rgba(42, 96, 128, 0.10);
    --shadow-hover: 0 12px 32px rgba(42, 96, 128, 0.16);
}

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

/* ── Site Nav ───────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--blue-border);
    box-shadow: 0 2px 12px rgba(42, 96, 128, 0.07);
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav__brand {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav__logo {
    height: 32px;
    width: 32px;
    display: block;
    object-fit: contain;
}

.site-nav__brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-nav__links {
    order: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    gap: 0;
}

.site-nav__sep {
    display: none;
}

.site-nav__link {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: color var(--transition);
    padding: 11px 0;
    border-bottom: 1px solid var(--blue-border);
    width: 100%;
}
.site-nav__link:last-of-type { border-bottom: none; }

.site-nav__link:hover,
.site-nav__link--active {
    color: var(--primary-dark);
}

.site-nav__cta {
    display: none;
}

.site-nav__cta:hover {
    background: var(--primary-light);
}

/* ── Typography ─────────────────────────────────────────────── */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

h1 { font-size: 28px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.15; }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }

p { font-size: 13px; line-height: 1.75; color: var(--text-gray); }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header--home {
    background: none;
    padding: 0;
    min-height: 70vw;
}

.page-header--home .parallax-bg {
    background:
        linear-gradient(160deg, rgba(30, 78, 110, 0.55) 0%, rgba(74, 143, 164, 0.28) 100%),
        url('/assets/images/danang_hero.jpg') center center / cover no-repeat;
}

/* Cho inner pages, dùng đường dẫn tuyệt đối vì file nằm trong subdirectory */
.page-header--inner .parallax-bg {
    background:
        linear-gradient(160deg, rgba(30, 78, 110, 0.75) 0%, rgba(58, 127, 150, 0.55) 100%),
        url('/assets/images/classroom-hero.jpg') center 40% / cover no-repeat;
    inset: -25% 0;
}

.parallax-bg {
    position: absolute;
    inset: -32% 0;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header > *:not(.parallax-bg) {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .parallax-bg { transform: none !important; inset: 0; }
}

.page-header--inner {
    padding: clamp(1.5rem, 7vw, 5rem) clamp(1rem, 5%, 2.5rem);
    text-align: center;
}

.page-header__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    font-weight: 500;
}

.page-header__title { color: var(--white); margin-bottom: 12px; }

.page-header__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
}

.page-header--inner .page-header__subtitle { font-size: 18px; margin-bottom: 30px; }

/* ── BACK LINK ──────────────────────────────────────────────── */
.back-link {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    font-size: 14px;
}

.back-link:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ── BUTTON ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn--white {
    background: var(--white);
    color: var(--primary-dark);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn--primary {
    background: var(--primary-light);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--gold {
    background: var(--gold);
    color: var(--dark-bg);
    font-weight: 600;
}

.btn--gold:hover {
    background: #b8903a;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn--block { display: block; width: 100%; text-align: center; }
.btn--pill-lg { padding: 14px 40px; }
.btn--loading { opacity: 0.68; cursor: wait; pointer-events: none; }

/* ══ ROUTE MAP (dùng chung home + methodology) ══════════════════ */
.route-map-section {
    background: var(--cream);
    padding: 0 0 40px;
}

.route-map-section--alt {
    background: var(--primary-pale);
    padding: 60px 0;
}

.route-map-section__intro {
    text-align: center;
    padding: 60px 40px 0;
    max-width: 700px;
    margin: 0 auto;
}

.route-map-section__intro .section-title { margin-bottom: 12px; }
.route-map-section__intro p { margin-bottom: 0; }

.route-map__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 48px 76px;
    scrollbar-width: none;
}
.route-map__scroll::-webkit-scrollbar { display: none; }

.route-map__stage {
    position: relative;
    min-width: 880px;
    height: 200px;
    max-width: 1360px;
    margin: 0 auto;
    overflow: visible;
}

.route-map__rail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.route-stop {
    position: absolute;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.route-stop--upper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to top, var(--primary-light), transparent);
    opacity: 0.7;
}

.route-stop--lower::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    opacity: 0.7;
}

.route-stop__pin {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(42, 96, 128, 0.12);
    position: relative;
    z-index: 1;
}

.route-stop__pin:hover {
    border-color: var(--primary-dark);
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(42, 96, 128, 0.22);
}

.route-stop--active .route-stop__pin {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 6px 22px rgba(42, 96, 128, 0.40);
    transform: scale(1.2);
}

.route-stop__flag {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    white-space: nowrap;
}

.route-stop--upper .route-stop__flag { bottom: calc(100% + 24px); }
.route-stop--lower .route-stop__flag { top:    calc(100% + 24px); }

.route-stop--edge .route-stop__flag {
    left: auto;
    right: -4px;
    transform: none;
    align-items: flex-end;
}

.route-stop__icon {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
    display: block;
    transition: color 0.2s ease;
}

.route-stop--active .route-stop__icon { color: var(--primary-dark); }

.route-stop__name {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.route-stop--active .route-stop__name { color: var(--primary-dark); }

.route-map__detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.38s ease, opacity 0.28s ease;
}

.route-map__detail > div { overflow: hidden; }

.route-map__detail--visible {
    grid-template-rows: 1fr;
    opacity: 1;
}

.route-map__detail-inner {
    padding: 28px 48px 32px;
    background: var(--white);
    border-top: 2px solid var(--primary-pale);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1360px;
    margin: 0 auto;
}

.route-map__detail-badge {
    flex-shrink: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    padding: 6px 14px;
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-pill);
    margin-top: 4px;
    white-space: nowrap;
}

.route-map__detail-body { flex: 1; }

.route-map__detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.route-map__detail-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 6px;
}

.route-map__detail-example {
    font-size: 13px;
    color: var(--primary-light);
    font-style: italic;
    line-height: 1.6;
}

.route-map__hint {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    padding: 14px 40px 0;
    font-style: italic;
    opacity: 0.75;
}

.waypoint { cursor: pointer; transition: all var(--transition); }
.waypoint:hover circle:first-child { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }

/* ── TOOLTIP ─────────────────────────────────────────────────── */
.tooltip {
    position: fixed;
    background: var(--white);
    color: var(--text-dark);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) translateX(-50%);
    transition: all var(--transition);
    z-index: 100;
}

.tooltip--visible {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

/* ── INFO BAR ────────────────────────────────────────────────── */
.info-bar {
    background: var(--white);
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.info-bar__item { flex: 1 1 40%; min-width: 0; }

.info-bar__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.info-bar__value {
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── SECTION TITLE ───────────────────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro .section-title { margin-bottom: 20px; }

/* ── LIGHTBOX (dùng chung home + gallery) ────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 17, 28, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.lightbox--visible {
    opacity: 1;
    pointer-events: all;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox--visible .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 28px;
    color: var(--gold-dim);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1;
    transition: color var(--transition);
}

.lightbox__close:hover { color: var(--gold); }

/* ── CONTAINER ───────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer__subscribe {
    background: var(--primary-dark);
    padding: 18px 16px;
}

.footer__subscribe-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer__subscribe-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.footer__subscribe-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-family: 'Be Vietnam Pro', sans-serif;
}

.footer__subscribe-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.footer__subscribe-form input {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    outline: none;
    transition: border-color var(--transition);
}

.footer__subscribe-form input::placeholder { color: rgba(255,255,255,0.38); }
.footer__subscribe-form input:focus { border-color: rgba(255,255,255,0.6); }

.footer__subscribe-form button {
    padding: 10px 22px;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.footer__subscribe-form button:hover { background: var(--primary-pale); }

.footer__main {
    background: var(--dark-bg);
    padding: 32px 20px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
}

.footer__col--brand {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}

.footer__socials { justify-content: center; }

.footer__brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    display: block;
}

.footer__slogan {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.footer__socials { display: flex; gap: 8px; flex-wrap: wrap; }

.footer__social-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    font-family: 'Be Vietnam Pro', sans-serif;
}

.footer__social-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.footer__col-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.footer__list li,
.footer__list a {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--transition);
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.5;
}

.footer__list a:hover { color: var(--white); }

.footer__bottom {
    background: #040c13;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.04em;
}

.footer__bottom-links { display: flex; gap: 20px; }

.footer__bottom-links a {
    color: rgba(255,255,255,0.28);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInDown 0.8s ease-out; }

/* ── Typing Effect ───────────────────────────────────────────── */
.typing-cursor::after {
    content: '|';
    animation: cursor-blink 0.65s step-end infinite;
    color: var(--primary-light);
    font-weight: 300;
    opacity: 0.8;
    margin-left: 2px;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 0; }
}
.typing-done::after {
    content: '|';
    color: var(--primary-light);
    font-weight: 300;
    margin-left: 2px;
    animation: cursor-fade-out 0.5s ease 0.2s forwards;
    opacity: 0.8;
}
@keyframes cursor-fade-out {
    to { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED UX — Shared
   ═══════════════════════════════════════════════════════════════ */

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
body.js-reveals .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
body.js-reveals .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── NAV SCROLL STATE ───────────────────────────────────────── */
.site-nav { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-nav--scrolled {
    background: rgba(240, 247, 250, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(42, 96, 128, 0.14);
}

/* ── NAV LINK UNDERLINE ─────────────────────────────────────── */
.site-nav__link { position: relative; }
.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1.5px;
    background: var(--primary-dark);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.site-nav__link:hover::after,
.site-nav__link--active::after { transform: scaleX(1); }

/* ── READING PROGRESS BAR ───────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--gold) 100%);
    width: 0%;
    z-index: 300;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
    transition: width 0.08s linear;
}

/* ── ROUTE STOP PIN PULSE ───────────────────────────────────── */
@keyframes pinPulse {
    0%   { box-shadow: 0 3px 10px rgba(42,96,128,0.12), 0 0 0 0    rgba(74,143,164,0.50); }
    70%  { box-shadow: 0 3px 10px rgba(42,96,128,0.12), 0 0 0 10px rgba(74,143,164,0);   }
    100% { box-shadow: 0 3px 10px rgba(42,96,128,0.12), 0 0 0 0    rgba(74,143,164,0);   }
}
.route-map--pulse .route-stop:not(.route-stop--active) .route-stop__pin {
    animation: pinPulse 2.2s ease-out infinite;
}
.route-map--pulse .route-stop:nth-child(2)  .route-stop__pin { animation-delay: 0s;    }
.route-map--pulse .route-stop:nth-child(3)  .route-stop__pin { animation-delay: 0.18s; }
.route-map--pulse .route-stop:nth-child(4)  .route-stop__pin { animation-delay: 0.36s; }
.route-map--pulse .route-stop:nth-child(5)  .route-stop__pin { animation-delay: 0.54s; }
.route-map--pulse .route-stop:nth-child(6)  .route-stop__pin { animation-delay: 0.72s; }
.route-map--pulse .route-stop:nth-child(7)  .route-stop__pin { animation-delay: 0.90s; }
.route-map--pulse .route-stop:nth-child(8)  .route-stop__pin { animation-delay: 1.08s; }
.route-map--pulse .route-stop:nth-child(9)  .route-stop__pin { animation-delay: 1.26s; }
.route-map--pulse .route-stop:nth-child(10) .route-stop__pin { animation-delay: 1.44s; }

/* ── BUTTON RIPPLE ──────────────────────────────────────────── */
.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    transform: scale(0);
    animation: rippleExpand 0.6s linear;
    pointer-events: none;
}
@keyframes rippleExpand {
    to { transform: scale(4); opacity: 0; }
}

/* ── FONT SYNC ──────────────────────────────────────────────── */
body         { font-family: 'Be Vietnam Pro', sans-serif; }
.btn         { font-family: 'Be Vietnam Pro', sans-serif; }
.site-nav__link { font-family: 'Be Vietnam Pro', sans-serif; }

/* ── NAV MOBILE TOGGLE ──────────────────────────────────────── */
.site-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}
.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Shared
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First (min-width breakpoints)
   Base = phone (<480px) · sm=480 · md=768 · lg=1024
   ═══════════════════════════════════════════════════════════════ */

/* ── Open state (hamburger) — works at all sizes ────────────── */
.site-nav--open .site-nav__links { max-height: 280px; padding: 4px 0 12px; }
.site-nav--open .site-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav--open .site-nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav--open .site-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer 3-col: 560px+ ───────────────────────────────────── */
@media (min-width: 560px) {
    .footer__main { grid-template-columns: repeat(3, 1fr); padding: 40px 24px 32px; gap: 28px; }
    .footer__brand { font-size: 1.8rem; margin-bottom: 10px; }
    .footer__slogan { font-size: 12px; margin-bottom: 18px; }
    .footer__col-title { font-size: 0.58rem; margin-bottom: 12px; }
    .footer__list { gap: 8px; }
    .footer__list li, .footer__list a { font-size: 12px; }
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 24px; font-size: 10px; }
    .footer__social-link { font-size: 10px; padding: 4px 12px; }
}

/* ── sm: 480px+ ─────────────────────────────────────────────── */
@media (min-width: 480px) {
    h1 { font-size: 34px; }
    h2 { font-size: 26px; }
    h3 { font-size: 19px; }
    h4 { font-size: 15px; }
    p  { font-size: 14px; }

    .page-header--home  { min-height: 55vw; }

    .info-bar { padding: 16px 24px; gap: 20px; }
    .info-bar__value { font-size: 18px; }

    .section-title { margin-bottom: 32px; }

    .footer__main { gap: 24px; padding: 36px 24px 28px; }
    .footer__brand { font-size: 1.8rem; }
}

/* ── md: 768px+ ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    h1 { font-size: 52px; line-height: 1.06; }
    h2 { font-size: 38px; line-height: 1.12; }
    h3 { font-size: 24px; }
    h4 { font-size: 18px; }
    p  { font-size: 15px; }

    .page-header--home  { min-height: 44vw; }

    /* Nav → full horizontal */
    .site-nav { padding: 14px 40px; gap: 24px; flex-wrap: nowrap; }
    .site-nav__toggle { display: none; }
    .site-nav__cta {
        display: inline-block;
        font-family: 'Be Vietnam Pro', sans-serif;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        color: var(--white);
        background: var(--primary-dark);
        padding: 8px 18px;
        border-radius: var(--radius-pill);
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        transition: background var(--transition);
    }
    .site-nav__cta:hover { background: var(--primary-light); }
    .site-nav__sep {
        display: inline;
        color: var(--primary-light);
        opacity: 0.35;
        font-size: 16px;
        line-height: 1;
        pointer-events: none;
        user-select: none;
        padding: 0 2px;
    }
    .site-nav__links {
        flex-direction: row;
        align-items: center;
        max-height: none;
        overflow: visible;
        width: auto;
        padding: 0;
        gap: 6px;
        order: 0;
    }
    .site-nav__link {
        font-size: 0.7rem;
        letter-spacing: 0.13em;
        padding: 4px 0;
        border-bottom: none;
        width: auto;
        color: rgba(42, 96, 128, 0.55);
    }
    .site-nav__link:last-of-type { border-bottom: none; }

    /* Info bar */
    .info-bar { padding: 24px 40px; gap: 60px; flex-wrap: nowrap; }
    .info-bar__item { flex: 0 1 auto; min-width: 160px; }
    .info-bar__value { font-size: 22px; }
    .info-bar__label { font-size: 11px; }

    .section-title { margin-bottom: 48px; }

    /* Footer desktop polish */
    .footer__main { grid-template-columns: repeat(3, 1fr); padding: 52px 40px 36px; gap: 40px; }
    .footer__brand { font-size: 2rem; margin-bottom: 12px; }
    .footer__slogan { font-size: 13px; margin-bottom: 22px; }
    .footer__col-title { font-size: 0.62rem; margin-bottom: 16px; }
    .footer__list { gap: 10px; }
    .footer__list li, .footer__list a { font-size: 13px; }
    .footer__subscribe { padding: 30px 40px; }
    .footer__subscribe-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .footer__subscribe-form { width: auto; flex-shrink: 0; }
    .footer__subscribe-form input { flex: none; width: 210px; }
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 40px; font-size: 11px; }
    .footer__social-link { font-size: 11px; padding: 5px 14px; }

    .route-map__scroll { padding: 40px 48px 76px; }
    .route-map__detail-inner { padding: 28px 48px 32px; flex-direction: row; gap: 24px; }
    .route-map-section__intro { padding: 60px 40px 0; }
}

/* ── lg: 1024px+ ────────────────────────────────────────────── */
@media (min-width: 1024px) {
    h1 { font-size: 72px; }
    h2 { font-size: 52px; }
    h3 { font-size: 26px; }
    h4 { font-size: 19px; }
    p  { font-size: 16px; }

    .section-title { margin-bottom: 60px; }
    .info-bar { padding: 30px 40px; gap: 80px; }
    .info-bar__item { min-width: 200px; }
    .info-bar__value { font-size: 24px; }
    .info-bar__label { font-size: 12px; }
}
