/* =========================================================
   AURORA NAVBAR  -  aurora-navbar.css
   ---------------------------------------------------------
   Load order:  theme-aurora.css  ->  navbar.css (global)  ->  aurora-navbar.css

   Do variants:
     .an-navbar--normal    -> normal flow, gradient bar
     .an-navbar--absolute  -> image/hero ke upar overlay, transparent bar
                              (parent me position: relative hona chahiye,
                               ya parent par .an-host class laga do)

   Optional modifier:
     .an-navbar--sticky    -> sirf normal ke saath, scroll par top par chipka rahe

   Saare classes "an-" prefix se hain, isliye tumhare global
   .navbar / .nav-links / .quote-btn se clash nahi hoga.
   Colors & sizes tumhari theme variables se aate hain
   (fallback values diye hain, theme na bhi ho to chalega).
========================================================= */


/* =========================================================
   1. SCOPE, TOKENS & LOCAL RESET
========================================================= */
.an-navbar {
    /* Sizes */
    --an-height: var(--navbar-height, 76px);
    --an-max-width: var(--navbar-max-width, 1400px);
    --an-pad-x: 20px;
    --an-logo-size: 56px;
    --an-transition: var(--transition, 0.35s ease);

    /* Desktop bar colors (white content on dark bar / dark image) */
    --an-link-color: var(--on-surface-gradient, #ffffff);
    --an-link-hover: var(--brand-accent, #15d4c7);
    --an-scrim: rgba(6, 20, 24, 0.72);

    /* Dropdown + mobile panel colors */
    --an-drop-bg: var(--surface-secondary, #ffffff);
    --an-drop-text: var(--on-surface-primary, #12353a);
    --an-drop-hover-bg: var(--surface-tertiary, #eef9f9);
    --an-drop-hover-text: var(--brand-secondary, #0f8b8d);
    --an-drop-border: var(--border-primary, #d7eceb);

    /* Get Quote button */
    --an-cta-bg: linear-gradient(135deg, #bffb2e, #8be61a);
    --an-cta-text: #17353d;

    position: relative;
    z-index: 1000;
    width: 100%;
    color: var(--an-link-color);
}

.an-navbar,
.an-navbar *,
.an-navbar *::before,
.an-navbar *::after {
    box-sizing: border-box;
}

.an-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.an-navbar li {
    margin: 0;
}

.an-navbar a {
    text-decoration: none;
}

.an-navbar button {
    font: inherit;
}

.an-navbar svg {
    display: block;
    flex-shrink: 0;
}

/* Parent helper for absolute mode */
.an-host {
    position: relative;
}


/* =========================================================
   2. VARIANTS  (normal / absolute)
========================================================= */

/* --- Normal --- */
.an-navbar--normal {
    position: relative;
    background: var(--surface-gradient, linear-gradient(135deg, #1b4c4d 0%, #4e9192 50%, #195f5a 100%));
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.16));
    box-shadow: var(--shadow-md, 0 10px 30px rgba(15, 139, 141, 0.15));
}

.an-navbar--sticky {
    position: sticky;
    top: 0;
}

/* --- Absolute (image ke upar) --- */
.an-navbar--absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

/* Dark scrim: image halki bhi ho to white text padha ja sake */
.an-navbar--absolute::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 48px);
    background: linear-gradient(180deg, var(--an-scrim) 0%, rgba(6, 20, 24, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

.an-navbar--absolute .an-link,
.an-navbar--absolute .an-phone__text,
.an-navbar--absolute .an-logo__name,
.an-navbar--absolute .an-logo__tag {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   3. LAYOUT CONTAINER
========================================================= */
.an-container {
    width: 100%;
    max-width: var(--an-max-width);
    min-height: var(--an-height);
    margin: 0 auto;
    padding: 0 var(--an-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


/* =========================================================
   4. LOGO (left)
========================================================= */
.an-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: inherit;
    transition: transform var(--an-transition);
}

.an-logo__img {
    width: var(--an-logo-size);
    height: var(--an-logo-size);
    min-width: var(--an-logo-size);
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-secondary, #ffffff);
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-md, 0 10px 30px rgba(15, 139, 141, 0.15));
    transition: transform var(--an-transition), box-shadow var(--an-transition);
}

.an-logo__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.an-logo__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.an-logo__name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.3px;
    color: var(--on-surface-gradient, #ffffff);
    transition: color var(--an-transition);
}

.an-logo__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text-accent, #9ef8ef);
}

.an-logo:hover {
    transform: translateY(-2px);
}

.an-logo:hover .an-logo__img {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 6px rgba(21, 212, 199, 0.16);
}

.an-logo:hover .an-logo__name {
    color: var(--brand-accent, #15d4c7);
}


/* =========================================================
   5. MENU (right)
========================================================= */
.an-menu {
    margin-left: auto;
}

.an-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.an-item {
    position: relative;
}

/* Common link / dropdown trigger */
.an-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 2px;
    border: 0;
    outline: none;
    background: transparent;      /* global button{background} ko override */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: var(--an-link-color);
    cursor: pointer;
    transition: color var(--an-transition);
}

.an-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 50px;
    background: var(--brand-accent, #15d4c7);
    transition: width var(--an-transition);
}

.an-link:hover,
.an-item.is-open > .an-link {
    color: var(--an-link-hover);
}

.an-link:hover::after,
.an-item.is-open > .an-link::after {
    width: 100%;
}

.an-caret {
    transition: transform var(--an-transition);
}

.an-item.is-open > .an-link .an-caret {
    transform: rotate(180deg);
}

/* Keyboard focus */
.an-link:focus-visible,
.an-toggle:focus-visible,
.an-phone:focus-visible,
.an-cta:focus-visible,
.an-logo:focus-visible {
    outline: 2px solid var(--brand-accent, #15d4c7);
    outline-offset: 3px;
    border-radius: 8px;
}


/* =========================================================
   6. DROPDOWN (India / International)
========================================================= */
.an-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 210px;
    margin-top: 14px;
    padding: 8px;
    background: var(--an-drop-bg);
    border: 1px solid var(--an-drop-border);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-lg, 0 20px 50px rgba(15, 139, 141, 0.22));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity var(--an-transition), transform var(--an-transition), visibility var(--an-transition);
    z-index: 50;
}

/* Hover bridge: link se dropdown tak mouse le jaate waqt band na ho */
.an-dropdown::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

/* Little pointer */
.an-dropdown::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: var(--an-drop-bg);
    border-top: 1px solid var(--an-drop-border);
    border-left: 1px solid var(--an-drop-border);
    transform: rotate(45deg);
}

.an-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 8px);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--an-drop-text);
    white-space: nowrap;
    transition: background var(--an-transition), color var(--an-transition), padding var(--an-transition);
}

.an-dropdown a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent, #15d4c7);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity var(--an-transition), transform var(--an-transition);
}

.an-dropdown a:hover,
.an-dropdown a:focus-visible {
    background: var(--an-drop-hover-bg);
    color: var(--an-drop-hover-text);
    outline: none;
}

.an-dropdown a:hover::before,
.an-dropdown a:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

/* Open state (JS click / keyboard) */
.an-item--dropdown.is-open > .an-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Desktop: hover se open */
@media (min-width: 993px) {
    .an-item--dropdown:hover > .an-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .an-item--dropdown:hover > .an-link {
        color: var(--an-link-hover);
    }

    .an-item--dropdown:hover > .an-link::after {
        width: 100%;
    }

    .an-item--dropdown:hover > .an-link .an-caret {
        transform: rotate(180deg);
    }
}

/* Keyboard Tab se open (browser :has support ho to) */
.an-item--dropdown:has(:focus-visible) > .an-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


/* =========================================================
   7. CONTACT NO + GET QUOTE
========================================================= */
.an-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--an-link-color);
    white-space: nowrap;
    transition: color var(--an-transition);
}

.an-phone__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--icon-bg, rgba(255, 255, 255, 0.14));
    color: var(--icon-color, #ffffff);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.18));
    transition: background var(--an-transition), color var(--an-transition), transform var(--an-transition);
}

