/* 12 Hours of Lawrence Woods - Core Design System */

:root {
    /* Colors */
    --bg-dark: #0a0f0a;
    --bg-darker: #050805;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-sepia: #1a1612;

    --text-main: #e0e7e0;
    --text-muted: #a0ada0;
    --text-accent: #d4af37;
    /* Muted Gold */
    --text-highlight: #4caf50;
    /* Forest Green */

    --border-glass: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Libre Baskerville', serif;
    --font-header: 'Oswald', sans-serif;
    --font-display: 'Oswald', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --section-padding: 100px 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Account for sticky header */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.vintage {
    font-family: var(--font-header);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: var(--section-padding);
}

.dark-bg {
    background-color: var(--bg-darker);
}

.sepia-bg {
    background-color: var(--bg-sepia);
}

.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.accent {
    color: var(--text-accent);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s;
}

header.scrolled {
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-glass);
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:hover {
    color: var(--text-accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-accent);
    transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    /* Full screen hero */
    min-height: 800px;
    /* More room for desktop content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 10, 0.7), rgba(10, 15, 10, 0.95));
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-details {
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

.separator {
    margin: 0 15px;
    color: var(--text-accent);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    font-family: var(--font-header);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--text-accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e5c158;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
}

.btn-outline:hover {
    background: var(--text-accent);
    color: var(--bg-dark);
}

/* Section Components */
h2.vintage {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.course-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.course-actions .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--text-accent);
    transform: scale(1.05);
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-family: var(--font-header);
    color: var(--text-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Course Section */
.trail-features {
    margin: 30px 0;
}

.trail-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.trail-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

/* Course Visuals Refinement */
.course-content {
    align-items: flex-start;
    margin-top: 50px;
}

.course-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.course-visuals {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visual-card.map-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visual-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.visual-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.elevation-svg {
    opacity: 0.8;
}

.visual-card:hover .elevation-svg {
    opacity: 1;
}

.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--text-accent);
    color: var(--bg-dark);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom-left-radius: 8px;
    z-index: 2;
}

.map-card img {
    filter: brightness(0.8) contrast(1.2);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}





/* Gallery Section */
.gallery-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 50px;
}

.gallery-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    padding: 10px 0;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.gallery-item {
    flex: 0 0 calc(33.333% - 14px);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    scroll-snap-align: center;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 10, 0.8);
    color: var(--text-accent);
    border: 1px solid var(--text-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--text-accent);
    color: var(--bg-dark);
}

.carousel-btn.disabled {
    opacity: 0.2;
    pointer-events: none;
    filter: grayscale(1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .gallery-item {
        flex: 0 0 85%;
    }

    .gallery-wrapper {
        padding: 0 35px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Use native touch scroll on mobile */
}


/* Logistics */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.logistics-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-glass);
}

.logistics-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.logistics-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* History Section */
.mascot-img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid var(--text-accent);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.history-text {
    padding-left: 40px;
}

.crew-credit {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.inaugural-credits {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--text-accent);
    font-size: 0.85rem;
}

.inaugural-credits p {
    margin-bottom: 5px;
}

.inaugural-credits strong {
    color: var(--text-accent);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
    display: inline-block;
}

.schedule-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    align-items: center;
}

.schedule-list strong {
    color: var(--text-accent);
    text-align: right;
    display: block;
}

.tiny-credit {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .logistics-card {
        padding: 25px 15px;
    }

    /* gallery grid is flex now */
    h2.vintage {
        font-size: 2.5rem;
    }

    .history-text {
        padding-left: 0;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        /* Minimalist narrow profile */
        height: 100vh;
        background: rgba(5, 8, 5, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 60px 30px;
        /* Reduced top padding */
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        border-left: 2px solid var(--accent-gold);
        /* Signature accent */
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 10px 0;
        /* Tighter margins */
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        /* Slightly smaller for density */
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 8px;
    }
}


/* Desktop Fixes */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}


@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        width: 260px;
    }

    /* Slightly narrower on very small screens */
}

.volunteer-cta {
    margin-top: 60px;
    padding: 30px;
    border-top: 1px solid var(--border-glass);
    font-size: 1.2rem;
    color: var(--text-accent);
}

.volunteer-cta p {
    font-style: italic;
    font-weight: 300;
}