/* ==========================================================================
   Premium Modern Header - Responsive Final Fix
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #7ebc12;
    --dark-color: #1d2833;
    --white: #ffffff;
    --black: #000000;
    --light-grey: #f8f9fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --nav-height: 75px;
    --announcement-height: 45px;
}

/* Base Body Adjustment */
body {
    padding-top: calc(var(--nav-height) + var(--announcement-height));
}

@media (max-width: 991px) {
    body {
        padding-top: 75px !important;
    }
}

/* Header Container */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: var(--transition);
    background: transparent;
}

/* Logo and Main Nav Wrapper (Now at the top) */
.logo-wrapper {
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

header.affix .logo-wrapper {
    min-height: 70px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Flex Container for Logo (Left) | Nav (Middle) | Actions (Right) */
.header-main-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: inherit;
    width: 100%;
}

.logo-area {
    flex: 0 0 auto;
}

.nav-area {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    /* PERFECTLY CENTER NAV */
}

.actions-area {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link img {
    max-height: 48px;
    width: auto;
    transition: var(--transition);
}

header.affix .logo-link img {
    max-height: 38px;
}

/* Navigation Menu */
.navbar {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.navbar-nav {
    display: flex !important;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    justify-content: center;
    /* CENTERED NAV */
}

.navbar-nav>li>a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-color) !important;
    padding: 25px 20px !important;
    letter-spacing: 1px;
    position: relative;
    background: transparent !important;
    transition: var(--transition);
}

header.affix .navbar-nav>li>a {
    padding: 18px 20px !important;
}

/* Underline Animation (Thick Pill style from screenshot) */
.navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 35px;
    /* Short thick underline */
    height: 6px;
    background: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
    /* Pill shape */
}

.navbar-nav>li.active>a {
    color: var(--primary-color) !important;
}

.navbar-nav>li.active>a::after,
.navbar-nav>li:hover>a::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav>li:hover>a {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Action Buttons */
.cart-icon-btn {
    position: relative;
    color: var(--dark-color);
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-grey);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none !important;
}

.cart-icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Announcement Bar - Flex Layout for Contact/Auth */
.announcement-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-contact-info,
.top-auth-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-contact-info span,
.top-auth-info a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.top-auth-info a:hover {
    color: var(--primary-color);
}

.top-contact-info i,
.top-auth-info i {
    color: var(--primary-color);
    font-size: 14px;
}


/* Button handled by buttons-modern.css */

/* Desktop Dropdowns */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px;
    padding: 15px 0;
    background: var(--white) !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* DESKTOP HOVER SUPPORT (XL & LG) */
@media (min-width: 992px) {
    .navbar-nav>li.dropdown:hover>.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 0 !important;
    }
}

.dropdown-menu>li>a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 25px !important;
    color: var(--dark-color) !important;
    background: transparent !important;
    border: none !important;
}

.dropdown-menu>li>a:hover {
    background: rgba(126, 188, 18, 0.05) !important;
    color: var(--primary-color) !important;
    padding-left: 30px !important;
}

