:root {
    --color-fanta-orangee: #cf6b15;
    --menu-width: 280px;
    --row-height: 50px;
    --font-body: "Open Sans", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: #f5f5f5;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul#primary-nav {
    margin: 0;
}


/* ────────────────────────────────────────
     HEADER SHELL
  ──────────────────────────────────────── */

.header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-wrap.scrolled img.logo-after-scroll {
    height: 50px;
    display: block;
}

.navbar-brand-wrap.scrolled img.logo-before-scroll {
    display: none;
}

img.logo-before-scroll {
    display: block;
}

img.logo-after-scroll {
    display: none;
}


/* #nav-menu-bar {
    padding: 0 24px;
} */

header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ── Access wrapper – POSITIONED so mega menu anchors here ── */

div#access {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* ← mega menu positions relative to this */
}


/* ────────────────────────────────────────
     DESKTOP – TOP-LEVEL NAV
  ──────────────────────────────────────── */

.header .menu>#access>ul>li {
    display: inline-block;
    line-height: var(--row-height);
    margin-left: 20px;
    font-family: var(--font-body);
    cursor: pointer;
    position: relative;
}

.header .menu>#access>ul>li>a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.5px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.header .menu>#access>ul>li:hover>a {
    color: var(--color-fanta-orangee) !important;
}

.header .menu>#access>ul>li.active>a {
    color: var(--color-fanta-orangee) !important;
}

.header .menu>#access>ul>li:first-child {
    margin: 0;
}

ul#primary-nav {
    text-align: left;
}

@media (max-width: 1281px) {
    .nav-cta {
        display: none !important;
    }
    .logo-brand {
        padding: 0;
    }
}

@media (max-width: 1600px) {
    .header .menu>#access>ul>li>a {
        font-size: 0.77rem;
        font-weight: 600;
    }
    .header .menu>#access>ul>li {
        margin-left: 10px;
    }
}

@media (max-width: 1200px) {
    .header-item.item-right {
        display: flex;
        justify-content: flex-end;
    }
    ul#primary-nav {
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .header .menu>#access>ul>li.active>a::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 1px;
        background: var(--color-fanta-orangee);
        border-radius: 2px;
    }
}

ul.sub-menu li.menu-item>a:hover:before {
    bottom: 6px !important;
}


/* ────────────────────────────────────────
     DESKTOP – REGULAR DROPDOWN (instant, no transition)
  ──────────────────────────────────────── */

.header .menu>#access>ul>li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 500;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 1200px) {
    .header .menu>#access>ul>li.menu-item-has-children:hover .sub-menu {
        visibility: visible;
        opacity: 1;
        width: 310px;
        padding: 6px 12px;
    }
}

.header .menu>#access>ul>li.menu-item-has-children .sub-menu li {
    line-height: 34px;
    position: relative;
}

.header .menu>#access>ul>li.menu-item-has-children .sub-menu a {
    color: #000;
    display: flex;
    font-size: 0.75rem;
    padding-top: 3px;
    font-weight: 600;
    padding-bottom: 3px;
    text-decoration: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    text-align: left;
}

.header .menu>#access>ul>li.menu-item-has-children .sub-menu li:hover a {
    color: var(--color-fanta-orangee) !important;
    text-decoration: underline;
    text-underline-position: under;
    text-align: left;
}

.header .menu>#access>ul>li .sub-menu li.active>a {
    color: var(--color-fanta-orangee) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-align: left;
}


/* ────────────────────────────────────────
     MEGA MENU – PRODUCTS
     The Products li uses position:static so the
     mega menu anchors to div#access instead.
  ──────────────────────────────────────── */


/* Step 1: neutralise the li positioning */

#primary-nav>li.has-mega-menu {
    position: static;
}


/* Step 2: mega menu panel */

.mega-menu-products {
    position: absolute;
    top: var(--row-height);
    /* sits right below the nav row */
    left: 0;
    width: 750px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    padding: 0 !important;
    /* override generic .sub-menu padding */
}

@media (min-width: 1200px) {
    #primary-nav>li.has-mega-menu:hover .mega-menu-products {
        visibility: visible;
        opacity: 1;
    }
}


/* Columns wrapper */

