/* ============================================================
   ART SPIRIT · shared.css
   Tokens + Header + Footer + Cursor + Particles + Animations
   ============================================================ */

:root {
    /* Liquid Glass & Premium Tokens */
    --bg-base:      #D3BBA1;
    --bg-glass:     rgba(255, 255, 255, 0.25);
    --bg-glass-hover: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --border-accent: rgba(254, 66, 2, 0.3);
    
    --cream:      #D3BBA1; /* Fallback mapping for existing classes */
    --cream-2:    rgba(255, 255, 255, 0.15);
    --cream-3:    rgba(255, 255, 255, 0.3);
    --sand:       #C8B096;
    --wood:       #FE4202; /* Gold accent replacement */
    --wood-dark:  #111111;
    --bark:       #111111;
    --accent:     #FE4202; /* Gold */
    --accent-2:   #E83D02;
    --gold:       #FE4202;
    
    --text:       #1C1208;
    --text-mid:   #5A4030;
    --text-muted: rgba(28, 18, 8, 0.6);
    --white:      #FFFFFF;
    
    --font:       'Codec Pro', sans-serif;
    --ease-out:   cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in:    cubic-bezier(0.5, 0, 0.75, 0);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── NOISE GRAIN ─────────────────────────────────────────────── */
.grain::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── SCROLL PROGRESS ─────────────────────────────────────────── */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 9998;
    transition: transform 0.1s linear;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(255,79,0,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ── PARTICLES ───────────────────────────────────────────────── */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── GLASSMORPHISM UTILITIES ─────────────────────────────────── */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.liquid-glass-hover {
    transition: all 0.4s var(--ease-out);
}
.liquid-glass-hover:hover {
    background: var(--bg-glass-hover);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-color: var(--border-accent);
    box-shadow: 0 12px 40px rgba(254, 66, 2, 0.15);
    transform: translateY(-4px);
}

/* ── HEADER ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 0 28px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.4s var(--ease-out);
}

header.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 38px;
    border-radius: 7px;
    transition: transform 0.3s var(--ease-out);
}

.logo:hover img { transform: rotate(-3deg) scale(1.05); }

.logo-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--white);
}

nav { display: flex; align-items: center; gap: 36px; }

nav > a, .nav-drop > a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    position: relative;
    transition: color 0.25s;
}

nav > a::after, .nav-drop > a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1.5px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

nav > a.active { color: var(--accent); }
nav > a.active::after { width: 100%; }
nav > a:hover, .nav-drop > a:hover { color: var(--text); }
nav > a:hover::after, .nav-drop:hover > a::after { width: 100%; }

/* ── DROPDOWN ────────────────────────────────────────────────── */
.nav-drop { position: relative; }

.nav-drop > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-drop > a .chev {
    width: 12px; height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out);
    opacity: 0.5;
}

.nav-drop:hover > a .chev {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-drop::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px; right: -20px;
    height: 18px;
}

.dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--white);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(212,196,168,0.3);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}

.nav-drop:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: var(--white);
    border-top: 1px solid rgba(212,196,168,0.3);
    border-left: 1px solid rgba(212,196,168,0.3);
}

.dropdown-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(212,196,168,0.35);
    margin-bottom: 6px;
}

.dropdown-header span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.dropdown-header strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--cream-2);
    color: var(--text);
    padding-left: 18px;
}

.dropdown-item:hover .di-icon {
    background: var(--accent);
    color: var(--white);
}

.di-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--cream-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.di-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.di-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.dropdown-footer {
    margin-top: 6px;
    padding: 10px 14px 6px;
    border-top: 1px solid rgba(212,196,168,0.35);
}

.dropdown-footer a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.dropdown-footer a:hover { gap: 10px; }

/* ── HEADER ACTIONS ──────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-sw {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.lang-sw a { color: var(--text-muted); transition: color 0.2s; }
.lang-sw a.on { color: var(--accent); }

.icon-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(212,196,168,0.6);
    color: var(--text-mid);
    transition: all 0.25s var(--ease-out);
    position: relative;
    cursor: pointer;
    background: none;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,79,0,0.06);
}

.icon-btn svg { transition: stroke 0.25s; }

.wish-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    width: 16px; height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wish-count.visible { display: flex; }

/* ── BURGER ──────────────────────────────────────────────────── */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ──────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 199;
    flex-direction: column;
    padding: 100px 32px 48px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-nav.open { opacity: 1; transform: translateX(0); }

.mobile-nav a {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    padding: 18px 0;
    border-bottom: 1px solid rgba(212,196,168,0.4);
    display: block;
    transition: color 0.2s, padding-left 0.3s var(--ease-out);
}

.mobile-nav a:hover { color: var(--accent); padding-left: 12px; }

.mobile-nav-footer {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-nav-footer a {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border: 1px solid var(--sand) !important;
    border-radius: 50px !important;
    letter-spacing: 0.06em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: var(--wood-dark);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 32px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand-logo img { height: 34px; border-radius: 6px; }

.footer-brand-logo span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--white);
}

.footer-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.75;
    margin-bottom: 24px;
}

.social-row { display: flex; gap: 8px; }

.soc {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    transition: all 0.25s;
}

.soc:hover { border-color: var(--accent); color: var(--accent); }

.ft-col h5 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
}

.ft-col ul { display: flex; flex-direction: column; gap: 12px; }

.ft-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }

    nav { display: none; }
    .lang-sw { display: none; }
    .burger { display: flex; }
    .mobile-nav { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SVG ICONS ────────────────────────────────────────────────── */
.nav-icon-img {
    display: inline-block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.3s var(--ease-out);
}

.nav-dropdown ul li a .nav-icon-img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.dropdown-item:hover .nav-icon-img,
.nav-dropdown ul li a:hover .nav-icon-img {
    transform: scale(1.15) rotate(-3deg);
}

.wish-count.active {
    display:flex;
}