/* Reset default margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font faces */
@font-face {
    font-family: Volvo;
    src: url("img/Volvo_Novum_Regular.otf") format("opentype");
}

@font-face {
    font-family: VolvoBold;
    src: url("img/Volvo_Novum_Bold.otf") format("opentype");
}

/* Paragraph styles */
p {
    margin-top: 10px;
    color: #ffffff;
    font-family: Volvo;
    font-weight: 400;
}

/* Heading styles */
h1, h2 {
    font-family: "VolvoBold";
    color: #395448;
    font-size: 15px;

}

.label{
    display: flex;
    background-color: #fff;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    min-width: 70px;
    max-width: 120px;
    border-radius: 5px;
}

/* Header */
.fixed {
    position: fixed;
    display: flex;
    width: 100vw;
    flex-direction: column;
    z-index: 99999;
}

.brandbar {
    height: 50px;
    color: #fff;
    background-color: #000;
    display: flex;
    width: 100vw;
    justify-content: end;
    align-items: center;
    font-size: 12px;
    font-family: Volvo;
}

.header {
    display: flex;
    justify-content: space-between;
    height: 85px;
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    z-index: 1000;
    width: 100vw;
}

.header > img {
    max-width: 350px;
}

/* Brands section */
.brands {
    padding-top: 150px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    object-fit: cover;
    max-width: 1340px;
    margin: 0 auto;
}

.logo {
    width: 175px;
    margin-left: 20px;
}

.brandlogo {
    display: flex;
    align-items: center;
    margin-left: 20px;
    object-fit: cover;
}

.brandslogo > img {
    z-index: 99999999;
    margin: 0px 20px 0px 0px;
    height: 25px;
    vertical-align: middle;
}

.spacer {
    height: 150px;
}

/* Container */
.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

/* Grid */
.grid {
    display: grid;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    align-items: stretch;
}

/* B2B and Part sections */
.b2b {
    display: grid;
    grid-gap: 20px;
    position: relative;
    align-items: stretch;
}

.part {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Images in B2B and Part sections */
.b2bimg, .partimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2bbox {
    position: relative;
}

/* Text box styling */
.textbox {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #395448d9;
    overflow: hidden;
    padding: 30px 80px 30px 30px;
}

.textbox > img {
    max-width: 40%;
    margin-bottom: 20px;
}

/* Buttons */
.button {
    display: flex;
    min-width: 30%;
    max-width: 200px;
    padding: 14px 20px;
    background-color: #fff;
    color: #395448;
    text-decoration: none;
    margin: 30px 10px 10px 0px;
    border-radius: 5px;
    letter-spacing: 1px;
    line-height: 12.8px;
    font-family: "VolvoBold";
    text-transform: uppercase;
    transition: 0.3s ease;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
}

.button:hover {
    background-color: #000;
    transition: 0.3s ease;
    color: #ffffff;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        margin: 0px 20px;
    }

    .part {
        max-height: 400px;
    }

    .b2bbox { 
        min-height: 400px;
    }

    .textbox > img {
        max-width: 70%;
    }
}