.mega-menu-products .mega-cols {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-products .mega-col {
    flex: 1;
    padding: 8px 20px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-products .mega-col:last-child {
    border-right: none;
}


/* Column items */

.mega-menu-products .mega-col ul li {
    line-height: 1 !important;
    height: auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu-products .mega-col ul li:last-child {
    border-bottom: none;
}

.mega-menu-products .mega-col ul li a {
    display: block !important;
    padding: 11px 0;
    /* font-size: .8rem !important;
          font-weight: 400 !important; */
    color: #333 !important;
    text-transform: none !important;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.mega-menu-products .mega-col ul li a:hover {
    color: var(--color-fanta-orangee) !important;
    text-decoration: none !important;
}

.mega-menu-products .mega-col ul li.active a {
    color: var(--color-fanta-orangee) !important;
    font-weight: 600 !important;
}


/* Footer row – VIEW ALL PRODUCTS */

.mega-footer {
    padding: 12px 20px;
    text-align: right;
    background: #fff;
}

.mega-footer a.view-all-link {
    color: var(--color-fanta-orangee) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mega-footer a.view-all-link:hover {
    text-decoration: underline !important;
}


/* ────────────────────────────────────────
     CHEVRON
  ──────────────────────────────────────── */


/* .menu-item-has-children::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #000;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
} */

li#parent-menu-1::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #000;
    font-size: 10px;
    margin-left: 0px;
    vertical-align: middle;
}

.menu-item-has-children:hover::after,
.menu-item-has-children.active::after {
    color: var(--color-fanta-orangee);
}

button.sub-menu-toggle {
    display: none;
}

.mobile-menu-head,
.mobile-menu-trigger {
    display: none;
}

.menu-main {
    text-align: right;
}

ul#primary-nav li a {
    text-decoration: none !important;
}


/* CTA */

.nav-cta {
    display: inline-block;
    margin-left: 20px;
    flex-shrink: 0;
}

.btn-sg-primary {
    background: var(--color-fanta-orangee);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-sg-primary:hover {
    background: #a8540f;
}


/* ────────────────────────────────────────
     MOBILE  ≤ 1199px
  ──────────────────────────────────────── */

@media (max-width: 1199px) {
    .logo-brand {
        padding: 0;
    }
    header.header {
        padding: 10px;
    }
    div#access {
        flex-direction: column;
    }
    .nav-cta {
        display: none;
    }
    /* Hamburger */
    .header .mobile-menu-trigger {
        display: flex;
        height: 40px;
        width: 40px;
        margin-left: 15px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        background-color: var(--color-fanta-orangee);
    }
    .header .mobile-menu-trigger span {
        display: block;
        height: 2px;
        background: #fff;
        width: 24px;
        position: relative;
    }
    .header .mobile-menu-trigger span::before,
    .header .mobile-menu-trigger span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
    }
    .header .mobile-menu-trigger span::before {
        top: -6px;
    }
    .header .mobile-menu-trigger span::after {
        top: 6px;
    }
    /* Drawer */
    .header .menu {
        position: fixed;
        width: var(--menu-width);
        background: #fff;
        left: 0;
        top: 0;
        height: 100%;
        overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1099;
    }
    .header .menu.active {
        transform: translateX(0);
    }
    .header .menu .menu-main {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .header .menu>#access>ul>li {
        line-height: 1;
        margin: 0;
        display: block;
    }
    .header .menu>#access>ul>li>a {
        line-height: 40px;
        height: 40px;
        padding: 0 15px;
        text-align: left;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-transform: unset;
        color: #000;
        font-weight: 600;
        font-size: 14px;
    }
    .nav-cta1 {
        display: none;
    }
    /* Mobile active */
    .header .menu>#access>ul>li.active>a {
        color: var(--color-fanta-orangee) !important;
        background: rgba(207, 107, 21, 0.06);
    }
    .header .menu>#access>ul>li .sub-menu li.active a,
    .header .menu>#access>ul>li .mega-menu-products li.active a {
        color: var(--color-fanta-orangee) !important;
        background: rgba(207, 107, 21, 0.06);
    }
    /* Mobile menu head */
    .header .menu .mobile-menu-head {
        display: flex;
        height: var(--row-height);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: space-between;
        align-items: center;
        background: #fff;
    }
    .header .menu .mobile-menu-head .go-back {
        height: var(--row-height);
        width: var(--row-height);
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        line-height: var(--row-height);
        text-align: center;
        color: #000;
        font-size: 16px;
        display: none;
    }
    .header .menu .mobile-menu-head.active .go-back {
        display: block;
    }
    .header .menu .mobile-menu-head .current-menu-title {
        font-size: 13px;
        font-weight: 600;
        color: #000;
        text-transform: uppercase;
    }
    .header .menu .mobile-menu-head .mobile-menu-close {
        height: var(--row-height);
        width: var(--row-height);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        line-height: var(--row-height);
        text-align: center;
        color: #000;
        font-size: 22px;
    }
    /* ── MOBILE SUB-MENU PANEL (position:fixed to escape stacking context) ── */
    .header .menu>#access>ul>li .sub-menu,
    .header .menu>#access>ul>li .mega-menu-products {
        position: fixed !important;
        top: 0;
        left: 0;
        width: var(--menu-width);
        height: 100%;
        background: #fff !important;
        z-index: 1100;
        padding: var(--row-height) 0 0 !important;
        margin: 0;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        display: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .header .menu>#access>ul>li .sub-menu.active,
    .header .menu>#access>ul>li .mega-menu-products.active {
        display: block;
    }
    .header .menu .mobile-menu-head.active {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--menu-width);
        height: var(--row-height);
        z-index: 1101;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    /* Sub-menu rows */
    .header .menu>#access>ul>li .sub-menu li,
    .header .menu>#access>ul>li .mega-menu-products li {
        display: block !important;
        line-height: var(--row-height) !important;
        height: 40px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .header .menu>#access>ul>li .sub-menu li a,
    .header .menu>#access>ul>li .mega-menu-products li a {
        display: block !important;
        line-height: 40px;
        height: 40px;
        padding: 0 15px !important;
        color: #000 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: unset !important;
        text-decoration: none !important;
    }
    .header .menu>#access>ul>li .sub-menu li a:hover,
    .header .menu>#access>ul>li .mega-menu-products li a:hover {
        color: var(--color-fanta-orangee) !important;
    }
    /* Mobile: hide mega-menu structural divs (cols, footer) */
    .mega-menu-products .mega-cols {
        display: block !important;
    }
    .mega-menu-products .mega-col {
        padding: 0 !important;
        border: none !important;
    }
    .mega-menu-products .mega-footer {
        display: none;
    }
    /* Slide animations */
    @keyframes slideLeft {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    @keyframes slideRight {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(100%);
        }
    }
    /* Chevron → right-arrow on mobile */
    .menu-item-has-children::after {
        content: "\f054";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        color: #000;
        font-size: 11px;
        width: var(--row-height);
        height: 40px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }
    .menu-item-has-children {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    .menu-item-has-children>a {
        width: calc(100% - var(--row-height)) !important;
    }
    .menu-item-has-children.active::after {
        color: var(--color-fanta-orangee);
    }
    /* Mega menu mobile – restore li positioning */
    #primary-nav>li.has-mega-menu {
        position: static;
    }
    /* Overlay */
    .menu-overlay {
        position: fixed;
        background: rgba(0, 0, 0, 0.45);
        inset: 0;
        z-index: 0;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }
    ul#primary-nav {
        text-align: left;
    }
}


/* ── Demo body ── */

.demo-body {
    padding: 60px 24px;
    text-align: center;
    color: #444;
}

.demo-body h2 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 8px;
}

.demo-body p {
    font-size: 0.95rem;
    color: #666;
}

.active-badge {
    display: inline-block;
    margin-top: 20px;
    background: #fff;
    border: 1.5px solid var(--color-fanta-orangee);
    color: var(--color-fanta-orangee);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 200px;
}

ul#primary-nav {
    margin: 0;
    padding: 0;
}

.sub-menu.mega-menu-products {
    width: 600px !important;
    text-align: left;
}

.sub-menu.mega-menu-products ul {
    padding: 0;
}

ul.sub-menu a::before {
    content: "›";
    color: var(--color-fanta-orangee);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s, margin 0.18s;
    margin-right: 0;
    line-height: 36px;
    flex-shrink: 0;
}

ul.sub-menu a:hover {
    color: var(--color-fanta-orangee);
}

ul.sub-menu a:hover::before {
    opacity: 1;
    margin-right: 0.3rem;
}

ul.sub-menu.sub-menu-flyout a::before {
    line-height: 32px;
}

ul.sub-menu.sub-menu-flyout {
    width: 270px !important;
    padding: 0 !important;
}