

:root {
    --accent: #b86b2b;
    --accent-light: #d88a45;
    --dark-bg: #050505;
    --card-bg: #111111;
    --text-light: #dddddd;
}

html {
    scroll-behavior: smooth;
}
#upcoming-rides {
    scroll-margin-top: 200px;
}

/* =========================
   RESET
========================= */

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

/* =========================
   BODY
========================= */

body {
    background: var(--dark-bg);
    color: white;

    font-family: 'Oswald', sans-serif;

    overflow-x: hidden;
}

/* =========================
   HEADER
========================= */

header {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 20px 40px;

    z-index: 1000;
}

.logo-area img {
    width: 320px;
}

nav {
    margin-top: 20px;
}

nav a {

    color: white;

    text-decoration: none;

    margin-left: 30px;

    font-size: 1.1rem;

    letter-spacing: 1px;

    transition: .3s;
}

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

/* =========================
   HERO
========================= */

.hero {

    height: 100vh;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,.93),
            rgba(0,0,0,.45)
        ),
        url('images/Road.jpeg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    align-items: center;

    padding: 0 60px;
}

.hero-text {

    max-width: 650px;

    padding-top: 260px;
}


.hero h1 {

    font-size: 8rem;

    line-height: .9;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.hero h1 span {

    color: var(--accent);

    text-shadow:
        0 0 15px rgba(184,107,43,.45);
}

.hero p {

    margin-top: 25px;

    font-size: 1.5rem;

    line-height: 1.5;

    color: var(--text-light);

    max-width: 550px;
}

/* =========================
   BUTTONS
========================= */

.buttons {

    margin-top: 40px;

    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}

.btn-green,
.btn-dark {

    display: inline-block;

    padding: 16px 34px;

    text-decoration: none;

    font-size: 1rem;

    letter-spacing: 1px;

    transition: .3s;
}

.btn-green {

    background: var(--accent);

    color: white;

    border: 2px solid var(--accent);
}

.btn-green:hover {

    background: var(--accent-light);

    border-color: var(--accent-light);
}

.btn-dark {

    border: 2px solid var(--accent);

    color: white;
}

.btn-dark:hover {

    background: var(--accent);

    color: white;
}

/* =========================
   GENERAL SECTIONS
========================= */

section {
    padding: 90px 60px;
}

section h2 {

    font-size: 4rem;

    text-transform: uppercase;

    margin-bottom: 40px;

    letter-spacing: 2px;
}
/* =========================
   Next rte
========================= */
.next-rte {

    position: relative;

    background: transparent;

    border: 2px solid var(--accent);

    border-radius: 16px;

    padding: 40px 30px 30px 30px;

    margin: 60px;
}

.next-rte h2 {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin: -58px auto 25px;

    background: var(--dark-bg);

    color: var(--accent-light);

    padding: 8px 14px;

    font-size: 2rem;
    line-height: 1.15;

    border: 2px solid var(--accent);
    border-radius: 8px;

    text-align: center;
}

#rideDescription {

    display: none;

    margin-top: 25px;

    padding: 20px;

    border-left: 4px solid var(--accent);

    background: rgba(255,255,255,.04);

    line-height: 1.7;
}

/* =========================
   RIDES SECTION
========================= */

.rides {
    background: #090909;
}

.ride-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}

.ride-card {

    position: relative;

    height: 360px;

    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid #222;

    transition: .3s;
}

.ride-card:hover {

    transform: translateY(-8px);

    border-color: var(--accent);
}


.ride-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: .78;
}

.ride-info {

    position: absolute;

    bottom: 0;

    width: 100%;

    padding: 25px;
    
    z-index: 5;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.96),
            rgba(0,0,0,0)
        );
}

.ride-info h3 {

    font-size: 2rem;

    margin-bottom: 10px;
}

.ride-info p {

    color: var(--text-light);

    font-size: 1rem;
}

}


/* =========================
   Newsletter SECTION
========================= */
.routelist-hero .hero-text {

    padding-top: 120px;
}



/* =========================
   FEATURED SECTION
========================= */

.featured {

    background: #e7dfd1;

    color: black;
}

.featured h2 {
    color: black;
}

.featured-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;
}

.feature-card {

    background: black;

    color: white;

    overflow: hidden;

    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;
}

.feature-card-content {
    padding: 25px;
}

