/* ============================================================
   shared.css — Design System Premium
   Mr. Charlie · Charlino Club & Restaurant
   ============================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ════════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════════ */
:root {
    /* Palette */
    --bg:         #FAF7F2;
    --bg-warm:    #F5F0E8;
    --white:      #FFFFFF;
    --surface:    #FFFFFF;
    --surface-2:  #FDFBF7;
    --surface-gl: rgba(255,255,255,0.72);

    --gold:       #B8861B;
    --gold-h:     #9E6E16;
    --gold-l:     #D4A63E;
    --gold-bg:    rgba(184,134,27,0.06);
    --gold-glow:  rgba(184,134,27,0.12);
    --gold-line:  rgba(184,134,27,0.25);

    --text:       #1A1714;
    --text-2:     #5C5347;
    --text-3:     #9A9088;
    --text-inv:   #F2EAD8;

    --border:     rgba(184,134,27,0.12);
    --border-2:   #E8E2D8;
    --border-h:   rgba(184,134,27,0.35);

    /* System */
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --nav-h:      106px;
    --shadow-sm:  0 1px 3px rgba(26,23,20,0.04), 0 2px 8px rgba(26,23,20,0.04);
    --shadow:     0 2px 8px rgba(26,23,20,0.05), 0 8px 32px rgba(26,23,20,0.06);
    --shadow-lg:  0 4px 16px rgba(26,23,20,0.06), 0 16px 48px rgba(26,23,20,0.10);
    --shadow-glow:0 0 0 1px rgba(184,134,27,0.08), 0 8px 40px rgba(184,134,27,0.12);

    /* Timing */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur:        0.4s;
    --dur-fast:   0.2s;
    --dur-slow:   0.6s;
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--gold);
    color: #fff;
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}
a:hover { color: var(--gold-h); }

/* ════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════ */
.font-serif,
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.eyebrow-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ════════════════════════════════════════════
   NAVBAR — Glassmorphism
   ════════════════════════════════════════════ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 247, 242, 0.55);
    backdrop-filter: blur(28px) saturate(2.0) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(2.0) brightness(1.04);
    border-bottom: 1px solid rgba(184,134,27,0.18);
    box-shadow: 0 1px 0 rgba(255,255,255,0.60) inset,
                0 4px 24px rgba(26,23,20,0.06);
    padding: 0 24px;
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease;
}
.navbar.scrolled {
    background: rgba(250, 247, 242, 0.82);
    border-bottom-color: rgba(184,134,27,0.28);
    box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset,
                0 8px 32px rgba(26,23,20,0.10);
}
.navbar-logo img {
    max-height: 80px;
    display: block;
    transition: transform var(--dur) var(--ease-out);
}
.navbar-logo img:hover { transform: scale(1.04); }

/* Mobile toggle */
.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
    line-height: 1;
    transition: all var(--dur-fast) ease;
}
.navbar-toggler:hover {
    background: var(--gold-bg);
    border-color: var(--border-h);
}
.navbar-toggler:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Mobile menu */
.navbar-links {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.72);
    backdrop-filter: blur(32px) saturate(2.2) brightness(1.05);
    -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.05);
    border-bottom: 1px solid rgba(184,134,27,0.18);
    position: absolute;
    top: var(--nav-h);
    left: 0;
    z-index: 1001;
    box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset,
                0 20px 48px rgba(26,23,20,0.12);
}
.navbar-links.active { display: flex; }
.navbar-links li { opacity: 0; }
.navbar-links li.nav-fade-in {
    animation: navSlideIn 0.35s var(--ease-out) forwards;
}
@keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar-links li a {
    display: block;
    padding: 18px 24px;
    color: var(--text-2);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease, padding-left var(--dur) var(--ease-out);
    border-radius: 0;
}
.navbar-links li a:hover {
    color: var(--gold);
    background: var(--gold-bg);
    padding-left: 30px;
}

/* ════════════════════════════════════════════
   HERO — Cinematic
   ════════════════════════════════════════════ */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
