
/* =================================
   APEX RACING - SHARED STYLESHEET
   ================================= */

:root {
    --red: #e10600;
    --red-dark: #b80500;
    --dark: #101014;
    --black: #080808;
    --panel: #1b1b22;
    --white: #f5f5f5;
    --muted: #b7b7c0;
    --border: #33333b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* NAVIGATION */

header {
    background: var(--black);
    border-bottom: 2px solid var(--red);
}

.navbar {
    max-width: 1150px;
    margin: auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 23px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--red);
    margin-left: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

/* HOME HERO */

.hero {
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 70px max(7%, 24px);

    background:
        linear-gradient(
            90deg,
            rgba(16, 16, 20, 0.96) 5%,
            rgba(16, 16, 20, 0.78) 45%,
            rgba(16, 16, 20, 0.22) 100%
        ),
        url("images/f1-hero.jpg") center 55% / cover no-repeat;

    border-bottom: 2px solid var(--red);
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    color: var(--red);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

h1 span {
    color: var(--red);
}

.hero-content > p:not(.eyebrow),
.intro {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}

/* BUTTONS */

.btn {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid var(--red);
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* HOME FEATURES */

.features {
    max-width: 1150px;
    margin: auto;
    padding: 65px 24px;
}

.features > h2,
.about-section h2,
.contact-card h2 {
    font-size: 23px;
    margin-bottom: 24px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    background: var(--panel);
    border-bottom: 3px solid var(--red);
    padding: 18px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    margin-bottom: 18px;
}

.number {
    color: var(--red);
    font-size: 30px;
    font-weight: 900;
}

.card h3 {
    margin: 12px 0;
}

.card p {
    color: var(--muted);
}

/* CALL TO ACTION */

.cta {
    text-align: center;
    padding: 60px 24px;
    background: #18181e;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta h2 {
    font-size: clamp(30px, 5vw, 46px);
    margin-bottom: 25px;
}

/* ABOUT AND CONTACT PAGES */

.page-content {
    max-width: 900px;
    min-height: 75vh;
    margin: auto;
    padding: 65px 24px;
}

.page-content h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.about-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 25px 0;
    border-radius: 5px;
    border-bottom: 3px solid var(--red);
}

.about-section,
.contact-card {
    background: var(--panel);
    padding: 28px;
    margin: 25px 0;
    border-left: 3px solid var(--red);
}

.about-section p {
    color: var(--muted);
}

.about-section p + p {
    margin-top: 15px;
}

.highlight {
    background: #17171d;
}

/* F1 LIST */

.f1-list {
    list-style: none;
}

.f1-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.f1-list li::before {
    content: "▸ ";
    color: var(--red);
    font-weight: bold;
}

/* CONTACT */

.contact-card p {
    margin: 12px 0;
}

.contact-card a {
    color: #ff514b;
    overflow-wrap: anywhere;
}

.note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 20px !important;
}

/* FOOTER */

footer {
    background: var(--black);
    color: var(--muted);
    text-align: center;
    padding: 22px;
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        padding: 18px;
    }

    .nav-links {
        justify-content: center;
        gap: 20px;
    }

    .hero {
        min-height: 430px;
        padding: 55px 24px;
        background-position: 60% center;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 220px;
    }

    .page-content {
        padding: 45px 20px;
    }

    .about-section,
    .contact-card {
        padding: 22px;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 13px;
    }
}
