/* === Header === */
.site-header {
    background: #ffffff;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo — pinned left */
.site-header__logo {
    flex-shrink: 0;
    margin-right: auto;
    padding-left: 12px;
}

.site-header__logo a {
    display: inline-flex;
    align-items: center;
}

.site-header__logo-text {
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4D3F36;
    letter-spacing: -0.5px;
}

.site-header__logo img,
.site-header__logo .custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* WordPress custom logo link wrapper */
.site-header__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

/* Desktop Nav — pushed right alongside actions */
.site-header__nav {
    display: flex;
    align-items: center;
}

.chiro-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.chiro-nav__item {
    position: relative;
}

.chiro-nav__item--mobile-only {
    display: none;
}

.chiro-nav__link {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4D3F36;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chiro-nav__link:hover {
    color: #6b5a4e;
}

/* Active nav state */
.current-menu-item > .chiro-nav__link,
.current_page_item > .chiro-nav__link,
.current-menu-ancestor > .chiro-nav__link {
    color: #4D3F36;
    font-weight: 600;
    position: relative;
}

.current-menu-item > .chiro-nav__link::after,
.current_page_item > .chiro-nav__link::after,
.current-menu-ancestor > .chiro-nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #4D3F36;
    border-radius: 1px;
}

.chiro-nav__chevron {
    transition: transform 0.2s ease;
}

.chiro-nav__toggle-sub {
    display: none;
}

/* Desktop Dropdown */
.chiro-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.chiro-nav__item--has-dropdown:hover > .chiro-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chiro-nav__item--has-dropdown:hover .chiro-nav__chevron {
    transform: rotate(180deg);
}

.chiro-dropdown__item {
    margin: 0;
}

.chiro-dropdown__link {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4D3F36;
    padding: 9px 16px;
    display: block;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chiro-dropdown__link:hover {
    background-color: #F4EFEA;
    border-left-color: #4D3F36;
    color: #4D3F36;
}

/* Header Actions — two pill buttons */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* "Book Online" — filled dark pill */
.site-header__cta {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #4D3F36;
    padding: 10px 22px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.site-header__cta:hover {
    background: #6b5a4e;
    color: #ffffff;
}

/* "Call Us" — outlined pill with phone icon */
.site-header__phone {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4D3F36;
    background: transparent;
    border: 1.5px solid #4D3F36;
    padding: 9px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__phone svg {
    width: 14px;
    height: 14px;
}

.site-header__phone:hover {
    background: #4D3F36;
    color: #ffffff;
}

.site-header__phone:hover svg {
    stroke: #ffffff;
}

.site-header__divider {
    display: none;
}

/* Mobile Book CTA — hidden on desktop */
.site-header__mobile-cta {
    display: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #4D3F36;
    padding: 10px 20px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.site-header__mobile-cta:hover {
    background: #6b5a4e;
    color: #ffffff;
}

/* Hamburger */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #4D3F36;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.site-header__hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.site-header__hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.site-header__mobile-menu {
    display: none;
    background: #F4EFEA;
    border-top: 1px solid #e8e0db;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.site-header__mobile-menu.is-open {
    max-height: 600px;
}

.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
}

.mobile-nav__list .chiro-nav__item {
    border-bottom: 1px solid #e8e0db;
}

.mobile-nav__list .chiro-nav__item:last-child {
    border-bottom: none;
}

.mobile-nav__list .chiro-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 16px;
    width: 100%;
    background: none;
    border-radius: 0;
}

.mobile-nav__list .chiro-nav__link:hover {
    background: none;
}

.mobile-nav__list .chiro-nav__chevron {
    display: none;
}

.mobile-nav__list .chiro-nav__toggle-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none !important;
    border: 1px solid #e8e0db !important;
    border-radius: 6px;
    padding: 0 !important;
    cursor: pointer;
    color: #4D3F36;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: absolute;
    right: 0;
    top: 8px;
}

.mobile-nav__list .chiro-nav__toggle-sub[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-nav__list .chiro-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0 0 8px 16px;
    display: none;
}

.mobile-nav__list .chiro-dropdown.is-expanded {
    display: block;
}

.mobile-nav__list .chiro-dropdown__link {
    padding: 10px 0;
    border-left: none;
    font-size: 15px;
}

.mobile-nav__list .chiro-dropdown__link:hover {
    background: none;
    color: #6b5a4e;
}

.mobile-nav__footer {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e8e0db;
}

.mobile-nav__phone {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4D3F36;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav__footer .site-header__cta {
    text-align: center;
    font-size: 16px;
    padding: 14px 22px;
}

/* Responsive */
@media (max-width: 900px) {
    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-header__hamburger {
        display: flex;
    }

    .site-header__mobile-cta {
        display: inline-block;
    }

    .site-header__mobile-menu {
        display: block;
    }

    .chiro-nav__item--mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .site-header__inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .site-header__logo-text {
        font-size: 18px;
    }

    .site-header__mobile-cta {
        font-size: 12px;
        padding: 8px 16px;
    }
}
