/* Naraway shared navigation styles (extracted from narawaynew.css).
   Loaded by Services/Navbar.html so the nav can sit on any page without restyling it.
   Keep in sync with the nav rules in narawaynew.css. */
:where(.navbar, .navbar *, .navbar *::before, .navbar *::after) {
    font-family: var(--nw-font-secondary, 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif); margin: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    background: rgba(47, 58, 78, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    background: rgba(47, 58, 78, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-container {
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.nav-logo img {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.nav-link:hover,
.nav-link.active {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
}

.chevron-down {
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.has-mega:hover .chevron-down {
    transform: rotate(225deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 25px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 85vw;
    max-width: 900px;
    min-width: 700px;
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
}

@media (min-width: 1280px) {
    .mega-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
}
    .nav-item:nth-last-child(-n+3) .mega-menu {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
}
    .nav-item:nth-child(-n+3) .mega-menu {
        left: 0;
        right: auto;
        transform: translateX(0) translateY(10px);
}
    .nav-item:nth-last-child(-n+3):hover .mega-menu {
        transform: translateX(0) translateY(0);
}
    .nav-item:nth-child(-n+3):hover .mega-menu {
        transform: translateX(0) translateY(0);
}
    .has-mega:not(:nth-child(-n+3)):not(:nth-last-child(-n+3)):hover .mega-menu {
        transform: translateX(-50%) translateY(0);
}
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mega-container {
    display: flex;
    min-height: 420px;
}

.mega-sidebar {
    background: #2F3A4E;
    width: 280px;
    padding: 32px 0;
    flex-shrink: 0;
}

.mega-tab {
    padding: 16px 32px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    margin: 2px 0;
}

.mega-tab:hover,
.mega-tab.active {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
    border-left-color: #FF8C42;
}

.mega-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FF8C42;
}

.mega-content {
    flex: 1;
    padding: 40px;
    background: white;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 32px;
}

.mega-link {
    display: block;
    padding: 12px 24px;
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-link:hover {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.05);
    transform: translateX(4px);
}

.mega-link:last-child {
    border-bottom: none;
}

.know-more {
    display: inline-flex;
    align-items: center;
    color: #FF8C42;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.know-more:hover {
    transform: translateX(4px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-icon {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.8);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF8C42, #FF6A00);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.35);
}

.phone-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.has-mega {
    position: relative;
}

.has-mega::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 25px;
    pointer-events: none;
}

.has-mega:hover::before {
    pointer-events: all;
}

@media (max-width: 1200px) {
    .mega-menu {
        width: 90vw;
        max-width: 750px;
        min-width: 500px;
}
    .mega-sidebar {
        width: 250px;
}
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
}
    .navbar {
        width: calc(100% - 20px);
        top: 10px;
}
    .nav-container {
        padding: 0 20px;
}
    .nav-menu {
        gap: 4px;
}
    .nav-link {
        padding: 12px 14px;
        font-size: 14px;
}
}

@media (max-width: 1279px) {
    .navbar {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 16px;
}
    /* Keep the floating bar on tablet and mobile. The blur moves to a background layer: a backdrop-filter on the bar
       itself would make the full-screen menu (position: fixed) size itself to the bar instead of the viewport. */
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .navbar::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: -1;
        pointer-events: none;
    }
    .menu-toggle {
        display: flex;
        z-index: 10001;
}
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #2F3A4E;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 0 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 10000;
        margin: 0;
}
    .nav-menu.active {
        transform: translateX(0);
}
    .nav-item {
        width: 100%;
}
    .nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 16px 24px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
    .has-mega > .mega-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        margin: 0;
        box-shadow: none;
        pointer-events: all;
        transform: none !important;
        width: 100%;
        min-width: auto;
        border: none;
        border-radius: 0;
        left: auto !important;
        right: auto !important;
}
    .has-mega.open > .mega-menu {
        display: block;
}
    .mega-container {
        flex-direction: column;
        min-height: auto;
}
    .mega-sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 0;
        background: #1a2332;
}
    .mega-content {
        padding: 20px;
        background: #243447;
}
    .mega-grid {
        grid-template-columns: 1fr;
        gap: 0;
}
    .mega-link {
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
    .mega-link:hover {
        color: #FF8C42;
        background: rgba(255, 140, 66, 0.1);
}
    .search-btn {
        display: none;
}
    .nav-actions {
        z-index: 10001;
}
    .has-mega.open > .nav-link {
        background: rgba(255, 140, 66, 0.15);
        color: #FF8C42;
}
    .has-mega.open > .nav-link .chevron-down {
        transform: rotate(225deg);
}
    .mega-tab.active {
        background: rgba(255, 140, 66, 0.15);
        color: #FF8C42;
        font-weight: 600;
}
    .mega-menu {
        transition: none;
}
    .mega-panel {
        animation: none;
}
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
}
    .nav-wrapper {
        height: 64px;
}
    .nav-logo img {
        height: 52px;
}
    .btn-cta {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
}
    .phone-icon {
        width: 14px;
        height: 14px;
}
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep the full desktop nav on one line at laptop widths (1025-1440px) without squeezing out the logo. */
.navbar .nav-logo { flex-shrink: 0; }
.navbar .nav-logo img { max-width: none; }
.navbar .btn-cta { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 1280px) and (max-width: 1440px) {
    .navbar .nav-link { font-size: 13px; }
    .navbar .btn-cta { font-size: 13px; padding: 10px 16px; }
}
@media (min-width: 1280px) and (max-width: 1320px) {
    .navbar .nav-menu { gap: 7px; }
    .navbar .nav-link { font-size: 12px; }
    .navbar .btn-cta { font-size: 12px; padding: 10px 12px; }
}

/* Nav test (15 Oct 2026, one week): labels are shorter (Launch / Build / Grow / Talent), so the items get more space between them. */
@media (min-width: 1280px) {
    .navbar .nav-menu { gap: clamp(20px, calc(2.4vw - 6px), 44px); }
}
