﻿html {
    scroll-padding-top: 122px;
}

main .btn {
    line-height: 1;
}

main .dropdown-menu {
    border: none;
}

#capabilities-page-detail-grid {
    gap: 48px;
}

#capability-page-detail-section {
    padding-top: 20px;
    padding-bottom: 98px;
}

#capability-page-header-section {
    padding-top: 55px;
}

#capability-page-header-section-text {
    gap: 24px;
}

#capability-page-header-section-text > * {
    margin: 0;
}

#header-video-wrapper {
    padding-top: 36px;
    padding-bottom: 44px;
}

#header-youtube-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#header-youtube-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#section-menu-wrapper {
    display: none;
}

#section-menu-wrapper-mobile {
    position: sticky;
    top: 72px;
}

#section-menu-wrapper-mobile .dropdown-menu {
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#section-menu-wrapper-mobile .dropdown-menu a {
    font-size: 12.5px;
    line-height: 1;
    padding: 11.25px 0;
}

#section-menu-wrapper-mobile .dropdown-toggle[aria-expanded="true"] {
    color: var(--bs-btn-color) !important;
    text-decoration-line: none !important;
}

/* Rotate chevron when dropdown is expanded */
#section-menu-wrapper-mobile .dropdown-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
}

#section-menu-wrapper-mobile .dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

#section-menu-wrapper-mobile .btn {
    border: none;
}



.section-image-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 18px;
    aspect-ratio: 532 / 290;
}

.section-image-bg .section-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* This section's source image is much wider/shorter than the standard box,
   so match the box to its native proportions instead of leaving it stranded
   in a mostly-empty letterboxed box. */
#fulfill-orders-reserve-and-update-inventory-stock .section-image-bg {
    aspect-ratio: 509 / 200;
}

/* Two images centered in a vertical stack, each at its natural proportions (e.g. a stat card over a table row) */
.section-image-bg.stack-image {
    flex-direction: column;
    gap: 20px;
    aspect-ratio: auto;
    padding: 28px;
}

.section-image-bg.stack-image .section-image {
    width: auto;
    height: auto;
    max-width: 82%;
    object-fit: contain;
}

/* Two images layered like a collage: primary image top-left, secondary image overlapping its bottom-right corner */
.section-image-bg.overlap-image {
    position: relative;
    display: block;
    aspect-ratio: auto;
    padding: 32px;
    overflow: visible;
}

.section-image-bg.overlap-image .section-image-primary {
    display: block;
    width: 74%;
    height: auto;
    object-fit: contain;
}

.section-image-bg.overlap-image .section-image-secondary {
    position: absolute;
    right: 6%;
    bottom: -10%;
    width: 58%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

#wholesale-distributors-section,
#connected-operations-section {
    padding: 48px 24px 0;
}

#connected-operations-section {
    padding-bottom: 48px;
}

#wholesale-distributors-title,
#connected-operations-title {
    color: var(--dark-teal);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

#wholesale-distributors-content,
#connected-operations-content {
    max-width: 686px;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: 24px;
}

#wholesale-distributors-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 20px;
}

.detail-section-content {
    margin-bottom: 24px;
}
.detail-section-content * {
    margin: 0;
}

.dropdown-item.section-nav-link.active {
    background-color: var(--light-teal);
    color: initial;
    text-decoration: none;
}

.dropdown-menu-scroll {
    overflow-y: auto;
    scrollbar-width: auto;
}

/* WebKit-specific selectors */
.dropdown-menu-scroll::-webkit-scrollbar {
    width: 8px;
    background: #f1f1f1;
}

.dropdown-menu-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dropdown-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.header-button {
    padding: 14.5px 14px;
}


/* lg */
@media (min-width: 992px) {
    main .btn {
        font-size: 18px;
    }



    #capabilities-page-detail-grid {
        row-gap: 80px;
    }


    #capability-page-detail-section {
        padding-top: 57px;
        padding-bottom: 96px;
    }

    #capability-page-header-section {
        padding-top: 65px;
        padding-right: 216px;
        padding-left: 216px;
        border-radius: 0 0 var(--ui-element-border-radius) var(--ui-element-border-radius);
    }

    #capability-page-header-section-description {
        margin-bottom: 20px;
    }

    #capability-page-header-section-text {
        gap: 0;
    }

    #capability-page-header-section-title {
        margin-bottom: 8px;
    }

    #header-video-wrapper {
        padding-top: 40px;
        padding-bottom: 84px;
    }

    #section-menu-wrapper {
        display: block;
        position: fixed;
        top: 156px;
    }

    #section-menu-wrapper .dropdown-menu {
        padding: 25px 21px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    #section-menu-wrapper .dropdown-menu a {
        padding: 14px;
        line-height: 1;
    }

    #section-menu-wrapper .dropdown-toggle[aria-expanded="true"] {
        color: var(--bs-btn-color) !important;
        text-decoration-line: none !important;
    }

    #section-menu-wrapper .btn {
        border: none;
    }

    #section-menu-wrapper-mobile {
        display: none;
    }



    .header-button {
        padding: 18px 24px;
    }

    .img-full-bleed {
        display: block;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .section {
        column-gap: 64px;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .section.reverse {
        direction: rtl; /* Reverses column order */
    }
    .section.reverse > * {
        direction: ltr; /* Reset text direction for content */
    }

    #wholesale-distributors-section,
    #connected-operations-section {
        padding: 80px 24px 0;
    }

    #connected-operations-section {
        padding-bottom: 80px;
    }

    #wholesale-distributors-title,
    #connected-operations-title {
        font-size: 30px;
    }
}


/* xl */
@media (min-width: 1200px) {
    #header-video-wrapper {
        padding-left: 10%;
        padding-right: 10%;
    }
}
