/* Global Styles */
:root {
    --color-primary: #1a1a1a; /* Darker Black */
    --color-secondary: #8c7b6c; /* Earthy Taupe */
    --color-accent: #c0392b; /* Muted Red */
    --color-background: #fcfbf9; /* Warm White/Paper */
    --color-text: #4a4a4a; /* Dark Grey */
    --color-light-grey: #e5e5e5;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Oswald', sans-serif;

    --spacing-unit: 2rem;
    --transition-speed: 0.4s;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

/* Typography Scale */
h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50px; /* Pill shape */
    font-family: var(--font-accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--color-primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-large:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: white; /* Default to white for hero */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: white; /* Default to white for hero */
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--color-primary);
}

.navbar.scrolled .btn-sm {
    color: white;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.navbar.scrolled .btn-sm:hover {
    color: var(--color-primary);
    background-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1); /* Slight zoom for potential parallax or just effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding-top: 4rem; /* Offset for navbar */
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Rides Section - Zig Zag Layout */
.section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 1rem auto 0;
}

.ride-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
    opacity: 0; /* For animation */
}

.ride-row:last-child {
    margin-bottom: 0;
}

.ride-row:nth-child(even) {
    flex-direction: row-reverse;
}

.ride-image {
    flex: 1;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
}

.ride-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.ride-row:hover .ride-image img {
    transform: scale(1.05);
}

.ride-content {
    flex: 1;
}

.ride-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ride-image-link {
    display: block;
    height: 100%;
    cursor: pointer;
}

.ride-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ride-title-link:hover {
    color: var(--color-accent);
}

.ride-meta {
    color: var(--color-accent);
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ride-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

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

.ride-row.visible {
    opacity: 1;
}

.ride-row.visible .ride-image {
    animation: revealImage 1s ease-out forwards;
}

@keyframes revealImage {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.footer-right a {
    margin-left: 2rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}

.footer-right a:hover {
    color: white;
}

/* Detail Pages Reuse - Simplified to not break existing detail pages completely,
   but ideally they should be refactored too.
   We keep necessary classes for them. */
.hero-small {
    height: 60vh;
}
.hero-small .hero-bg {
    transform: none;
}
.page-content {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.ride-details {
    display: flex;
    justify-content: space-between;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 4rem;
}
.detail-item {
    text-align: center;
}
.detail-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.detail-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}
.logistics-section {
    background: #f9f9f9;
    padding: 5rem 0;
    margin: 4rem 0;
}
.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.logistics-option {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 2px;
    background: white;
    position: relative;
    transition: background 0.2s;
}
.navbar.scrolled .hamburger {
    background: var(--color-primary);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: transform 0.2s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Responsive */
@media (max-width: 900px) {
    .ride-row, .ride-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .ride-image {
        width: 100%;
        height: 300px;
    }

    .ride-meta {
        display: inline-block;
    }

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

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 350px;
        background: white;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--color-primary);
        font-size: 1.25rem;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }
    .nav-toggle.active .hamburger::before {
        background: var(--color-primary);
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active .hamburger::after {
        background: var(--color-primary);
        transform: rotate(-45deg);
        top: 0;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}
/* Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    z-index: 2000;
    transition: top 0.3s;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid white;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    border-bottom-color: white;
}

.breadcrumbs a:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 2px;
}

.breadcrumbs .separator {
    opacity: 0.7;
}
