/* PSG Wheels — layout A "Pit Lane" */

:root {
    --bg: #0b0b0c;
    --surface: #161618;
    --band: #141416;
    --line: #26262a;
    --text: #e9e9ea;
    --muted: #b9b9bd;
    --faint: #9a9aa0;
    --red: #d62631;
    --red-dark: #b81d27;
    --red-light: #ff8a90;
    --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 32px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--red-light);
}

:focus-visible {
    outline: 2px solid var(--red-light);
    outline-offset: 3px;
}

p {
    margin: 0 0 16px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(72px, 10vw, 120px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--red);
    color: #fff;
    padding: 12px 16px;
}

.skip-link:focus {
    top: 16px;
}

/* ---------------------------------------------------------------- type */

.display {
    margin: 0 0 24px;
    font-family: var(--display);
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
    color: #fff;
}

.display--xxl {
    font-size: clamp(64px, 9vw, 112px);
    line-height: 0.85;
}

.display--xl {
    font-size: clamp(48px, 7vw, 80px);
}

.display--lg {
    font-size: clamp(42px, 5.5vw, 64px);
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-light);
}

.fine-print {
    margin-top: 24px;
    font-size: 13px;
    color: var(--faint);
}

.fine-print a {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 2px;
    font: 600 16px/1.2 var(--body);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn--red {
    background: var(--red);
    color: #fff;
}

.btn--red:hover {
    background: var(--red-dark);
    color: #fff;
}

.btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn--outline:hover {
    border-color: #fff;
    color: #fff;
}

.btn--small {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-header--overlay {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
    border-bottom: 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.brand__name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 2px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle__bars,
    .menu-toggle__bars::before,
    .menu-toggle__bars::after {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        content: '';
    }

    .menu-toggle__bars {
        position: relative;
    }

    .menu-toggle__bars::before {
        position: absolute;
        top: -6px;
    }

    .menu-toggle__bars::after {
        position: absolute;
        top: 6px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        font-size: 18px;
    }

    .site-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-nav .btn {
        margin-top: 16px;
        border-bottom: 0;
    }

    .site-nav.is-open {
        display: flex;
    }
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(760px, 100vh);
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: clamp(64px, 9vw, 120px);
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* Donker achter de tekst links, lichter rechts zodat de auto zichtbaar blijft. */
.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 9, 0.82) 0%, rgba(8, 8, 9, 0.55) 45%, rgba(8, 8, 9, 0.2) 100%);
    content: '';
}

@media (max-width: 760px) {
    .hero::after {
        background: rgba(8, 8, 9, 0.6);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    max-width: 900px;
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(64px, 10vw, 128px);
    line-height: 0.88;
    text-transform: uppercase;
    color: #fff;
}

.hero__lead {
    max-width: 560px;
    margin: 28px 0 40px;
    font-size: clamp(18px, 2vw, 22px);
    color: #f1f1f1;
}

/* ---------------------------------------------------------------- stats */

.stats {
    background: var(--red);
    color: #fff;
    font-size: 14px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding-block: 28px;
}

.stats__value {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(30px, 7.5vw, 44px);
    line-height: 1;
}

/* ---------------------------------------------------------------- lineup */

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
}

.section-head .display {
    margin: 0;
}

.section-head__text {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

.wheel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.wheel-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s;
}

.wheel-card:hover {
    transform: translateY(-4px);
    border-color: #4a4a50;
    color: inherit;
}

.wheel-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #fff;
}

/* De marge rond het wiel zit in het beeld zelf (tools/square_render.swift). */
.wheel-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wheel-card__body {
    padding: 18px 20px 20px;
}

.wheel-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.wheel-card__name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 30px;
    color: #fff;
}

.wheel-card__build {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red-light);
}

