/* ==========================================================================
   HỒ GƯƠM 88 – BASE
   Night-ink & antique gold · Reset · Type · Buttons · Motion
   ========================================================================== */

:root {
    --ink: #07090F;
    --ink-2: #10141C;
    --navy: #162033;
    --navy-deep: #0C1524;

    --gold: #C9A45A;
    --gold-bright: #E8D5A3;
    --gold-deep: #9A7530;

    --emerald: #1F6B52;
    --emerald-soft: #2A8A6A;

    --ivory: #F6F1E8;
    --parchment: #EFE8DA;
    --surface: #FFFCF7;
    --stone: #D9D0C1;

    --text: #161410;
    --text-soft: #5C564C;
    --text-mute: #8A8276;

    --primary-blue: #162033;
    --primary-blue-hover: #0C1524;
    --primary-blue-light: #F3EEE4;

    --accent-green: #1F6B52;
    --accent-green-hover: #175541;
    --accent-green-light: #E7F3EE;

    --accent-gold: #C9A45A;
    --accent-gold-hover: #9A7530;
    --accent-gold-light: #F7F0DE;

    --primary-red: #162033;
    --primary-red-hover: #0C1524;
    --primary-red-light: #F3EEE4;

    --dark-charcoal: #07090F;
    --dark-slate: #162033;
    --bg-cream: #F6F1E8;
    --bg-surface: #FFFCF7;

    --text-primary: #161410;
    --text-secondary: #5C564C;
    --text-muted: #8A8276;
    --border-color: rgba(22, 20, 16, 0.1);

    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-heading: 'Cormorant Garamond', 'Be Vietnam Pro', serif;
    --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

    --shadow-sm: 0 8px 24px rgba(7, 9, 15, 0.06);
    --shadow-md: 0 18px 40px rgba(7, 9, 15, 0.1);
    --shadow-lg: 0 32px 64px rgba(7, 9, 15, 0.16);
    --shadow-glow: 0 0 40px rgba(201, 164, 90, 0.28);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 999px;

    --transition-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    --header-h: 78px;

    /* Antigravity Motion & Spotlight System */
    --mouse-x: 50%;
    --mouse-y: 50%;
    --ease-antigravity: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --spotlight-gold: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 164, 90, 0.18), transparent 70%);
    --spotlight-emerald: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(31, 107, 82, 0.2), transparent 70%);
    --glass-bg: rgba(255, 252, 247, 0.85);
    --glass-border: 1px solid rgba(201, 164, 90, 0.28);
    --glass-shadow: 0 16px 40px -10px rgba(7, 9, 15, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--ivory);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-tag::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-title em {
    font-style: italic;
    color: var(--gold-deep);
    font-weight: 500;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
}

.text-center { text-align: center; }
.text-highlight { color: var(--gold-deep); font-style: italic; }
.text-gold { color: var(--gold-deep); }
.text-green { color: var(--emerald); }

.text-gradient {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--ink);
    box-shadow: 0 14px 32px rgba(201, 164, 90, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(201, 164, 90, 0.38);
}

.btn-secondary {
    background: var(--emerald);
    color: #fff;
    box-shadow: 0 12px 28px rgba(31, 107, 82, 0.28);
}

.btn-secondary:hover {
    background: var(--accent-green-hover);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: #F6F1E8;
    border: 1px solid rgba(232, 213, 163, 0.45);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(22, 32, 51, 0.22);
    color: var(--navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--ivory);
    transform: translateY(-2px);
}

.btn-glow { overflow: hidden; }

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.btn-glow:hover::after { left: 120%; }

.btn-block { width: 100%; }

