@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #090909;
    --surface: #111111;
    --text: #f5f5f5;
    --muted: #999999;
    --line: #262626;
    --accent: #d8ff00;
    --max: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(9, 9, 9, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: 700;
}

.nav-links a {
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 48%, rgba(0,0,0,.28) 100%),
        url('../images/hero.jpg') center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .08;
    background: linear-gradient(135deg, transparent 49%, rgba(255,255,255,.08) 50%, transparent 51%);
    background-size: 18px 18px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .2em;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 30px;
    font-size: clamp(52px, 9vw, 120px);
    line-height: .86;
    letter-spacing: -.075em;
}

h1 span,
h2 span {
    color: var(--accent);
}

.hero-text {
    margin-bottom: 35px;
    color: #d0d0d0;
    font-size: 20px;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    min-height: 52px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #080808;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: #444;
}

.btn-ghost:hover {
    border-color: var(--accent);
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 10px;
    letter-spacing: .2em;
}

/* SECTIONS */

.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--surface);
}

.section-heading {
    margin-bottom: 55px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -.065em;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.card {
    min-height: 370px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
}

.card-number {
    color: #666;
    font-size: 11px;
    font-weight: 800;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.card strong {
    font-size: 20px;
}

.card small {
    color: #777;
    font-size: 12px;
    font-weight: 500;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.about-photo {
    width: 100%;
    max-width: 430px;
    height: 560px;
    overflow: hidden;
    background: #151515;
}

.about-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-grid p:not(.eyebrow) {
    max-width: 700px;
    color: #aaa;
    font-size: 16px;
}

/* QUOTE */

.quote-section {
    padding: 150px 0;
    border-bottom: 1px solid var(--line);
}

.big-quote {
    margin: 0;
    font-size: clamp(42px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 800;
}

/* CONTACT */

.contact-section {
    background: #0d0d0d;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.contact-grid > div > p:not(.eyebrow) {
    max-width: 520px;
    color: #aaa;
}

.contact-details {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 700;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 15px;
    border: 1px solid #333;
    outline: none;
    background: #151515;
    color: white;
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500 !important;
}

.consent input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.consent span {
    font-size: 11px;
}

.contact-form .btn {
    align-self: flex-start;
}

.form-message {
    min-height: 20px;
    margin: 0 !important;
    color: var(--accent) !important;
    font-size: 12px !important;
}

/* FOOTER */

footer {
    border-top: 1px solid var(--line);
}

.footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    font-size: 11px;
}

/* MOBILE */

@media (max-width: 800px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        background: #0a0a0a;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section {
        padding: 85px 0;
    }

    .cards,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 300px;
    }

    .about-grid {
        gap: 50px;
    }

    .about-photo {
        max-width: 100%;
        height: 520px;
    }

    .contact-grid {
        gap: 55px;
    }

    .footer {
        min-height: 100px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}


/* RACE GALLERY */

.race-section {
    background: #0a0a0a;
    overflow: hidden;
}

.race-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.race-intro p:not(.eyebrow) {
    max-width: 430px;
    margin: 0;
    color: #999;
    font-size: 14px;
}

.race-gallery {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    grid-template-rows: 300px 300px;
    gap: 10px;
}

.race-photo {
    position: relative;
    overflow: hidden;
    background: #151515;
}

.race-photo:first-child {
    grid-row: 1 / 3;
}

.race-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.race-photo:hover img {
    transform: scale(1.03);
}

.race-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.28), transparent 45%);
    pointer-events: none;
}

.race-label {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 17px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.service-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 800px) {
    .race-intro {
        display: block;
    }

    .race-intro p:not(.eyebrow) {
        margin-top: 25px;
    }

    .race-gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 420px 280px 280px;
    }

    .race-photo:first-child {
        grid-row: auto;
    }
}


/* SERVICE CARD IMAGES */

.card-with-image {
    padding: 0 34px 34px;
}

.card-with-image .card-image {
    height: 310px;
    margin: 0 -34px 30px;
    overflow: hidden;
    background: #151515;
}

.card-with-image .card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 62%;
    transition: transform .4s ease;
}

.card-with-image:hover .card-image img {
    transform: scale(1.03);
}

@media (max-width: 800px) {
    .card-with-image .card-image {
        height: 330px;
    }
}


.form-status {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #333;
    font-size: 13px;
    line-height: 1.5;
}

.form-status.success {
    border-color: rgba(200, 255, 0, .55);
    color: #d8ff00;
}

.form-status.error {
    border-color: #663333;
    color: #ffb0b0;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
