/**
 * chrome.css — Site shell (header + footer + nav) styles.
 *
 * Extracted from inline <style> blocks in:
 *   - public/themes/frontend/default/_partials/blocks/headerpage.phtml
 *   - public/themes/frontend/default/_partials/footer.phtml
 *
 * Loaded once via public/themes/frontend/default/_partials/css.phtml
 * for every page using the default frontend layout. CSS variables
 * (--coral, --navy-100, --space-*, --text-base, --radius-full,
 * --duration, --ease-out) are defined globally in /css/root-client.css.
 *
 * Conventions:
 *   .site-header*, .header-*, .nav-link, .btn-ghost, .btn-primary,
 *   .menu-toggle, .mobile-menu, .mob-*  — site nav
 *   .ftr*                                 — site footer
 */

/* ════════════════════════════════════════════════════════════════════════
   HEADER  (extracted from _partials/blocks/headerpage.phtml)
   ════════════════════════════════════════════════════════════════════════ */

    /* ══ HEADER BASE ══ */
    .site-header {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 100;
        background: transparent;
        border-bottom: 1px solid transparent;
        padding: 0 var(--space-7);
        height: 64px;
        display: flex;
        align-items: center;
        gap: 40px;
        transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    }

    /* ══ SCROLLED STATE ══ */
    .site-header.header-scrolled {
        background: #ffffff;
        border-color: rgba(26,74,122,0.08);
        box-shadow: 0 2px 16px rgba(13,45,94,0.08);
    }
    .site-header.header-scrolled .nav-link       { color: var(--navy-300); }
    .site-header.header-scrolled .nav-link:hover,
    .site-header.header-scrolled .nav-link.active { color: var(--navy-900); background: var(--navy-100); }
    .site-header.header-scrolled .btn-ghost       { color: var(--navy-500); }
    .site-header.header-scrolled .btn-ghost:hover { color: var(--navy-900); background: var(--navy-100); }
    .site-header.header-scrolled .btn-ghost.active { color: var(--navy-900); background: var(--navy-100); }

    /* ══ LOGO ══ */
    .header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
    .logo-image  { width: 130px; height: auto; display: block; }

    /* ══ NAV ══ */
    .header-nav { display: flex; align-items: center; gap: 2px; flex: 1; }

    .nav-link {
        font-size: var(--text-base);
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        padding: 6px 14px;
        border-radius: var(--radius-full);
        transition: color var(--duration), background var(--duration);
        white-space: nowrap;
    }
    .nav-link:hover  { color: #fff; background: rgba(255,255,255,0.08); }
    .nav-link.active { color: #fff; background: rgba(255,255,255,0.14); font-weight: 500; }

    /* ══ ACTIONS ══ */
    .header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

    .btn-ghost {
        font-size: var(--text-base);
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        padding: 6px 14px;
        border-radius: var(--radius-full);
        transition: color var(--duration), background var(--duration);
        white-space: nowrap;
    }
    .btn-ghost:hover  { color: #fff; background: rgba(255,255,255,0.08); }
    .btn-ghost.active { color: #fff; background: rgba(255,255,255,0.14); font-weight: 500; }

    .btn-primary {
        font-size: var(--text-base); font-weight: 600;
        color: #fff; background: var(--coral);
        border: none; padding: 9px 22px;
        border-radius: var(--radius-full);
        cursor: pointer; white-space: nowrap; text-decoration: none;
        transition: opacity var(--duration), transform var(--duration);
    }
    .btn-primary:hover  { opacity: .88; transform: translateY(-1px); }
    .btn-primary:active { transform: translateY(0); }

    /* ══ HAMBURGER BUTTON ══ */
    .menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 36px; height: 36px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: var(--radius-sm);
        cursor: pointer;
        flex-shrink: 0;
        transition: background var(--duration);
        margin-left: auto;
    }
    .menu-toggle:hover { background: rgba(255,255,255,0.14); }
    .menu-toggle span {
        display: block;
        width: 18px; height: 1.5px;
        background: #fff;
        border-radius: 2px;
        transition: transform 250ms ease, opacity 250ms ease;
        transform-origin: center;
    }

    /* scrolled state cho hamburger */
    .site-header.header-scrolled .menu-toggle {
        background: var(--navy-100);
        border-color: rgba(26,74,122,0.15);
    }
    .site-header.header-scrolled .menu-toggle span { background: var(--navy-700); }
    .site-header.header-scrolled .menu-toggle:hover { background: rgba(26,74,122,0.12); }

    /* Hamburger → X khi open */
    .site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* ══ MOBILE DRAWER ══ */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 64px; left: 12px; right: 12px;
        background: #0d2d5e;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
        padding: 16px 20px 24px;
        z-index: 99;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 8px 32px rgba(13,45,94,0.28);

        /* animation */
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 220ms ease, transform 220ms ease;
        pointer-events: none;
    }
    .mobile-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* scrolled → white drawer */
    .site-header.header-scrolled ~ .mobile-menu {
        background: #ffffff;
        border-color: rgba(26,74,122,0.08);
    }
    .site-header.header-scrolled ~ .mobile-menu .mob-nav-link { color: var(--navy-300); }
    .site-header.header-scrolled ~ .mobile-menu .mob-nav-link:hover,
    .site-header.header-scrolled ~ .mobile-menu .mob-nav-link.active { color: var(--navy-900); background: var(--navy-100); }
    .site-header.header-scrolled ~ .mobile-menu .mob-divider { background: rgba(26,74,122,0.08); }
    .site-header.header-scrolled ~ .mobile-menu .mob-ghost { color: var(--navy-500); }
    .site-header.header-scrolled ~ .mobile-menu .mob-ghost:hover { color: var(--navy-900); background: var(--navy-100); }

    .mob-nav-link {
        font-size: 15px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        padding: 10px 14px;
        border-radius: var(--radius-md);
        display: block;
        transition: color var(--duration), background var(--duration);
        font-weight: 400;
    }
    .mob-nav-link:hover  { color: #fff; background: rgba(255,255,255,0.08); }
    .mob-nav-link.active { color: #fff; background: rgba(255,255,255,0.12); font-weight: 500; }

    .mob-divider {
        height: 1px;
        background: rgba(255,255,255,0.08);
        margin: 10px 0;
    }

    .mob-actions { display: flex; flex-direction: column; gap: 8px; }

    .mob-ghost {
        font-size: 15px;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        padding: 10px 14px;
        border-radius: var(--radius-md);
        display: block;
        transition: color var(--duration), background var(--duration);
    }
    .mob-ghost:hover { color: #fff; background: rgba(255,255,255,0.08); }

    .mob-primary {
        display: block;
        text-align: center;
        font-size: 15px; font-weight: 600;
        color: #fff; background: var(--coral);
        padding: 11px 22px;
        border-radius: var(--radius-full);
        text-decoration: none;
        transition: opacity var(--duration);
    }
    .mob-primary:hover { opacity: .88; }

    /* ══ RESPONSIVE BREAKPOINTS ══ */

/* Desktop ≥ 1025px */
@media (min-width: 1201px) {
    .site-header { gap: 40px; padding: 0 var(--space-7); }
}

/* Tablet landscape (bao gồm iPad Air/Pro ngang) 769–1200px → hamburger */
@media (max-width: 1200px) and (min-width: 769px) {
    .site-header { padding: 0 28px; gap: 12px; height: 64px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu {
        display: flex;
        top: 72px;
        left: auto;
        right: 16px;
        width: 100%;
        max-width: 340px;
        padding: 16px 20px 24px;
    }
    .logo-image  { width: 120px; }
}

/* Mobile landscape + tablet nhỏ 541–768px */
@media (max-width: 768px) and (min-width: 541px) {
    .site-header { padding: 0 24px; gap: 12px; height: 60px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: flex; top: 68px; left: 12px; right: 12px; }
    .logo-image  { width: 115px; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* iPhone Pro Max / Plus 415–540px */
@media (max-width: 540px) and (min-width: 415px) {
    .site-header { padding: 0 20px; gap: 10px; height: 58px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: flex; top: 66px; left: 12px; right: 12px; }
    .logo-image  { width: 108px; }
    .mob-nav-link { font-size: 14px; padding: 10px 12px; }
    .mob-primary  { font-size: 14px; padding: 10px 18px; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* iPhone 14/13/12 — 376–414px */
@media (max-width: 414px) and (min-width: 376px) {
    .site-header { padding: 0 16px; gap: 8px; height: 56px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: flex; top: 64px; left: 12px; right: 12px; padding: 14px 16px 22px; }
    .logo-image  { width: 104px; }
    .mob-nav-link { font-size: 14px; padding: 9px 12px; }
    .mob-primary  { font-size: 14px; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Android phổ thông 361–375px */
@media (max-width: 375px) and (min-width: 361px) {
    .site-header { padding: 0 14px; gap: 8px; height: 56px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: flex; top: 64px; left: 12px; right: 12px; padding: 12px 14px 20px; }
    .logo-image  { width: 100px; }
    .mob-nav-link { font-size: 13px; padding: 9px 11px; }
    .mob-ghost    { font-size: 13px; }
    .mob-primary  { font-size: 13px; padding: 10px 16px; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Android nhỏ — 360px trở xuống */
@media (max-width: 360px) {
    .site-header { padding: 0 12px; gap: 6px; height: 54px; }
    .header-nav  { display: none; }
    .btn-ghost   { display: none; }
    .header-actions .btn-primary { display: none; }
    .menu-toggle { display: flex; width: 32px; height: 32px; }
    .menu-toggle span { width: 16px; }
    .mobile-menu { display: flex; top: 62px; left: 10px; right: 10px; padding: 12px 12px 20px; }
    .logo-image  { width: 92px; }
    .mob-nav-link { font-size: 13px; padding: 8px 10px; }
    .mob-ghost    { font-size: 13px; padding: 8px 10px; }
    .mob-primary  { font-size: 13px; padding: 9px 14px; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}



/* ════════════════════════════════════════════════════════════════════════
   FOOTER  (extracted from _partials/footer.phtml)
   ════════════════════════════════════════════════════════════════════════ */

    /* ── Footer Shell ── */
    .ftr {
        background: #102244;
        color: rgba(255, 255, 255, .82);
        font-size: var(--text-base);
        line-height: 1.6;
    }

    /* ── Main content area ── */
    .ftr-main {
        padding: var(--space-9) 0 var(--space-8);
    }

    .ftr-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.4fr;
        gap: var(--space-7);
        align-items: start;
    }

    /* ── Brand column ── */
    .ftr-brand {
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
    }

    .ftr-logo {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        text-decoration: none;
    }

    .ftr-logo-img {
        width: 200px;
        height: auto;
        border-radius: var(--radius-sm);
        object-fit: cover;
        flex-shrink: 0;
    }

    .ftr-tagline {
        color: rgba(255, 255, 255, .65);
        font-size: var(--text-base);
        line-height: 1.65;
        max-width: 240px;
    }

    /* ── Nav columns ── */
    .ftr-col-title {
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .55);
        margin-bottom: var(--space-5);
    }

    .ftr-nav {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .ftr-nav a {
        color: rgba(255, 255, 255, .82);
        text-decoration: none;
        font-size: var(--text-base);
        transition: color var(--duration) var(--ease-out);
    }

    .ftr-nav a:hover {
        color: #fff;
    }

    /* ── Contact column ── */
    .ftr-contact {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }

    .ftr-contact-item {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        color: rgba(255, 255, 255, .82);
        font-size: var(--text-base);
        text-decoration: none;
        transition: color var(--duration) var(--ease-out);
    }

    .ftr-contact-item:hover {
        color: #fff;
    }

    .ftr-contact-icon {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, .07);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 12px;
        color: var(--coral-soft);
        transition: background var(--duration);
    }

    .ftr-contact-item:hover .ftr-contact-icon {
        background: rgba(255, 255, 255, .12);
    }

    /* ── Divider ── */
    .ftr-divider {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, .12);
        margin: 0;
    }

    /* ── Bottom bar ── */
    .ftr-bottom {
        padding: var(--space-5) 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-5);
    }

    .ftr-copy {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, .5);
    }

    .ftr-made {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, .5);
    }

    .ftr-made span {
        color: rgba(255, 255, 255, .7);
    }

    .ftr-socials {
        display: flex;
        align-items: center;
        gap: var(--space-4);
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
        .ftr-grid {
            grid-template-columns: 1fr 1fr;
            gap: var(--space-7) var(--space-6);
        }

        .ftr-brand {
            grid-column: 1 / -1;
        }
    }

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

        .ftr-bottom {
            flex-direction: column;
            align-items: flex-start;
            gap: var(--space-2);
        }
    }