.feature-card h3 {

    font-size: 2rem;

    margin-bottom: 15px;
}

.feature-card a {

    display: inline-block;

    margin-top: 20px;

    color: var(--accent);

    text-decoration: none;

    font-weight: bold;
}

/* =========================
   ABOUT SECTION
========================= */

.about {

    background:
        linear-gradient(
            rgba(0,0,0,.8),
            rgba(0,0,0,.8)
        ),
        url('images/groupride.jpg');

    background-size: cover;
    background-position: center;
}

.about-content {

    max-width: 700px;
}

.about p {

    margin-top: 20px;

    line-height: 1.7;

    color: var(--text-light);

    font-size: 1.2rem;
}

/* =========================
   FOOTER
========================= */

footer {

    padding: 40px;

    text-align: center;

    border-top: 1px solid #222;

    color: #888;

    background: black;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    nav {
        margin-top: 25px;
    }

    nav a {
        margin: 0 10px;
        font-size: 1rem;
    }

    .logo-area img {
        width: 240px;
    }

    .hero {
        height: auto;
        padding-top: 240px;
        padding-bottom: 120px;
        background-attachment: scroll;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 30px;
    }

    section h2 {
        font-size: 3rem;
    }

    .buttons a {
        display: block;
        margin-bottom: 15px;
        text-align: center;
    }

}

/* =========================
   RIDES PAGE
========================= */

.rides-page {

    max-width: 1200px;

    margin: auto;

    padding: 60px 30px;
}

.ride-listing {

    display: flex;

    align-items: center;

    gap: 30px;

    background: #111;

    padding: 25px;

    border-radius: 16px;

    margin-bottom: 50px;

    border: 1px solid #222;
}

.ride-thumb {

    width: 220px;

    height: 140px;

    object-fit: cover;

    border-radius: 10px;

    flex-shrink: 0;
}

.ride-listing-content {

    flex: 1;
}

.ride-date {

    display: inline-block;

    background: var(--accent);

    padding: 8px 14px;

    border-radius: 4px;

    margin-bottom: 15px;

    font-size: .9rem;

    letter-spacing: 1px;
}

.ride-listing-content h2 {

    font-size: 2rem;

    margin-bottom: 10px;
}

.ride-location {

    color: var(--accent-light);

    margin-bottom: 15px;
}

.ride-description {

    color: #dddddd;

    line-height: 1.6;

    margin-bottom: 20px;
}

.ride-button {

    display: inline-block;

    padding: 12px 22px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.15);

    color: white;

    text-decoration: none;

    transition: .3s ease;
}

.ride-button:hover {

    background: var(--accent);

    border-color: var(--accent);
}

/* RIDES PAGE MOBILE */

@media (max-width: 900px) {

    .ride-listing {

        flex-direction: column;

        align-items: flex-start;
    }

    .ride-thumb {

        width: 100%;

        height: 220px;
    }

/* =========================
   NEWSLETTER PAGE
========================= */

.newsletter-list {

    max-width: 1000px;

    margin: auto;

    padding: 80px 30px;
}

.newsletter-card {

    background: #111;

    border: 1px solid #222;

    border-radius: 16px;

    padding: 35px;

    margin-bottom: 40px;

    transition: .3s ease;
}

.newsletter-card:hover {

    border-color: var(--accent);

    transform: translateY(-4px);
}

.newsletter-info h2 {

    font-size: 2rem;

    margin-bottom: 15px;
}

.newsletter-info p {

    color: #dddddd;

    line-height: 1.6;

    margin-bottom: 25px;
}
.rides-page .facebook-text {

    font-size: 1.25rem !important;

    line-height: 1.8;

    margin-top: 30px;
}
.facebook-text a {

    color: var(--accent-light);

    text-decoration: none;

    font-weight: bold;
}

.facebook-text a:hover {

    color: white;
}
/* =========================
   IPHONE RTE Fix
========================= */
@media (max-width: 600px) {

    .next-rte {
        margin: 60px 20px 40px;
        padding: 35px 20px 25px;
    }

    .next-rte h2 {
        width: 100%;
        max-width: 100%;
        margin: -55px 0 25px;

        padding: 8px 10px;

        font-size: 1.5rem !important;
        line-height: 1.2;

        text-align: center;
        white-space: normal;
    }

}