/* === Anigdha Italy — Header (Topbar, Nav, Dropdown, Mobile) === */

/* ═══════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════ */
.announcement-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}

.announcement-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.announcement-bar-text {
    letter-spacing: 0.2px;
}

.announcement-bar-link {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid currentColor;
    padding: 4px 14px;
    border-radius: 4px;
    white-space: nowrap;
    transition: opacity .2s;
}

.announcement-bar-link:hover {
    opacity: 0.8;
}

.announcement-bar-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity .2s;
}

.announcement-bar-close:hover {
    opacity: 1;
}

.announcement-bar.is-dismissed,
.ann-dismissed .announcement-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .announcement-bar {
        padding: 10px 44px 10px 16px;
        font-size: 13px;
    }
    .announcement-bar-inner {
        flex-direction: column;
        gap: 8px;
    }
}

/* Topbar Marquee — bounce left-right */
@keyframes topbar-bounce {
    0%   { left: 0; transform: translateX(0); }
    100% { left: 100%; transform: translateX(-100%); }
}

.topbar-marquee-wrap {
    position: relative;
}

.topbar-marquee {
    position: relative;
    animation: topbar-bounce 6s ease-in-out infinite alternate;
}

/* Topbar hover effects */
.topbar-email a,
.topbar-social a,
.topbar-marquee {
    transition: opacity .2s ease, color .2s ease;
}

.topbar-email a:hover,
.topbar-social a:hover {
    opacity: 0.7;
}

/* On mobile hide marquee, show only email + icons */
@media (max-width: 768px) {
    .topbar-marquee-wrap { display: none !important; }
}

/* Desktop nav menu items */
.desktop-nav .menu-item {
    list-style: none;
    position: relative;
}

.desktop-nav .menu-item a {
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 500;
    color: #16181A;
    text-decoration: none;
    transition: color .2s;
}

.desktop-nav .menu-item a:hover,
.desktop-nav .current-menu-item > a {
    color: #C82935;
}

/* Apply Now CTA hover */
.desktop-cta:hover {
    background: #C82935 !important;
    box-shadow: 0 6px 16px rgba(200,41,53,0.3) !important;
}

/* Desktop dropdown menu */
.desktop-nav .menu-item .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    padding: 12px 0;
    margin-top: 16px;
    z-index: 100;
    flex-direction: column;
    gap: 0;
}

.desktop-nav .menu-item .sub-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.desktop-nav .menu-item:hover > .sub-menu {
    display: flex;
}

.desktop-nav .sub-menu .menu-item a {
    display: block;
    padding: 10px 24px;
    font-size: 14.5px;
    font-weight: 500;
    color: #16181A;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.desktop-nav .sub-menu .menu-item a:hover {
    background: #F8F9FA;
    color: #C82935;
}

/* Dropdown arrow on parent */
.desktop-nav .menu-item-has-children > a .dropdown-icon {
    font-size: 11px;
    margin-left: 6px;
    transition: transform .2s;
}

.desktop-nav .menu-item-has-children:hover > a .dropdown-icon {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════ */

#mobile-menu-toggle {
    display: none;
}

/* TRANSITION: slide-in from right. Uses visibility + transform instead of display:none
   so CSS transitions work. Revert: replace this block with the commented-out original below.
   --- ORIGINAL (no transition) ---
   .mobile-overlay { display: none; position: fixed; inset: 0; z-index: 9998; background: #FFFFFF; flex-direction: column; overflow-y: auto; }
   .mobile-overlay.is-open { display: flex; }
   --- END ORIGINAL --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
}

.mobile-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 68px;
    background: #C82935;
    flex-shrink: 0;
}

#mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-overlay-nav {
    flex: 1;
    padding: 16px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #F2F3F4;
}

.mobile-nav-list > li > a {
    display: block;
    padding: 16px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #16181A;
    text-decoration: none;
}

.mobile-nav-list > li > a:hover {
    color: #C82935;
}

/* Parent item — link + toggle side by side */
.mobile-nav-list > li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
}

.mobile-nav-list > li.menu-item-has-children > a {
    flex: 1;
}

.mobile-submenu-toggle {
    width: 52px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #F2F3F4;
    color: #7A8189;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.mobile-submenu-toggle:hover {
    background: #F8F9FA;
}

.mobile-submenu-toggle i {
    transition: transform .3s;
}

.mobile-nav-list li.accordion-open > .mobile-submenu-toggle {
    background: #C82935;
    border-color: #C82935;
    color: #fff;
}

.mobile-nav-list li.accordion-open > .mobile-submenu-toggle i {
    transform: rotate(180deg);
}

/* Sub-menu accordion */
.mobile-nav-list .sub-menu {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #F8F9FA;
}

.mobile-nav-list li.accordion-open > .sub-menu {
    max-height: 500px;
}

.mobile-nav-list .sub-menu li a {
    display: block;
    padding: 12px 28px 12px 44px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #4A4F55;
    text-decoration: none;
    border-top: 1px solid #EDEFF1;
}

.mobile-nav-list .sub-menu li a:hover {
    color: #C82935;
}

/* Hide dropdown arrow in mobile */
.mobile-nav-list .menu-item-has-children > a .dropdown-icon {
    display: none;
}

/* Mobile CTA */
.mobile-overlay-cta {
    display: block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: #038D44;
    padding: 16px 24px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(3,141,68,0.3);
}

/* ═══════════════════════════════════════
   HEADER — Responsive
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    #mobile-menu-toggle {
        display: flex !important;
    }
    .desktop-nav {
        display: none !important;
    }
    .desktop-cta {
        display: none !important;
    }
}
