/* ============================================================================
 * bu-site.css — site-wide refresh styles
 *
 * Loaded on every front-end route. Covers:
 *   - .bu-marquee                fixed-top announcement bar
 *   - .bu-header.rey-siteHeader  sticky header + inline search bar + drawer trigger
 *   - .bu-drawer                 mobile menu drawer + backdrop
 *   - .bu-footer                 newsletter (desktop only) + accordion columns + socials
 *
 * The .rey-siteHeader class on our header is intentional: it lets Rey-Core JS keep
 * toggling --fixed-shrinking / --scrolled / --shrank on scroll and keep the existing
 * Customizer CSS (logo lock, side-panel offsets, body padding-top:40px) working.
 *
 * No font-family declarations here — site-wide chrome inherits whatever Rey's
 * customizer supplies on non-front pages. The homepage adds CG/DM Sans in bu-home.css.
 * ============================================================================ */

/* ============================================================================
 * 1. Marquee
 * ============================================================================ */
.bu-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--bu-marquee-h, 40px);
    z-index: 900;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bu-marquee-bg, var(--bu-brand));
    color: var(--bu-marquee-color, var(--bu-ink));
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
}

.bu-marquee__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: bu-marquee-scroll 18s linear infinite;
    will-change: transform;
}

.bu-marquee__msg { padding: 0 24px; flex-shrink: 0; }
.bu-marquee__sep { opacity: 0.5; flex-shrink: 0; }

/* Clickable variant — when an ACF CTA URL is set */
a.bu-marquee,
a.bu-marquee:hover,
a.bu-marquee:focus,
a.bu-marquee:visited {
    color: var(--bu-marquee-color, var(--bu-ink));
    text-decoration: none;
    cursor: pointer;
}
a.bu-marquee:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

@keyframes bu-marquee-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 640px) { .bu-marquee { font-size: 14px; } }

/* ============================================================================
 * 2. Header
 * ============================================================================ */
.bu-header.rey-siteHeader {
    position: fixed;
    top: var(--bu-marquee-h, 40px);
    left: 0;
    right: 0;
    z-index: 850;
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bu-border);
}

/* Push page content below the sticky header (any route) */
.rey-siteContent {
    padding-top: var(--header-default--height, var(--bu-header-h, 56px));
}

.bu-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    height: var(--bu-header-h, 56px);
    max-width: 1480px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .bu-header__inner { padding: 0 40px 0 24px; }
}

/* Mobile vs desktop clusters */
.bu-header__mobile-left {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin-left: -8px;
}
.bu-header__desktop-left {
    display: none;
    align-items: center;
    gap: 40px;
}
@media (min-width: 1024px) {
    .bu-header__mobile-left  { display: none; }
    .bu-header__desktop-left { display: flex; }
}

/* Hamburger */
.bu-header__hamburger {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
    color: var(--bu-foreground);
}
.bu-header__hamburger > span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.bu-header__hamburger > span + span { margin-top: 4px; }

/* Logo */
.bu-header__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.bu-header__logo img.custom-logo {
    height: auto;
    width: auto;
    max-height: 40px;
    max-width: 70px;
}
.bu-header__logo-text {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: inherit;
    text-decoration: none;
}
.bu-header__logo-text > span { color: var(--bu-brand); }

/* Desktop nav */
.bu-nav {
    display: flex; align-items: center;
    gap: 28px;
    margin: 0; padding: 0;
    list-style: none;
    font-size: 14px;
}
.bu-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.bu-nav a:hover { color: var(--bu-brand); }

/* Right cluster */
.bu-header__right {
    display: flex; align-items: center;
    gap: 2px;
    height: 40px;
}
@media (min-width: 1024px) { .bu-header__right { gap: 8px; } }

