.nav-bar {
    position: fixed;
    inset: calc(var(--wp-admin-bar-offset, 0px) + var(--wp-admin-bar-gap, 0px)) 0 auto;
    z-index: 100;
    border-bottom: 1px solid var(--ocf-border-light);
    background: color-mix(in srgb, var(--ocf-bg) 96%, transparent);
}

.nav-inner {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.nav-logo,
.nav-right,
.nav-links,
.nav-phone,
.nav-dropdown-trigger,
.dropdown-item,
.mobile-link,
.mobile-accordion-trigger {
    display: flex;
    align-items: center;
}

.nav-logo { min-width: 0; font-weight: var(--font-weight-bold); color: var(--ocf-heading); }
.nav-logo-img { max-height: 2.75rem; width: auto; }
.nav-logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links { gap: clamp(1.25rem, 2.2vw, 2rem); color: var(--ocf-heading); font-size: var(--font-label-size); }
.nav-link { padding-block: 0.75rem; }
.nav-right { gap: 0.75rem; }
.nav-phone { gap: 0.4rem; color: var(--ocf-heading); font-size: var(--font-label-size); }
.nav-phone svg,
.nav-dropdown-chevron,
.dropdown-item svg,
.dropdown-item-icon svg,
.mobile-accordion-chevron,
.mobile-phone svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}
.nav-dropdown-chevron { width: 0.75rem; height: 0.75rem; }
.nav-divider { width: 1px; height: 1.5rem; background: var(--ocf-border-light); }
.nav-mobile-btn { display: none; border: 0; background: transparent; color: var(--ocf-heading); }

.nav-dropdown { position: relative; }
.nav-link,
.nav-dropdown-trigger { font-weight: var(--font-weight-semibold); }
.nav-dropdown-trigger { gap: 0.25rem; }
.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.dropdown-menu {
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
    padding: 0.5rem;
}
.dropdown-menu--wide { min-width: 18rem; }
.dropdown-item { gap: 0.5rem; padding: 0.65rem 0.75rem; color: var(--ocf-heading); }
.dropdown-item:hover { background: var(--ocf-bg-alt); color: var(--ocf-heading); }

.mobile-menu { display: none; border-top: 1px solid var(--ocf-border-light); background: var(--ocf-bg); }
.mobile-menu-inner { display: grid; gap: 0.25rem; padding: 1rem var(--container-pad); }
.mobile-link,
.mobile-accordion-trigger {
    width: 100%;
    justify-content: space-between;
    border: 0;
    background: transparent;
    padding: 0.75rem 0;
    color: var(--ocf-heading);
    text-align: left;
}
.mobile-accordion-panel { display: none; padding-left: 1rem; }
.mobile-accordion.is-open .mobile-accordion-panel { display: grid; }
.mobile-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--ocf-border-light);
    padding-top: 1rem;
}
.mobile-cta,
.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: var(--button-radius);
    font-weight: var(--font-weight-bold);
}
.mobile-cta {
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
}
.mobile-phone {
    gap: 0.5rem;
    border: 1px solid var(--ocf-border-light);
    background: var(--ocf-bg);
    color: var(--ocf-heading);
}
.mobile-phone-icon {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 980px) {
    .nav-links,
    .nav-phone,
    .nav-divider,
    .nav-cta { display: none; }
    .nav-mobile-btn { display: inline-flex; }
    .mobile-menu {
        max-height: calc(100vh - var(--wp-admin-bar-offset, 0px) - var(--wp-admin-bar-gap, 0px) - 4rem);
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    @supports (height: 100dvh) {
        .mobile-menu {
            max-height: calc(100dvh - var(--wp-admin-bar-offset, 0px) - var(--wp-admin-bar-gap, 0px) - 4rem);
        }
    }
    .mobile-menu.is-open { display: block; }
    .nav-inner { min-height: 4rem; }
}

/* OCF_AGENT_BLOCK:peak-logo-sizing START */
/* Give the brand mark stronger presence without changing navigation layout. */
.nav-logo-img {
    max-height: 3.5rem;
}

@media (max-width: 980px) {
    .nav-logo-img {
        max-height: 3rem;
    }
}
/* OCF_AGENT_BLOCK:peak-logo-sizing END */

/* OCF_AGENT_BLOCK:peak-header-brand-lockup START */
/* Compact mountain mark + readable wordmark for the primary navigation. */
.nav-logo {
    flex: 0 0 auto;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-mark {
    display: block;
    width: 4.65rem;
    height: 2.8rem;
    max-height: none;
    object-fit: contain;
}

.nav-logo-wordmark {
    display: grid;
    gap: 0.08rem;
    line-height: 1;
}

.nav-logo-name {
    color: var(--ocf-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.nav-logo-subtitle {
    color: var(--ocf-body);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .nav-logo { gap: 0.45rem; }
    .nav-logo-mark {
        width: 3.85rem;
        height: 2.35rem;
        max-height: none;
    }
    .nav-logo-name { font-size: 0.9rem; }
    .nav-logo-subtitle { font-size: 0.55rem; }
}

@media (max-width: 390px) {
    .nav-logo-mark { width: 3.25rem; }
    .nav-logo-subtitle { display: none; }
}
/* OCF_AGENT_BLOCK:peak-header-brand-lockup END */

/* OCF_AGENT_BLOCK:peak-nav-fit START */
/* Nav labels were wrapping mid-phrase ("Service" / "Areas") because no
   nowrap rule existed. Fixes the stacking without changing the layout. */
.nav-link,
.nav-dropdown-trigger,
.nav-phone,
.nav-text-btn,
.nav-cta { white-space: nowrap; }
.nav-phone span,
.nav-cta span { white-space: nowrap; }

/* Call and Text share one tinted treatment; the estimate CTA stays the only
   solid button so it remains the single primary action. */
.nav-phone,
.nav-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--ocf-primary, #4E8226);
    background: rgba(78, 130, 38, 0.08);
    color: var(--ocf-primary, #4E8226);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}
.nav-phone:hover,
.nav-text-btn:hover,
.nav-phone:focus-visible,
.nav-text-btn:focus-visible {
    background: var(--ocf-primary, #4E8226);
    color: #fff;
}

/* Below 1200px the labels are dropped so both actions stay on one line. */
@media (max-width: 1200px) {
    .nav-phone span[data-ocf-field="contact_phone"],
    .nav-text-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav-phone,
    .nav-text-btn { padding: 0.55rem 0.7rem; }
    .nav-links { gap: 1rem; }
}

/* Hamburger earlier: six items plus three actions is tight under 1100px. */
@media (max-width: 1100px) {
    .nav-links,
    .nav-phone,
    .nav-text-btn,
    .nav-divider,
    .nav-cta { display: none; }
    .nav-mobile-btn { display: inline-flex; }
}

/* Mobile menu: Call and Text side by side above the primary CTA. */
.mobile-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--ocf-primary, #4E8226);
    color: var(--ocf-primary, #4E8226);
    font-weight: 600;
    text-decoration: none;
}
/* OCF_AGENT_BLOCK:peak-nav-fit END */
