/* Bootstrap CSS */
:root {
    --bs-primary: #FF7B00;
    --bs-secondary: #1e1e1e;
}

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100vw;
}

#case-erector {
    overflow: hidden;
}

.bg-dark {
    background-color: var(--bs-secondary) !important;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    border-width: 2px;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-primary, .btn-secondary {
    border-radius: 50px;
    font-weight: bold;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: grey;
    --bs-btn-disabled-border-color: grey;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
    font-weight: bold;
}

.text-bg-primary, .product-detail :not(.bg-primary) h2 {
    display: inline-block;
    background-color: var(--bs-primary) !important;
    color: #fff;
    padding: 0.2em 0.5em;
}

.text-bg-secondary, .product-detail.bg-primary h2 {
    display: inline-block;
    background-color: var(--bs-secondary) !important;
    color: #fff;
    padding: 0.2em 0.5em;
}

/* Custom CSS */

* {
    font-family: "Inter", serif;
}

a {
    color: var(--bs-primary);
    text-underline: var(--bs-primary);
}

a:hover {
    color: white;
}

/* Navigation */
#nav {
    position: relative;
    padding-top: 2rem;
    z-index: 2;
}

/* Intro banner */
#intro {
    position: relative;
    padding: 57.1vh 0 0 0;
    width: 100%;
    background-color: transparent;
    z-index: 1;
}

#intro .container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
}

#intro .container img {
    max-width: 100%;
    height: auto;
}

.intro-image {
    max-width: 100%;
    height: auto;
}

#intro::after {
    content: '';
    position: absolute;
    bottom: -0.5px;
    left: 0;
    width: 100%;
    height: 73vh;
    background-image: url('../img/white_slanted_triangle.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    pointer-events: none;
    z-index: 0;
}

/* Product cards */
#products {
    margin: 5vh 0 0 0;
}

#products .row:last-child {
    display: flex;
    flex-wrap: wrap;
}

#products .row:last-child > [class*="col"] {
    display: flex;
}

@media (min-width: 1200px) {
    #products .product-card-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.card {
    margin: 0 0 5vh 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.card .card-body {
    flex: 1;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0 !important;
    border: none !important;
}

/* Product details */
.product-detail {
    padding: 5rem 0;
    overflow-x: hidden;
}

.product-detail > .container > .row {
    align-items: center;
}

ul:not(.nav) {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

ul:not(.nav) li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

ul:not(.nav) li::before {
    content: "\f272";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    background-color: transparent;
    color: #fff;
    -webkit-text-stroke: 1px #fff;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding-top: 2px;
}

.bg-primary ul li::before {
    border-color: var(--bs-secondary);
}

.product-detail li span {
    display: block;
    margin-top: 0.25rem;
}


/* Product carousel */
.carousel-cell {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.flickity-page-dots .dot {
    background: white;
}

/* Accordion */
.accordion {
    --bs-accordion-bg: var(--bs-secondary);
    --bs-accordion-color: #fff;
    --bs-accordion-border-color: var(--bs-primary);
    --bs-accordion-btn-bg: var(--bs-secondary);
    --bs-accordion-btn-color: #fff;
    --bs-accordion-active-bg: var(--bs-secondary);
    --bs-accordion-active-color: #fff;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(255, 123, 0, 0.25);
    border-radius: 0;
}

.accordion-item {
    background-color: var(--bs-secondary);
    color: #fff;
    border: 1px solid var(--bs-primary);
    margin-bottom: 1rem;
    border-radius: 0 !important;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 0 !important;
}

.accordion-item:first-of-type .accordion-button,
.accordion-item:last-of-type .accordion-button,
.accordion-item:last-of-type .accordion-collapse {
    border-radius: 0 !important;
}

.accordion-button {
    background-color: var(--bs-primary);
    color: #fff;
    border: none;
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.accordion-body {
    background-color: var(--bs-secondary);
    color: #fff;
}

#conveyors-specials {
    background-color: #fff;
}

#conveyors-specials p,
#conveyors-specials li {
    color: var(--bs-secondary);
}

#conveyors-specials ul:not(.nav) li::before {
    color: var(--bs-secondary);
    -webkit-text-stroke: 1px var(--bs-secondary);
}

/* FAQ */
#faq {
    position: relative;
}

#faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    background-image: url('../img/white_slanted_to_right_triangle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left bottom;
    transform: rotate(180deg);
    pointer-events: none;
    z-index: 0;
}

#faq .container {
    position: relative;
    z-index: 1;
}

#faq > .container > .row > .col-md-8 > h2 {
    display: inline-block;
}

#faq .col-md-8 {
    text-align: center;
}

#faq .accordion {
    text-align: left;
}


.form-control {
    border-radius: 0;
}

form .btn {
    position: relative;
    z-index: 2;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: var(--bs-primary);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 123, 0, 0.25);
}

.form-floating > label {
    color: #6c757d !important;
}

/* Contact */
#contact {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    position: relative;
    font-size: large;
    font-weight: bold;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer img {
    position: relative;
    z-index: 2 !important;
}

footer p {
    position: relative;
    color: var(--bs-primary);
    z-index: 2;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 550px;
    background-image: url('../img/white_slanted_to_right_triangle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left bottom;
    pointer-events: none;
    z-index: 0;
}

/* Responsiveness */
@media (max-width: 767.98px) {
    #nav img {
        width: 180px;
    }

    #nav .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    #intro {
        padding: 2rem 1rem;
    }

    #intro::after {
        top: auto;
        bottom: 0;
        height: 45vh;
        background-position: bottom;
        z-index: -1;
    }

    #intro .container {
        position: static;
        transform: none;
    }

    #intro .row {
        position: relative;
        z-index: 3;
    }

    #intro .text-end {
        text-align: center !important;
    }

    #intro p {
        max-width: 100% !important;
        margin: 0 auto;
        color: #fff;
    }

    #products {
        text-align: center;
    }

    #products .row:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #products .product-card-col {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    #products .card {
        width: 90%;
        max-width: 350px;
    }

    .card {
        display: grid;
        margin-bottom: 10px;
        align-self: center;
    }

    .product-detail {
        padding: 0 0 3rem 0;
    }

    .product-detail .row {
        flex-direction: column;
    }

    .product-detail-left .product-text,
    .product-detail-right .product-text {
        margin-top: 1.5rem;
    }

    .carousel-cell {
        height: 70vw !important;
        min-height: 250px;
    }

    .carousel-cell img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #products .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    #contact .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    #contact form .row .col-md-6 {
        margin-bottom: 0.75rem;
    }

    #contact form .row .col-md-6:last-child {
        margin-bottom: 0;
    }

    footer div div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .nav {
        justify-content: center !important;
        margin-top: 1rem;
    }

    footer img {
        width: 274px;
    }

    footer::after {
        height: 420px;
        bottom: 0;
        left: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #intro {
        padding: 40vh 0 0 0;
    }

    #intro .container {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
    }

    #intro .col-md-4 img {
        max-width: 100%;
        height: auto;
    }

    .carousel-cell {
        height: 300px;
    }

    footer::after {
        height: 360px;
        bottom: 0;
        left: 0;
    }
}

