/**
 * @package pensacoladiesel-ebay
 * @author cleverogre
 * @version 1.0
 * @since 1.0
 */

/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* Variables */

:root {
    --color--primary: #004380;
    --color--secondary: #00315f;
    --color--tertiary: #f46f16;
    --color--black: #1f1b1b;
    --color--dark-gray: #2d2728;
    --color--light-gray: #e7e7e7;
    --color--off-white: #f2f2f2;
    --color--white: #ffffff;

    --font-size--small: 1rem;
    --font-size--normal: 1.125rem;
    --font-size--normal-plus: 1.25rem;
    --font-size--medium: 1.5rem;
    --font-size--large: 1.75rem;
    --font-size--large-plus: 2.25rem;
    --font-size--x-large: 2.625rem;

    --line-height--normal: 2.1;
    --line-height--heading: 1;
    --line-height--small: 1.5;

    --font-family--normal: "Open Sans", sans-serif;
    --font-family--heading: "Big Shoulders", "Open Sans", sans-serif;

    --container--width: 1000px;
}

/* Global */

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

p {
    margin-block: 1em;
}

a,
a:visited {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

input[type] {
    visibility: hidden;
    display: none;
}

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

ul {
    font-size: var(--font-size--small);
    line-height: 1.75;
    padding-inline-start: 1.5em;
}

body {
    margin: 0;
    font-family: var(--font-family--normal);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: var(--font-size--normal);
    line-height: var(--line-height--normal);
}

#page {
    background-color: var(--color--white);
    color: var(--color--black);
}

.container {
    width: var(--container--width);
    max-width: calc(100% - 2rem);
    margin-inline: auto;
}

.container > *:first-child {
    margin-block-start: 0;
}

.container > *:last-child {
    margin-block-end: 0;
}

nav ul {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-block: 0;
    font-size: inherit;
    line-height: inherit;
}

button.button,
a.button {
    display: inline-block;
    background-color: var(--color--primary);
    color: var(--color--white);
    border: 1px solid currentColor;
    border-radius: .25em;
    font-size: var(--font-size--normal);
    line-height: 1;
    text-align: center;
    font-weight: normal;
    font-style: normal;
    padding-block: .85em;
    padding-inline: 1.1em;
    cursor: pointer;
    min-width: 8em;
}

button.button:hover,
a.button:hover {
    text-decoration: none;
    background-color: var(--color--secondary);
}

button.button:active,
a.button:active {
    background-color: var(--color--tertiary);
}

p:has(.button:only-child) {
    margin-block: 1.5em;
}

/* Headings */

:root :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-family--heading);
    line-height: var(--line-height--heading);
}

:root :where(h1, h2) {
    font-weight: 900;
}

:root :where(h3, h4, h5, h6) {
    font-weight: 700;
}

h1 {
    font-size: var(--font-size--large-plus);
}

h2 {
    font-size: var(--font-size--x-large);
}

.subtitle {
    color: var(--color--tertiary);
    font-weight: 700;
    font-size: var(--font-size--medium);
    line-height: var(--line-height--heading);
}

:root :where(h1, h2, h3, h4, h5, h6):has(+ .subtitle) {
    margin-block-end: .25em;
}

:root :where(h1, h2, h3, h4, h5, h6) + .subtitle {
    margin-block-start: 0;
}

/* Images */

.logo-image,
.cc-image,
.specialists-image {
    display: inline-block;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.logo-image {
    background-image: url(https://ebay.pensacoladiesel.com/assets/img/logo.png);
    aspect-ratio: 347 / 86;
    width: 347px;
}

.cc-image {
    background-image: url(https://ebay.pensacoladiesel.com/assets/img/cc.png);
    aspect-ratio: 308 / 35;
    width: 308px;
}

.specialists-image {
    background-image: url(https://ebay.pensacoladiesel.com/assets/img/specialists.png);
    aspect-ratio: 200 / 64;
    width: 200px;
}

/* Header */

#header {
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .2);
}

#header-top {
    background-color: var(--color--primary);
    color: var(--color--white);
    padding-block: 1em;
    line-height: 1;
}

#header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

#header-top-notice {
    display: flex;
    align-items: baseline;
    gap: 1em;
}

