/* USMVMC Tile-Based Redesign */

/* --- Variables --- */
:root {
    --primary-color: #cc0000; /* Red */
    --secondary-color: #000000; /* Black */
    --text-color: #ffffff; /* White */
    --background-color: #121212; /* Dark Gray */
    --tile-background: #1E1E1E; /* Slightly Lighter Gray for tiles */
    --border-color: #333333;
}

/* --- Global Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

header .logo img {
    height: 50px;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Always show on mobile */
}

/* --- Primary Navigation (Mobile) --- */
.primary-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    z-index: 999;
}

.primary-navigation.active {
    transform: translateX(0); /* Slide in */
}

.primary-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.primary-navigation li {
    margin-bottom: 1.5rem;
}

.primary-navigation a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.primary-navigation a:hover {
    color: var(--primary-color);
}

/* --- Main Content & Tiles --- */
main {
    padding: 1rem;
    max-width: 1200px; /* Max width for main content */
    margin: 0 auto; /* Center the content */
}

.tile {
    background-color: var(--tile-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.tile-content {
    padding: 1.5rem;
}

/* Hero Tile */
.hero-tile {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/solobiker.png');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

.hero-tile h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-tile p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #ff3333;
}

/* Navigation Tiles */
.nav-tile {
    text-align: center;
    cursor: pointer;
}

.nav-tile h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Add icons to navigation tiles (requires Font Awesome or similar) */
.nav-tile.about-icon::before {
    content: '\f05a'; /* Font Awesome info-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.nav-tile.mission-icon::before {
    content: '\f02d'; /* Font Awesome book icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.nav-tile.contact-icon::before {
    content: '\f0e0'; /* Font Awesome envelope icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Content Tiles Refinement */
.content-tile .tile-content {
    padding: 1.5rem;
}

.content-tile h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.content-tile p {
    font-size: 1rem;
    color: #ccc;
}

.content-image {
    width: 100%;
    height: 200px; /* Fixed height for content images */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.mission-objective {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.mission-objective h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: 700;
    color: var(--text-color);
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form button[type="submit"]:hover {
    background-color: #ff3333;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin-top: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Desktop Styles (min-width: 768px) --- */
@media (min-width: 768px) {
    header,
    footer {
        max-width: 1200px; /* Apply max-width to header and footer */
        margin: 0 auto; /* Center header and footer */
    }

    header {
        padding: 1rem 2rem;
    }

    header .mobile-nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .primary-navigation {
        position: static;
        transform: translateX(0); /* Ensure visible */
        background-color: transparent;
        height: auto;
        width: auto;
    }

    .primary-navigation ul {
        display: flex;
        gap: 1.5rem;
    }

    .primary-navigation li {
        margin-bottom: 0;
    }

    .primary-navigation a {
        font-size: 1rem;
    }

    main {
        padding: 2rem;
    }

    .tile-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .hero-tile h1 {
        font-size: 4rem; /* Larger on desktop */
    }

    .hero-tile p {
        font-size: 1.5rem;
    }

    .nav-tile h2 {
        font-size: 1.5rem;
    }

    .nav-tile.about-icon::before,
    .nav-tile.mission-icon::before,
    .nav-tile.contact-icon::before {
        font-size: 3rem;
    }

    .content-tile h2 {
        font-size: 2.5rem;
    }

    .content-image {
        height: 250px;
    }

    .mission-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
