/*  casinocashback.info — main.css (critical path)
    Render-blocking CSS for above-the-fold content. Tokens + container + header
    + hero + base typography. components.css carries the rest (loaded async). */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
    /* Money-back green palette */
    --green-900: #0f2419;
    --green-700: #1f4a31;
    --green-600: #2d6a48;
    --green-500: #3b8a5e;
    --green-400: #5cae7f;
    --green-300: #8fcfa3;
    --green-100: #d8efe1;
    --green-50:  #eaf6ee;

    --gold-500: #c89b3c;
    --gold-400: #e0b860;

    --bg:        #f7f8f4;
    --bg-card:   #ffffff;
    --bg-alt:    #eaf6ee;
    --bg-dark:   #0f2419;

    --text:      #1a2a22;
    --text-mid:  #4a5a52;
    --text-dim:  #6b7d72;

    --border:    #d3e0d6;
    --border-strong: #a8c5b0;

    --accent:    var(--green-600);
    --accent-strong: var(--green-700);
    --accent-soft:   var(--green-100);

    --radius:    10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 36, 25, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 36, 25, 0.10);
    --shadow-lg: 0 10px 30px rgba(15, 36, 25, 0.12);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container: 1180px;
    --container-pad: clamp(16px, 4vw, 32px);
}

/* ── Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--green-900);
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--container-pad);
}

/* ── Skip link ───────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -40px; left: 8px;
    background: var(--green-700); color: #fff;
    padding: .5em 1em; border-radius: var(--radius);
    z-index: 999;
}
.skip-link:focus { top: 8px; }

/* ── Site header (sticky) ─────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex; align-items: center; gap: 1.5rem;
    height: 64px;
}
.site-header__logo {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.2rem;
    color: var(--green-900);
}
.site-header__logo:hover { text-decoration: none; color: var(--green-700); }
.site-header__logo-icon { width: 26px; height: 26px; color: var(--green-600); }

.site-header__nav { flex: 1; }
.site-header__menu {
    list-style: none; padding: 0; margin: 0;
    display: flex; align-items: center; gap: .25rem;
}
.site-header__menu-link {
    display: inline-flex; align-items: center; gap: .35em;
    padding: .55em .9em;
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 500; font-size: .94rem;
}
.site-header__menu-link:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }
.site-header__menu-caret { opacity: .55; }

.site-header__cta {
    margin-left: auto;
}

/* ── Burger ──────────────────────────────────────────────────────────── */
.site-header__burger {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    margin-left: auto;
}
.site-header__burger-bar {
    width: 22px; height: 2px; background: var(--text);
    transition: transform .25s, opacity .2s;
}
[data-mobile-menu-toggle][aria-expanded="true"] .site-header__burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
[data-mobile-menu-toggle][aria-expanded="true"] .site-header__burger-bar:nth-child(2) { opacity: 0; }
[data-mobile-menu-toggle][aria-expanded="true"] .site-header__burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    padding: .7em 1.1em;
    border-radius: var(--radius);
    font-weight: 600; font-size: .94rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s, color .18s, transform .12s, box-shadow .18s;
    line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-accent {
    background: var(--green-600); color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--green-700); color: #fff; }
.btn-ghost {
    background: transparent; color: var(--green-700);
    border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--green-50); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(180deg, var(--green-50), transparent 70%);
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: .08em;
    font-size: .78rem; font-weight: 600;
    color: var(--green-700); margin: 0 0 .6em;
}
.hero__h1 { margin-top: 0; }
.hero__lede {
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    color: var(--text-mid);
    max-width: 720px;
}
.hero__cta-row {
    display: flex; flex-wrap: wrap; gap: .65rem;
    margin: 1.4rem 0 0;
}
.hero__badges {
    list-style: none; padding: 0; margin: 1.5rem 0 0;
    display: flex; flex-wrap: wrap; gap: .5rem;
    font-size: .85rem;
}
.hero__badges li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: .35em .85em;
    color: var(--text-mid);
}

/* ── Mobile breakpoint (drawer) ──────────────────────────────────────── */
@media (max-width: 980px) {
    .site-header__burger { display: inline-flex; }
    .site-header__cta { display: none; }

    .site-header__nav {
        position: fixed; top: 0; right: 0;
        width: min(360px, 88vw); height: 100vh;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .32s ease;
        z-index: 999;
        display: flex; flex-direction: column;
        overflow-y: auto;
    }
    .site-header__nav.is-open { transform: translateX(0); }

    .site-header__menu {
        flex-direction: column; align-items: stretch;
        padding: .5rem 1.2rem; gap: 0; flex: 1;
    }
    .site-header__menu-item { border-bottom: 1px solid var(--border); }
    .site-header__menu-link {
        display: flex; justify-content: space-between;
        padding: 1em .25em;
        font-size: 1rem;
        white-space: normal;
    }
}
@media (min-width: 981px) {
    .site-drawer__head, .site-drawer__foot, .site-drawer__only { display: none; }
}

/* ── Drawer chrome (mobile only) ─────────────────────────────────────── */
.site-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.site-drawer__brand {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-heading); font-weight: 700;
    color: var(--green-900);
}
.site-drawer__brand svg { width: 22px; height: 22px; color: var(--green-600); }
.site-drawer__close {
    width: 40px; height: 40px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
}
.site-drawer__close:hover { background: var(--green-50); }
.site-drawer__foot {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.site-drawer__cta { width: 100%; }

.site-drawer__backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 36, 25, .55);
    opacity: 0; pointer-events: none;
    transition: opacity .32s ease;
    z-index: 998;
}
.site-drawer__backdrop.is-open {
    opacity: 1; pointer-events: auto;
}
body.is-drawer-open { overflow: hidden; }