.wheel-card__tag {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.wheel-card__price {
    margin-top: 12px;
    font-size: 14px;
    color: #fff;
}

/* ---------------------------------------------------------------- bands & steps */

.band {
    background: var(--band);
    border-block: 1px solid #222;
}

.band__intro {
    max-width: 560px;
    margin-bottom: 56px;
    color: var(--muted);
    font-size: 18px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps__num {
    display: block;
    font-family: var(--display);
    font-weight: 900;
    font-size: 96px;
    line-height: 0.8;
    color: var(--red);
}

.steps h3 {
    margin: 20px 0 10px;
    font-size: 22px;
    color: #fff;
}

.steps p {
    color: var(--muted);
}

/* ---------------------------------------------------------------- split */

.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
}

.split--reverse {
    flex-direction: row-reverse;
}

.split__img {
    flex: 1 1 440px;
    min-width: 0;
    width: 100%;
    height: clamp(320px, 45vw, 540px);
    object-fit: cover;
}

.split__text {
    flex: 1 1 420px;
    min-width: 0;
    color: #c9c9cd;
    font-size: 17px;
    line-height: 1.65;
}

.frits-quote {
    margin: 0 0 28px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
}

.frits-sign {
    font-weight: 600;
    color: #fff;
}

/* ---------------------------------------------------------------- testimonials */

.light {
    background: #fff;
    color: #111;
}

.light .display {
    color: #111;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.quote {
    margin: 0;
    padding-top: 20px;
    border-top: 4px solid var(--red);
}

.quote blockquote {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
}

.quote figcaption {
    margin-top: 16px;
    font-weight: 600;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-strip img {
    width: 100%;
    height: clamp(200px, 24vw, 340px);
    object-fit: cover;
}

@media (max-width: 760px) {
    .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------------- contact */

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
}

.contact__text {
    flex: 1 1 400px;
    min-width: 0;
    color: #c9c9cd;
    font-size: 17px;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: #fff;
}

.contact__links a {
    border-bottom: 1px solid var(--red);
}

.form {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form input,
.form textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    border: 1px solid #3a3a40;
    border-radius: 2px;
    color: #fff;
    font: 16px/1.4 var(--body);
}

.form textarea {
    resize: vertical;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--red-light);
    outline: none;
}

.form__trap {
    position: absolute;
    left: -10000px;
}

.form__note {
    margin: 0;
    font-size: 13px;
    color: var(--faint);
}

.form__error {
    margin: 0;
    padding: 12px 16px;
    background: #3a1215;
    border: 1px solid var(--red);
}

.form__about {
    margin: 0;
    font-weight: 600;
    color: var(--red-light);
}

/* ---------------------------------------------------------------- wheel page */

.wheel-page {
    padding-block: 40px 96px;
}

.crumbs {
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--faint);
}

.crumbs a {
    text-decoration: underline;
}

.wheel-layout {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 5vw, 64px);
}

.wheel-media {
    flex: 1 1 520px;
    min-width: 0;
}

.wheel-media button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: zoom-in;
}

.wheel-media__main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.wheel-media__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.wheel-media__thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.wheel-info {
    flex: 1 1 380px;
    min-width: 0;
}

.wheel-info .display {
    margin-bottom: 8px;
}

.wheel-info__lead {
    font-size: 22px;
    color: #fff;
}

.feature-list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid var(--line);
    position: relative;
    color: var(--muted);
}

.feature-list li::before {
    position: absolute;
    left: 0;
    top: 21px;
    width: 10px;
    height: 2px;
    background: var(--red);
    content: '';
}

.wheel-info__h2 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-light);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.price-table th {
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    width: 80px;
}

.price-table td {
    color: var(--muted);
}

.price-table td:last-child {
    text-align: right;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.wheel-info .btn-row {
    margin-top: 32px;
}

.pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.pager a {
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-weight: 800;
    font-size: 32px;
    color: #fff;
}

.pager a:last-child {
    text-align: right;
}

.pager span {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ---------------------------------------------------------------- gallery */

.gallery-page__intro {
    max-width: 560px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 18px;
}

.masonry {
    columns: 3 300px;
    column-gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.masonry li {
    margin-bottom: 12px;
    break-inside: avoid;
}

.masonry button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.masonry img {
    width: 100%;
}

.gallery-page__cta {
    margin-top: 48px;
}

.simple-page {
    min-height: 50vh;
}

.simple-page p {
    max-width: 560px;
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 18px;
}

/* ---------------------------------------------------------------- lightbox */

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 5, 6, 0.95);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
}

.lightbox__btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__btn:hover {
    background: var(--red);
}

.lightbox__close {
    top: 16px;
    right: 16px;
}

.lightbox__prev {
    left: 16px;
    top: 50%;
}

.lightbox__next {
    right: 16px;
    top: 50%;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid #222;
    font-size: 14px;
    color: var(--faint);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px 48px;
    padding-block: 48px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-width: 640px;
}

.site-footer__copy {
    width: 100%;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .wheel-card {
        transition: none;
    }
}
