/* ==========================================================================
   AURELIA VAULT PRIVATE WEALTH — LUXURY EDITORIAL & SWISS BROADSHEET SYSTEM
   Ngành: Dịch Vụ Tài Chính & Quản Lý Gia Sản | Preset: Luxury (Playfair Display)
   ========================================================================== */

:root {
    --bg-ivory: #faf8f5;
    --bg-paper: #ffffff;
    --bg-stone: #f2ede4;
    --emerald-deep: #0b1915;
    --emerald: #112b24;
    --emerald-soft: #1a3d33;
    --gold: #b89352;
    --gold-hi: #cfa968;
    --gold-dark: #8c6b32;
    --gold-tint: rgba(184, 147, 82, 0.12);
    --ink: #141c19;
    --ink-muted: #4b5752;
    --ink-subtle: #6e7b75;
    --line: rgba(20, 28, 25, 0.12);
    --line-strong: rgba(20, 28, 25, 0.24);
    --line-light: rgba(250, 248, 245, 0.16);
    --radius: 4px;
    --radius-btn: 4px;
    --shadow-soft: 0 14px 34px rgba(11, 25, 21, 0.06);
    --shadow-lift: 0 22px 48px rgba(11, 25, 21, 0.12);
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1280px;
    --header-h: 82px;
    --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    font-size: 16px;
    background-color: var(--bg-ivory);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-ivory);
    color: var(--ink);
    line-height: 1.68;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, transform 0.32s var(--ease-lux), opacity 0.28s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

.av-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* Shared Editorial Typography & Hairline Buttons */
.av-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.av-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background-color: var(--gold);
}

.av-kicker.is-light {
    color: var(--gold-hi);
}

.av-kicker.is-light::before {
    background-color: var(--gold-hi);
}

.av-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--emerald-deep);
}

.av-heading em {
    font-style: italic;
    color: var(--gold-dark);
    font-weight: 500;
}

.av-heading.is-light {
    color: var(--bg-ivory);
}

.av-heading.is-light em {
    color: var(--gold-hi);
}

.av-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.av-head-lead {
    max-width: 440px;
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.68;
}

.av-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-btn);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.av-btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--emerald-deep);
}

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

.av-btn-emerald {
    background-color: var(--emerald-deep);
    border-color: var(--emerald-deep);
    color: var(--bg-ivory);
}

.av-btn-emerald:hover {
    background-color: var(--emerald-soft);
    border-color: var(--emerald-soft);
    transform: translateY(-2px);
}

.av-btn-outline {
    background-color: transparent;
    border-color: var(--line-strong);
    color: var(--emerald-deep);
}

.av-btn-outline:hover {
    border-color: var(--emerald-deep);
    background-color: var(--emerald-deep);
    color: var(--bg-ivory);
}

.av-btn-ghost-light {
    background-color: transparent;
    border-color: rgba(250, 248, 245, 0.34);
    color: var(--bg-ivory);
}

.av-btn-ghost-light:hover {
    border-color: var(--gold-hi);
    color: var(--gold-hi);
}

/* Gold Hairline Scroll Progress */
.av-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-hi));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 1200;
    pointer-events: none;
}

/* Center-Logo Editorial Hairline Header */
.av-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background-color: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 950;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.av-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(11, 25, 21, 0.06);
}

.av-header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.av-nav-group {
    display: flex;
    align-items: center;
    gap: 26px;
}

.av-nav-group.is-right {
    justify-content: flex-end;
}

.av-nav-link {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 6px 0;
}

.av-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.32s var(--ease-lux);
}

.av-nav-link:hover,
.av-nav-link.is-active {
    color: var(--emerald-deep);
}

.av-nav-link:hover::after,
.av-nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.av-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.08;
    padding: 4px 12px;
}

.av-brand-main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--emerald-deep);
}

.av-brand-crest {
    width: 9px;
    height: 9px;
    background-color: var(--gold);
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
}

.av-brand-sub {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 3px;
}

.av-header-cta {
    padding: 10px 18px;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
}

.av-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-btn);
    align-items: center;
    justify-content: center;
    color: var(--emerald-deep);
    font-size: 1rem;
}

.av-menu-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* Deep Emerald Editorial Mobile Drawer */
.av-drawer {
    position: fixed;
    inset: 0;
    background-color: var(--emerald-deep);
    color: var(--bg-ivory);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 32px 36px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.35s var(--ease-lux), transform 0.35s var(--ease-lux), visibility 0.35s;
}

.av-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.av-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-light);
}

.av-drawer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bg-ivory);
}

.av-drawer-brand span {
    color: var(--gold-hi);
}

.av-drawer-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-btn);
    color: var(--bg-ivory);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-drawer-nav {
    display: flex;
    flex-direction: column;
    margin: 24px 0;
}

.av-drawer-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--bg-ivory);
}

.av-drawer-link span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--gold-hi);
}

.av-drawer-link.is-active,
.av-drawer-link:hover {
    color: var(--gold-hi);
}

.av-drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.av-drawer-foot .av-btn {
    width: 100%;
}

/* Editorial Toast Notification */
.av-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 24px);
    background-color: var(--emerald-deep);
    color: var(--bg-ivory);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 22px 48px rgba(11, 25, 21, 0.28);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: opacity 0.3s ease, transform 0.35s var(--ease-lux), visibility 0.3s;
    max-width: calc(100vw - 32px);
}

.av-toast i {
    color: var(--gold-hi);
}

.av-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
    .av-header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .av-nav-group.is-left,
    .av-nav-group.is-right .av-nav-link {
        display: none;
    }

    .av-brand {
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }

    .av-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .av-container {
        padding: 0 18px;
    }

    .av-header-cta {
        display: none;
    }

    .av-brand-main {
        font-size: 1.12rem;
        letter-spacing: 0.1em;
    }
}
