/* For screen reader users */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ------------------- */
/* Header & Logo       */
/* ------------------- */
.site-header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #343434;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    color: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ------------------- */
/* Mobile Menu Styles  */
/* ------------------- */

/* Hamburger Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 2rem;
    height: 0.25rem;
    background: var(--secondary-color);
    border-radius: 10px;
}

.main-nav {
    margin-top: 20px;
}

/* Navigation Links List (Hidden by default on mobile) */
.nav-links {
    list-style: none;
    padding: 2rem;
    margin: 0;
    
    /* Hiding the menu */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--primary-color);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    
    transform: translateX(100%);
}

/* The class that gets toggled by JS to show the menu */
.nav-links.open {
    transform: translateX(0);
}

.nav-links a {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--cta-color);
    text-decoration: underline;
}

.cta-button {
    background-color: var(--cta-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* ------------------------------ */
/* Desktop Styles (Media Query) */
/* ------------------------------ */
@media (min-width: 768px) {
    /* Hide the hamburger button on desktop */
    .menu-toggle {
        display: none;
    }

    /* Re-style the navigation for desktop */
    .nav-links {
        /* Undo all the mobile positioning */
        position: static;
        transform: none;
        height: auto;
        width: auto;
        background-color: transparent;

        /* Display links horizontally */
        flex-direction: row;
        gap: 2rem;
        padding: 0;
    }

    .nav-links a {
        font-size: 1rem; /* Reset font size */
        font-weight: normal;
    }
}