/* =============================================================
   GovTrack Child Theme — Header / Navigation
   Matches www.govtrack.io navigation exactly
   ============================================================= */

:root {
    --gt-purple: #9810fa;
    --gt-gray-900: #111827;
    --gt-gray-600: #4b5563;
    --gt-gray-50: #f9fafb;
    --gt-ring: rgba(17, 24, 39, 0.1);
}

/* Override parent theme header so ours takes over */
.site-header {
    all: unset;
    display: block;
}

/* ── Main nav bar ─────────────────────────────────────────── */
.gt-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    z-index: 50;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.gt-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem;          /* max-w-7xl */
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* ── Logo ───────────────────────────────────────────────────── */
.gt-nav__logo {
    flex: 1;
}

.gt-nav__logo a {
    display: inline-block;
    text-decoration: none;
}

.gt-logo {
    height: 4rem;   /* h-16 */
    width: auto;
}

@media (min-width: 640px) {
    .gt-logo { height: 5rem; } /* sm:h-20 */
}

/* ── Desktop links ──────────────────────────────────────────── */
.gt-nav__links {
    display: none;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .gt-nav__links { display: flex; }
}

.gt-nav__link {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: var(--gt-gray-900);
    text-decoration: none;
    transition: color 0.15s;
}

.gt-nav__link:hover {
    color: var(--gt-gray-600);
    text-decoration: none;
}

.gt-nav__link--active {
    color: var(--gt-purple);
}

/* ── Desktop right actions ──────────────────────────────────── */
.gt-nav__actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

@media (min-width: 1024px) {
    .gt-nav__actions { display: flex; }
}

/* ── Shared button styles ───────────────────────────────────── */
.gt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-decoration: none;
    transition: opacity 0.15s;
    cursor: pointer;
    border: none;
}

.gt-btn--demo {
    background-color: var(--gt-purple);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

.gt-btn--demo:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

.gt-btn--primary {
    background-color: var(--gt-gray-900);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

.gt-btn--primary:hover {
    opacity: 0.85;
    color: #ffffff;
    text-decoration: none;
}

.gt-btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Hamburger (mobile only) ────────────────────────────────── */
.gt-nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    margin: -0.625rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: var(--gt-gray-600);
    cursor: pointer;
}

.gt-nav__hamburger:hover {
    background: var(--gt-gray-50);
}

@media (min-width: 1024px) {
    .gt-nav__hamburger { display: none; }
}

/* ── Mobile menu ────────────────────────────────────────────── */
.gt-mobile-menu {
    display: none;
}

.gt-mobile-menu--open {
    display: block;
}

/* Overlay */
.gt-mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 49;
}

/* Slide-in panel */
.gt-mobile-menu__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: 24rem;
    background: #ffffff;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.gt-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gt-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    margin: -0.625rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: var(--gt-gray-600);
    cursor: pointer;
}

.gt-mobile-menu__close:hover {
    background: var(--gt-gray-50);
}

.gt-mobile-menu__links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(107, 114, 128, 0.1);
    padding: 1.5rem 0;
    gap: 0;
}

.gt-mobile-menu__link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75rem;
    color: var(--gt-gray-900);
    text-decoration: none;
}

.gt-mobile-menu__link:hover {
    background: var(--gt-gray-50);
    text-decoration: none;
    color: var(--gt-gray-900);
}

.gt-mobile-menu__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(107, 114, 128, 0.1);
    padding-top: 1.5rem;
    margin-top: auto;
}
