/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'Avenir LT Std Black';
    src: url('fonts/avenir_lt_std_95_black-webfont.woff2') format('woff2'),
         url('fonts/avenir_lt_std_95_black-webfont.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #000;
    background-color: #001014;
    background-image: url('img/bg.png');
    background-image: image-set(
        url('img/bg.webp') type('image/webp') 1x,
        url('img/bg.png') type('image/png') 1x
    );
    background-repeat: no-repeat;
    background-position: center -85px;
    background-size: cover;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 12px;
    padding-bottom: 40px;
}

a {
    text-decoration: underline;
    font-size: 1.1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    position: relative;
    padding-bottom: 15px;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: calc(50% + 620px);
    background-image: url('img/bg-strip.png');
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto 100%;
    pointer-events: none;
    z-index: 0;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(50% - 620px);
    width: 40%;
    background-image: url('img/mitsu-header.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 1;
}

header .container {
    position: relative;
    max-width: 1240px;
    padding-left: 30px;
}

header .container > * {
    position: relative;
    z-index: 2;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.header-text {
    flex: 0 1 auto;
}

header h1 {
    font-size: 6em;
    font-family: 'Avenir LT Std Black', serif;
    color: #fff;
    margin: 40px 0 0;
    line-height: 1;
}

header .subtitle {
    font-family: 'Avenir LT Std Black', serif;
    color: #fff;
    font-size: 2.5em;
    line-height: 1.3em;
    margin: 5px 0 0;
}

.logo-white {
    position: absolute;
    right: 20px;
    bottom: 0;
}

.fair-bar {
    background-color: #dd1616;
    color: #fff;
    text-align: center;
    padding: 15px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    max-width: 1240px;
    margin: 0 auto;
}


/* ==========================================================================
   Product section
   ========================================================================== */

.products {
    max-width: 1240px;
    margin: 0 auto;
    background-color: white;
    padding: 40px 120px;
}

/* ==========================================================================
   Product card
   ========================================================================== */

.product-card {
    display: grid;
    grid-template-columns: 3fr 5fr auto;
    column-gap: 5px;
    row-gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.product-card.border {
    border-bottom: 1px solid #e20019;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.badge-available,
.badge-available-new {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.badge-available::before {
    content: '';
    display: block;
    width: 54px;
    height: 54px;
    background: url('img/available.png') no-repeat 0 0;
}

.badge-available-new::before {
    content: '';
    display: block;
    width: 54px;
    height: 116px;
    background-image: url('img/available.png'), url('img/new.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left top, left 62px;
    background-size: 54px 54px, 54px 54px;
}

.product-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding: 0 15px;
}

.product-content h2 {
    color: #e20019;
    font-weight: bold;
    font-size: 1.5em;
    margin: 0;
    padding-top: 10px;
}

.red {
    color: #e20019;
}

.product-content p {
    font-size: 1.2em;
    line-height: 1.3em;
}

.product-content p strong {
    max-width: 80%;
    display: inline-block;
}

.product-content a {
    color: #e20019;
}

.bottom-logos {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: auto;
    gap: 10px;
}

.bottom-logos img {
    max-width: 100px;
}

/* ==========================================================================
   Price box
   ========================================================================== */

.price-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    align-self: end;
}

.price-box .price-label {
    font-weight: bold;
    font-size: 1em;
}

.price-box .price {
    color: #e20019;
    font-size: 4.5em;
    line-height: 1em;
    font-weight: bold;
}

.price-box .price-note {
    font-weight: bold;
    font-size: 0.85em;
}

.type-and-energy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px;
    width: 100%;
}

.type-and-energy img {
    height: 26px;
    width: auto;
}

.cta {
    background-color: #e20019;
    border-bottom-right-radius: 10px;
    padding: 4px 15px;
    width: 100%;
}

.cta a {
    text-decoration: none;
    font-size: 140%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta a:hover {
    opacity: 0.9;
}

.cta .arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
    header::after {
        left: 100%;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 16px;
    }
    header h1 {
        font-size: 3em;
        margin-top: 20px;
    }
    header .subtitle {
        font-size: 1.5em;
    }
    .price-box .price {
        font-size: 3em;
    }
    .logo-white {
        margin: 0;
    }
    .products {
        padding: 40px 40px;
    }
    header::before {
        right: 0;
    }
    .product-content h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 767px) {
    header::before {
        display: none;
    }
    header h1 {
        font-size: 2.5em;
    }
    header .subtitle {
        font-size: 1.1em;
    }
    .logo-white {
        float: right;
        width: 130px;
    }
    .header-inner {
        padding-top: 60px;
    }
    .products {
        padding: 40px 20px;
    }
    .product-card {
        grid-template-columns: 1fr 1fr;
    }
    .product-image {
        display: none;
    }
}
