/* ==========================================================================
   BeaverKing.net - hand-crafted design system (no Tailwind).
   Dark is the default theme (html gets .dark via an early bootstrap script);
   .light-only overrides live under :root and are swapped by removing .dark.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
    --bg: #fffdf8;
    --surface: #ffffff;
    --surface-2: #fff3e0;
    --ink: #1a1a1a;
    --muted: #5a5550;
    --border: #ece4d6;
    --accent: #d47f00;
    --accent-strong: #b86e00;
    --accent-ink: #1a1200;
    --link: #b86e00;
    --shadow: 0 6px 24px rgba(60, 40, 0, 0.10);
    --radius: 14px;
    --maxw: 80rem;
    color-scheme: light;
}

html.dark {
    --bg: #0e0e11;
    --surface: #17171b;
    --surface-2: #201d18;
    --ink: #f4f3f0;
    --muted: #a9a59d;
    --border: #35323b;
    --accent: #f0921f;
    --accent-strong: #ffb24d;
    --accent-ink: #160f00;
    --link: #ffb24d;
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); }

h1, h2, h3 {
    font-family: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

.wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--surface-2); }
.center { text-align: center; }
.accent { color: var(--accent-strong); }

.kicker {
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--accent-strong);
    margin-bottom: 0.4rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.6rem 1rem;
    border-radius: 0 0 var(--radius) 0;
    z-index: 200;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 4px 0 var(--accent-strong);
}
.btn-primary:hover { box-shadow: 0 6px 0 var(--accent-strong); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }

.btn-lg { font-size: 1.1rem; padding: 0.9rem 1.7rem; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 900;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
}
.brand-mark { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.nav a:not(.btn):hover { color: var(--accent-strong); }

.nav-cta { padding: 0.45rem 1.1rem; }

.theme-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink);
}
.theme-toggle:hover { border-color: var(--accent); }

.nav-toggle {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--ink);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--border); }
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.hero-title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 1rem; }
.hero-trust { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.hero-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.hero-art img {
    border-radius: clamp(1.5rem, 5vw, 2.75rem);
    border: 3px solid var(--accent);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin: 0 0 0.9rem;
    transform: rotate(-1.5deg);
}

/* ---- Story --------------------------------------------------------------- */
.story p { font-size: 1.15rem; max-width: 50rem; }

/* ---- Features ------------------------------------------------------------ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.feature p { margin: 0; color: var(--muted); }
.feat-emoji { font-size: 1.7rem; }

/* ---- Gallery ------------------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.gallery img {
    border-radius: clamp(1.5rem, 5vw, 2.75rem);
    border: 1px solid var(--border);
    background: var(--surface);
    width: 100%;
}
.price-note { color: var(--muted); font-weight: 600; margin-top: 0.6rem; }

/* ---- Reviews ------------------------------------------------------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.review {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin: 0;
    box-shadow: var(--shadow);
}
.review .stars { color: var(--accent-strong); font-size: 1.05rem; }
.review blockquote { margin: 0.6rem 0; font-style: italic; }
.review figcaption { font-weight: 700; color: var(--muted); }

/* ---- Beer band ----------------------------------------------------------- */
.beer-band {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: var(--accent-ink);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}
.beer-band .kicker, .beer-band a.btn-ghost { color: var(--accent-ink); }
.beer-inner { max-width: 50rem; }
.beer-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.beer-band .btn-ghost { border-color: var(--accent-ink); margin-top: 0.6rem; }
.beer-band .btn-ghost:hover { background: var(--accent-ink); color: var(--accent); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { margin-top: 1.5rem; max-width: 52rem; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 1.1rem;
    margin-bottom: 0.7rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-weight: 900; }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding-block: clamp(2rem, 5vw, 3rem);
    text-align: center;
}
.footer-inner { display: grid; gap: 1rem; justify-items: center; }
.footer-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Lawsuit page (body.lawsuit) - themed legacy structure
   ========================================================================== */
.page-hero {
    padding-block: clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero .lead, .center .lead { margin-inline: auto; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.breadcrumb a { color: var(--link); }

.prose { max-width: 52rem; }
.prose p { margin: 0 0 1rem; }

.logo-grid, .photo-grid {
    display: grid;
    gap: 1.2rem;
    margin: 1.5rem 0;
}
.logo-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.photo-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.media-card img { border-radius: 10px; margin: 0 auto 0.6rem; width: 100%; }
.media-card p { margin: 0; color: var(--muted); font-weight: 600; }

.bk { cursor: url('/img/finger.cur'), auto; }

.fun-badge { margin-top: 1.5rem; }
.halfgan {
    border-radius: 25%;
    width: min(460px, 90vw);
    height: auto;
    margin-inline: auto;
    box-shadow: var(--shadow);
}

/* Lift + glow on hover for product / movie imagery */
.hero-art img,
.gallery img,
.media-card img,
.halfgan {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.hero-art img:hover,
.gallery img:hover,
.media-card img:hover,
.halfgan:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 46px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
        display: none;
    }
    .nav.nav-open { display: flex; }
    .nav-cta, .nav .theme-toggle { align-self: flex-start; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { max-width: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn,
    .hero-art img,
    .gallery img,
    .media-card img,
    .halfgan { transition: none; }
    .hero-art img:hover,
    .gallery img:hover,
    .media-card img:hover,
    .halfgan:hover { transform: none; }
}
