/* ═══════════════════════════════════════════
   CASINO ROYALE — Design System
   Fonts: Cinzel (display) + DM Sans (body)
   Palette: Deep black, burgundy, antique gold
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --gold-dark: #9a7518;
    --crimson: #8b1a2b;
    --crimson-light: #c42d42;
    --burgundy: #3d0a14;
    --black: #080808;
    --black-soft: #121212;
    --black-card: #1a1414;
    --cream: #f5f0e8;
    --cream-muted: #c8bfb0;
    --white: #ffffff;
    --text-main: #f0ebe3;
    --text-muted: #9a9088;
    --text-dark: #2a2018;
    --border-gold: rgba(212, 168, 67, 0.25);
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.2);
    --shadow-dark: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--black);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6, p, a, li, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.top-bar {
    background: var(--burgundy);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    font-size: 0.82rem;
    color: var(--cream-muted);
    padding: 0.55rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-contact a,
.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cream-muted);
}

.top-bar-contact a:hover {
    color: var(--gold-light);
}

.top-bar-links {
    display: flex;
    gap: 1.25rem;
}

.top-bar-links a {
    color: var(--cream-muted);
    font-weight: 500;
}

.top-bar-links a:hover {
    color: var(--gold);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
body > header {
    background: var(--black-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

body > header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 4%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.logo img {
    height: 44px;
    transition: var(--transition);
}

.nav-list ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.4rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--crimson);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-login {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--text-main);
    color: var(--black);
}

.btn-signup {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212, 168, 67, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .top-bar-links { display: none; }

    .header-auth .btn-login { display: none; }

    .header-auth {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--black-soft);
        padding: 5rem 2rem 2rem;
        z-index: 999;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .nav-list.active { display: block; }

    .nav-list ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-list a {
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    .mobile-menu-toggle { display: flex; }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--crimson);
    }

    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--crimson);
    }
}

/* ═══════════════════════════════════════════
   BUTTONS (shared)
   ═══════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--crimson);
    padding: 0.65rem 1.4rem;
    border: 2px solid var(--crimson);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--crimson);
    color: var(--white);
}

.btn-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-link:hover {
    color: var(--gold-light);
    gap: 0.55rem;
}

/* ═══════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════ */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-title--light {
    color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
    background: var(--black-soft);
    border-top: 3px solid var(--gold-dark);
    padding: 4rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 42px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p { margin: 0 auto 1.5rem; }
    .footer-social { justify-content: center; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { justify-content: center; }
}

/* ═══════════════════════════════════════════
   AD CONTAINER
   ═══════════════════════════════════════════ */
.ad-wrapper {
    padding: 2rem 0;
}

.ad-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

/* ═══════════════════════════════════════════
   MOBILE FIXED BUTTON
   ═══════════════════════════════════════════ */
.mobile-fixed-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(8, 8, 8, 0.97);
    border-top: 2px solid var(--gold-dark);
    z-index: 1000;
    text-align: center;
}

.mobile-fixed-btn .btn-primary {
    display: block;
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
}

@media (max-width: 992px) {
    .mobile-fixed-btn { display: block; }
    body { padding-bottom: 72px; }
}
