/* ============================================================
   UNIVERSAL HISTORICRACING HEADER
   White logo, black nav text
   Spacing and borders NEVER change
   Only background colour changes per page
   ============================================================ */

.site-header {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #000;
}

/* Inner container */
.header-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO — bold + fine sans serif, perfectly aligned */
.logo a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.01em;
    line-height: 1;              /* ensures equal height */
    display: flex;               /* allows precise alignment */
    align-items: baseline;       /* aligns both spans */
}

/* BOLDER "Historic" */
.hr-bold {
    font-weight: 900;            /* strong, authoritative */
    line-height: 1;              /* exact match */
}

/* Fine "Racing.com" with micro baseline correction */
.hr-light {
    font-weight: 200;
    margin-left: 2px;            /* reduced gap */
    line-height: 1;              /* exact match */
    position: relative;
    top: 0.5px;                  /* micro baseline shift */
}




/* NAVIGATION — always black */
.main-nav a {
    color: #000;
    text-decoration: none;
    margin-left: 25px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-nav a:hover {
    color: #333;
}

/* ============================================================
   HAMBURGER ICON (CSS-drawn, bright red)
   ============================================================ */

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    cursor: pointer;
    margin-left: 20px;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: #ff0000; /* BRIGHT RED */
    margin: 4px 0;
    border-radius: 2px;
}

/* ============================================================
   RESPONSIVE NAVIGATION
   ============================================================ */

@media (max-width: 900px) {

    /* STACK layout on mobile */
    .header-inner {
        flex-direction: column;   /* ? was row */
        align-items: flex-start;  /* ? ensures left alignment */
    }

    .menu-toggle {
        display: block;
        margin-top: 10px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav a {
        margin: 10px 0;
        font-size: 18px;
    }

    .main-nav.open {
        display: flex;
    }
}
