/* --- 1. Global Reset & Typography --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light text for high contrast */
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Impact', sans-serif; /* A strong, bold font for headlines */
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: #ff4500; /* A classic moto accent color (Orange-Red) */
    text-decoration: none;
    transition: color 0.3s;
}
 .active {
    color: #ff4500;
    text-decoration: underline;
    font-weight: bold;
 }

a:hover {
    color: #ffffff;
}

/* --- 2. Navigation Styling --- */
header {
    background-color: #0d0d0d;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex; /* Make the nav element a flex container */
    justify-content: space-between; /* Push the logo and the ul list to opposite ends */
    align-items: center; /* Vertically align items */
    max-width: 1400px; /* Optional: Constrain the nav width */
    margin: 0 auto; /* Center the nav if constrained */
}

#site-logo, #logo { /* Target the logo element */
    /* Ensure the logo image or text is prioritized on the left */
    flex-shrink: 0; 
    margin-right: 20px; 
}

nav ul {
    /* ... existing ul styles ... */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul a {
    text-transform: uppercase;
    font-weight: bold;
    color: #e0e0e0;
}

nav ul a:hover {
    color: #ff4500;
}

/*=========================================*/
/* --- LIGHTBOX (Modal Overlay) STYLES --- */
#lightbox {
    /* Fixed position over everything */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Semi-transparent dark background */
    background-color: rgba(0, 0, 0, 0.95); 
    z-index: 2000; /* Ensure it's above all other content */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Indicates the entire area is clickable to close */
    /* Smooth transition for fade-in/out */
    opacity: 1; 
    transition: opacity 0.3s ease;
}

#lightbox.hidden {
    display: none;
}

#lightbox-image {
    /* Ensure the image scales down to fit the screen */
    max-width: 90%;
    max-height: 90%;
    /* Keep aspect ratio */
    height: auto; 
    width: auto;
    /* Basic style to match theme */
    border: 5px solid #2c2c2c;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4); /* Subtle orange glow */
}

/* --- Close Button --- */
#close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
    line-height: 1;
}

#close-btn:hover {
    opacity: 1;
    color: #ff4500;
}

#site-logo {
    height: 70px; /* Adjust as needed */
    width: auto;
}
/*=========================================
    Story page css
*/

/* --- 1. Story Hero Banner --- */
#story-hero {
    height: 40vh; /* Shorter than the landing page hero, but still dramatic */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end; /* Push title to the bottom */
    position: relative;
    padding-top: 20px;
}

#story-hero .hero-overlay {
    /* Use a gradient overlay at the bottom to ensure the white text is readable */
    background-color: transparent; 
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    width: 100%;
    padding: 30px 1% 20px;
}

#story-hero h1 {
    font-size: 2.5em;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 2. Story Content Area --- */
#story-content {
    padding: 50px 0;
}

