/* =========================================================
   Nature Holiday Trip — professional site header + mega menu
   ========================================================= */

.site-header.nh-header-pro {
    --nh-ink: #0f172a;
    --nh-muted: #64748b;
    --nh-line: rgba(15, 23, 42, 0.08);
    --nh-soft: #f8fafc;
    --nh-accent: #ea580c;
    --nh-navy: #1e3a5f;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nh-line);
    font-family: "DM Sans", Inter, sans-serif;
}

.header-main {
    min-height: 76px;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand — logo only (image already includes wordmark) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 200px;
    text-decoration: none;
    line-height: 0;
}

.brand-logo img,
.brand-mark {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
}

/* Primary nav */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.desktop-nav > a,
.nav-dropdown-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.desktop-nav > a:hover,
.nav-dropdown-btn:hover,
.desktop-nav > a.is-active,
.nav-mega-wrap.is-open .nav-dropdown-btn {
    color: var(--nh-ink);
    background: var(--nh-soft);
}

.desktop-nav > a.is-active {
    color: var(--nh-navy);
}

.desktop-nav > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--nh-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after {
    transform: scaleX(1);
}

.nav-dropdown-btn i {
    font-size: 10px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.nav-mega-wrap.is-open .nav-dropdown-btn i {
    transform: rotate(180deg);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.header-phone-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff7ed;
    color: var(--nh-accent);
    flex-shrink: 0;
}

.header-phone-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-phone-copy small {
    font-size: 11px;
    font-weight: 600;
    color: var(--nh-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-phone-copy strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--nh-ink);
    white-space: nowrap;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--nh-navy);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta:hover {
    background: #152a45;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.28);
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: var(--nh-soft);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    color: var(--nh-ink);
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: none;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--nh-line);
    background: #fff;
    max-height: min(78vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-bar strong {
    font-size: 16px;
    color: var(--nh-ink);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu a,
.mobile-menu .mobile-cta {
    display: block;
    width: 100%;
    padding: 13px 4px;
    font-weight: 600;
    color: #334155;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu .mobile-phone {
    color: var(--nh-accent);
}

.mobile-menu .mobile-cta {
    margin-top: 12px;
    border: 0;
    text-align: center;
}

/* Mobile mega accordion */
.mob-mega {
    border-bottom: 1px solid #f1f5f9;
}

.mob-mega-top,
.mob-mega-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 4px;
    border: 0;
    background: transparent;
    font-family: inherit;
    color: #1e3a8a;
    text-align: left;
    cursor: pointer;
}

.mob-mega-top-main,
.mob-mega-cat-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mob-mega-top-main strong,
.mob-mega-cat-copy strong {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
}

.mob-mega-cat-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mob-mega-cat-copy small {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.mob-mega-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.mob-mega-chevron {
    color: #64748b;
    font-size: 12px;
    transition: transform 0.18s ease;
}

.mob-mega.is-open > .mob-mega-top .mob-mega-chevron,
.mob-mega-cat.is-open > .mob-mega-cat-btn .mob-mega-chevron {
    transform: rotate(180deg);
}

.mob-mega-body {
    padding: 0 0 10px 6px;
}

.mob-mega-cat {
    border-top: 1px solid #f1f5f9;
}

.mob-mega-cat-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

.mob-mega-dest {
    padding: 4px 2px 12px 8px;
}

.mob-mega-region {
    margin: 8px 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.mob-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mob-mega-grid .nh-mega-tile {
    max-height: 96px;
    aspect-ratio: 1.45 / 1;
    border-radius: 12px;
}

.mob-mega-grid .nh-mega-tile-label {
    font-size: 12px;
    padding: 18px 8px 8px;
    text-align: center;
}

.nh-mega-pager {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nh-mega-pager .nh-mega-tile.is-pager-hidden,
.nh-mega-pager .nh-mega-tile[hidden] {
    display: none !important;
}

.nh-mega-pager-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2px 0 4px;
}

.nh-mega-pager-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(16, 35, 28, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #1f6b4a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nh-mega-pager-btn:hover:not(:disabled) {
    background: #e8f2ec;
    border-color: rgba(31, 107, 74, 0.35);
}

.nh-mega-pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nh-mega-pager-status {
    min-width: 3.5rem;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #5b6b63;
    font-variant-numeric: tabular-nums;
}

.mob-mega-viewall {
    margin-top: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1.5px solid #2563eb !important;
    border-radius: 12px;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    text-decoration: none;
    background: #fff;
}

.mob-mega-empty {
    margin: 0;
    padding: 8px 0;
    color: #64748b;
    font-size: 13px;
}

/* ---------- Mega menu ---------- */
.nav-mega-wrap {
    position: relative;
}

.nh-mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(840px, calc(100vw - 32px));
    padding: 0;
    background: #fff;
    border: 1px solid var(--nh-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 50;
    overflow: hidden;
}

.nav-mega-wrap.is-open .nh-mega,
.nav-mega-wrap:hover .nh-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Keep panel open while pointer moves; JS also toggles .is-open */
.nh-mega[hidden] {
    display: none !important;
}

.nh-mega-inner {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 260px;
}

.nh-mega-cats {
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 18px 14px;
}

.nh-mega-label {
    margin: 0 0 12px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.nh-mega-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nh-mega-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.nh-mega-cat:hover,
.nh-mega-cat.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nh-mega-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.nh-mega-cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nh-mega-cat-text strong {
    font-size: 13px;
    font-weight: 700;
}

.nh-mega-cat-text small {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nh-mega-panels {
    padding: 14px 14px 16px;
    background: #fff;
}

.nh-mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nh-mega-panel-title {
    margin: 0;
    color: var(--nh-muted);
}

.nh-mega-region-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #f1f5f9;
    gap: 2px;
}

.nh-mega-region-tab {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--nh-muted);
    cursor: pointer;
}

.nh-mega-region-tab.is-active {
    background: #fff;
    color: var(--nh-ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.nh-mega-region {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--nh-ink);
}

.nh-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nh-mega-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nh-mega-tile {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
    max-height: 88px;
    background: #e2e8f0;
    text-decoration: none;
}

.nh-mega-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nh-mega-tile:hover img {
    transform: scale(1.06);
}

.nh-mega-tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 8px 7px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1180px) {
    .header-phone-copy {
        display: none;
    }

    .desktop-nav > a,
    .nav-dropdown-btn {
        padding: 0 9px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-actions {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .brand-mark {
        height: 44px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu.active[hidden] {
        display: block !important;
    }

    .nh-mega {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .nh-mega-inner {
        grid-template-columns: 1fr;
    }

    .nh-mega-grid,
    .nh-mega-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Header / Mega-menu layout hardening (Oct 2026)
   These selectors intentionally match the existing PHP markup.
   ========================================================= */
.site-header.nh-header-pro {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header.nh-header-pro .desktop-nav,
.site-header.nh-header-pro .header-inner,
.site-header.nh-header-pro .header-actions {
    min-width: 0;
}

/* Keep desktop mega menus centered in the viewport, not clipped by nav items. */
@media (min-width: 981px) {
    .site-header.nh-header-pro .nav-mega-wrap {
        position: static !important;
    }

    .site-header.nh-header-pro .nh-mega {
        position: absolute !important;
        top: calc(100% + 0px) !important;
        left: 50% !important;
        right: auto !important;
        width: min(1120px, calc(100vw - 32px)) !important;
        max-width: calc(100vw - 32px) !important;
        max-height: min(76vh, 620px);
        overflow: auto !important;
        transform: translateX(-50%) translateY(8px);
        border-radius: 20px;
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nav-mega-wrap.is-open .nh-mega,
    .site-header.nh-header-pro .nav-mega-wrap:hover .nh-mega {
        transform: translateX(-50%) translateY(0);
    }

    .site-header.nh-header-pro .nh-mega-inner {
        display: grid !important;
        grid-template-columns: 250px minmax(0, 1fr) !important;
        align-items: stretch;
        min-height: 300px;
        width: 100%;
    }

    .site-header.nh-header-pro .nh-mega-cats {
        display: block !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nh-mega-cat-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px;
    }

    .site-header.nh-header-pro .nh-mega-cat {
        display: flex !important;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        font-family: inherit;
        line-height: 1.35;
    }

    .site-header.nh-header-pro .nh-mega-panels {
        display: block !important;
        min-width: 0;
        padding: 22px 24px !important;
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nh-mega-panel[hidden],
    .site-header.nh-header-pro .nh-mega-region-block[hidden],
    .site-header.nh-header-pro .nh-mega[hidden] {
        display: none !important;
    }

    .site-header.nh-header-pro .nh-mega-panel-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-header.nh-header-pro .nh-mega-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100%;
    }

    .site-header.nh-header-pro .nh-mega-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .site-header.nh-header-pro .nh-mega-tile {
        display: block !important;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1.6 / 1;
        max-height: 112px;
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nh-mega-tile img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .site-header.nh-header-pro .nh-mega-region {
        margin: 0 0 12px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
    }
}

.site-header.nh-header-pro .nh-mega-label,
.site-header.nh-header-pro .nh-mega-cat-text,
.site-header.nh-header-pro .nh-mega-cat-text strong,
.site-header.nh-header-pro .nh-mega-cat-text small,
.site-header.nh-header-pro .nh-mega-panel-title,
.site-header.nh-header-pro .nh-mega-region-tab,
.site-header.nh-header-pro .nh-mega-tile-label {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header.nh-header-pro .nh-mega-cat-text strong {
    font-size: 14px;
    line-height: 1.35;
}

.site-header.nh-header-pro .nh-mega-cat-text small {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-header.nh-header-pro .nh-mega-panel-title {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.site-header.nh-header-pro .nh-mega-empty {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 14px;
}

@media (min-width: 981px) and (max-width: 1100px) {
    .site-header.nh-header-pro .nh-mega-inner {
        grid-template-columns: 220px minmax(0, 1fr) !important;
    }

    .site-header.nh-header-pro .nh-mega-grid,
    .site-header.nh-header-pro .nh-mega-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .site-header.nh-header-pro .nh-mega {
        display: none !important;
    }
}

/* =========================================================
   Packages dropdown — compact two-column text layout
   ========================================================= */
@media (min-width: 981px) {
    .site-header.nh-header-pro .nh-mega.nh-packages-mega {
        width: min(920px, calc(100vw - 36px)) !important;
        max-width: calc(100vw - 36px) !important;
        max-height: min(78vh, 640px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        border: 1px solid #f1e8e2;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 24px 60px rgba(24, 24, 27, .16);
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nh-packages-mega-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 30px;
        padding: 28px 32px 24px;
        box-sizing: border-box;
    }

    .site-header.nh-header-pro .nh-packages-column {
        min-width: 0;
    }

    .site-header.nh-header-pro .nh-packages-heading {
        margin: 0 0 16px;
        color: #c2410c;
        font-family: Inter, "Segoe UI", Arial, sans-serif;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.45;
        letter-spacing: .085em;
        text-transform: uppercase;
    }

    .site-header.nh-header-pro .nh-packages-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        min-width: 0;
    }

    .site-header.nh-header-pro .nh-package-link {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
        padding: 9px 8px;
        border-radius: 12px;
        color: #111827;
        text-decoration: none;
        box-sizing: border-box;
        transition: background .18s ease, transform .18s ease;
    }

    .site-header.nh-header-pro .nh-package-link:hover {
        background: #fff7ed;
        transform: translateX(2px);
    }

    .site-header.nh-header-pro .nh-package-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-top: 1px;
        border-radius: 14px;
        background: #ffede2;
        color: #c2410c;
        font-size: 16px;
    }

    .site-header.nh-header-pro .nh-package-link-copy {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .site-header.nh-header-pro .nh-package-link-copy strong {
        display: block;
        color: #111827;
        font-family: Inter, "Segoe UI", Arial, sans-serif;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .site-header.nh-header-pro .nh-package-link-copy small {
        display: block;
        color: #858585;
        font-family: Inter, "Segoe UI", Arial, sans-serif;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .site-header.nh-header-pro .nh-packages-mega-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0 32px;
        padding: 18px 0 24px;
        border-top: 1px solid #e5e7eb;
        color: #858585;
        font-family: Inter, "Segoe UI", Arial, sans-serif;
        font-size: 13px;
        line-height: 1.4;
    }

    .site-header.nh-header-pro .nh-packages-mega-footer a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 19px;
        border-radius: 999px;
        background: #f97316;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 750;
        transition: background .18s ease, transform .18s ease;
    }

    .site-header.nh-header-pro .nh-packages-mega-footer a:hover {
        background: #ea580c;
        transform: translateY(-1px);
    }
}

@media (min-width: 981px) and (max-width: 1100px) {
    .site-header.nh-header-pro .nh-mega.nh-packages-mega {
        width: min(860px, calc(100vw - 28px)) !important;
    }

    .site-header.nh-header-pro .nh-packages-mega-inner {
        gap: 16px;
        padding: 24px 22px 20px;
    }

    .site-header.nh-header-pro .nh-package-link-copy strong {
        font-size: 14px;
    }

    .site-header.nh-header-pro .nh-package-link-copy small {
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .site-header.nh-header-pro .nh-packages-mega {
        display: none !important;
    }
}

/* =========================================================
   Final dropdown trigger polish — Packages + Customized
   Both triggers use the same compact light pill style.
   Backend-driven menu markup and data remain unchanged.
   ========================================================= */
.site-header.nh-header-pro .desktop-nav .nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    height: 42px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f5f7fa;
    color: #263449;
    font-family: Inter, "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.site-header.nh-header-pro .desktop-nav .nav-dropdown-btn:hover,
.site-header.nh-header-pro .desktop-nav .nav-mega-wrap.is-open > .nav-dropdown-btn,
.site-header.nh-header-pro .desktop-nav .nav-dropdown-btn[aria-expanded="true"] {
    background: #eef2f7;
    border-color: #edf0f4;
    color: #172033;
}

.site-header.nh-header-pro .desktop-nav .nav-dropdown-btn i {
    display: inline-block;
    margin: 0;
    font-size: 11px;
    line-height: 1;
    opacity: .72;
    transition: transform .2s ease;
}

.site-header.nh-header-pro .desktop-nav .nav-mega-wrap.is-open > .nav-dropdown-btn i {
    transform: rotate(180deg);
}

/* Keep the two trigger pills visually consistent at narrower desktop widths. */
@media (min-width: 981px) and (max-width: 1180px) {
    .site-header.nh-header-pro .desktop-nav .nav-dropdown-btn {
        min-height: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Prevent mega menus from creating horizontal page overflow. */
.site-header.nh-header-pro .nh-mega {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
}

.site-header.nh-header-pro .nh-mega-inner,
.site-header.nh-header-pro .nh-packages-mega-inner,
.site-header.nh-header-pro .nh-packages-column,
.site-header.nh-header-pro .nh-packages-list,
.site-header.nh-header-pro .nh-package-link-copy {
    min-width: 0;
}

@media (max-width: 980px) {
    .site-header.nh-header-pro .desktop-nav .nav-dropdown-btn {
        min-height: 42px;
        height: 42px;
        justify-content: space-between;
        width: 100%;
        padding: 0 14px;
        background: #f5f7fa;
        border-radius: 12px;
    }
}


/* Mobile dropdown UX: mirror the desktop text menus in a compact accordion. */
@media (max-width: 980px) {
    .site-header.nh-header-pro .mobile-menu {
        padding: 10px 14px max(22px, env(safe-area-inset-bottom));
        max-height: calc(100dvh - 76px);
        overflow-x: hidden;
        overscroll-behavior: contain;
        border-top: 1px solid #edf0f4;
        box-shadow: 0 18px 34px rgba(15, 23, 42, .10);
    }

    .site-header.nh-header-pro .mobile-menu > a:not(.mobile-phone),
    .site-header.nh-header-pro .mobile-menu > .mobile-cta {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 12px 10px;
        border-radius: 11px;
        border-bottom: 1px solid #f0f2f5;
        font-size: 15px;
    }

    .site-header.nh-header-pro .mob-mega {
        margin: 8px 0;
        border: 1px solid #e8edf2;
        border-radius: 15px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    }

    .site-header.nh-header-pro .mob-mega-top {
        min-height: 60px;
        padding: 10px 13px;
        color: #1f2937;
        background: #f7f8fa;
        transition: background .18s ease;
    }

    .site-header.nh-header-pro .mob-mega.is-open > .mob-mega-top {
        background: #fff4ec;
    }

    .site-header.nh-header-pro .mob-mega-top-main {
        gap: 11px;
        flex: 1;
    }

    .site-header.nh-header-pro .mob-mega-top-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        border-radius: 12px;
        color: #c2410c;
        background: #ffeadc;
        font-size: 15px;
    }

    .site-header.nh-header-pro .mob-mega-top-copy {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .site-header.nh-header-pro .mob-mega-top-copy strong {
        color: #172033;
        font-size: 15px;
        line-height: 1.25;
        font-weight: 800;
    }

    .site-header.nh-header-pro .mob-mega-top-copy small {
        color: #778295;
        font-size: 11px;
        font-weight: 600;
    }

    .site-header.nh-header-pro .mob-mega-chevron {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        border-radius: 50%;
        background: #fff;
        color: #64748b;
    }

    .site-header.nh-header-pro .mob-mega-body {
        padding: 5px 11px 13px;
        background: #fff;
    }

    .site-header.nh-header-pro .mob-mega-region-section + .mob-mega-region-section {
        margin-top: 13px;
        padding-top: 13px;
        border-top: 1px solid #edf0f4;
    }

    .site-header.nh-header-pro .mob-mega-region-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 7px 2px 8px;
        color: #c2410c;
        font-size: 11px;
        line-height: 1.4;
        font-weight: 850;
        letter-spacing: .065em;
        text-transform: uppercase;
    }

    .site-header.nh-header-pro .mob-mega-region-heading span {
        width: 5px;
        height: 5px;
        flex: 0 0 5px;
        border-radius: 50%;
        background: #f97316;
    }

    .site-header.nh-header-pro .mob-mega-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .site-header.nh-header-pro .mob-mega-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 9px 8px;
        border: 1px solid transparent;
        border-radius: 12px;
        color: #111827;
        text-decoration: none;
        box-sizing: border-box;
        transition: background .16s ease, border-color .16s ease;
    }

    .site-header.nh-header-pro .mob-mega-link:active,
    .site-header.nh-header-pro .mob-mega-link:hover {
        background: #fff7f0;
        border-color: #ffeadc;
    }

    .site-header.nh-header-pro .mob-mega-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 12px;
        background: #ffede2;
        color: #c2410c;
        font-size: 15px;
    }

    .site-header.nh-header-pro .mob-mega-link-copy {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .site-header.nh-header-pro .mob-mega-link-copy strong {
        color: #111827;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

    .site-header.nh-header-pro .mob-mega-link-copy small {
        color: #7b8492;
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        overflow-wrap: anywhere;
    }

    .site-header.nh-header-pro .mob-mega-link-arrow {
        flex: 0 0 auto;
        color: #9ca3af;
        font-size: 11px;
        margin-left: 2px;
    }

    .site-header.nh-header-pro .mob-mega-viewall {
        min-height: 45px;
        margin-top: 12px !important;
        border: 0 !important;
        border-radius: 12px;
        background: #f97316;
        color: #fff !important;
        font-size: 14px;
        font-weight: 800 !important;
    }

    .site-header.nh-header-pro .mob-mega-empty {
        padding: 8px 2px;
        color: #7b8492;
    }
}

@media (max-width: 380px) {
    .site-header.nh-header-pro .mobile-menu { padding-left: 10px; padding-right: 10px; }
    .site-header.nh-header-pro .mob-mega-body { padding-left: 8px; padding-right: 8px; }
    .site-header.nh-header-pro .mob-mega-link-copy strong { font-size: 13px; }
    .site-header.nh-header-pro .mob-mega-link-copy small { font-size: 11px; }
}


/* Our Services mega dropdown — visual language matches the Packages panel. */
.nav-services-wrap {
    position: static !important;
    display: inline-flex;
    align-items: center;
}
.nav-services-wrap .services-dropdown-btn { gap: 7px; }
.nav-services-wrap.is-open .services-dropdown-btn i { transform: rotate(180deg); }
.services-dropdown {
    position: absolute;
    z-index: 1305;
    top: 100%;
    left: 50%;
    right: auto;
    width: min(1120px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    max-height: min(76vh, 620px);
    overflow: auto;
    box-sizing: border-box;
    padding: 28px 38px 24px;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .17);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 9px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.services-dropdown[hidden] { display: none !important; }
.nav-services-wrap.is-open .services-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.services-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.services-dropdown-inner { width: 100%; }
.services-dropdown-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 20px;
}
.services-dropdown-eyebrow {
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
}
.services-dropdown-intro { color: #64748b; font-size: 14px; line-height: 1.5; }
.services-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 8px;
}
.services-dropdown .services-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 66px;
    padding: 9px;
    border-radius: 13px;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .16s ease, transform .16s ease;
}
.services-dropdown .services-dropdown-item:hover,
.services-dropdown .services-dropdown-item.is-active {
    background: #fff7ed;
    transform: translateY(-1px);
}
.services-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    color: #c2410c;
    background: #ffede2;
    font-size: 21px;
}
.services-item-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.services-item-copy strong { color: #111827; font-size: 15px; font-weight: 750; line-height: 1.35; }
.services-item-copy small { color: #858585; font-size: 13px; font-weight: 400; line-height: 1.45; }
.services-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e5e7eb;
    color: #858585;
    font-size: 13px;
}
.services-dropdown-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 19px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.services-dropdown-footer a:hover { background: #ea580c; }
.mobile-services-dropdown { border-bottom: 1px solid #eef2f7; }
.mobile-services-dropdown summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 18px; color: #334155; font-size: 15px; font-weight: 650;
    list-style: none; cursor: pointer;
}
.mobile-services-dropdown summary::-webkit-details-marker { display: none; }
.mobile-services-dropdown[open] summary i { transform: rotate(180deg); }
.mobile-services-dropdown summary i { font-size: 11px; transition: transform .18s ease; }
.mobile-services-links { padding: 0 10px 8px 20px; }
.mobile-menu .mobile-services-links a {
    display: block; min-height: 40px; padding: 10px 14px; border: 0;
    border-radius: 8px; font-size: 14px;
}
@media (max-width: 1180px) and (min-width: 981px) {
    .services-dropdown { width: min(920px, calc(100vw - 28px)); padding: 24px 28px 20px; }
    .services-dropdown-grid { column-gap: 18px; }
    .services-item-copy strong { font-size: 14px; }
    .services-item-copy small { font-size: 12px; }
}
@media (max-width: 980px) {
    .nav-services-wrap { display: none !important; }
    .services-dropdown { display: none !important; }
}
@media (max-width: 560px) {
    .services-dropdown-grid { grid-template-columns: 1fr; }
    .services-dropdown-footer { align-items: flex-start; flex-direction: column; }
    .services-dropdown { padding: 20px; }
}


/* Our Services: compact icon-and-label dropdown (cache-busted in seo.php). */
@media (min-width: 981px) {
    .site-header.nh-header-pro .desktop-nav .nav-services-wrap {
        position: relative !important;
        display: inline-flex !important;
        align-self: center;
        overflow: visible !important;
    }
    .site-header.nh-header-pro .desktop-nav .nav-services-wrap > .services-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        width: 270px !important;
        min-width: 270px !important;
        max-width: calc(100vw - 24px) !important;
        max-height: min(70vh, 360px) !important;
        overflow: auto !important;
        display: block;
        box-sizing: border-box;
        padding: 8px !important;
        margin: 0 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .18) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
        z-index: 1500 !important;
    }
    .site-header.nh-header-pro .desktop-nav .nav-services-wrap > .services-dropdown[hidden] {
        display: none !important;
    }
    .site-header.nh-header-pro .desktop-nav .nav-services-wrap.is-open > .services-dropdown:not([hidden]) {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .site-header.nh-header-pro .services-dropdown::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }
    .site-header.nh-header-pro .services-dropdown .services-dropdown-item {
        display: flex !important;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px !important;
        border-radius: 9px !important;
        color: #1f2937 !important;
        background: transparent;
        text-decoration: none !important;
        font-family: inherit;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.35;
        white-space: normal;
        box-sizing: border-box;
        transition: color .15s ease, background .15s ease;
    }
    .site-header.nh-header-pro .services-dropdown .services-dropdown-item i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        min-width: 20px;
        color: #ea580c;
        font-size: 16px;
    }
    .site-header.nh-header-pro .services-dropdown .services-dropdown-item:hover,
    .site-header.nh-header-pro .services-dropdown .services-dropdown-item.is-active {
        color: #c2410c !important;
        background: #fff3e9 !important;
        transform: none !important;
    }
}
@media (max-width: 980px) {
    .site-header.nh-header-pro .desktop-nav .nav-services-wrap,
    .site-header.nh-header-pro .desktop-nav .services-dropdown { display: none !important; }
    .site-header.nh-header-pro .mobile-menu .mobile-services-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        color: #334155;
        text-decoration: none;
    }
    .site-header.nh-header-pro .mobile-services-links a i {
        width: 18px;
        color: #ea580c;
        text-align: center;
    }
}

/* Final Our Services dropdown: compact, stable icon + label list. */
@media (min-width: 981px) {
  .site-header.nh-header-pro .desktop-nav .nav-services-wrap { position:relative !important; }
  .site-header.nh-header-pro .desktop-nav .nav-services-wrap > .services-dropdown {
    top:calc(100% + 8px) !important; left:0 !important; width:280px !important; min-width:280px !important;
    padding:8px !important; border:1px solid #e5e7eb !important; border-radius:14px !important;
    background:#fff !important; box-shadow:0 18px 44px rgba(15,23,42,.18) !important;
    max-height:min(70vh,360px) !important; overflow:auto !important; transform:translateY(6px);
  }
  .site-header.nh-header-pro .desktop-nav .nav-services-wrap.is-open > .services-dropdown:not([hidden]) { transform:translateY(0); }
  .site-header.nh-header-pro .desktop-nav .services-dropdown .services-dropdown-item {
    display:flex !important; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 12px !important;
    color:#263449 !important; background:transparent !important; border-radius:9px !important;
    font-family:inherit; font-size:14px; font-weight:650; line-height:1.35; white-space:normal;
  }
  .site-header.nh-header-pro .desktop-nav .services-dropdown .services-dropdown-item i {
    display:inline-flex; flex:0 0 20px; align-items:center; justify-content:center; width:20px; color:#ea580c; font-size:16px;
  }
  .site-header.nh-header-pro .desktop-nav .services-dropdown .services-dropdown-item:hover,
  .site-header.nh-header-pro .desktop-nav .services-dropdown .services-dropdown-item.is-active { color:#c2410c !important; background:#fff3e9 !important; }
}

/* Dynamic service links in the Our Services dropdown */
.site-header.nh-header-pro .services-dropdown-group-label {
  margin: 4px 10px 5px;
  padding: 4px 2px;
  color: #7b8794;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}
.site-header.nh-header-pro .services-dropdown .service-menu-items-heading {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf1ee;
}
.site-header.nh-header-pro .services-dropdown .services-dropdown-service-item { padding-left: 18px !important; font-weight: 550 !important; }
.site-header.nh-header-pro .services-dropdown .services-dropdown-service-item i { color: #7b8b83 !important; font-size: 12px !important; }
.site-header.nh-header-pro .mobile-services-heading { padding: 12px 14px 4px; color: #7b8794; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-header.nh-header-pro .mobile-menu .mobile-services-links a.mobile-service-child { padding-left: 28px; font-size: 13px; }
