/* ═══════════════════════════════════════════════════════════════
   Peace Avenue Bike Club — Combined Stylesheet
   Source: index.html (primary) + instagram.html + routes.html
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #9DFF20;
    --secondary: #345C00;
    --base: #ffffff;
    --contrast: #000000;
    --tertiary: #F6F6F6;
    --footer-bg: #2c2c2c;
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #181818;
    background: var(--base);
}

/* ─── NAV BAR ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--primary);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-chain {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 0.5rem;
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--contrast);
    letter-spacing: -0.01em;
}

.nav-title {
    transition: color 0.2s;
}

.nav-title a {
    text-decoration: none;
    color: inherit;
}

.nav-title:hover {
    color: #999;
}

.nav-brand a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--contrast);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-links .btn-join {
    background: var(--primary);
    color: var(--contrast) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.nav-links .btn-join:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(157, 255, 32, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--contrast);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.hero.hero-with-sunset {
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(52,92,0,0.35) 100%),
                url('sunset_come_ride_with_us.jpg') center/cover no-repeat;
    min-height: 85vh;
}

/* Routes page hero with overlay */
.hero.routes-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 100%);
}

/* Short hero for routes page */
.hero.routes-short {
    min-height: 30vh;
}

/* Stacked hero content for Instagram - same height as routes-short */
.hero.instagram {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    min-height: 30vh;
}

/* Short hero for Instagram page */
.hero.instagram-short {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    min-height: 30vh;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--contrast);
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.hero .btn-instagram {
    margin: 0 auto 0;
    display: block;
}

.hero.hero-with-sunset {
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(52,92,0,0.35) 100%),
                url('sunset_come_ride_with_us.jpg') center/cover no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(52,92,0,0.35) 100%),
                url('sunset_come_ride_with_us.jpg') center/cover no-repeat;
}

.hero-bg-routes {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(52,92,0,0.35) 100%),
                url('hlb.jpg') center/cover no-repeat;
}

.hero-logo {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin-top: 180px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--base);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--contrast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 255, 32, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--base);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: var(--base);
    color: var(--contrast);
    transform: translateY(-2px);
}

/* ─── INFO STRIP ─── */
.info-strip {
    background: var(--tertiary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.info-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-right: none;
}

.info-item i {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--contrast);
    margin-bottom: 0.25rem;
}

.info-item span {
    font-size: 0.9rem;
    color: #555;
}

/* ─── MAIN CONTENT ─── */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ─── ABOUT GRID ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-grid img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 0;
    filter: grayscale(20%);
}

.about-grid h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-grid p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.75;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--secondary);
    font-size: 0.85rem;
}

/* ─── STATS BAR ─── */
.stats-bar {
    background: var(--secondary);
    color: var(--base);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    padding: 2.5rem 2rem;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* ─── ROUTES ─── */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.routes-cta {
    text-align: center;
    margin-bottom: 4rem;
}

.routes-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.route-card {
    background: var(--tertiary);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.route-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.route-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--contrast);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.route-card-body {
    padding: 1.5rem;
}

.route-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.route-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.route-meta i {
    color: var(--secondary);
    margin-right: 0.25rem;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--contrast);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(157, 255, 32, 0.4);
}

/* ─── TESTIMONIALS ─── */
.testimonials {
    background: var(--tertiary);
    padding: 4rem 2rem;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.testimonial-card {
    background: var(--base);
    padding: 2rem;
    text-align: left;
    border-left: 4px solid var(--primary);
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--contrast);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    color: #777;
    font-size: 0.8rem;
}

/* ─── FAQ ─── */
.faq-section {
    max-width: 750px;
    margin: 4rem auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--secondary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 0 1.25rem;
    color: #555;
    line-height: 1.7;
}

/* ─── CTA BANNER ─── */
.cta-banner {
    background: var(--footer-bg);
    color: var(--base);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-banner h2 span {
    color: var(--primary);
}

.cta-banner p {
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ─── INSTAGRAM PAGE ─── */
.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

/* ─── INSTAGRAM STATS BAR ─── */
.instagram .stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background: #F6F6F6;
    border-bottom: 1px solid #e0e0e0;
}

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

.stat-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #345C00;
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
}

.gallery {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    background: var(--base);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-caption {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.card-likes {
    color: #e44;
}

.card-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
}

/* ─── ROUTES PAGE ─── */
.filters-section {
    background: var(--tertiary);
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    padding: 1.5rem 2rem;
}

.filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #ddd;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--base);
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 999px;
    background: var(--base);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--secondary); }

.filter-btn.active {
    background: var(--secondary);
    color: var(--base);
    border-color: var(--secondary);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: var(--base);
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.routes-page-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.route-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.route-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.route-card:hover .route-thumb img {
    transform: scale(1.05);
}

.route-info {
    padding: 1.25rem;
}

.route-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--contrast);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* ─── FOOTER ─── */
footer {
    background: #1a1a1a;
    color: var(--base);
    padding: 3rem 2rem 1.5rem;
}

.footer-top {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-brand img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.7;
    max-width: 350px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary);
    color: var(--contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.15s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.land-ack {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--base);
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 3px solid var(--primary);
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-logo {
        top: -20%;
        width: 200px;
        height: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .filters-inner { flex-direction: column; }
    .search-box { width: 100%; }

    .routes-page-grid {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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