.story-container {
    max-width: 800px; /* Narrower width for better readability of long text */
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Story Metadata --- */
.story-meta {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
    color: #b0b0b0;
}

.story-meta p {
    margin: 5px 0;
}

.story-meta .date {
    color: #ff4500;
    font-weight: bold;
}

.story-meta .bike-link a {
    color: #e0e0e0;
    text-decoration: underline;
}

.story-meta .bike-link a:hover {
    color: #ff4500;
}

/* --- Article Body --- */
.article-body h2 {
    color: #ff4500;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.article-body p {
    color: #c0c0c0;
    margin-bottom: 20px;
}

.lead-paragraph {
    font-size: 1.1em;
    font-style: italic;
    color: #ffffff;
    padding-bottom: 15px;
}

/* Lists */
.article-body ul {
    color: #c0c0c0;
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-body ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><circle cx="5" cy="5" r="5" fill="%23ff4500"/></svg>') no-repeat left 8px;
    padding-left: 20px;
    margin-bottom: 8px;
}


/* --- Full-Width Photo Styling --- */
.full-width-photo {
    width: 100vw; /* Take full viewport width */
    margin-left: calc(50% - 50vw); /* Center it on the screen regardless of .story-container width */
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.full-width-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.full-width-photo figcaption {
    background-color: #0d0d0d;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

/* --- Adventure Page Callout --- */
.adventure-callout {
    border: 1px solid #333;
    padding: 25px;
    width: 55%;
    text-align: justify;
    margin: auto;
    margin-top: 45px;
    background-color: #2c2c2c;
    border-radius: 5px;
}

/* --- Home Page Callout --- */
.home-page-callout {
    border: 1px solid #333;
    padding: 25px;
    width: 55%;
    text-align: justify;
    margin: auto;
    margin-top: 10px;
    background-color: #2c2c2c;
    border-radius: 5px;
}

.home-page-paragraph {
    font-size: 1.25em;
    font-style: italic;
    color: #ffffff;
}

/* --- Article Callout --- */
.article-callout {
    border: 1px solid #333;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    background-color: #2c2c2c;
    border-radius: 5px;
}

.article-callout h3 {
    margin-top: 0;
    color: #f0f0f0;
}

/* Reusing .button-primary styling, but calling it .button-secondary here for context */
.button-secondary {
    display: inline-block;
    background-color: #444;
    color: #ff4500;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.button-secondary:hover {
    background-color: #555;
    color: #ff4500;
}
/*======================================================
        Simple contact page
*/

/* --- Simple Contact Section Styling --- */
#contact-simple {
    padding: 60px 0;
    text-align: center; /* Center the text and the wrapper */
}

#contact-simple h1 {
    color: #ff4500;
    margin-bottom: 10px;
}

.contact-intro {
    margin-bottom: 40px;
    color: #b0b0b0;
    font-size: 1.1em;
}

.contact-image-wrapper {
    max-width: 800px; /* Adjust this to match the max width of your contact image */
    margin: 0 auto;
    background-color: #2c2c2c; /* Background behind the image */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.contact-photo {
    width: 100%; /* Makes the image fully responsive within its wrapper */
    height: auto;
    display: block;
    border-radius: 3px;
}

.caption {
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}


/*======================================================*/

/* --- 3. Hero Section (Banner) --- */
#hero-banner {
    height: 40vh; /* Takes up most of the viewport height */
    background: url('[Placeholder URL for your Best Bike Image]') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
    padding: 30px 40px;
    border-radius: 5px;
}

#hero-banner h1 {
    font-size: 3.5em;
    margin-bottom: 0.1em;
}

#hero-banner h2 {
    font-size: 1.2em;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
}

/* --- 4. Primary Button (Call to Action) --- */
.button-primary {
    display: inline-block;
    background-color: #ff4500;
    color: #ffffff;
    padding: 15px 30px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.1s;
}

.button-primary:hover {
    background-color: #cc3700;
    transform: translateY(-2px);
    color: #ffffff; /* Override the standard a:hover color */
}

/* --- 5. Bike Previews Section --- */
#bike-previews {
    padding: 60px 5%;
    text-align: center;
}

#bike-previews h2 {
    margin-bottom: 40px;
    color: #ff4500;
}

.preview-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.story-div {
    height: 10em;
}

.card {
    background-color: #2c2c2c;
    border-radius: 5px;
    overflow: hidden;
    width: 450px; /* Set a fixed width for desktop view */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    margin-bottom: 5em;
}

.card:hover {
    transform: translateY(-5px); /* Lift the card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.card h3 {
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.card a {
    display: block;
    padding: 10px 0;
    background-color: #3a3a3a;
    color: #ff4500;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.card p {
    text-align: justify;
    padding-left: 1.5em;
    padding-right: 1.5em;    
}

.card a:hover {
    background-color: #ff4500;
    color: #ffffff;
}

/* --- 6. Footer --- */
footer {
    text-align: center;
    padding: 20px 5%;
    background-color: #0d0d0d;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

/* --- 7. Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    #hero-banner h1 {
        font-size: 2.5em;
    }

    nav ul {
        display: none; /* Hide standard nav on small screens */
    }

    /* Simple menu for mobile can be implemented here */
    header {
        justify-content: center;
    }

    .preview-cards {
        flex-direction: column; /* Stack cards vertically */
        align-items: center;
    }

    .card {
        width: 90%; /* Make cards take up most of the screen width */
        max-width: 400px;
    }
}

