/* ==========================================================
   Bakamaal Brand Layer
   ========================================================== */

:root {
    --bk-black: #171717;
    --bk-black-soft: #23201d;
    --bk-gold: #c8a15a;
    --bk-gold-dark: #a67b35;
    --bk-ivory: #f7f5f2;
    --bk-sand: #eee5da;
    --bk-white: #ffffff;
    --bk-text: #25211d;
    --bk-muted: #746d64;
    --bk-border: rgba(87, 66, 41, .15);
    --bk-shadow:
        0 24px 60px
        rgba(31, 24, 18, .09);
    --bk-serif:
        "Cinzel",
        "Times New Roman",
        Georgia,
        serif;
    --bk-sans:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.bakamaal-site {
    margin: 0;
    background: var(--bk-ivory);
    color: var(--bk-text);
    font-family: var(--bk-sans);
}

body.bakamaal-site *,
body.bakamaal-site *::before,
body.bakamaal-site *::after {
    box-sizing: border-box;
}

.bk-container {
    width: min(100% - 2rem, 1480px);
    margin-inline: auto;
}

body.bakamaal-site a {
    text-underline-offset: .18em;
}

body.bakamaal-site .btn,
body.bakamaal-site .button,
body.bakamaal-site button {
    font-family: inherit;
}

/* ----------------------------------------------------------
   Header
---------------------------------------------------------- */

.bk-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom:
        1px solid
        rgba(200, 161, 90, .17);
    background:
        rgba(23, 23, 23, .97);
    color: #fff;
    backdrop-filter: blur(14px);
}

.admin-bar .bk-header {
    top: 32px;
}

.bk-header__inner {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 2rem;
    min-height: 82px;
}

.bk-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #fff;
    text-decoration: none;
}

.bk-brand__mark {
    display: grid;
    grid-template-columns:
        repeat(2, 16px);
    grid-template-rows:
        repeat(2, 16px);
    gap: 4px;
    width: 40px;
    height: 40px;
}

.bk-brand__mark > span {
    position: relative;
    display: block;
    border:
        3px solid
        var(--bk-gold);
}

.bk-brand__mark > span:nth-child(1) {
    border-right: 0;
    border-bottom: 0;
}

.bk-brand__mark > span:nth-child(2) {
    border-left: 0;
    border-bottom: 0;
}

.bk-brand__mark > span:nth-child(3) {
    border-right: 0;
    border-top: 0;
}

.bk-brand__mark > span:nth-child(4) {
    border-left: 0;
    border-top: 0;
}

.bk-brand__copy {
    display: grid;
    gap: .15rem;
}

.bk-brand__copy strong {
    font-family: var(--bk-serif);
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: .14em;
}

.bk-brand__copy small {
    color: var(--bk-gold);
    font-size: .48rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bk-nav {
    display: flex;
    justify-content: center;
    gap:
        clamp(1.4rem, 3vw, 3.2rem);
}

.bk-nav a {
    position: relative;
    padding-block: 1.8rem;
    color:
        rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.bk-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 1rem;
    left: 50%;
    height: 1px;
    background: var(--bk-gold);
    content: "";
    transition:
        right .2s ease,
        left .2s ease;
}

.bk-nav a:hover {
    color: #fff;
}

.bk-nav a:hover::after {
    right: 0;
    left: 0;
}

.bk-header__actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.bk-cart-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border:
        1px solid
        rgba(255, 255, 255, .14);
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .05);
    color: #fff;
    text-decoration: none;
}

.bk-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding-inline: .25rem;
    border-radius: 999px;
    background: var(--bk-gold);
    color: var(--bk-black);
    font-size: .58rem;
    font-weight: 800;
}

.bk-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border:
        1px solid
        rgba(255, 255, 255, .14);
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .05);
    color: #fff;
}

.bk-menu-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 1px;
    margin-block: 4px;
    background: currentColor;
}

.bk-mobile-nav {
    display: grid;
    gap: 0;
    padding:
        0
        1rem
        1rem;
    border-top:
        1px solid
        rgba(255, 255, 255, .08);
}

.bk-mobile-nav[hidden] {
    display: none;
}

.bk-mobile-nav a {
    padding: .95rem .2rem;
    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */

.bk-footer {
    padding-block:
        clamp(2.5rem, 5vw, 4.5rem);
    background: var(--bk-black);
    color: #fff;
}

.bk-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;
    align-items: end;
    gap: 2rem;
}

.bk-brand--footer {
    margin-bottom: 1rem;
}

.bk-footer p {
    max-width: 38ch;
    margin: 0;
    color:
        rgba(255, 255, 255, .62);
    font-size: .78rem;
    line-height: 1.7;
}

.bk-footer nav {
    display: grid;
    gap: .55rem;
}

.bk-footer nav a,
.bk-footer__legal {
    color:
        rgba(255, 255, 255, .66);
    font-size: .7rem;
    text-decoration: none;
}

.bk-footer__legal {
    display: grid;
    gap: .35rem;
    text-align: right;
}

/* ----------------------------------------------------------
   WooCommerce commerce pages
---------------------------------------------------------- */

body.bakamaal-site.techodec-commerce-page {
    --commerce-accent: var(--bk-gold);
    --commerce-accent-dark:
        var(--bk-gold-dark);
    --commerce-text: var(--bk-text);
    --commerce-muted: var(--bk-muted);
    --commerce-border:
        var(--bk-border);
    --commerce-surface:
        rgba(255, 255, 255, .86);
    background: var(--bk-ivory);
}

body.bakamaal-site
.techodec-commerce-progress__item[data-state="current"]
.techodec-commerce-progress__step::before {
    color: var(--bk-black);
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 780px) {
    .admin-bar .bk-header {
        top: 46px;
    }

    .bk-container {
        width: min(100% - 1.25rem, 1480px);
    }

    .bk-header__inner {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: .8rem;
        min-height: 72px;
    }

    .bk-nav {
        display: none;
    }

    .bk-brand__copy small {
        display: none;
    }

    .bk-menu-toggle {
        display: block;
    }

    .bk-footer__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bk-footer__legal {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .bk-brand__copy strong {
        font-size: .92rem;
    }

    .bk-brand__mark {
        grid-template-columns:
            repeat(2, 14px);
        grid-template-rows:
            repeat(2, 14px);
        width: 36px;
        height: 36px;
    }
}