.btn-primary:active,
.btn-hotline:active {
    transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   SEO / a11y
   -------------------------------------------------------------------------- */
.visually-hidden,
.sr-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal-up.is-visible {
    animation: revealFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-left.is-visible {
    animation: revealFadeLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-right.is-visible {
    animation: revealFadeRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.08s !important; }
.reveal-delay-2 { animation-delay: 0.16s !important; }
.reveal-delay-3 { animation-delay: 0.28s !important; }
.reveal-delay-4 { animation-delay: 0.4s !important; }

/* --------------------------------------------------------------------------
   Policy
   -------------------------------------------------------------------------- */
.policy-section {
    padding: 88px 0 96px;
    background:
        radial-gradient(circle at 80% 0%, rgba(201, 164, 90, 0.08), transparent 36%),
        var(--ivory);
}

.policy-container {
    width: 100%;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.policy-card {
    background: var(--surface);
    border: 1px solid rgba(22, 20, 16, 0.07);
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.policy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.policy-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(201, 164, 90, 0.16), rgba(31, 107, 82, 0.1));
    color: var(--gold-deep);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.policy-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.policy-card p {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 164, 90, 0.18) !important;
    outline: none !important;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    80% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.cart-count.pulse-anim {
    animation: cartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.06) translate(-1%, -0.8%); }
    100% { transform: scale(1) translate(0, 0); }
}

@keyframes shimmerSweep {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes revealFadeLeft {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealFadeRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes imageGlowPulse {
    0%, 100% { box-shadow: 0 28px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(232, 213, 163, 0.18); }
    50% { box-shadow: 0 32px 70px rgba(0,0,0,0.48), 0 0 40px rgba(201, 164, 90, 0.22); }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 90, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(201, 164, 90, 0); }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -1%); }
    30% { transform: translate(1%, 2%); }
    50% { transform: translate(-1%, 1%); }
    70% { transform: translate(2%, -2%); }
    90% { transform: translate(-2%, 2%); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatSlowReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-1.2deg); }
}

@keyframes ringRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseAura {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.12); opacity: 0.85; }
}

@keyframes liquidGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Antigravity Utilities */
.spotlight-card {
    position: relative;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s var(--ease-antigravity), box-shadow 0.4s var(--ease-antigravity), border-color 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--spotlight-gold);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: rgba(201, 164, 90, 0.45);
    box-shadow: 0 20px 45px rgba(7, 9, 15, 0.09), 0 0 24px rgba(201, 164, 90, 0.12);
    transform: translateY(-6px);
}

.reveal-antigravity {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
    filter: blur(4px);
    transition: opacity 0.75s var(--ease-antigravity), transform 0.75s var(--ease-antigravity), filter 0.75s var(--ease-antigravity);
    will-change: transform, opacity, filter;
}

.reveal-antigravity.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.antigravity-float-1 {
    animation: floatSlow 6s ease-in-out infinite;
    will-change: transform;
}

.antigravity-float-2 {
    animation: floatSlowReverse 7s ease-in-out infinite;
    will-change: transform;
}

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

@media (max-width: 600px) {
    .policy-section { padding: 56px 0 64px; }
    .policy-grid { grid-template-columns: 1fr; gap: 12px; }
    .container { padding: 0 18px; }
}

/* ==========================================================================
   Site Preloader Screen
   ========================================================================== */
.site-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ink, #07090F);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility, transform;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.04);
}

.preloader-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 164, 90, 0.12) 0%, rgba(22, 32, 51, 0.5) 45%, #07090F 85%);
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.preloader-logo-wrapper {
    position: relative;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.preloader-halo {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 90, 0.38) 0%, rgba(201, 164, 90, 0) 70%);
    animation: preloaderHaloPulse 2.4s ease-in-out infinite alternate;
    pointer-events: none;
}

.preloader-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gold, #C9A45A);
    border-right-color: rgba(201, 164, 90, 0.35);
    animation: preloaderRingSpin 2.2s linear infinite;
}

.preloader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 10px 28px rgba(201, 164, 90, 0.35));
    animation: preloaderLogoFloat 3s ease-in-out infinite;
}

.preloader-title {
    font-family: var(--font-display, 'Cormorant Garamond', 'Times New Roman', serif);
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8D5A3 50%, #C9A45A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 24px rgba(201, 164, 90, 0.25);
    animation: preloaderTitleGlow 2.6s ease-in-out infinite;
}

.preloader-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full, 999px);
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, #C9A45A, #E8D5A3, transparent);
    border-radius: var(--radius-full, 999px);
    animation: preloaderBarSlide 1.5s ease-in-out infinite;
}

@keyframes preloaderHaloPulse {
    0% { transform: scale(0.9); opacity: 0.45; }
    100% { transform: scale(1.2); opacity: 0.95; }
}

@keyframes preloaderRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes preloaderTitleGlow {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(201, 164, 90, 0.4)); }
}

@keyframes preloaderBarSlide {
    0% { left: -50%; width: 35%; }
    50% { left: 30%; width: 55%; }
    100% { left: 110%; width: 35%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}
