/*
Theme Name: Reggie's Adventures Theme
Theme URI: https://a30.club
Author: Cidermeister
Author URI: a30.club
Description: A modern and fresh block-based theme for the Austin A30, YBB 457.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-header, custom-logo, editor-style, featured-images, full-site-editing, one-column, accessibility-ready
Text Domain: reggie-adventures
*/

/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */

:root {
    /* Colors inspired by the Austin A30 and its restoration */
    --color-primary-green: #3A5A40;
    /* Deep Spruce Green */
    --color-accent-rust: #A3331C;
    /* Rich Rust/Burnt Orange (for a classic/craftsmanship feel) */
    --color-background-light: #FAFAFA;
    /* Off-White/Cream */
    --color-text-dark: #1A1A1A;
    /* Near Black */
    --color-grey: #6c757d;

    /* Modern Font Definitions: Note: Fonts loaded via functions.php/Google Fonts API */
    --font-heading: 'Playfair Display', serif;
    /* Elegant and classic */
    --font-body: 'Inter', sans-serif;
    /* Clean and readable */

    /* Layout Spacing */
    --space-xl: 120px;
    --space-lg: 80px;
    --space-md: 40px;
    --space-sm: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 900;
}

/* --- 2. HEADER & NAVIGATION --- */

.site-header {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-green);
    text-decoration: none;
}

.site-title img {
    max-width: 20px;
    max-height: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent-rust);
}

/* --- 3. REUSABLE ELEMENTS --- */

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    border-bottom: 3px solid var(--color-accent-rust);
    display: inline-block;
    padding-bottom: var(--space-sm);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary-green);
    color: var(--color-background-light);
    text-decoration: none;
    border: 2px solid var(--color-primary-green);
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-background-light);
    color: var(--color-primary-green);
    transform: translateY(-2px);
    /* Subtle modern lift */
}

/* --- 4. HERO SECTION (Modern & Massive) --- */

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 5.5rem;
    /* Massive Typography */
    margin-bottom: var(--space-sm);
}

.accent-text {
    color: var(--color-accent-rust);
    /* Subtle underline for emphasis on the 'journey' part */
    text-decoration: underline 6px solid var(--color-primary-green);
    text-underline-offset: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-grey);
}

/* --- 5. STORY SECTION (Timeline/Grid) --- */

.story-section {
    padding: var(--space-xl) 0;
    background-color: white;
    /* Contrast with the off-white body */
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    /* Year on the left, Content on the right */
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-left: 3px solid var(--color-primary-green);
    /* The timeline line */
    margin-left: 100px;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent-rust);
    text-align: right;
    position: relative;
    /* Dot on the timeline line */
    transform: translateX(-15px);
}

.timeline-year::before {
    content: '';
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--color-primary-green);
    border-radius: 50%;
    border: 5px solid white;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

/* --- 6. CALL TO ACTION & FOOTER --- */

.cta-section {
    text-align: center;
    padding: var(--space-lg) 0;
    background-color: var(--color-primary-green);
    color: var(--color-background-light);
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.secondary-cta {
    background-color: var(--color-accent-rust);
    border-color: var(--color-accent-rust);
}

.secondary-cta:hover {
    background-color: var(--color-background-light);
    color: var(--color-accent-rust);
}

.site-footer {
    padding: var(--space-sm) 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-grey);
}

/* --- RESPONSIVENESS (Mobile First) --- */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .main-nav ul {
        gap: var(--space-sm);
    }

    .hero-title {
        font-size: 3rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        /* Stack year on top of content */
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }

    .timeline-year {
        text-align: left;
        font-size: 2rem;
        transform: none;
        padding-bottom: 5px;
        border-bottom: 2px dashed var(--color-accent-rust);
    }

    .timeline-year::before {
        display: none;
    }
}