/*========================================================*/

/* --- Bike Page Title (Matches Adventure Page Styling) --- */
#bike-hero {
    padding: 80px 0 40px;
    text-align: center;
}

#bike-hero h1 {
    font-size: 3em;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2em;
    color: #ff4500;
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* --- Two-Column Grid Layout --- */
#bike-details {
    padding: 20px 0 60px;
}

.bike-header-grid {
    display: grid;
    /* Two columns: 1.5 parts for image, 1 part for specs */
    grid-template-columns: 1.5fr 1fr; 
    gap: 40px;
    align-items: flex-start; /* Aligns content to the top */
}

/* --- Left Column: Bike Image --- */
.bike-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    margin-top: 15px;
}

/* --- Right Column: Specs List --- */
.bike-specs {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 5px;
    height: auto;
}

.bike-specs h2 {
    color: #ff4500;
    font-size: 1.8em;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3a3a3a;
    margin-bottom: 20px;
}

.spec-list {
    margin-bottom: 0px;
}

.spec-list dt {
    color: #ff4500; /* Label color */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-top: 15px;
}

.spec-list dd {
    margin-left: 0;
    color: #f0f0f0; /* Value color */
    padding-left: 5px;
    border-left: 3px solid #444;
}

.small-button {
    /* Adjustment for the CTA button in the specs box */
    padding: 10px 20px;
    font-size: 0.9em;
}


/* --- Bottom Content Area (Bike History) --- */
#bike-history {
    padding: 30px 0 80px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

#bike-history h2, #bike-history h3 {
    color: #f0f0f0;
    border-left: 4px solid #ff4500;
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Inline Photo Styling */
.inline-photo {
    text-align: center;
    margin: 30px 0;
}

.inline-photo img {
    max-width: 60%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.inline-photo figcaption {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* --- 7. Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    /*
    * CHANGE 1: Adjust the main header padding for better mobile fit.
    */
    header {
        padding: 10px 3%; 
    }

    /*
    * CHANGE 2: Ensure the nav items (logo and menu) can wrap if they run out of space.
    * We set flex-wrap to 'wrap' on the <nav> element.
    */
    nav {
        /*
        * Re-establish the main navigation layout for small screens.
        * We allow wrapping, but still try to push logo and menu apart first.
        */
        flex-wrap: wrap; 
        justify-content: space-between; 
        width: 100%;
    }
 
    /*
    * CHANGE 3: Allow the <ul> to take up full width below the logo if needed,
    * and ensure the links wrap gracefully.
    */
    nav ul {
        display: flex; /* Keep it horizontal */
        flex-wrap: wrap; /* NEW: Allow the links themselves to wrap to the next line */
        justify-content: center; /* Center the links when they wrap */
        width: 100%; /* Take full width below the logo/title */
        margin-top: 10px; /* Add a little space below the logo */
    }
    
    /*
    * CHANGE 4: Reduce the padding/margin on individual menu items to fit more links.
    */
    nav ul li {
        margin: 5px 10px; /* Reduced side margin and added vertical margin */
        flex-shrink: 0; /* Prevents browsers from squishing the links */
    }

    /* DELETE the following block if it existed in your old media query: */
    /*
    nav ul {
        display: none; // THIS WAS THE PROBLEM!
    }
    */
    
    /* The rest of the mobile adjustments from before: */
    #hero-banner h1 {
        font-size: 2.5em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        flex-direction: column; 
        align-items: center;
    }

   .bike-header-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on mobile */
        gap: 30px;
    }

    #bike-hero h1 {
        font-size: 2.5em;
    }
    
    .inline-photo img {
        max-width: 100%; /* Allow inline images to take full width */
    }    
}