#header-top-notice p {
    margin-block: 0;
}

#header-top-notice strong {
    color: var(--color--tertiary);
    text-transform: uppercase;
    font-weight: 600;
}

#header-top-notice a {
    text-transform: lowercase;
    font-weight: 300;
    text-decoration: underline;
}
#header-top-notice a:hover {
    text-decoration: none;
}

#header-top nav ul li + li {
    margin-inline-start: 1em;
    padding-inline-start: 1em;
    border-inline-start: 1px solid currentColor;
}

#header-middle {
    padding-block-start: 2.5rem;
    padding-block-end: 2rem;
}

#header-middle .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 2rem;
}

#header-middle .logo-image {
    margin-inline-end: auto;
}

#header-middle .cc-image-container {
    height: 50px;
    background-color: var(--color--primary);
    padding-inline: 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

#header-bottom {
    background-color: var(--color--light-gray);
    font-size: var(--font-size--small);
    line-height: 1;
    white-space: nowrap;
    height: 4em;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

#header-bottom .container,
#header-bottom nav,
#header-bottom nav ul,
#header-bottom nav a {
    height: 100%;
}

#header-bottom nav ul {
    gap: 2em;
    justify-content: center;
}

#header-bottom nav a {
    display: inline-flex;
    align-items: center;
    margin-inline: -1em;
    padding-inline: 1em;
}

#header-bottom nav a:hover {
    background-color: var(--color--primary);
    color: var(--color--white);
    text-decoration: none;
}

#header-bottom nav a:active {
    background-color: var(--color--secondary);
    color: var(--color--white);
}

/* Description */

#description {
    margin-block: 2rem;
}

#description .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
}

#description .container > * {
    width: 50%;
    flex-shrink: 1;
    flex-basis: auto;
}

#gallery {
    font-size: 0;
}

#gallery-images {
    aspect-ratio: 1;
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    background-color: var(--color--light-gray);
}

#gallery-images img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity .6s ease;
}

#gallery-input-0:checked ~ #gallery-images #gallery-image-0,
#gallery-input-1:checked ~ #gallery-images #gallery-image-1,
#gallery-input-2:checked ~ #gallery-images #gallery-image-2 {
    opacity: 1;
}

#gallery-thumbnails {
    margin-block-start: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .25rem;
    width: 100%;
}

#gallery-thumbnails label {
    cursor: pointer;
    width: 100%;
}

#gallery-thumbnails img {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border: 2px solid var(--color--light-gray);
    border-radius: 2px;
    width: 100%;
    transition: border-color .6s ease;
}

#gallery-input-0:checked ~ #gallery-thumbnails #gallery-thumbnail-0,
#gallery-input-1:checked ~ #gallery-thumbnails #gallery-thumbnail-1,
#gallery-input-2:checked ~ #gallery-thumbnails #gallery-thumbnail-2 {
    border-color: var(--color--primary);
}

#content {
    font-size: var(--font-size--normal-plus);
    line-height: var(--line-height--small);
}

#content > *:first-child {
    margin-block-start: 0;
}

#content > *:last-child {
    margin-block-end: 0;
}

#content h2 {
    font-size: var(--font-size--large);
}

#content-notice {
    color: var(--color--tertiary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--font-size--large);
    line-height: var(--line-height--heading);
}

/* Tabs */

#tab-navigation {
    background-color: var(--color--primary);
    color: var(--color--white);
    font-size: var(--font-size--medium);
    line-height: 1;
    height: 2.5em;
    font-family: var(--font-family--heading);
    font-weight: 700;
}

#tab-navigation .container,
#tab-navigation ul,
#tab-navigation label {
    height: 100%;
}

#tab-navigation label {
    padding-inline: 1.5em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#tab-content {
    background-color: var(--color--light-gray);
    padding-block: 4rem;
}

