/* FitChakra shared header + global scrollbar. Loaded on every public page. */
:root {
    --sh-h: 72px;
    --sh-bg: rgba(11, 11, 11, 0.82);
    --sh-line: rgba(255, 255, 255, 0.08);
    --sh-accent: #fee600;
    --sh-accent-2: #ffd700;
    --sh-text: #d8d8d8;
    --sh-muted: #9c9c9c;
    --sh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Sleek yellow scrollbar, every page */
html { scrollbar-width: thin; scrollbar-color: var(--sh-accent) #0b0b0b; scroll-padding-top: calc(var(--sh-h) + 16px); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--sh-accent), var(--sh-accent-2)); border-radius: 999px; border: 2px solid #0b0b0b; }
::-webkit-scrollbar-thumb:hover { background: var(--sh-accent); }
::-webkit-scrollbar-corner { background: #0b0b0b; }

.site-header {
    position: sticky; top: 0; z-index: 1000;
    height: var(--sh-h);
    background: var(--sh-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sh-line);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
}
.sh-inner {
    max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px);
    height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.sh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.sh-brand img { height: 40px; width: 40px; object-fit: contain; border-radius: 10px; display: block; }
.sh-brand-name { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.sh-brand-name span { color: var(--sh-accent); }
.sh-brand-sub { display: block; font-size: 0.72rem; color: var(--sh-muted); font-weight: 400; margin-top: 2px; }

.sh-nav { display: flex; align-items: center; gap: 28px; }
.sh-nav a {
    color: var(--sh-text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    position: relative; padding: 6px 0; transition: color 0.2s ease; white-space: nowrap;
}
.sh-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: var(--sh-accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--sh-ease);
}
.sh-nav a:hover { color: #fff; }
.sh-nav a:hover::after, .sh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.sh-nav a[aria-current="page"] { color: #fff; }
.sh-nav .sh-cta {
    background: var(--sh-accent); color: #000; padding: 9px 16px; border-radius: 10px; font-weight: 600;
    transition: transform 0.2s var(--sh-ease), box-shadow 0.2s ease, background 0.2s ease;
}
.sh-nav .sh-cta::after { display: none; }
.sh-nav .sh-cta:hover { color: #000; background: var(--sh-accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(254, 230, 0, 0.25); }
.sh-nav .sh-cta:active { transform: translateY(0) scale(0.98); }

.sh-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--sh-line); border-radius: 10px;
    background: transparent; cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.sh-toggle span, .sh-toggle span::before, .sh-toggle span::after {
    content: ''; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
    position: relative; transition: transform 0.25s var(--sh-ease), background 0.2s ease;
}
.sh-toggle span::before { position: absolute; top: -6px; }
.sh-toggle span::after { position: absolute; top: 6px; }
.sh-toggle[aria-expanded="true"] span { background: transparent; }
.sh-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.sh-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.sh-skip {
    position: absolute; left: 16px; top: -100px; background: var(--sh-accent); color: #000;
    padding: 10px 14px; border-radius: 8px; font-weight: 600; z-index: 2000; text-decoration: none;
}
.sh-skip:focus { top: 12px; }
.site-header :focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 3px; }

@media (max-width: 768px) {
    :root { --sh-h: 64px; }
    .sh-brand img { height: 34px; width: 34px; }
    .sh-brand-name { font-size: 1.2rem; }
    .sh-brand-sub { display: none; }
    .sh-toggle { display: inline-flex; }
    .sh-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px clamp(20px, 4vw, 48px) 20px;
        background: rgba(11, 11, 11, 0.98); border-bottom: 1px solid var(--sh-line);
    }
    .sh-nav.is-open { display: flex; }
    .sh-nav a { padding: 12px 4px; font-size: 1.05rem; }
    .sh-nav a::after { display: none; }
    .sh-nav .sh-cta { text-align: center; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header *, .site-header *::before, .site-header *::after { transition-duration: 0.01ms !important; }
}