/* MOBILE RESPONSIVE REFINEMENTS */
@media (max-width: 991px) {
    .announcement-bar {
        display: none !important;
        /* Hide dual bar on mobile to save vertical space */
    }

    body {
        padding-top: 75px !important;
        /* Single bar height */
    }

    .logo-wrapper {
        min-height: 75px;
    }

    .header-main-flex {
        padding: 0 15px;
        height: 75px;
    }

    /* Force Mobile Menu to be Full Viewport */
    .navbar-collapse {
        position: fixed !important;
        top: 75px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 75px) !important;
        background: var(--white) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        z-index: 10001 !important;
        overflow-y: auto !important;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in,
    .navbar-collapse.collapsing {
        display: block !important;
    }

    header.affix .navbar-collapse {
        top: 70px !important;
    }

    .nav-area {
        position: static;
        width: 0;
        flex: 0 0 0;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .navbar-nav>li {
        width: 100% !important;
        border-bottom: 1px solid #f5f5f5;
    }

    .navbar-nav>li>a {
        padding: 15px 25px !important;
        width: 100% !important;
        text-align: left !important;
        font-size: 16px !important;
        display: block;
    }

    .navbar-nav>li>a::after {
        left: 25px;
        transform: none !important;
        bottom: 0;
        width: 30px;
    }

    /* Toggle Icon - Tactical Alignment */
    .navbar-toggle {
        display: block !important;
        border: none !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 10px 5px !important;
        cursor: pointer;
    }

    .navbar-toggle .icon-bar {
        background: var(--primary-color) !important;
        width: 28px;
        height: 3px;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar-toggle .icon-bar+.icon-bar {
        margin-top: 5px;
    }

    /* Mobile Dropdowns */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #fdfdfd !important;
        padding: 5px 0 !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-left: 3px solid var(--primary-color) !important;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }
}


/* MEGA MENU OPEN STATE COLOR */
.navbar-nav>li.dropdown.open>a {
    color: var(--primary-color) !important;
}

.navbar-nav>li.dropdown.open>a i {
    transform: rotate(180deg);
}

.dropdown-menu>li>a {
    padding: 12px 40px !important;
    border-bottom: 1px solid #eee !important;
    color: var(--dark-color) !important;
    background: transparent !important;
}

.dropdown-menu>li>a:hover {
    background: #f0f0f0 !important;
    color: var(--primary-color) !important;
}

@media (max-width: 991px) {
    .get-started-btn {
        display: none !important;
    }

    /* Mobile CTA Centering */
    .mobile-cta-area {
        padding: 20px !important;
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-cta-area .get-started-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: 300px;
        height: 50px;
        background: var(--primary-color) !important;
        color: var(--white) !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 10px 20px rgba(126, 188, 18, 0.2) !important;
    }
}

/* Hide the mobile CTA marker on Desktop (Min-width 992px) */
@media (min-width: 992px) {
    .navbar-nav .mobile-cta-area {
        display: none !important;
    }
}

/* Ensure it only shows inside the mobile menu */
.mobile-cta-area {
    display: none;
}

@media (max-width: 480px) {
    .logo-link img {
        max-height: 35px;
    }
}

/* ==========================================================================
   Modern Hero Carousel (Automatic)
   ========================================================================== */
.banner-wrapper {
    position: relative;
    background: var(--dark-color);
    margin-top: -1px;
    margin-top: -1px;
    height: 80vh;
    /* Reduced height further */
    min-height: 500px;
    /* Reduced safety minimum */
    overflow: hidden;
}

#hero-carousel,
.carousel-inner {
    height: 100%;
    width: 100%;
}

.hero-slide-item {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 60px;
    /* Header offset */
}

/* Gradient Overlay - Included in slide item now */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(29, 40, 51, 0.95) 0%,
            rgba(29, 40, 51, 0.8) 40%,
            rgba(29, 40, 51, 0.1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    max-width: 1170px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Group text in a wrapper for Desktop Flex alignment */
.hero-text-content {
    display: block;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        /* Center content vertically */
        align-items: flex-start;
        height: 100%;
        margin-top: 0;
    }

    .hero-text-content {
        max-width: 650px;
        margin-top: 0;
    }

    .hero-btn-wrapper {
        text-align: left;
        margin-top: 30px;
        /* Clean spacing from description */
        align-self: flex-start;
    }
}

.hero-tag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.2s;
}

.static-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    margin-bottom: 20px;
    /* Reduced from 25px */
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
}

.static-hero-title span {
    color: var(--primary-color);
    display: block;
}

.static-hero-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 20px;
    /* Significantly reduced from 40px for tighter alignment */
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.6s;
}

/* Hero Button - Aligned to Container Bottom Right via Flex on Desktop */
.hero-btn-wrapper {
    position: relative;
    /* Default relative for flex or stacking */
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.8s;
}

@media (min-width: 992px) {
    .hero-btn-wrapper {
        text-align: left;
        margin-top: 15px;
        /* Tighter spacing */
        align-self: flex-start;
    }
}

/* Button handled by buttons-modern.css */

/* Responsive Adjustments */
@media (max-width: 991px) {
    .static-hero-title {
        font-size: 60px;
    }

    /* On mobile/tablet, keep button under text */
    .hero-btn-wrapper {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }

    .hero-slide-item {
        padding-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .static-hero-title {
        font-size: 42px;
    }

    .hero-tag {
        font-size: 14px;
    }

    .static-hero-desc {
        font-size: 16px;
    }
}

/* Mobile Responsiveness for Hero */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .hero-slide {
        height: 550px;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 500px;
        text-align: center;
        justify-content: center;
    }

    .hero-slide::before {
        background: rgba(29, 40, 51, 0.85);
        /* Darker overlay for mobile readability */
    }

    .hero-content {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 30px;
    }
}