/**
 * Header Highgate Styles
 * Two row layout: Top bar (dark) + Main navigation
 */

/* -- Top Bar -- */

.header-highgate .header-top-bar {
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-highgate .header-top-bar .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-highgate .top-bar-left,
.header-highgate .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Location */
.header-highgate .top-bar-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-highgate a.top-bar-location:hover {
    opacity: 0.85;
    color: #fff;
}

.header-highgate .top-bar-location i {
    color: var(--wp--preset--color--primary);
}

/* Opening Hours Toggle */
.header-highgate .top-bar-hours {
    position: relative;
}

.header-highgate .top-bar-hours__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.header-highgate .top-bar-hours__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-highgate .top-bar-hours__toggle i:first-child {
    color: var(--wp--preset--color--primary);
}

.header-highgate .top-bar-hours__arrow {
    font-size: 10px;
    transition: transform 0.3s;
    opacity: 0.7;
}

.header-highgate .top-bar-hours__toggle[aria-expanded="true"] .top-bar-hours__arrow {
    transform: rotate(180deg);
}

/* Hours Dropdown */
.header-highgate .top-bar-hours__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    z-index: 1001;
    overflow: hidden;
    animation: wmes-dropdown-in 0.2s ease-out;
}

@keyframes wmes-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-highgate .top-bar-hours__dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.header-highgate .top-bar-hours__dropdown li {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.header-highgate .top-bar-hours__dropdown li:hover {
    background: #f8f9fa;
}

.header-highgate .top-bar-hours__dropdown li.is-today {
    background: rgba(var(--wp--preset--color--primary-rgb, 0, 168, 150), 0.08);
    font-weight: 700;
}

/* Fallback for is-today without RGB custom props */
.header-highgate .top-bar-hours__dropdown li.is-today {
    background: #e8f8f6;
}

.header-highgate .top-bar-hours__day {
    font-weight: 600;
}

.header-highgate .top-bar-hours__time {
    color: #555;
}

.header-highgate .top-bar-hours__dropdown li.is-today .top-bar-hours__time {
    color: var(--wp--preset--color--primary);
    font-weight: 700;
}

/* Phone & Email links */
.header-highgate .top-bar-phone,
.header-highgate .top-bar-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-highgate .top-bar-phone:hover,
.header-highgate .top-bar-email:hover {
    opacity: 0.85;
    color: #fff;
}

.header-highgate .top-bar-phone i,
.header-highgate .top-bar-email i {
    color: var(--wp--preset--color--primary);
}

/* Separator between left and right on desktop */
.header-highgate .top-bar-left::after {
    content: '';
    display: block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    margin-left: 4px;
}

/* -- Main Navigation -- */

.header-highgate .header-main {
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-highgate .header-main .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-highgate .site-branding {
    flex-shrink: 0;
}

.header-highgate .site-logo img {
    max-height: 60px;
    width: auto;
}

.header-highgate .site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
    margin: 0;
}

.header-highgate .header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-highgate .header-actions {
    flex-shrink: 0;
}

/* -- Desktop squeeze zone -- */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-highgate .header-main .header-inner {
        gap: 25px;
    }
}

/* -- Nav breakpoint: burger menu active -- */
@media (max-width: 1199px) {
    .header-highgate .header-main .header-inner {
        position: relative;
    }
}

/* -- Topbar adjustments for smaller screens -- */
@media (max-width: 991px) {
    .header-highgate .header-top-bar {
        font-size: 12px;
    }
    
    .header-highgate .top-bar-left,
    .header-highgate .top-bar-right {
        gap: 12px;
    }
    
    .header-highgate .top-bar-email__text {
        display: none;
    }

    .header-highgate .top-bar-left::after {
        display: none;
    }
}

/* -- Mobile: icons only, text hidden -- */
@media (max-width: 576px) {
    .header-highgate .header-top-bar {
        padding: 8px 0;
    }

    .header-highgate .top-bar-left,
    .header-highgate .top-bar-right {
        gap: 6px;
    }

    /* Hide all text labels - icons only */
    .header-highgate .top-bar-location__text,
    .header-highgate .top-bar-hours__today,
    .header-highgate .top-bar-hours__arrow,
    .header-highgate .top-bar-phone__text,
    .header-highgate .top-bar-email__text {
        display: none;
    }

    /* Make icons tappable size (44px minimum touch target) */
    .header-highgate .top-bar-location,
    .header-highgate .top-bar-hours__toggle,
    .header-highgate .top-bar-phone,
    .header-highgate .top-bar-email {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-highgate .top-bar-hours__toggle {
        padding: 4px;
    }

    /* Icons slightly larger on mobile for visibility */
    .header-highgate .top-bar-left i,
    .header-highgate .top-bar-right i {
        font-size: 16px;
    }

    /* Dropdown adjustments for mobile */
    .header-highgate .top-bar-hours__dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        width: auto;
        min-width: 0;
    }

    .header-highgate .top-bar-left::after {
        display: none;
    }
}