/*
Theme Name: Black Moth Botanicals
Theme URI: https://blackmothbotanicals.com/store/
Author: Black Moth Botanicals
Description: Custom storefront theme for Black Moth Botanicals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: blackmoth-botanicals
*/

:root {
    color-scheme: dark;
    --bm-bg-glow: rgba(142, 183, 128, 0.18);
    --bm-mist: rgba(238, 228, 207, 0.1);
    --bm-neon: #dbff17;
    --bm-hover: #28d8cf;
    --bm-hot: #fff36a;
    --bm-text: #f4ecdc;
    --bm-muted: #d7d0bd;
    --bm-panel: rgba(5, 7, 6, 0.68);
    --bm-panel-soft: rgba(5, 7, 6, 0.42);
    --bm-border: rgba(219, 255, 23, 0.44);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #050706;
    color: var(--bm-text);
    font-family: "Syne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.bm-site {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.bm-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #050706;
    pointer-events: none;
}

.bm-background img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(rgba(5, 7, 6, 0.48), rgba(5, 7, 6, 0.62)),
        radial-gradient(circle at top left, var(--bm-bg-glow), transparent 38%),
        radial-gradient(circle at bottom right, rgba(87, 113, 72, 0.14), transparent 30%);
}

.bm-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
        radial-gradient(var(--bm-mist) 0.8px, transparent 0.8px);
    background-size: 100% 100%, 18px 18px;
    opacity: 0.26;
    pointer-events: none;
}

a {
    color: var(--bm-neon);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition: color 180ms ease, filter 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a:hover,
a:focus-visible {
    color: var(--bm-hover);
}

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

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 999;
    width: auto;
    height: auto;
    padding: 0.7rem 1rem;
    clip: auto;
    clip-path: none;
    background: #050706;
    color: var(--bm-neon);
}

.bm-site-logo {
    position: fixed;
    top: 1.2rem;
    left: 1.8rem;
    z-index: 20;
    display: block;
    width: 7.5rem;
    filter: drop-shadow(0 0 0.55rem rgba(219, 255, 23, 0.35));
}

.bm-site-logo img {
    display: block;
    width: 100%;
    filter:
        invert(91%)
        sepia(96%)
        saturate(1305%)
        hue-rotate(13deg)
        brightness(106%)
        contrast(107%);
}

.bm-site-logo:hover,
.bm-site-logo:focus-visible {
    transform: scale(1.04);
    filter: drop-shadow(0 0 0.8rem rgba(219, 255, 23, 0.42));
}

.bm-actions {
    position: fixed;
    top: 2.1rem;
    right: 2.2rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--bm-neon);
}

.bm-icon-button {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    color: inherit;
    filter: drop-shadow(0 0 0.45rem rgba(219, 255, 23, 0.35));
}

.bm-icon-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

.bm-icon-button:hover,
.bm-icon-button:focus-visible {
    color: var(--bm-hover);
    transform: translateY(-0.12rem) scale(1.06);
    filter: drop-shadow(0 0 0.75rem rgba(40, 216, 207, 0.55));
}

.bm-primary-nav {
    position: fixed;
    top: 50%;
    left: 3.25rem;
    z-index: 15;
    transform: translateY(-50%);
}

.bm-nav-list,
.bm-primary-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bm-primary-nav a {
    display: block;
    color: var(--bm-neon);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow:
        0 0 0.45rem rgba(219, 255, 23, 0.36),
        0.08rem 0.08rem 0 rgba(23, 107, 105, 0.78);
}

.bm-primary-nav a:hover,
.bm-primary-nav a:focus-visible,
.bm-primary-nav .current-menu-item > a,
.bm-primary-nav .current_page_item > a {
    color: var(--bm-hover);
    transform: translateX(0.35rem);
    filter: drop-shadow(0 0 0.75rem rgba(40, 216, 207, 0.55));
}

.bm-main {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 8.5rem 4rem 4rem 20rem;
}

