/* Pango v18 — public header (icon nav) + mobile hero carousel.
   Loaded AFTER style.css on index, about and contact. */

/* ========== PUBLIC HEADER (icon navigation, all screen sizes) ========== */
.site-header .nav-end {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 28px;
}

.site-header .nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0077BE;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header .nav-links a i {
    font-size: 16px;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.is-active {
    color: var(--accent, #ff6a00);
}

.site-header .nav-links a.is-active {
    font-weight: 700;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.45rem 0;
    }

    .site-header .nav-shell {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.3rem 0.5rem;
        padding: 0.5rem 0.75rem 0.45rem;
        border-radius: 18px;
    }

    .site-header .nav-end {
        display: contents;
    }

    .site-header .nav-brand {
        order: 1;
    }

    .site-header .theme-toggle {
        order: 2;
        width: 2.3rem;
        height: 2.3rem;
        padding: 0;
        flex: 0 0 auto;
    }

    .site-header .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 4px;
        padding-top: 0.3rem;
        border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    }

    .site-header .nav-links a {
        flex: 1 1 0;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 0.2rem 0;
        font-size: 11px;
        text-align: center;
        line-height: 1.15;
    }

    .site-header .nav-links a i {
        font-size: 19px;
    }
}

@media (max-width: 400px) {
    .site-header .nav-links a {
        font-size: 10px;
    }

    .site-header .nav-links a i {
        font-size: 17px;
    }
}

/* ========== HERO CAROUSEL (mobile only) ========== */
.hero-carousel {
    display: none;
}

@media (max-width: 768px) {
    .hero-section.hero-desktop {
        display: none;
    }

    .hero-carousel {
        display: block;
        position: relative;
        overflow: hidden;
        color: #fff;
        background: #050b18;
    }

    .hero-track {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .hero-track::-webkit-scrollbar {
        display: none;
    }

    .hero-panel {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        min-height: clamp(500px, calc(100svh - 150px), 680px);
        display: flex;
        align-items: center;
        padding: 1.5rem 1.15rem 3.4rem;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background-color: #0b2a55;
        background-size: cover;
        background-position: center;
        isolation: isolate;
    }

    .hero-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(5, 11, 24, 0.35) 0%, rgba(5, 11, 24, 0.55) 45%, rgba(5, 11, 24, 0.88) 100%);
    }

    .hero-panel.tone-blue::before {
        background: linear-gradient(180deg, rgba(11, 77, 168, 0.35) 0%, rgba(5, 11, 24, 0.6) 55%, rgba(5, 11, 24, 0.9) 100%);
    }

    .hero-panel.tone-orange::before {
        background: linear-gradient(180deg, rgba(255, 106, 0, 0.3) 0%, rgba(5, 11, 24, 0.6) 55%, rgba(5, 11, 24, 0.9) 100%);
    }

    .hero-panel-inner {
        width: 100%;
        display: grid;
        gap: 0.85rem;
    }

    .hero-panel .eyebrow {
        margin: 0;
        color: #ffb27a;
    }

    .hero-panel h1,
    .hero-panel h2 {
        margin: 0;
        line-height: 1.05;
        color: #fff;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    }

    .hero-panel h1 {
        font-size: clamp(2.8rem, 16vw, 4rem);
    }

    .hero-panel h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .hero-panel p {
        margin: 0;
        max-width: 30rem;
        font-size: 1rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-panel-icon {
        width: 3.2rem;
        height: 3.2rem;
        display: grid;
        place-items: center;
        border-radius: 1rem;
        background: linear-gradient(135deg, var(--primary, #0b4da8), var(--accent, #ff6a00));
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
        color: #fff;
    }

    .hero-panel-icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .hero-panel-actions {
        display: grid;
        gap: 0.6rem;
        margin-top: 0.35rem;
    }

    .hero-panel .button-secondary {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hero-panel-link {
        justify-self: start;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .hero-swipe-hint {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-top: 0.2rem;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.75);
    }

    /* Search panel */
    .hero-panel .hero-search-card {
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    .hero-panel .hero-search-card h2 {
        margin-bottom: 0.2rem;
        font-size: 1.45rem;
        color: inherit;
        text-shadow: none;
    }

    .hero-panel .hero-search-card .hero-search-sub {
        margin-bottom: 0.8rem;
        font-size: 0.88rem;
        color: var(--text-soft, #5b6b7c);
    }

    .hero-panel .hero-search-card .stack-form {
        gap: 0.7rem;
    }

    /* Dots */
    .hero-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0.9rem;
        z-index: 3;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        pointer-events: none;
    }

    .hero-carousel .hero-dots button {
        width: 0.6rem;
        height: 0.6rem;
        min-width: 0;
        min-height: 0;
        padding: 0;
        font-size: 0;
        line-height: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: none;
        pointer-events: auto;
        transition: width 0.25s ease, background 0.25s ease;
    }

    .hero-carousel .hero-dots button.is-active {
        width: 1.6rem;
        background: var(--accent, #ff6a00);
    }

    .hero-carousel .hero-dots button::before {
        /* bigger tap target without changing the visual size */
        content: "";
        position: absolute;
        inset: -0.6rem -0.2rem;
    }

    .hero-carousel .hero-dots button {
        position: relative;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .hero-dots button {
        transition: none;
    }
}