.tab {
    display: none;
}

.tab > *:first-child {
    margin-block-start: 0;
}

.tab > *:last-child {
    margin-block-end: 0;
}

.tab-returns {
    text-align: center;
}

.tab-returns strong {
    text-transform: uppercase;
}

#tab-input-0:checked ~ #tab-content #tab-0,
#tab-input-1:checked ~ #tab-content #tab-1,
#tab-input-2:checked ~ #tab-content #tab-2,
#tab-input-3:checked ~ #tab-content #tab-3 {
    display: block;
}

#tab-input-0:checked ~ #tab-navigation #tab-label-0,
#tab-input-1:checked ~ #tab-navigation #tab-label-1,
#tab-input-2:checked ~ #tab-navigation #tab-label-2,
#tab-input-3:checked ~ #tab-navigation #tab-label-3 {
    background-color: var(--color--light-gray);
    color: var(--color--primary);
}

/* Categories & About */

#shipping,
#categories,
#about {
    padding-block: 4rem;
    text-align: center;
}

#shipping {
    background-color: var(--color--secondary);
    color: var(--color--white);
}

#shipping ul {
    list-style: none;
    padding-inline-start: 0;
    font-size: inherit;
}

#shipping ul li + li {
    margin-block-start: .5em;
}

#categories {
    background-color: var(--color--dark-gray);
    color: var(--color--white);
}

#categories ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    padding-inline-start: 0;
    font-size: inherit;
    line-height: inherit;
    margin-block: 3rem;
    gap: 3rem;
    font-size: var(--font-size--normal-plus);
    line-height: var(--line-height--small);
    font-weight: 600;
}

#categories ul li {
    width: 100%;
}

#categories ul a {
    display: block;
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    border-radius: .25rem;
    background-color: var(--color--white);
    color: var(--color--primary);
}

#categories ul a img {
    aspect-ratio: 1.75;
    object-fit: contain;
    object-position: center;
    display: block;
    width: 100%;
}

#categories ul a span {
    display: block;
    margin-block-start: 1.5rem;
}

#categories ul a:hover {
    text-decoration: none;
    background-color: var(--color--light-gray);
}

#categories ul a:active {
    color: var(--color--tertiary);
}

#about {
    background-color: var(--color--primary);
    background-image: url(https://ebay.pensacoladiesel.com/assets/img/about.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
    color: var(--color--white);
}

#about::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color--primary);
    opacity: .8;
}

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

/* Footer */

#footer-top {
    background-color: var(--color--dark-gray);
    padding-block: 2rem;
    font-size: 0;
}

#footer-top .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#footer-top .logo-image-container {
    position: relative;
    background-color: var(--color--white);
    filter: drop-shadow(0 0 16px rgba(0,0,0,.1));
    margin-block: -2.5rem;
    margin-inline-end: 2rem;
    padding-block: 2.5rem;
    padding-inline-end: 1.5rem;
    z-index: 1;
}

#footer-top .logo-image-container::before {
    content: '';
    display: block;
    background-color: var(--color--white);
    clip-path: polygon(0 0, 100% 0, calc(100% - 2rem) 100%, 0 100%);
    position: absolute;
    height: 100%;
    left: calc((100vw - var(--container--width)) / -2);
    right: -2rem;
    top: 0;
    width: auto;
    z-index: -1;
}

#footer-middle,
#footer-bottom {
    text-align: center;
    font-weight: 300;
    font-size: var(--font-size--small);
    color: var(--color--white);
}

#footer-middle {
    background-color: var(--color--primary);
    padding-block-start: 3.5em;
    padding-block-end: 2.75em;
}

#footer-middle nav ul {
    justify-content: center;
}

#footer-middle nav ul li + li {
    margin-inline-start: 1em;
    padding-inline-start: 1em;
    border-inline-start: 1px solid currentColor;
}

#footer-bottom {
    background-color: var(--color--secondary);
    padding-block: 1.25em;
}