/* Disable fixed attachment on mobile (causes issues) */
@supports (-webkit-touch-callout: none) {
    .hero { background-attachment: scroll; }
}
@media (hover: none) {
    .hero { background-attachment: scroll; }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.20) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.45) 100%
    );
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-text {
    position: relative;
    z-index: 3;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.35);
    padding: 0 24px;
    line-height: 1.15;
    animation: heroFadeIn 1.2s var(--ease-out) forwards;
}
.hero-text em {
    font-style: italic;
    color: var(--gold-l);
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ════════════════════════════════════════════
   SPONSOR
   ════════════════════════════════════════════ */
.sponsor-logos {
    text-align: center;
    padding: 36px 20px 8px;
}
.sponsor-logos .sponsor-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}

/* ════════════════════════════════════════════
   FOOTER — Premium
   ════════════════════════════════════════════ */
.footer {
    background: var(--text);
    color: #b0a89e;
    padding: 52px 24px 20px;
    margin-top: auto;
    font-size: 0.85rem;
    line-height: 1.7;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-line) 30%,
        var(--gold) 50%,
        var(--gold-line) 70%,
        transparent 100%
    );
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.footer-section h4 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a,
.footer-section p,
.footer-section a {
    color: #b0a89e;
    text-decoration: none;
    transition: color var(--dur-fast) ease;
    font-size: 1.00rem;
}
.footer-section ul li a:hover,
.footer-section a:hover { color: #fff; }
.footer-section.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.1rem;
    transition: all var(--dur-fast) ease;
}
.footer-section.social a:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-l);
    transform: translateY(-2px);
}
.footer-section.social i { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.84rem;
    color: #58504a;
    max-width: 1000px;
    margin: 0 auto;
    letter-spacing: 0.04em;
}
.footer-bottom a {
    color: #58504a;
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}
.footer-bottom a:hover { color: var(--gold-l); }

/* ════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.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; }

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* Fade-in (legacy compat) */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   GOLD DIVIDER
   ════════════════════════════════════════════ */
.gold-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-l));
    border-radius: 2px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════
   SHIMMER TEXT EFFECT
   ════════════════════════════════════════════ */
.shimmer {
    background: linear-gradient(
        110deg,
        var(--gold-h) 0%,
        var(--gold) 30%,
        var(--gold-l) 50%,
        var(--gold) 70%,
        var(--gold-h) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { background-position: 100% center; }
    100% { background-position: -100% center; }
}

/* ════════════════════════════════════════════
   FLOATING PARTICLES (optional bg effect)
   ════════════════════════════════════════════ */
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s ease-in-out infinite;
}
@keyframes float-particle {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 0.3; }
    50%  { opacity: 0.12; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ════════════════════════════════════════════
   DESKTOP (≥ 769px)
   ════════════════════════════════════════════ */
@media (min-width: 769px) {
    .navbar { padding: 0 48px; }
    .navbar-toggler { display: none; }
    .navbar-links {
        display: flex !important;
        flex-direction: row;
        gap: 4px;
        position: static;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    .navbar-links li { opacity: 1 !important; animation: none !important; }
    .navbar-links li a {
        padding: 8px 16px;
        border-radius: var(--radius);
        position: relative;
    }
    .navbar-links li a::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 0;
        height: 1.5px;
        background: var(--gold);
        border-radius: 1px;
        transition: width var(--dur) var(--ease-out), left var(--dur) var(--ease-out);
    }
    .navbar-links li a:hover::after {
        width: 60%;
        left: 20%;
    }
    .navbar-links li a:hover {
        padding-left: 16px;
        background: transparent;
    }
    .navbar-logo img { max-height: 74px; }
    .hero-text { font-size: 3.6rem; }

    .footer-content {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
        gap: 40px;
    }
    .footer-section { flex: 1; }
    .footer-section.about { flex: 0.65; }
    .footer-section.social { text-align: center; }
}

@media (min-width: 481px) { .hero-text { font-size: 2.6rem; } }

/* ════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════ */
.glass {
    background: var(--surface-gl);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid var(--border);
}
.glow-border { box-shadow: var(--shadow-glow); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-3); }
