/* ============================================================
   Beast Header & Footer — Frontend CSS
   Mobile-First | Glassmorphism | Zero CLS
   ============================================================ */

/* ─── GLOBAL OVERFLOW FIX ─── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ─── RESET & BASE ─── */
.beast-header,
.beast-footer,
.beast-drawer {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
.beast-header *,
.beast-footer *,
.beast-drawer * {
    box-sizing: border-box;
}

/* ─── CONTAINER ─── */
.beast-container {
    width: 100%;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
}

/* ============================================================
   HEADER
   ============================================================ */
.beast-header {
    background: var(--beast-header-bg, #0a0e17);
    color: var(--beast-header-text, #e0e0e0);
    z-index: 9999;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Sticky */
.beast-header--sticky {
    position: sticky;
    top: 0;
}

/* Glassmorphism — activated via JS after 10px scroll */
.beast-header--scrolled.beast-header--glass-ready {
    background: rgba(10, 14, 23, var(--beast-glass-opacity, 0.75));
    -webkit-backdrop-filter: blur(var(--beast-glass-blur, 12px));
    backdrop-filter: blur(var(--beast-glass-blur, 12px));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Header Inner — Mobile default */
.beast-header > .beast-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(50px, 8vw, 70px);
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* ─── LAYOUTS ─── */
/* Logo Left / Menu Right (default) */
.beast-layout--logo-left > .beast-container {
    flex-direction: row;
}

/* Centered */
.beast-layout--centered > .beast-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Stacked */
.beast-layout--stacked > .beast-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ============================================================
   BRANDING
   ============================================================ */
.beast-brand {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    flex-shrink: 1;
    min-width: 0;
    text-decoration: none;
    max-width: 100%;
}
.beast-logo-link {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 100%;
}
/* Logo SVG — wrapper controls sizing; SVG fills wrapper at 100% */
.beast-logo--svg {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    height: var(--beast-mobile-logo-h, 40px);
    width: auto;
    flex-shrink: 0;
}
.beast-logo--svg svg {
    height: 100% !important;
    width: auto !important;
    max-height: 100% !important;
    display: block;
}
.beast-logo--img {
    height: var(--beast-mobile-logo-h, 40px) !important;
    max-height: var(--beast-mobile-logo-h, 40px) !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}
.beast-logo--text {
    font-family: var(--beast-title-font, 'Inter', sans-serif);
    font-size: var(--beast-title-size, 22px);
    font-weight: 700;
    color: var(--beast-title-color, #fff);
    letter-spacing: -0.02em;
}
.beast-brand-text {
    display: flex;
    flex-direction: column;
}
.beast-site-title {
    font-family: var(--beast-title-font, 'Inter', sans-serif);
    font-size: var(--beast-title-size, 22px);
    font-weight: 700;
    color: var(--beast-title-color, #fff);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.beast-tagline {
    font-size: 12px;
    color: var(--beast-header-text, #999);
    opacity: 0.7;
    line-height: 1.3;
}

/* ============================================================
   DESKTOP NAVIGATION (Hidden on mobile)
   ============================================================ */
.beast-nav-desktop {
    display: none;
}

.beast-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--beast-menu-spacing, 24px);
}
.beast-menu-list li {
    position: relative;
}
.beast-menu-list li a {
    display: block;
    color: var(--beast-header-text, #e0e0e0);
    text-decoration: none;
    font-size: var(--beast-menu-font-size, 15px);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
}
.beast-menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--beast-accent, #007BFF);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.beast-menu-list li a:hover,
.beast-menu-list li.current-menu-item > a,
.beast-menu-list li.current_page_item > a {
    color: var(--beast-accent, #007BFF);
}
.beast-menu-list li a:hover::after,
.beast-menu-list li.current-menu-item > a::after,
.beast-menu-list li.current_page_item > a::after {
    width: 100%;
}

/* Sub-menus */
.beast-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--beast-header-bg, #0a0e17);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 100;
    list-style: none;
    flex-direction: column;
    gap: 0;
}
.beast-menu-list li:hover > .sub-menu {
    display: flex;
}
.beast-menu-list .sub-menu li a {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}
.beast-menu-list .sub-menu li a::after {
    display: none;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.beast-search {
    display: none; /* Hidden on mobile — search is in drawer */
}

/* Inline search */
.beast-search--inline .beast-search-form {
    display: flex;
    align-items: center;
}
.beast-search--inline .beast-search-trigger {
    display: none;
}

/* Icon-Expand search */
.beast-search--icon-expand .beast-search-form {
    display: flex;
    align-items: center;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.beast-search--icon-expand.beast-search--open .beast-search-form {
    max-width: 280px;
    opacity: 1;
}
.beast-search--icon-expand.beast-search--open .beast-search-trigger {
    opacity: 0.5;
}

/* Overlay search */
.beast-search--overlay .beast-search-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
}
.beast-search--overlay.beast-search--open .beast-search-form {
    display: flex;
}
.beast-search--overlay .beast-search-input {
    max-width: 600px;
    width: 100%;
    font-size: 24px;
    padding: 16px 24px;
    border: none;
    border-bottom: 2px solid var(--beast-accent, #007BFF);
}

/* Common search elements */
.beast-search-trigger {
    background: none;
    border: none;
    color: var(--beast-header-text, #e0e0e0);
    cursor: pointer;
    padding: 8px;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
}
.beast-search-trigger:hover {
    color: var(--beast-accent, #007BFF);
}
.beast-search-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    width: 200px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.beast-search-input:focus {
    border-color: var(--beast-accent, #007BFF);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.beast-search-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.beast-search-submit {
    background: none;
    border: none;
    color: var(--beast-accent, #007BFF);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.beast-search-submit:hover {
    transform: scale(1.1);
}

/* ============================================================
   HAMBURGER — 3 Styles
   ============================================================ */
.beast-mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.beast-mobile-cta {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--beast-mobile-cta-color, #007BFF);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}
.beast-mobile-cta:hover {
    opacity: 0.85;
}
.beast-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    transition: all 0.3s ease;
}
.beast-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--beast-hamburger-color, #fff);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Minimal style */
.beast-hamburger--minimal .beast-hamburger-line {
    width: 20px;
    height: 1.5px;
}

/* Bold style */
.beast-hamburger--bold .beast-hamburger-line {
    width: 28px;
    height: 3px;
    border-radius: 3px;
}

/* Modern style — unequal widths */
.beast-hamburger--modern .beast-hamburger-line:nth-child(1) { width: 24px; }
.beast-hamburger--modern .beast-hamburger-line:nth-child(2) { width: 18px; align-self: flex-end; }
.beast-hamburger--modern .beast-hamburger-line:nth-child(3) { width: 24px; }

/* Active state — X animation */
.beast-hamburger.active .beast-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.beast-hamburger.active .beast-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.beast-hamburger.active .beast-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.beast-hamburger--bold.active .beast-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.beast-hamburger--bold.active .beast-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */
.beast-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
    visibility: hidden;
}
.beast-drawer[aria-hidden="false"] {
    pointer-events: auto;
    visibility: visible;
}

/* Overlay */
.beast-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.beast-drawer[aria-hidden="false"] .beast-drawer-overlay {
    opacity: 1;
}

/* Panel */
.beast-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: var(--beast-mobile-menu-bg, #0a0e17);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid rgba(255,255,255,0.06);
}

/* ── Slide Right ── */
.beast-drawer--slide-right .beast-drawer-panel {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.beast-drawer--slide-right[aria-hidden="false"] .beast-drawer-panel {
    transform: translateX(0);
}

/* ── Fade ── */
.beast-drawer--fade .beast-drawer-panel {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.beast-drawer--fade[aria-hidden="false"] .beast-drawer-panel {
    opacity: 1;
    transform: scale(1);
}

/* ── Staggered ── */
.beast-drawer--staggered .beast-drawer-panel {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-panel {
    transform: translateX(0);
}
.beast-drawer--staggered .beast-drawer-menu-list li {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li {
    opacity: 1;
    transform: translateX(0);
}
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(1) { transition-delay: 0.05s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(2) { transition-delay: 0.1s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(3) { transition-delay: 0.15s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(4) { transition-delay: 0.2s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(5) { transition-delay: 0.25s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(6) { transition-delay: 0.3s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(7) { transition-delay: 0.35s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(8) { transition-delay: 0.4s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(9) { transition-delay: 0.45s; }
.beast-drawer--staggered[aria-hidden="false"] .beast-drawer-menu-list li:nth-child(10) { transition-delay: 0.5s; }

/* Drawer Head */
.beast-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.beast-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--beast-title-color, #fff);
}
.beast-drawer-logo .beast-logo--svg svg,
.beast-drawer-logo .beast-logo--img {
    height: var(--beast-mobile-logo-h, 36px);
    width: auto;
}
.beast-drawer-logo .beast-site-title {
    font-size: 18px;
}
.beast-drawer-close {
    background: none;
    border: none;
    color: var(--beast-header-text, #999);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}
.beast-drawer-close:hover {
    background: rgba(255,255,255,0.08);
}

/* Drawer Search */
.beast-drawer-search {
    display: flex;
    align-items: center;
    margin: 16px 20px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.beast-drawer-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}
.beast-drawer-search input::placeholder {
    color: rgba(255,255,255,0.3);
}
.beast-drawer-search button {
    background: none;
    border: none;
    color: var(--beast-accent, #007BFF);
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Drawer Nav */
.beast-drawer-nav {
    flex: 1;
    padding: 8px 0;
}
.beast-drawer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.beast-drawer-menu-list li a {
    display: block;
    padding: 14px 20px;
    color: var(--beast-header-text, #e0e0e0);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.beast-drawer-menu-list li a:hover,
.beast-drawer-menu-list li.current-menu-item > a {
    color: var(--beast-accent, #007BFF);
    background: rgba(0, 123, 255, 0.06);
    padding-left: 28px;
}
.beast-drawer-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.beast-drawer-menu-list .sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
    opacity: 0.8;
}

/* Drawer CTA */
.beast-drawer-cta {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.beast-drawer-cta-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--beast-mobile-cta-color, #007BFF);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.beast-drawer-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.beast-footer {
    background: var(--beast-footer-bg, #060a12);
    color: var(--beast-footer-text, #a0a0a0);
    padding: 48px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer Grid — Mobile = stacked */
.beast-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.beast-footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
}
.beast-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--beast-footer-accent, #007BFF);
    border-radius: 2px;
}

.beast-footer-about {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.beast-footer-about p {
    margin: 0 0 8px;
}

/* Footer Menus */
.beast-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.beast-footer-menu li {
    margin-bottom: 6px;
}
.beast-footer-menu li a {
    color: var(--beast-footer-text, #a0a0a0);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.beast-footer-menu li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--beast-footer-accent, #007BFF);
    transition: width 0.25s ease;
}
.beast-footer-menu li a:hover {
    color: var(--beast-footer-accent, #007BFF);
}
.beast-footer-menu li a:hover::before {
    width: 12px;
}

/* Social Icons */
.beast-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.beast-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--beast-footer-text, #a0a0a0);
    transition: all 0.3s ease;
}
.beast-social-link:hover {
    color: #fff;
    background: var(--beast-footer-accent, #007BFF);
    border-color: var(--beast-footer-accent, #007BFF);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Newsletter */
.beast-newsletter {
    margin-top: 12px;
}
.beast-newsletter-wrap {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.beast-newsletter-wrap:focus-within {
    border-color: var(--beast-footer-accent, #007BFF);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.beast-newsletter-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.beast-newsletter-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}
.beast-newsletter-wrap button {
    background: var(--beast-footer-accent, #007BFF);
    border: none;
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}
.beast-newsletter-wrap button:hover {
    opacity: 0.85;
}

/* Copyright Bar */
.beast-copyright {
    background: var(--beast-copyright-bg, #040710);
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.beast-copyright-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
}
.beast-copyright-text {
    opacity: 0.7;
}
.beast-copyright-credit {
    color: var(--beast-footer-accent, #007BFF);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* Body scroll lock when drawer is open */
body.beast-drawer-open {
    overflow: hidden;
}

/* ============================================================
   DESKTOP OVERRIDES — min-width: 1200px
   ============================================================ */
@media (min-width: 1200px) {
    .beast-header > .beast-container {
        min-height: clamp(60px, 5vw, 80px);
        flex-wrap: nowrap;
    }

    /* Show desktop nav */
    .beast-nav-desktop {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    /* Nav list — wraps at high zoom */
    .beast-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Show desktop search */
    .beast-search {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    /* Hide hamburger & mobile CTA */
    .beast-mobile-controls {
        display: none;
    }

    /* Logo sizes — desktop override targets the wrapper */
    .beast-logo--svg {
        height: var(--beast-desktop-logo-h, 50px);
    }
    .beast-logo--img {
        height: var(--beast-desktop-logo-h, 50px) !important;
        max-height: var(--beast-desktop-logo-h, 50px) !important;
    }

    /* Layout: Logo Left */
    .beast-layout--logo-left .beast-nav-desktop {
        justify-content: flex-end;
        margin-right: 12px;
    }

    /* Layout: Centered */
    .beast-layout--centered .beast-nav-desktop {
        justify-content: center;
    }

    /* Layout: Stacked */
    .beast-layout--stacked .beast-nav-desktop {
        justify-content: flex-start;
    }

    /* Footer grid — auto-fit for zoom resilience */
    .beast-footer--cols-2 .beast-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .beast-footer--cols-3 .beast-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .beast-footer--cols-4 .beast-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Copyright bar row */
    .beast-copyright-inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ============================================================
   TABLET — 768px to 1199px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1199px) {
    .beast-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .beast-drawer-panel {
        max-width: 400px;
    }
}

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */
@keyframes beastFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .beast-header,
    .beast-hamburger-line,
    .beast-drawer-panel,
    .beast-drawer-overlay,
    .beast-menu-list li a::after,
    .beast-social-link,
    .beast-footer-menu li a {
        transition-duration: 0.01ms !important;
    }
}
