@media only screen and (max-width: 1420px) {
    body {
        width: 100%;
    }

    nav {
        width: 100%
    }

    .sticky {
        width: 100%
    }
}

/*Large Tablets to 1200 px (smaller than normal Row)*/
@media only screen and (max-width: 1200px) {

    body {
        font-size: 17px;
    }

    .hero-text-box {
        width: 100%;
        padding: 0 2.5%;
    }

    .row {
        padding: 0 2.5%
    }

}

@media only screen and (max-height: 623px) {

    .banner-title {
        margin-top: 5vh;
    }
}


/*Small Tablet to large Tablets: 768px to 1023 px*/
@media only screen and (max-width: 1023px) {

    body {
        font-size: 18px;
    }

    h1,
    h5 {
        font-size: 250%;
    }

    section {
        padding: 80px 0;
    }

    .long-copy {
        width: 80%;
        margin-left: 10%;
    }

    .mobile-nav {
        position: fixed;
        z-index: 9999;
        background-color: #555;
        width: 100%;
        color: white;
    }

    .main-nav {
        float: left;
        margin: 10px 0px 25px 0;
        display: none;
        width: 100%;
    }

    .mobile-nav-icon {
        display: inline-block
    }

    .dropdown-content.mega-menu {
        display: none !important;
    }

    .dropdown-caret {
        display: none;
    }

    .main-nav li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .main-nav li a:link,
    .main-nav li a:visited {
        display: block;
        border: 0;
        padding: 10px 0;
        text-shadow: none;
    }


    .sticky .main-nav {
        margin-top: 10px;
    }

    .sticky .main-nav>li>a:link,
    .sticky .main-nav>li>a:visited {
        padding: 10px 0;
    }

    .sticky .mobile-nav-icon i {
        color: inherit;
    }

    .sticky .mobile-nav-icon {
        margin-top: 0;
    }

    .vendor-logo {
        height: 40px;
    }


    a.social-icon {
        width: 30%;
        padding: 20px;
    }

    .rep-pic {
        width: 50%;
        margin-left: 25%;
        margin-right: 25%;
        margin-bottom: 10px;
    }

    .tagline-logo {
        width: 80%;
    }

    /* ── Mobile Full-Screen Overlay ── */
    .mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background-color: var(--light-shade);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

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

    /* Fix nav bg tiling on narrow viewports */
    nav {
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* Overlay header — matches the on-load nav bar */
    .mobile-menu-overlay__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--nav-height);
        padding: 0 1rem;
        background-image: url('/Assets/img/navbg.png');
        background-size: cover;
        background-repeat: no-repeat;
    }

    .mobile-menu-overlay__logo {
        height: var(--nav-height-sticky);
        width: auto;
    }

    .mobile-menu-overlay__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: none;
        border: none;
        font-size: 1.75rem;
        color: var(--dark-text);
        cursor: pointer;
    }

    .mobile-menu-overlay__close:hover,
    .mobile-menu-overlay__close:focus-visible {
        color: var(--red-accent);
    }

    /* Scrollable body */
    .mobile-menu-overlay__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 1.5rem;
    }

    /* Menu reset */
    .mobile-menu,
    .mobile-menu__sub {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* All menu links & toggle buttons */
    .mobile-menu__link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 0.75rem 0;
        background: none;
        border: none;
        text-decoration: none;
        cursor: pointer;
        font-family: var(--ff-heading);
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--dark-text);
        letter-spacing: 0.05em;
    }

    .mobile-menu__link:hover,
    .mobile-menu__link:focus-visible {
        color: var(--red-accent);
    }

    /* Tier 2 — category labels */
    .mobile-menu__link--sub,
    .mobile-menu__link--sub:link,
    .mobile-menu__link--sub:visited {
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark-text);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        min-height: 44px;
        padding: 0.5rem 0;
    }

    .mobile-menu__link--sub:hover,
    .mobile-menu__link--sub:focus-visible {
        color: var(--red-accent);
    }

    /* Tier 3 — product names */
    .mobile-menu__link--product {
        font-family: var(--ff-body);
        font-size: 0.875rem;
        font-weight: 400;
        text-transform: none;
        color: var(--gray-text);
        min-height: 40px;
        padding: 0.4rem 1.5rem;
        letter-spacing: 0;
        justify-content: flex-start;
    }

    .mobile-menu__link--product:link,
    .mobile-menu__link--product:visited {
        color: var(--gray-text);
    }

    .mobile-menu__link--product:hover,
    .mobile-menu__link--product:focus-visible {
        color: var(--red-accent);
    }

    /* Accordion collapse */
    .mobile-menu__sub {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .mobile-menu__sub.is-open {
        max-height: 2000px;
    }

    /* No padding indent — hierarchy via typography, color, and visual separation */
    .mobile-menu__parent > .mobile-menu__sub {
        padding-left: 0;
    }

    .mobile-menu__parent .mobile-menu__parent > .mobile-menu__sub {
        padding-left: 0;
    }

    /* Tier 1 — dividers between main items */
    .mobile-menu > li + li {
        border-top: 1px solid rgba(0, 0, 0, 0.07);
    }

    /* Tier 2 — categories container */
    .mobile-menu > .mobile-menu__parent > .mobile-menu__sub.is-open {
        padding: 0.25rem 0;
        background: rgba(0, 0, 0, 0.025);
    }

    /* Tier 2 — category chevrons match label color */
    .mobile-menu > .mobile-menu__parent > .mobile-menu__sub .mobile-menu__chevron-btn {
        color: var(--dark-text);
    }

    .mobile-menu > .mobile-menu__parent > .mobile-menu__sub .mobile-menu__chevron-btn:hover,
    .mobile-menu > .mobile-menu__parent > .mobile-menu__sub .mobile-menu__chevron-btn:focus-visible {
        color: var(--red-accent);
    }

    /* Tier 3 — products container */
    .mobile-menu__parent .mobile-menu__parent > .mobile-menu__sub.is-open {
        padding: 0.2rem 0;
        background: rgba(0, 0, 0, 0.04);
    }

    /* Chevron rotation */
    .mobile-menu__chevron {
        margin-left: 0.4rem;
        font-size: 0.8em;
        transition: transform 0.25s ease;
    }

    [aria-expanded="true"]>.mobile-menu__chevron {
        transform: rotate(180deg);
    }

    /* Split button row: link spans full width so text centers against the full row;
           chevron is absolutely positioned at the right edge, not taking up layout space */
    .mobile-menu__split {
        position: relative;
        width: 100%;
    }

    .mobile-menu__split .mobile-menu__link {
        justify-content: center;
    }

    .mobile-menu__chevron-btn {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--dark-text);
        transition: color var(--transition-fast);
    }

    .mobile-menu__chevron-btn:hover,
    .mobile-menu__chevron-btn:focus-visible {
        color: var(--red-accent);
    }

    .mobile-menu__chevron-btn .mobile-menu__chevron {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Hamburger button — centered by nav-wrapper flexbox */
    .mobile-nav-icon {
        float: none;
        margin-top: 0;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-nav-icon i {
        font-size: 1.75rem;
        color: var(--dark-text);
    }

    .product_title {
        padding-top: 1.5rem;
    }

    .prod-single-header__inner {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .section-analysis {
        padding-top: var(--space-md);
    }

    .prod-single-header {
        padding-bottom: var(--space-lg);
    }

    .product-analysis-padding {
        padding-top: var(--space-sm);
    }

    /* Hide fixed region toggle on mobile — replaced by in-nav version */
    .region-toggle {
        display: none;
    }

    .mobile-menu-overlay__footer {
        display: flex;
        justify-content: center;
        padding: 1.25rem 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
    }

    .mobile-region-btn {
        padding: 8px 24px;
        font-family: var(--ff-heading);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--gray-text);
        text-decoration: none;
        border: 1px solid rgba(0, 0, 0, 0.2);
        background: transparent;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-region-btn:first-child {
        border-radius: 30px 0 0 30px;
    }

    .mobile-region-btn:last-child {
        border-radius: 0 30px 30px 0;
        border-left: none;
    }

    .mobile-region-btn.is-active {
        background: #0076a3;
        color: #fff;
        border-color: #0076a3;
    }

    .mobile-region-btn:not(.is-active):hover,
    .mobile-region-btn:not(.is-active):focus-visible {
        background: rgba(0, 0, 0, 0.05);
    }
}


@media only screen and (max-height: 768px) {

    .banner-title {
        margin-top: 0vh;
    }

    a.social-icon {
        padding: 10px;
    }
}


/*Small Phones and Tablets: 481 to 767 px*/
@media only screen and (max-width: 767px) {

    body {
        font-size: 14px;
    }

    a.social-icon {
        padding: 5px;
    }

    section {
        padding: 60px 0;
    }

    h1,
    h5 {
        font-size: 220%;
    }

    .row,
    .hero-text-box {
        padding: 0 4%;
    }

    .advantage-banner {
        background-position: right;
        background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.4)), to(rgba(0, 0, 0, 0.3))), url('img/cow-clipped.JPG');
        background-image: linear-gradient(to left, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('img/cow-clipped.JPG');
    }

    .banner-title {
        width: 100%;
        margin: 25% 0 0 0;
        padding: 0 50px;
        font-size: 150%;
    }

    .lix-category {
        width: 32.26%;
        margin: 5px 0;
    }

    .hidden-lix-category {
        display: block;
    }

    .custom-cat {
        display: none;
    }

    .col-dealers {
        width: 100%;
    }

    .mobile-nav-icon {
        margin-top: 0;
    }

    .logo {
        height: 50px;
    }

    .mobile-menu-overlay__logo {
        height: 50px;
    }

    .vendor-logo {
        height: 35px;
    }

}


/*Small Phones: 0 to 480 px*/
@media only screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .banner-title {
        width: 100%;
        margin: 25px 0 0 0;
        font-size: 90%;
    }

    .lix-category {
        width: 49.2%;
    }

    .mobile-nav-icon {
        margin-top: 0;
    }

    .vendor-logo {
        height: 30px;
    }

    .main-header {
        height: 100vh;
    }

    .advantage-banner,
    .product-banner {
        height: 40vh;
    }
}