/* HEADER */

body {
    /* STICKY NAVBAR FIX: offset page content for the fixed site-wide navbar. */
    padding-top: 72px;
}

.header {
    /* STICKY NAVBAR FIX: fixed keeps the navbar visible across every section and page. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 72px;
    background: #D6882A;
    transition: .3s;
    width: 100%;
}

.header.scrolled {
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
}


/* NAV */

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}


/* LOGO */

.logo {
    position: relative;
    flex: 0 0 auto;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 100%;
    transition: height .3s ease, opacity .3s ease;
}

.logo-scroll {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.header.scrolled .logo-default {
    opacity: 0;
}

.header.scrolled .logo-scroll {
    opacity: 1;
}


/* MENU */

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

.menu a {
    margin: 0 16px;
    text-decoration: none;
    color: #313030;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.menu a::after {
    /* ACTIVE LINK FIX: the same underline is used for hover and persistent active state. */
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #1a1a2e;
    transition: .25s;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}


/* REQUEST BUTTON */

.btn-demo {
    background: #1a0746;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}


/* MOBILE TOGGLE */

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    width: 22px;
    height: 2px;
    background: #000;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: #000;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}


/* MOBILE MENU */

.mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 998;
    background: #fff;
    padding: 10px 20px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-menu a::after {
    /* ACTIVE LINK FIX: mobile links keep a persistent underline on the current page too. */
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #1a1a2e;
    transition: .25s;
}

.mobile-menu a:hover::after,
.mobile-menu a.active::after {
    width: 100%;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


/* RESPONSIVE */

@media(min-width:901px) {
    body {
        /* DESKTOP HEIGHT FIX: match the subtle desktop-only navbar height increase. */
        padding-top: 82px;
    }
    .header {
        /* DESKTOP HEIGHT FIX: slightly taller desktop navbar with the existing visual identity. */
        height: 82px;
    }
    .logo img {
        /* LOGO SIZE FIX: logo is slightly larger on desktop only. */
        height: 60px;
    }
    .menu a {
        margin: 0 18px;
    }
    .btn-demo {
        padding: 11px 20px;
    }
    .mobile-menu {
        top: 82px;
    }
}

@media(max-width:1100px) and (min-width:901px) {
    .menu a {
        margin: 0 11px;
    }
    .btn-demo {
        padding: 10px 14px;
    }
}

@media(max-width:900px) {
    body {
        padding-top: 72px;
    }
    .header {
        height: 72px;
    }
    .logo img {
        height: 52px;
    }
    .menu,
    .btn-demo {
        display: none;
    }
    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }
}

@media(max-width:480px) {
    body {
        padding-top: 66px;
    }
    .header {
        height: 66px;
    }
    .logo img {
        height: 46px;
    }
    .mobile-menu {
        top: 66px;
        padding: 8px 18px;
    }
}


/* Popup CSS */


/* POPUP */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 9999;
    /* 🔥 सबसे important */
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* POPUP BOX */

.popup-box {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
    z-index: 10000;
}

.popup-box h3 {
    margin-bottom: 20px;
    font-weight: 600;
}


/* CLOSE BUTTON */

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}


/* FORM */

.popup-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-box input,
.popup-box select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.popup-box button {
    background: #D6882A;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.popup-box button:hover {
    background: #b46f1e;
}


/* ------------------- */
