/* navbar.css — shared navbar styling for all pages, sourced verbatim from
   the master page (hydrant-sprinkler-systems.html)'s inline nav CSS so that
   markup (components/navbar.html) and styling always match. */

        /* ─── NAVBAR ─── */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 0 5%;
            height: 90px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(16px) saturate(160%);
            -webkit-backdrop-filter: blur(16px) saturate(160%);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            transition: all 0.35s ease;
        }

        nav.scrolled {
            background: rgba(255, 255, 255, 0.25);
            border-bottom: 1px solid rgba(0, 0, 0, 0.12);
            box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
            height: 75px;
        }

        /* Logo */
        .nav-logo {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            flex-shrink: 0;
        }

        .nav-logo-icon {
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: transparent;
            box-shadow: none;
        }

        .nav-logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .nav-logo-icon svg {
            width: 24px;
            height: 24px;
            fill: #fff;
        }

        .nav-logo-text strong {
            display: block;
            font-size: 1.4rem;
            font-family: var(--font-heading);
            color: var(--primary-text);
            letter-spacing: 0.3px;
            line-height: 1.1;
        }

        .nav-logo-text em {
            display: block;
            font-size: 0.65rem;
            font-style: normal;
            color: var(--secondary-text);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-top: 1px;
        }

        /* Right-side links */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-links>a,
        .nav-dropdown-trigger {
            font-size: 1.05rem;
            font-weight: 500;
            font-family: var(--font-body);
            color: rgba(255, 255, 255, 0.65);
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.2s ease;
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            white-space: nowrap;
        }

        .nav-links>a:hover,
        .nav-dropdown-trigger:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.07);
        }

        .nav-links>a.nav-active,
        .nav-dropdown-trigger.nav-active {
            color: var(--primary-accent);
        }

        /* Solutions Dropdown */
        .nav-dropdown {
            position: relative;
        }

        .nav-dropdown-trigger svg {
            width: 13px;
            height: 13px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
            transition: transform 0.22s ease;
        }

        .nav-dropdown:hover .nav-dropdown-trigger svg {
            transform: rotate(180deg);
        }

        .nav-dropdown-menu {
            position: absolute;
            top: calc(100% + 14px);
            right: 0;
            background: rgba(84, 185, 232, 0.92);
            /* 92% Opaque White */
            backdrop-filter: blur(24px);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            padding: 12px;
            min-width: 320px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px);
            transition: all 0.22s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            pointer-events: none;
        }

        .nav-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -14px;
            left: 0;
            width: 100%;
            height: 14px;
        }

        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        .nav-dropdown-item {
            display: block;
            padding: 14px 16px;
            border-radius: 10px;
            color: #000000;
            text-decoration: none;
            transition: all 0.18s ease;
        }

        /* Changes the item and all nested text to white on hover */
        .nav-dropdown-item:hover {
            background: rgba(255, 255, 255, 0.973);
            color: #ffffff;
        }

        .nav-dropdown-item:hover .nav-dropdown-item-text strong,
        .nav-dropdown-item:hover .nav-dropdown-item-text span {
            color: #ffffff;
        }

        .nav-dropdown-item-text strong {
            display: block;
            font-size: 1.05rem;
            color: #000000;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .nav-dropdown-item-text span {
            display: block;
            font-size: 0.85rem;
            color: rgba(0, 0, 0, 0.6);
            line-height: 1.4;
        }

        /* Mobile */
        .nav-hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 6px;
            background: none;
            border: none;
        }

        .nav-hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 2px;
            transition: all 0.28s ease;
        }

        .nav-hamburger.open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-hamburger.open span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .nav-hamburger.open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .nav-mobile-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1040;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .nav-mobile-overlay.open {
            opacity: 1;
        }

        /* Mobile nav dropdown — anchored under the fixed navbar and slides
           open downward (matches the Vajrang Kuteer reference pattern)
           instead of a full-height side drawer with a dark scrim. */
        .nav-mobile-drawer {
            display: none;
            position: fixed;
            top: 90px;
            left: 0;
            width: 100%;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            background: rgba(84, 185, 232, 0.97);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            z-index: 1050;
            padding: 0 24px;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 2px;
            transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, padding 0.3s ease;
        }

        nav.scrolled ~ .nav-mobile-drawer {
            top: 75px;
        }

        .nav-mobile-drawer.open {
            max-height: calc(100dvh - 90px);
            opacity: 1;
            padding: 18px 24px 32px;
            overflow-y: auto;
        }

        .nav-mobile-drawer a {
            display: block;
            width: 100%;
            padding: 12px 14px;
            color: rgba(255, 255, 255, 0.65) !important;
            font-size: 0.95rem;
            border-radius: 7px;
            font-weight: 500;
            transition: all 0.18s ease;
            text-decoration: none;
        }

        .nav-mobile-drawer a:hover {
            background: rgba(232, 64, 12, 0.1);
            color: #fff !important;
        }

        .nav-mobile-drawer .mob-label {
            font-size: 0.65rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.25) !important;
            padding: 14px 14px 4px;
            font-family: var(--font-heading);
        }

        /* Close X is replaced by the hamburger's own open/close toggle,
           same as the reference pattern's single Menu/X icon. */
        #drawerCloseBtn {
            display: none !important;
        }

        .nav-mobile-drawer .mob-divider {
            height: 1px;
            width: 100%;
            background: rgba(255, 255, 255, 0.08);
            margin: 8px 0;
        }

        /* Accordion groups (Solutions / Our Products) */
        .mob-accordion {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .mob-accordion-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            background: none;
            border: none;
            cursor: pointer;
            padding: 12px 14px;
            color: rgba(255, 255, 255, 0.65) !important;
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: normal;
            text-transform: none;
            font-family: var(--font-body);
        }

        .mob-accordion-chevron {
            width: 11px;
            height: 11px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
            transition: transform 0.25s ease;
            flex-shrink: 0;
        }

        .mob-accordion.open .mob-accordion-chevron {
            transform: rotate(180deg);
        }

        .mob-submenu {
            width: 100%;
            max-height: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: max-height 0.35s ease;
        }

        .mob-accordion.open .mob-submenu {
            max-height: 500px;
        }

        .mob-submenu a {
            font-size: 0.95rem;
            font-weight: 500;
            opacity: 0.85;
        }

        @media (max-width: 860px) {
            .nav-links {
                display: none;
            }

            .nav-hamburger {
                display: flex;
            }

            .nav-mobile-drawer {
                display: flex;
            }

            nav {
                padding: 0 4%;
            }

            .nav-logo-icon {
                width: 46px;
                height: 46px;
            }

            .nav-logo-text strong {
                font-size: 0.95rem;
            }

            .nav-logo-text em {
                font-size: 0.55rem;
                white-space: nowrap;
            }
        }

        @media (max-width: 400px) {
            .nav-logo-text em {
                display: none;
            }
        }
