/* ═══════════════════════════════════════════════════════
   WrenchGrid Nav — nav.css v2.4.5
   Restored full nav + hero-matched image/overlay on all devices
═══════════════════════════════════════════════════════ */

#wgnav, #wgnav * { box-sizing: border-box; }

#wgnav {
    --wgnav-blue: rgba(23, 108, 185, 0.875);
    --wgnav-blue-dark: rgba(16, 86, 150, 0.925);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    height: 68px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    overflow: hidden;
}

#wgnav::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--wgnav-blue), var(--wgnav-blue)),
        url('background.jpg') center top / cover no-repeat;
    transform: scale(1.02);
    z-index: 0;
}

#wgnav::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.00) 35%, rgba(0,0,0,0.08));
    z-index: 0;
    pointer-events: none;
}

#wgnav.wgnav-scrolled {
    border-bottom-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(5, 18, 36, 0.22) !important;
}

#wgnav.wgnav-scrolled::before {
    background:
        linear-gradient(var(--wgnav-blue-dark), var(--wgnav-blue-dark)),
        url('background.jpg') center top / cover no-repeat;
}

.wgnav-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wgnav-logo {
    font-family: 'Bebas Neue', 'DM Sans', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
}
.wgnav-logo-wrench { color: #ffffff; }
.wgnav-logo-grid   { color: #22c55e; }
.wgnav-logo:hover  { opacity: 0.9; }

.wgnav-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.wgnav-links li a {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.wgnav-links li a:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
.wgnav-links li a.wgnav-active { color: #22c55e; background: rgba(34,197,94,0.12); }

.wgnav-links li a.wgnav-book {
    color: #22c55e;
    border: 1.5px solid rgba(34, 197, 94, 0.58);
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 700;
    background: rgba(12, 26, 46, 0.10);
}
.wgnav-links li a.wgnav-book:hover { background: rgba(34,197,94,0.15); border-color: #22c55e; }
.wgnav-links li a.wgnav-book.wgnav-active { background: rgba(34,197,94,0.2); border-color: #22c55e; }

.wgnav-cta {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #0b1628 !important;
    background: #22c55e;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(34,197,94,0.35);
}
.wgnav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(34,197,94,0.5); }

.wgnav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}
.wgnav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: 0 1px 1px rgba(0,0,0,0.16);
}
.wgnav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wgnav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wgnav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wgnav-drawer {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(rgba(23, 108, 185, 0.92), rgba(23, 108, 185, 0.92)),
        url('background.jpg') center top / cover no-repeat;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99998;
    overflow-y: auto;
    padding: 24px 20px 40px;
}
.wgnav-drawer[aria-hidden="false"] { display: block; }
.wgnav-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wgnav-drawer ul li a {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.wgnav-drawer ul li a:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.wgnav-drawer ul li a.wgnav-drawer-highlight { color: #22c55e; font-weight: 700; }
.wgnav-drawer ul li a.wgnav-drawer-highlight:hover { background: rgba(34,197,94,0.1); }
.wgnav-drawer ul li a.wgnav-drawer-book {
    color: #22c55e;
    font-weight: 700;
    border: 1.5px solid rgba(34,197,94,0.4);
    border-radius: 12px;
    margin-top: 8px;
}
.wgnav-drawer ul li a.wgnav-drawer-book:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.7); }
.wgnav-drawer ul li a.wgnav-active { color: #22c55e; background: rgba(34,197,94,0.08); }

@media (max-width: 1024px) {
    .wgnav-links li:nth-child(3),
    .wgnav-links li:nth-child(5) { display: none; }
}

@media (max-width: 768px) {
    #wgnav {
        height: 64px;
    }
    .wgnav-links,
    .wgnav-cta-desktop { display: none !important; }
    .wgnav-hamburger { display: flex; }
    .wgnav-inner {
        height: 64px;
        gap: 0;
        padding: 0 18px;
    }
    .wgnav-logo { font-size: 22px; }
    .wgnav-drawer { top: 64px; }
}

body { padding-top: 0; }
body.page { padding-top: 68px; }
body.home { padding-top: 0 !important; }
@media (max-width: 768px) {
    body.page { padding-top: 64px; }
}
