﻿/* ========================================
   VINEET PANICKER - NAVIGATION MENU
   ======================================== */

/* ===== Sticky Header ===== */
.site-header {
    width: 100%;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-background, #FFFFFF);
    box-sizing: border-box;
}

/* Keep the oval navbar styling */
.nav-pill {
    width: min(1200px, 100%);
    min-height: 68px;
    margin: 0 auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--color-background, #FFFFFF);
    border: 1px solid var(--color-border, #E6A0AC);
    border-radius: var(--radius-pill, 999px);
    box-shadow: 0 5px 20px rgba(80, 43, 20, 0.07);
    box-sizing: border-box;
}

/* ===== Brand ===== */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #29211d;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background-image: url('/assets/images/mookambigaammalogo.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--color-primary);
    color: goldenrod;
    font-family: var(--font-navigation, "Manrope", sans-serif);
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: var(--font-navigation, "Manrope", sans-serif);
}

/* ===== Desktop Navigation ===== */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    color: #39302b;
    text-decoration: none;
    white-space: nowrap;
    font-size: 16.5px;
    font-weight: 600;
    transition: color 0.2s ease;
    font-family: var(--font-navigation, "Manrope", sans-serif);
}

    /* Underline animation */
    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 3px;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    /* Hover state */
    .nav-link:hover {
        color: var(--color-primary);
    }

    /* Active menu */
    .nav-link.active {
        color:#D10023;
    }

        .nav-link.active::after {
            transform: scaleX(1);
        }

/* ===== Hide Mobile Controls on Desktop ===== */
.nav-close,
.nav-toggle {
    display: none;
}

    /* ===== Keyboard Accessibility ===== */
    .nav-link:focus-visible,
    .nav-brand:focus-visible,
    .nav-toggle:focus-visible,
    .nav-close:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 4px;
    }

/* ===== Tablet and Mobile ===== */
@media (max-width: 900px) {

    .site-header {
        padding: 12px 16px;
    }

    .nav-pill {
        min-height: 62px;
        padding: 8px 14px;
        gap: 10px;
    }

    /* Mobile hamburger button */
    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }

        .nav-toggle span {
            display: block;
            width: 21px;
            height: 2px;
            background: var(--color-primary);
            border-radius: 2px;
        }

    /* Mobile slide-out menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 85vw);
        height: 100vh;
        height: 100dvh;
        padding: 78px 30px 30px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        margin: 0;
        overflow-y: auto;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
        z-index: 1100;
        transform: translateX(110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

        /* Open mobile menu */
        .nav-links.open {
            transform: translateX(0);
            visibility: visible;
            pointer-events: auto;
        }

    /* Close button at top-right */
    .nav-close {
        display: flex !important;
        position: absolute;
        top: 18px;
        right: 20px;
        z-index: 1200;
        width: 40px;
        height: 40px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: var(--color-soft, #FFF0F2);
        color: var(--color-primary, #D10023);
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }



}

/* ===== Animated Shine Around Navbar ===== */
.nav-pill {
    position: relative;
    isolation: isolate;
    border: 1px solid transparent !important;
    background: linear-gradient( var(--color-background, #FFFFFF), var(--color-background, #FFFFFF) ) padding-box, linear-gradient( 110deg, #E6A0AC, #E6A0AC ) border-box !important;
}

/* Moving light highlight */
.nav-pill::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient( 100deg, transparent 0%, transparent 35%, #D10023 43%, #FFFFFF 50%, #D10023 57%, transparent 65%, transparent 100% );
    background-size: 300% 100%;
    animation: oval-running-shine 8s linear infinite;
    /* Keep the shine only on the border */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes oval-running-shine {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-pill::before {
        animation: none;
    }
}

