/* ============================================================
   Site Header — responsive rebuild
   Design reference: exhibitorly_base44 (visual only, rebuilt in
   plain CSS/JS — no React/Tailwind/shadcn). See CLAUDE.md.
   ============================================================ */

.site_header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site_header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site_header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* ---------------- Desktop nav ---------------- */
.site_header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.site_header-nav > a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: color .2s ease;
    white-space: nowrap;
}

.site_header-nav > a:hover {
    color: #0C2E16;
}

/* ---------------- Resources dropdown (desktop) ---------------- */
.site_header-dropdown {
    position: relative;
}

.site_header-dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s ease;
}

.site_header-dropdown-toggle:hover {
    color: #0C2E16;
}

.site_header-dropdown-toggle svg {
    width: 13px;
    height: 13px;
    transition: transform .2s ease;
}

.site_header-dropdown.active .site_header-dropdown-toggle svg {
    transform: rotate(180deg);
}

.site_header-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    width: 200px;
    padding: 8px;
    z-index: 100;
}

.site_header-account .site_header-dropdown-menu {
    left: auto;
    right: 0;
}

.site_header-dropdown.active .site_header-dropdown-menu {
    display: block;
}

.site_header-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    border-radius: 6px;
    transition: background .15s ease;
}

.site_header-dropdown-menu a:hover {
    background: #f4f4f4;
}

.site_header-dropdown-menu svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------------- Nested flyout submenus (Resources > Exhibiting Cities/Services/Venues > ...) ---------------- */
.site_header-submenu {
    position: relative;
}

.site_header-submenu-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s ease;
}

.site_header-submenu-toggle:hover,
.site_header-submenu.open > .site_header-submenu-toggle {
    background: #f4f4f4;
}

.site_header-submenu-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #999;
}

.site_header-submenu-panel {
    display: none;
    position: absolute;
    left: 100%;
    top: -8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    width: 200px;
    padding: 8px;
    z-index: 101;
}

.site_header-submenu.open > .site_header-submenu-panel {
    display: block;
}

.site_header-submenu-panel a {
    display: block;
    padding: 9px 12px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    border-radius: 6px;
    transition: background .15s ease;
}

.site_header-submenu-panel a:hover {
    background: #f4f4f4;
}

.site_header-account-toggle {
    border: 1px solid #d6d6d6 !important;
    border-radius: 30px;
    padding: 8px 16px !important;
}

.site_header-account-toggle svg:first-child {
    width: 16px;
    height: 16px;
}

/* ---------------- Buttons ---------------- */
.site_header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site_header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease-out, box-shadow .25s ease-out, opacity .2s ease;
}

.site_header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.site_header-btn:active {
    transform: translateY(0) scale(.97);
}

.site_header-btn--list {
    background: #0C2E16;
    color: #fff;
}

.site_header-btn--signin {
    background: #0C2E16;
    color: #CFFF7F;
}

/* ---------------- Hamburger (hidden on desktop) ---------------- */
.site_header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.site_header-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    margin: 0 auto;
    transition: transform .25s ease, opacity .25s ease;
}

.site_header-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site_header-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site_header-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Mobile slide-out menu ---------------- */
.site_header-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s ease;
}

.site_header-mobile-backdrop.open {
    display: block;
    opacity: 1;
}

.site_header-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
}

.site_header-mobile-menu.open {
    transform: translateX(0);
}

.site_header-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.site_header-mobile-top img {
    height: 32px;
    width: auto;
}

.site_header-mobile-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222;
}

.site_header-mobile-close svg {
    width: 22px;
    height: 22px;
}

.site_header-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
}

.site_header-mobile-nav > a {
    padding: 14px 12px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.site_header-mobile-nav > a:active {
    background: #f4f4f4;
}

.site_header-mobile-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 44px;
}

.site_header-mobile-accordion-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.site_header-mobile-accordion.open .site_header-mobile-accordion-toggle svg {
    transform: rotate(180deg);
}

.site_header-mobile-accordion-panel {
    display: none;
    flex-direction: column;
    padding-left: 14px;
    min-width: 0;
}

.site_header-mobile-accordion.open .site_header-mobile-accordion-panel {
    display: flex;
}

/* Nested accordions (Services > Rentals, etc.) get progressively smaller text
   so 3-4 levels of indentation still fit the panel width on small phones,
   instead of the text getting clipped. */
.site_header-mobile-accordion-toggle--nested {
    font-size: 14px;
    padding: 12px;
}

.site_header-mobile-accordion-panel .site_header-mobile-accordion-panel .site_header-mobile-accordion-toggle--nested,
.site_header-mobile-accordion-panel .site_header-mobile-accordion-panel a {
    font-size: 13px;
}

.site_header-mobile-accordion-panel a {
    padding: 12px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.site_header-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.site_header-mobile-actions .site_header-btn {
    width: 100%;
    padding: 12px 18px;
}

/* ---------------- Breakpoints ---------------- */
@media (max-width: 992px) {
    .site_header-nav,
    .site_header-actions {
        display: none;
    }

    .site_header-burger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .site_header-container {
        padding: 10px 16px;
    }

    .site_header-logo img {
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site_header-mobile-menu,
    .site_header-mobile-backdrop,
    .site_header-burger span,
    .site_header-btn,
    .site_header-dropdown-toggle svg {
        transition: none !important;
    }
}