.an-phone:hover {
    color: var(--an-link-hover);
}

.an-phone:hover .an-phone__icon {
    background: var(--brand-accent, #15d4c7);
    color: var(--icon-hover-color, #17353d);
    transform: rotate(-8deg);
}

.an-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: var(--radius-full, 9999px);
    background: var(--an-cta-bg);
    color: var(--an-cta-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(191, 251, 46, 0.32);
    transition: transform var(--an-transition), box-shadow var(--an-transition);
}

/* Shine sweep on hover */
.an-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.an-cta:hover {
    color: var(--an-cta-text);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(191, 251, 46, 0.42), 0 0 0 6px rgba(191, 251, 46, 0.14);
}

.an-cta:hover::before {
    left: 150%;
}

.an-cta:active {
    transform: scale(0.97);
}


/* =========================================================
   8. MOBILE TOGGLE (hamburger)
========================================================= */
.an-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.18));
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);    /* global button{background} ko override */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--an-transition);
}

.an-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
}

.an-toggle .an-icon-close {
    display: none;
}

.an-toggle[aria-expanded="true"] .an-icon-open {
    display: none;
}

.an-toggle[aria-expanded="true"] .an-icon-close {
    display: block;
}


/* =========================================================
   9. RESPONSIVE
========================================================= */

