/* ========== GLOBAL TOP NAV ========== */
.ts-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #1D130C;
    /* dark brown */
    color: #f2e9dc;
    /* cream text */
    border-bottom: 2px solid #3b2f25;
    /* subtle divider */
}

/* Parent item (no underline/indicator) */
.ts-topnav__link--parent {
    cursor: default;
    pointer-events: none;
    /* prevents click underline/active */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: rgb(242, 233, 220);
    position: relative;
}

/* Dropdown wrapper on the <li> for positioning */
.ts-has-dropdown {
    position: relative;
}

/* Hover buffer so small mouse gaps don’t close the menu (prevents flicker) */
.ts-has-dropdown::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 14px;
    /* invisible bridge */
}

/* Panel */
.ts-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    max-width: 320px;
    background: #1B140E;
    /* slightly lighter than bar for depth */
    border: 1px solid #33271F;
    border-radius: 12px;
    /* soft corners */
    padding: 8px;
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
    /* subtle inner lift */
    z-index: 70;

    /* animation */
    opacity: 0;
    transform: translateY(6px) scale(0.992);
    pointer-events: none;
    transition:
        opacity 140ms ease,
        transform 160ms cubic-bezier(.2, .7, .2, 1);
}

/* Show while hovering parent li */
.ts-has-dropdown:hover .ts-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Optional tiny top border accent (brand line) */
.ts-dropdown::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: #6e4f3a;
    /* warm accent */
    opacity: .4;
}

/* Dropdown list reset */
.ts-dropdown ul,
.ts-dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Dropdown links */
.ts-dropdown__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f2e9dc;
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease,
        transform 120ms ease;
}

/* Row separators via subtle overlay, not borders on each row */
.ts-dropdown__link+.ts-dropdown__link {
    position: relative;
}

.ts-dropdown__link+.ts-dropdown__link::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: -4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Hover state */
.ts-dropdown__link:hover,
.ts-dropdown__link:focus {
    background: rgba(141, 104, 78, 0.25);
    color: #fff5e6;
    transform: translateX(2px);
    outline: none;
}

/* Keyboard focus support on the whole dropdown */
.ts-has-dropdown:focus-within .ts-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ts-dropdown {
        transition: none;
        transform: none;
    }

    .ts-dropdown__link {
        transition: none;
    }
}

/* ========== CONTAINER ========== */
.ts-topnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* brand left, menu right */
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

/* ========== BRAND (LEFT SIDE) ========== */
.ts-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.ts-brand__logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.ts-brand__texts {
    display: flex;
    flex-direction: column;
    line-height: normal;
    white-space: nowrap;
}

.ts-brand__title {
    font-family: "Anton", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.02em;
    color: rgb(242, 233, 220);
    /* cream */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.ts-brand__tagline {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 15px;
    color: rgb(211, 196, 181);
    /* muted cream */
    margin-top: 0.15rem;
}

/* ========== MENU (RIGHT SIDE) ========== */
.ts-topnav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

/* Menu links — Roboto Bold, uppercase */
.ts-topnav__link {
    display: inline-block;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: rgb(242, 233, 220);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ts-topnav__link:hover {
    color: #fff5e6;
    transform: translateY(-1px);
}

.ts-topnav__link.is-active {
    position: relative;
}

.ts-topnav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background-color: #6e4f3a;
    /* accent underline */
}

/* ========== MOBILE TOGGLE (HAMBURGER) ========== */
.ts-mobile-toggle {
    display: none;
    /* visible on <768px */
    appearance: none;
    background: transparent;
    border: 1px solid rgba(242, 233, 220, 0.2);
    color: #f2e9dc;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ts-mobile-toggle:hover {
    background: rgba(110, 79, 58, 0.25);
    transform: scale(1.03);
}

/* ========== MOBILE PANEL ========== */
[hidden] {
    display: none !important;
}

.ts-mobile-panel {
    background: #1D130C;
    border-top: 1px solid #3b2f25;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ts-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Accordion / Sublist shared mobile styles */
.ts-mobile-accordion,
.ts-mobile-link,
.ts-mobile-sublist a {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 700;
    color: rgb(242, 233, 220);
    text-transform: uppercase;
}

/* Accordion button */
.ts-mobile-accordion {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(242, 233, 220, 0.15);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    text-align: left;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ts-mobile-accordion:hover {
    background: rgba(110, 79, 58, 0.25);
    border-color: rgba(242, 233, 220, 0.3);
}

.ts-caret {
    margin-left: 0.75rem;
    opacity: 0.8;
}

/* Sublist of accordion */
.ts-mobile-sublist {
    list-style: none;
    margin: 0.35rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #3b2f25;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ts-mobile-link,
.ts-mobile-sublist a {
    display: block;
    text-decoration: none;
    padding: 0.6rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    letter-spacing: 1.2px;
}

.ts-mobile-link:hover,
.ts-mobile-sublist a:hover {
    background: rgba(141, 104, 78, 0.25);
    color: #fff5e6;
    transform: translateX(2px);
}

/* ========== RESPONSIVE RULES ========== */
@media (max-width: 767px) {
    .ts-topnav__inner {
        justify-content: space-between;
        padding: 1rem 1rem;
    }

    .ts-topnav__list--desktop {
        display: none;
    }

    .ts-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ts-brand__logo {
        width: 60px;
        height: auto;
    }

    .ts-brand__title {
        font-size: 1.6rem;
    }

    .ts-brand__tagline {
        font-size: 0.85rem;
        line-height: 14px;
    }

    .ts-topnav__link {
        font-size: 15px;
        letter-spacing: 2px;
    }
}

@media (min-width: 768px) {
    .ts-mobile-panel {
        display: none !important;
        /* hide mobile panel on desktop */
    }
}

/* Optional reduced motion */
@media (prefers-reduced-motion: reduce) {

    .ts-topnav__link,
    .ts-mobile-toggle,
    .ts-mobile-link,
    .ts-mobile-sublist a {
        transition: none;
    }
}

/* attribute-based hidden support */
[hidden] {
    display: none !important;
}