/* Saiko Kombucha Header */
.kh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #160421;
    background: transparent;
    transition: background-color 0.3s ease;
    -webkit-text-size-adjust: 100%;
}

.kh *,
.kh *::before,
.kh *::after {
    box-sizing: border-box;
}

.kh.kh-solid {
    background: rgba(249, 238, 223, 0.94);
}

.kh-nav {
    padding: 20px 0;
}

.kh-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

/* Logo */
.kh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    margin-right: 16px;
    color: #f45116;
    text-decoration: none;
    white-space: nowrap;
}

.kh-brand:hover {
    color: #f45116;
}

.kh-emblem {
    display: block;
    width: 28px;
    height: 34px;
    flex: none;
}

.kh-word {
    font-family: "Chakra Petch", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kh-sub {
    font-family: "Space Mono", ui-monospace, "Courier New", monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #160421;
    align-self: flex-end;
    padding-bottom: 6px;
}

/* Mobile Menu Button */
.kh-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(22, 4, 33, 0.2);
    border-radius: 0.375rem;
    color: #160421;
    cursor: pointer;
}

.kh-toggler:focus-visible {
    outline: 2px solid #f45116;
    outline-offset: 2px;
}

.kh-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23160421' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")
        center / 100% no-repeat;
}

/* Navigation */
.kh-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    overflow: hidden;
    height: 0;
    visibility: hidden;
}

.kh-collapse.kh-open {
    height: auto;
    overflow: visible;
    visibility: visible;
}

.kh-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.kh-list > li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-link {
    display: block;
    padding: 0.5rem;
    margin: 0 12px;
    color: #160421;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.kh-link:hover,
.kh-link:focus {
    color: rgba(22, 4, 33, 0.75);
}

.kh-dd-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

.kh-contact {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0;
    color: #160421;
    font-weight: 400;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
}

.kh-contact:hover,
.kh-contact:focus {
    color: rgba(22, 4, 33, 0.75);
}

/* Products Dropdown */
.kh .kh-dd-menu {
    display: none;
    min-width: 190px;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    text-align: left;
    color: #212529;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1040;
}

.kh .kh-dd-menu.kh-show {
    display: block;
}

/* Each dropdown link appears on its own line */
.kh .kh-dd-menu > .kh-dd-item,
.kh .kh-dd-menu > .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin: 0;
    clear: both;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
}

.kh .kh-dd-menu > .kh-dd-item:hover,
.kh .kh-dd-menu > .kh-dd-item:focus,
.kh .kh-dd-menu > .dropdown-item:hover,
.kh .kh-dd-menu > .dropdown-item:focus {
    color: #1e2125;
    background: #e9ecef;
}

/* Responsive Container */
@media (min-width: 576px) {
    .kh-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .kh-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .kh-container {
        max-width: 960px;
    }

    .kh-toggler {
        display: none;
    }

    .kh-collapse {
        display: flex;
        flex-basis: auto;
        height: auto;
        overflow: visible;
        visibility: visible;
    }

    .kh-list {
        flex-direction: row;
        align-items: center;
        margin: 0 0 0 auto;
    }

    .kh .kh-dd-menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.125rem;
    }
}

@media (min-width: 1200px) {
    .kh-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .kh-container {
        max-width: 1320px;
    }
}

@media (max-width: 991.98px) {
    .kh .kh-dd-menu {
        position: static;
        margin: 0.25rem 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh,
    .kh-link {
        transition: none;
    }
}