/* Search bar */
.bu-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bu-muted);
    border-radius: 999px;
    padding: 0 12px;
    height: 36px;
}
.bu-search input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    color: inherit;
    min-width: 0;
    width: 100%;
}
.bu-search__icon {
    width: 16px; height: 16px;
    color: var(--bu-muted-foreground);
    flex-shrink: 0;
}
.bu-search--desktop {
    display: none;
    width: 256px;
    margin-right: 8px;
    font-size: 14px;
}
.bu-search--mobile {
    display: flex;
    margin: 0 16px 12px;
    height: 40px;
    font-size: 16px;
}
@media (min-width: 1024px) {
    .bu-search--desktop { display: flex; }
    .bu-search--mobile  { display: none; }
}

/* YayCurrency container — light skin so the dropdown blends with our header */
.bu-header__currency {
    display: inline-flex;
    align-items: center;
    height: 40px;
    min-width: 60px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
@media (min-width: 640px) { .bu-header__currency { font-size: 12px; } }

.bu-header__currency .yaycurrency-switcher,
.bu-header__currency [class*="yaycurrency"] {
    color: inherit;
    background: transparent;
    border: none;
    padding: 0 6px;
    line-height: 1;
}

/* Icon buttons (account) */
.bu-header__icon-btn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.bu-header__icon-btn:hover { color: var(--bu-brand); }
.bu-header__icon-btn svg { width: 20px; height: 20px; }

/* Cart wrapper — Rey-compatible markup */
.bu-header__cart.rey-headerCart-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
}
.bu-header__cart .rey-headerCart {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.bu-header__cart .rey-headerCart:hover { color: var(--bu-brand); }
.bu-header__cart .rey-headerIcon-icon svg { width: 20px; height: 20px; }

.bu-header__cart .rey-headerIcon-counter {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bu-brand);
    color: var(--bu-brand-foreground);
    font-size: 10px;
    font-weight: 600;
    display: grid;
    place-items: center;
    pointer-events: none;
    line-height: 1;
}
.bu-header__cart .__cart-count {
    display: inline-block;
    line-height: 1;
}
.bu-header__cart[data-rey-cart-count="0"] .rey-headerIcon-counter {
    display: none;
}

/* ============================================================================
 * 3. Mobile drawer
 * ============================================================================ */
.bu-drawer {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: var(--bu-background);
    color: var(--bu-foreground);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: auto;
    display: flex;
    flex-direction: column;
}
.bu-drawer[aria-hidden="false"] { transform: translateX(0); }
@media (min-width: 1024px) { .bu-drawer { display: none !important; } }