/* Laptops: thoda tight */
@media (max-width: 1200px) {
    .an-list {
        gap: 20px;
    }

    .an-link,
    .an-phone,
    .an-cta {
        font-size: 14px;
    }

    .an-cta {
        padding: 10px 20px;
    }
}

/* Small laptops: number chhupao, sirf icon rakho */
@media (min-width: 993px) and (max-width: 1100px) {
    .an-phone__text {
        display: none;
    }
}

/* Tablet + Mobile: hamburger + dropdown panel */
@media (max-width: 992px) {
    .an-toggle {
        display: inline-flex;
    }

    .an-menu {
        /* panel ke andar links dark text me dikhte hain */
        --an-link-color: var(--an-drop-text);
        --an-link-hover: var(--an-drop-hover-text);

        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        margin: 0;
        padding: 6px 16px 16px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        background: var(--an-drop-bg);
        border: 1px solid var(--an-drop-border);
        border-radius: var(--radius-lg, 16px);
        box-shadow: var(--shadow-lg, 0 20px 50px rgba(15, 139, 141, 0.22));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity var(--an-transition), transform var(--an-transition), visibility var(--an-transition);
    }

    .an-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .an-navbar--absolute .an-menu .an-link,
    .an-navbar--absolute .an-menu .an-phone__text {
        text-shadow: none;
    }

    .an-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .an-item {
        width: 100%;
        border-bottom: 1px solid var(--an-drop-border);
    }

    .an-item:last-child {
        border-bottom: 0;
    }

    .an-link {
        width: 100%;
        justify-content: space-between;
        padding: 15px 4px;
        font-size: 15px;
    }

    .an-link::after {
        display: none;
    }

    /* Dropdown -> accordion */
    .an-navbar .an-item--dropdown > .an-dropdown {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 12px;
        padding: 6px;
        background: var(--an-drop-hover-bg);
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .an-navbar .an-item--dropdown.is-open > .an-dropdown {
        display: block;
    }

    .an-dropdown::before,
    .an-dropdown::after {
        display: none;
    }

    .an-dropdown a {
        padding: 12px 14px;
    }

    /* Phone + CTA rows */
    .an-item--phone {
        padding: 12px 0;
    }

    .an-phone {
        font-size: 15px;
    }

    .an-phone__icon {
        background: var(--an-drop-hover-bg);
        color: var(--an-drop-hover-text);
        border-color: var(--an-drop-border);
    }

    .an-item--cta {
        padding-top: 14px;
    }

    .an-cta {
        width: 100%;
        padding: 13px 24px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .an-logo {
        gap: 10px;
    }

    .an-logo__name {
        font-size: 18px;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .an-navbar {
        --an-pad-x: 14px;
        --an-logo-size: 46px;
    }

    .an-logo__img {
        border-width: 2px;
    }

    .an-logo__name {
        font-size: 16px;
    }

    .an-logo__tag {
        display: none;
    }

    .an-toggle {
        width: 42px;
        height: 42px;
    }

    .an-menu {
        left: 8px;
        right: 8px;
    }
}


/* =========================================================
   10. REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .an-navbar *,
    .an-navbar *::before,
    .an-navbar *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}