.bm-content-wrap {
    width: min(66rem, calc(100vw - 28rem));
    max-width: 66rem;
    margin: 0 auto;
}

.bm-front {
    display: grid;
    min-height: calc(100vh - 12.5rem);
    align-content: center;
}

.bm-kicker {
    margin: 0 0 0.85rem;
    color: var(--bm-hover);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-shadow: 0 0 0.6rem rgba(40, 216, 207, 0.34);
}

.bm-title,
.entry-title,
.page-title {
    margin: 0;
    color: var(--bm-neon);
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 7rem;
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow:
        0.08rem 0.08rem 0 rgba(18, 108, 106, 0.96),
        0 0 1rem rgba(219, 255, 23, 0.2);
}

.bm-script {
    display: block;
    margin-top: -0.35rem;
    margin-bottom: 1.45rem;
    color: var(--bm-hover);
    font-family: "Permanent Marker", cursive;
    font-size: 3.8rem;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow:
        0.08rem 0.08rem 0 rgba(4, 43, 45, 0.9),
        0 0 0.8rem rgba(40, 216, 207, 0.35);
    transform: rotate(-4deg);
}

.bm-lead {
    max-width: 44rem;
    margin: 0;
    color: var(--bm-text);
    font-size: 1.1rem;
    line-height: 1.75;
    text-shadow: 0 0.18rem 0.9rem rgba(0, 0, 0, 0.5);
}