.bu-drawer__inner {
    display: flex; flex-direction: column;
    height: 100%;
    padding: 20px 30px;
}
.bu-drawer__head {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.bu-drawer__logo { display: inline-flex; align-items: center; }
.bu-drawer__logo img.custom-logo {
    height: auto; width: auto;
    max-height: 60px; max-width: 70px;
}

.bu-drawer__close {
    position: absolute;
    top: 0; right: 0;
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
    color: inherit;
}
.bu-drawer__close:hover { color: var(--bu-brand); }
.bu-drawer__close svg { width: 16px; height: 16px; }

.bu-drawer__body { flex: 1; overflow-y: auto; }
.bu-drawer__nav { list-style: none; margin: 0; padding: 0; }
.bu-drawer__nav a {
    display: block;
    padding: 6px 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
}
.bu-drawer__nav a:hover { color: var(--bu-brand); }

.bu-drawer__foot {
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.bu-drawer__account,
.bu-drawer__logout {
    display: flex; align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    padding: 4px 0;
}
.bu-drawer__account svg {
    margin-left: auto;
    width: 20px; height: 20px;
}
.bu-drawer__account { margin-bottom: 15px; }
.bu-drawer__account:hover,
.bu-drawer__logout:hover { color: var(--bu-brand); }

/* Backdrop */
.bu-drawer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1059;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
body.bu-drawer-open .bu-drawer__backdrop {
    opacity: 1;
    pointer-events: auto;
}
body.bu-drawer-open,
body.bu-lightbox-open { overflow: hidden; }

/* ============================================================================
 * 4. Footer
 * ============================================================================ */
.bu-footer {
    background: var(--bu-background);
    border-top: 1px solid var(--bu-border);
    color: inherit;
}

.bu-footer__grid {
    display: grid;
}
@media (min-width: 1024px) {
    .bu-footer__grid {
        grid-template-columns: 42fr 58fr;
    }
}

/* Newsletter — hidden on mobile per spec */
.bu-footer__newsletter {
    display: none;
}
@media (min-width: 1024px) {
    .bu-footer__newsletter {
        display: block;
        padding: 120px 100px 120px 40px;
        border-right: 1px solid var(--bu-border);
    }
}

.bu-footer__eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(0,0,0,0.8);
    margin: 0 0 12px;
}
.bu-footer__heading {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0;
}
@media (min-width: 1024px) { .bu-footer__heading { font-size: 44px; } }

.bu-footer__form { margin-top: 24px; max-width: 28rem; }
.bu-footer__form > form,
.bu-footer__form form.mc4wp-form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--bu-border);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}
.bu-footer__form input[type="email"] {
    flex: 1;
    height: 54px;
    padding: 0 16px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    color: inherit;
}
.bu-footer__form button[type="submit"] {
    padding: 0 24px;
    background: var(--bu-brand);
    color: var(--bu-brand-foreground);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.bu-footer__form button[type="submit"]:hover { background: var(--bu-brand-hover); }
.bu-footer__form p { margin: 0; flex: 1; }

.bu-footer__copy {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 28rem;
    color: rgba(0,0,0,0.8);
}

/* Right side */
.bu-footer__right {
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 1024px) {
    .bu-footer__right {
        padding: 120px 40px 120px 60px;
        gap: 60px;
    }
}

/* Menu columns */
.bu-footer__menus {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 1024px) {
    .bu-footer__menus {
        flex-direction: row;
        gap: 30px;
    }
}
.bu-footer__menu { flex: 1; }

/* Higher-specificity overrides for the toggle button — Rey/Elementor's
   broad `button` resets and a `text-align: center` upstream were collapsing
   our width:100% / justify-content:space-between and stripping the border.
   Border colour is baked in instead of via --bu-border so cascade order of
   style.css vs the LSC bundle stops mattering. */
.bu-footer .bu-footer__menu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0;
    background: none;
    border: 0 none;
    border-bottom: 1px solid #e6e2dc;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
@media (min-width: 1024px) {
    .bu-footer .bu-footer__menu-toggle {
        cursor: default;
        border-bottom: none;
        pointer-events: none;
    }
}
.bu-footer .bu-footer__menu-title {
    margin: 0;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.bu-footer__menu-chev {
    width: 16px; height: 16px;
    color: rgba(0,0,0,0.6);
    flex-shrink: 0;
}
/* Chevron only shows when the section is COLLAPSED — design spec. */
.bu-footer__menu[data-open="true"] .bu-footer__menu-chev { display: none; }
@media (min-width: 1024px) { .bu-footer__menu-chev { display: none; } }

.bu-footer__menu-list {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 14px;
}
.bu-footer__menu[data-open="true"] .bu-footer__menu-list { display: grid; }
@media (min-width: 1024px) {
    .bu-footer__menu-list {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 12px;
    }
}
.bu-footer__menu-list a {
    color: rgba(0,0,0,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.bu-footer__menu-list a:hover { color: var(--bu-brand); }

/* Bottom row */
.bu-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .bu-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.bu-footer__social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bu-footer__social a {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 1px solid var(--bu-border);
    border-radius: 999px;
    color: rgba(0,0,0,0.75);
    transition: all 0.2s;
}
.bu-footer__social a:hover {
    background: var(--bu-brand);
    border-color: var(--bu-brand);
    color: var(--bu-brand-foreground);
}
.bu-footer__social svg { width: 18px; height: 18px; }

.bu-footer__copyright {
    font-size: 14px;
    color: rgba(0,0,0,0.7);
    margin: 0;
}
