/* Shared Shiva Computers top bar (shiva-nav 1.0.0).
   Identical in all three sites; source of truth: ShivaComputers_26/public/assets/shiva-nav/.
   Every class starts with "snav" and all colours are local, so it never clashes with a site's own styles. */

.snav {
    --snav-navy: #10233e;
    --snav-blue: #1465df;
    --snav-tint: #eff6ff;
    --snav-line: #dbe4ef;
    --snav-muted: #52617a;
    position: relative;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--snav-line);
    color: var(--snav-navy);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.snav *, .snav *::before, .snav *::after { box-sizing: border-box; }
.snav ul { list-style: none; margin: 0; padding: 0; }
.snav a { color: inherit; text-decoration: none; }
.snav :focus-visible { outline: 3px solid #ffb000; outline-offset: 2px; border-radius: 4px; }

.snav-inner { display: flex; align-items: center; gap: 1.5rem; width: min(1160px, 100% - 2rem); min-height: 64px; margin: 0 auto; }

.snav-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.snav-brand img { display: block; }

.snav-main { margin-left: auto; }
.snav-list { display: flex; align-items: center; gap: 0.25rem; }

.snav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--snav-navy);
    white-space: nowrap;
    cursor: pointer;
}
.snav-link:hover, .snav-dropdown[open] > .snav-link { background: var(--snav-tint); color: var(--snav-blue); }
.snav-link[aria-current="page"], .snav-link.is-active { color: var(--snav-blue); box-shadow: inset 0 -2px 0 var(--snav-blue); border-radius: 8px 8px 0 0; }

/* Dropdowns */
.snav-group, .snav-langs { position: relative; }
.snav-dropdown > summary { list-style: none; }
.snav-dropdown > summary::-webkit-details-marker { display: none; }
.snav-dropdown > summary::after {
    content: "";
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.15rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
    transition: transform 0.15s;
}
.snav-dropdown[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
.snav-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    width: 300px;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--snav-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(16, 35, 62, 0.45);
}
.snav-panel--right { left: auto; right: 0; width: 200px; }
.snav-panel a { display: block; padding: 0.65rem 0.75rem; border-radius: 8px; }
.snav-panel a:hover { background: var(--snav-tint); }
.snav-panel strong { display: block; font-weight: 700; color: var(--snav-navy); }
.snav-panel span { display: block; margin-top: 0.1rem; font-size: 0.875rem; color: var(--snav-muted); }
.snav-panel .snav-ext { display: inline; margin: 0; font-size: 0.9em; color: var(--snav-muted); }
.snav-panel a[aria-current="page"] { background: var(--snav-tint); }
.snav-panel a[aria-current="page"] strong { color: var(--snav-blue); }

.snav .snav-lang { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.5rem; font-weight: 700; color: var(--snav-blue); white-space: nowrap; cursor: pointer; }

/* Phone: one "Menu" button with every link, groups shown as headings */
.snav-mobile { display: none; position: relative; margin-left: auto; }
.snav-mobile > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--snav-line);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.snav-mobile > summary::-webkit-details-marker { display: none; }
.snav-mobile > summary::before { content: "\2630"; }
.snav-mobile[open] > summary::before { content: "\2715"; }
.snav-mobile-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(320px, calc(100vw - 2rem));
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--snav-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(16, 35, 62, 0.45);
}
.snav-mobile-panel a { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--snav-line); font-weight: 600; }
.snav-mobile-panel a[aria-current="page"] { color: var(--snav-blue); }
.snav-mobile-group > span { display: block; padding: 0.9rem 0 0.2rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--snav-muted); }
.snav-mobile-group ul a { padding-left: 0.75rem; }
.snav .snav-mobile-lang { color: var(--snav-blue); border-bottom: 0; }

@media (max-width: 899px) {
    .snav-main, .snav-inner > .snav-lang, .snav-langs { display: none; }
    .snav-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) { .snav-dropdown > summary::after { transition: none; } }
@media print { .snav { display: none; } }