.bm-panel,
.entry-content,
.entry-summary,
.bm-main .rtcl,
.comments-area {
    background: linear-gradient(90deg, var(--bm-panel), var(--bm-panel-soft));
    border-left: 0.22rem solid var(--bm-border);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.bm-panel,
.entry-content,
.entry-summary,
.comments-area {
    margin-top: 1.6rem;
    padding: 1.4rem 1.5rem;
}

.entry-content:empty {
    display: none;
}

.entry-content > *:first-child,
.entry-summary > *:first-child,
.bm-panel > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child,
.entry-summary > *:last-child,
.bm-panel > *:last-child {
    margin-bottom: 0;
}

.bm-post-list {
    display: grid;
    gap: 1.3rem;
}

.bm-card {
    padding: 1.25rem 1.3rem;
    border-left: 0.22rem solid var(--bm-neon);
    background: linear-gradient(90deg, var(--bm-panel), var(--bm-panel-soft));
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.bm-card-title {
    margin: 0;
    color: var(--bm-neon);
    font-size: 1.45rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.bm-card-title a {
    text-decoration: none;
}

.bm-meta {
    margin: 0.5rem 0 0;
    color: var(--bm-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bm-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 0.12rem solid var(--bm-neon);
    border-radius: 0;
    background: rgba(219, 255, 23, 0.08);
    color: var(--bm-neon);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.bm-button:hover,
.bm-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible {
    border-color: var(--bm-hover);
    background: rgba(40, 216, 207, 0.12);
    color: var(--bm-hover);
}

input,
textarea,
select {
    max-width: 100%;
    border: 1px solid rgba(244, 236, 220, 0.22);
    background: rgba(5, 7, 6, 0.74);
    color: var(--bm-text);
    font: inherit;
}

input,
select {
    min-height: 2.6rem;
}

input,
textarea,
select {
    padding: 0.65rem 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.7rem;
    border-bottom: 1px solid rgba(244, 236, 220, 0.16);
}

.bm-main .rtcl {
    margin-top: 1.7rem;
    padding: 1.3rem;
    color: var(--bm-text);
}

.bm-main .rtcl a,
.bm-main .rtcl .listing-title a,
.bm-main .rtcl .rtcl-price,
.bm-main .rtcl .item-price {
    color: var(--bm-neon);
}

.bm-main .rtcl .listing-item,
.bm-main .rtcl .rtcl-listing,
.bm-main .rtcl .rtcl-listings .listing-item {
    background: rgba(5, 7, 6, 0.68);
    border-color: rgba(219, 255, 23, 0.22);
    color: var(--bm-text);
}

.bm-main .rtcl .form-control,
.bm-main .rtcl input,
.bm-main .rtcl textarea,
.bm-main .rtcl select {
    background-color: rgba(5, 7, 6, 0.74);
    border-color: rgba(244, 236, 220, 0.22);
    color: var(--bm-text);
}

.bm-main .tribe-common,
.bm-main .tribe-events,
.bm-main .tribe-events-view {
    color: #ffffff;
}

.bm-main .tribe-events {
    padding: 1.35rem;
    border-left: 0.22rem solid var(--bm-border);
    background:
        linear-gradient(90deg, rgba(5, 7, 6, 0.86), rgba(5, 7, 6, 0.62)),
        radial-gradient(circle at top right, rgba(40, 216, 207, 0.12), transparent 34%);
    box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.24);
}

.bm-main .tribe-common .tribe-common-b1,
.bm-main .tribe-common .tribe-common-b2,
.bm-main .tribe-common .tribe-common-b3,
.bm-main .tribe-common .tribe-common-h3,
.bm-main .tribe-common .tribe-common-h4,
.bm-main .tribe-common .tribe-common-h5,
.bm-main .tribe-common .tribe-common-h6,
.bm-main .tribe-common .tribe-common-h7,
.bm-main .tribe-events-calendar-list__event-description,
.bm-main .tribe-events-calendar-list__event-datetime,
.bm-main .tribe-events-calendar-list__event-date-tag-weekday,
.bm-main .tribe-events-calendar-list__event-date-tag-daynum {
    color: #ffffff;
}

.bm-main .tribe-events-calendar-list__month-separator::after {
    background-color: rgba(219, 255, 23, 0.35);
}

.bm-main .tribe-events-calendar-list__month-separator-text,
.bm-main .tribe-events-calendar-list__event-date-tag-weekday,
.bm-main .tribe-events-c-top-bar__datepicker-button,
.bm-main .tribe-events-c-view-selector__button,
.bm-main .tribe-events-c-nav__next,
.bm-main .tribe-events-c-nav__prev {
    color: var(--bm-hover);
}

.bm-main .tribe-events-calendar-list__event-title-link,
.bm-main .tribe-events-calendar-list__event-title-link:visited,
.bm-main .tribe-events-calendar-list__event-cost,
.bm-main .tribe-events-c-small-cta__price {
    color: var(--bm-neon);
}

.bm-main .tribe-events-calendar-list__event-row {
    padding: 1rem 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(219, 255, 23, 0.16);
}

.bm-main .tribe-events-calendar-list__event-title-link:hover,
.bm-main .tribe-events-calendar-list__event-title-link:focus-visible,
.bm-main .tribe-events-c-nav__next:hover,
.bm-main .tribe-events-c-nav__next:focus-visible,
.bm-main .tribe-events-c-nav__prev:hover,
.bm-main .tribe-events-c-nav__prev:focus-visible {
    color: var(--bm-hover);
}

.bm-main .tribe-events-header,
.bm-main .tribe-events-c-events-bar,
.bm-main .tribe-events-c-view-selector__content,
.bm-main .tribe-events-c-top-bar__datepicker-container .datepicker {
    background-color: rgba(5, 7, 6, 0.88);
    border-color: rgba(244, 236, 220, 0.18);
    color: #ffffff;
}

.bm-main .tribe-events-c-events-bar,
.bm-main .tribe-events-c-events-bar--border,
.bm-main .tribe-events-c-events-bar__search-container,
.bm-main .tribe-events-c-events-bar__search,
.bm-main .tribe-events-c-search,
.bm-main .tribe-events-c-events-bar__views,
.bm-main .tribe-events-c-view-selector,
.bm-main .tribe-events-c-view-selector__content {
    background: transparent !important;
    border-color: rgba(219, 255, 23, 0.24) !important;
    color: #ffffff !important;
}

.bm-main .tribe-events-c-events-bar {
    background: rgba(5, 7, 6, 0.84) !important;
}

.bm-main .tribe-events-c-events-bar__search-container,
.bm-main .tribe-events-c-events-bar__views {
    border: 0 !important;
}

.bm-main .tribe-events .tribe-events-c-search__input,
.bm-main .tribe-common .tribe-common-form-control-text__input {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.bm-main .tribe-events .tribe-events-c-search__input::placeholder,
.bm-main .tribe-common .tribe-common-form-control-text__input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.bm-main .tribe-events .tribe-events-c-search__button,
.bm-main .tribe-events .tribe-events-c-top-bar__today-button,
.bm-main .tribe-common .tribe-common-c-btn,
.bm-main .tribe-common .tribe-common-c-btn-border,
.bm-main .tribe-events-c-view-selector__list-item-link {
    border-color: rgba(219, 255, 23, 0.48) !important;
    background: transparent !important;
    color: var(--bm-neon) !important;
}

.bm-main .tribe-events .tribe-events-c-search__button,
.bm-main .tribe-events-c-view-selector__button,
.bm-main .tribe-events-c-view-selector__list-item-link {
    border-color: transparent !important;
    box-shadow: none !important;
}

.bm-main .tribe-events .tribe-events-c-search__button:hover,
.bm-main .tribe-events .tribe-events-c-search__button:focus-visible,
.bm-main .tribe-events .tribe-events-c-top-bar__today-button:hover,
.bm-main .tribe-events .tribe-events-c-top-bar__today-button:focus-visible,
.bm-main .tribe-events-c-view-selector__list-item-link:hover,
.bm-main .tribe-events-c-view-selector__list-item-link:focus-visible {
    border-color: var(--bm-hover) !important;
    background: rgba(40, 216, 207, 0.12) !important;
    color: var(--bm-hover) !important;
}

.bm-main .tribe-common .tribe-common-c-svgicon,
.bm-main .tribe-common .tribe-common-c-svgicon__svg-fill,
.bm-main .tribe-events-c-search__input-control-icon-svg,
.bm-main .tribe-events-c-events-bar__search-button-icon-svg,
.bm-main .tribe-events-c-view-selector__button-icon-svg,
.bm-main .tribe-events-c-view-selector__button-icon-caret-svg,
.bm-main .tribe-events-c-nav__prev-icon-svg,
.bm-main .tribe-events-c-nav__next-icon-svg {
    color: var(--bm-hover) !important;
    fill: currentColor !important;
}

.bm-main .tribe-events-c-view-selector__button,
.bm-main .tribe-events-c-view-selector__button-text,
.bm-main .tribe-events-c-view-selector__list-item-text,
.bm-main .tribe-events-c-events-bar__search-button,
.bm-main .tribe-events-c-events-bar__search-button-text {
    color: #ffffff !important;
}

.navigation.pagination,
.posts-navigation,
.post-navigation {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.site-footer {
    position: relative;
    z-index: 5;
    padding: 0 4rem 2rem 20rem;
    color: var(--bm-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .bm-site-logo {
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 4.6rem;
    }

    .bm-actions {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        gap: 0.8rem;
    }

    .bm-icon-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .bm-primary-nav {
        position: relative;
        top: auto;
        left: auto;
        width: max-content;
        padding: 7rem 1.2rem 0;
        transform: none;
    }

    .bm-primary-nav a {
        font-size: 1.08rem;
    }

    .bm-main {
        min-height: auto;
        padding: 2.75rem 1.2rem 2rem;
    }

    .bm-content-wrap {
        width: 100%;
        max-width: 36rem;
    }

    .bm-front {
        min-height: auto;
        text-align: center;
    }

    .bm-title,
    .entry-title,
    .page-title {
        font-size: 4rem;
        overflow-wrap: anywhere;
    }

    .bm-script {
        font-size: 2.35rem;
    }

    .bm-lead {
        max-width: none;
        font-size: 1rem;
        line-height: 1.65;
    }

    .site-footer {
        padding: 0 1.2rem 2rem;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .bm-title,
    .entry-title,
    .page-title {
        font-size: 3.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
