/* ═══════════════════════════════════════════════════════
   Rydar — Brand-Specific Styles
   Loaded after base-styles.css on Rydar pages.
   Contains all styles unique to Rydar (overrides + additions).
═══════════════════════════════════════════════════════ */

/* ── Typography ──────────────────────────────────────── */

body {
    font-family: 'Barlow', Arial, sans-serif;
}

/* Display / headline elements use Barlow Semi Condensed */
.hero-tagline,
.hero-eyebrow,
.early-access-section h2,
.section-title,
.how-step h3,
.clubs-feature-card h3,
.feature-card h3,
.route-content h3 {
    font-family: 'Barlow Semi Condensed', 'Barlow', Arial, sans-serif;
}

/* Nav, buttons, labels — Barlow with tighter tracking */
.nav-menu > a,
.contact-btn,
.hero-btn-primary,
.hero-btn-secondary,
.how-it-works-label,
.clubs-stat-label,
.route-difficulty,
.highlight-tag {
    font-family: 'Barlow', Arial, sans-serif;
}

/* ── Background ──────────────────────────────────────── */

body {
    background-color: #1a1a1a;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 140, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
}

/* ── Features section — override base overlay (no bg photo) ─ */

.features-section {
    background: #1a1a1a;
}

.features-section::before {
    background: transparent;
}

.feature-card {
    background: #242424;
    border: 1px solid rgba(255, 140, 0, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.feature-card h3 {
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.55);
}

/* ── Section title colours ───────────────────────────── */

.features-section .section-title,
.routes-section .section-title,
.clubs-section .section-title {
    color: rgb(255, 140, 0);
}

/* About page section titles sit on white cards — keep dark. */
.about-section .section-title {
    color: #1a2533;
}

/* ── About Link / Rydar Sidebar ──────────────────────── */

.about-link {
    position: fixed;
    left: 28px;
    bottom: 90px;
    z-index: 10;
}

.about-link a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}

.about-link a:hover {
    color: white;
}

/* RouteOn "Powered By" sidebar block */
.routeon-logo-sidebar {
    margin-top: 14px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.powered-by-sidebar {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.routeon-logo-link-sidebar {
    display: block;
    transition: opacity 0.25s ease;
}

.routeon-logo-link-sidebar:hover {
    opacity: 0.8;
}

.routeon-logo-sidebar-img {
    height: 30px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

/* ── Main Content / Hero ─────────────────────────────── */

.main-content {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    background-image: url('https://images.unsplash.com/photo-1594966345302-2b954c02098f?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.55) 0%,
        rgba(26, 26, 26, 0.35) 40%,
        rgba(26, 26, 26, 0.72) 100%
    );
    z-index: 1;
}

.main-content > * {
    position: relative;
    z-index: 2;
}

.main-content .scroll-indicator {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
}

.hero-logo-img {
    height: 100px;
    width: auto;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.52);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 440px;
    margin: 18px auto 32px;
    letter-spacing: 0;
    font-weight: 400;
    text-transform: none;
    text-shadow: none;
}

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

.hero-btn-primary {
    padding: 13px 32px;
    background: rgb(255, 140, 0);
    border: none;
    border-radius: 2px;
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    font-family: Arial, sans-serif;
}

.hero-btn-primary:hover {
    background: rgb(230, 118, 0);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    padding: 13px 32px;
    background: transparent;
    border: 1px solid rgba(255, 140, 0, 0.5);
    border-radius: 2px;
    color: rgba(255, 140, 0, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    display: inline-block;
}

.hero-btn-secondary:hover {
    border-color: rgb(255, 140, 0);
    color: rgb(255, 140, 0);
    transform: translateY(-2px);
}

/* ── How It Works ────────────────────────────────────── */

.how-it-works {
    background: #222222;
    padding: 40px 50px;
    border-top: 1px solid #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
    position: relative;
    z-index: 1;
}

.how-it-works-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.how-it-works-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 780px;
    margin: 0 auto;
}

.how-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.how-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-step-icon i {
    font-size: 20px;
    color: rgb(255, 140, 0);
}

.how-step h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.how-step p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    line-height: 1.55;
}

.how-step-arrow {
    color: rgba(255, 140, 0, 0.35);
    font-size: 22px;
    padding-top: 14px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 18px;
}

/* ── Routes Section ─────────────────────────────────── */

.routes-section {
    padding: 100px 50px;
    background: linear-gradient(150deg, #0e1117 0%, #1c2a38 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.routes-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.routes-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 26px;
    position: relative;
    z-index: 2;
}

.route-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.25s ease;
}

.routes-section.visible .route-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.routes-section.visible .route-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.routes-section.visible .route-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.routes-section.visible .route-card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
.routes-section.visible .route-card:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.routes-section.visible .route-card:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }

.routes-section.visible .route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.route-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.route-card:hover .route-image img {
    transform: scale(1.07);
}

.route-difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.route-difficulty[data-difficulty="Easy"]   { background: rgba(34, 160, 74, 0.88); }
.route-difficulty[data-difficulty="Medium"] { background: rgba(255, 140, 0, 0.92); }
.route-difficulty[data-difficulty="Hard"]   { background: rgba(210, 50, 50, 0.88); }

.route-content {
    padding: 22px;
}

.route-content h3 {
    color: #1a2533;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.route-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.route-stats span {
    color: #7a8899;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-stats i {
    color: rgb(255, 140, 0);
}

.route-content p {
    color: #5a6a7a;
    font-size: 14px;
    line-height: 1.62;
    margin-bottom: 14px;
}

.route-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 140, 0, 0.07);
    border: 1px solid rgba(255, 140, 0, 0.22);
    border-radius: 12px;
    font-size: 12px;
    color: rgb(210, 105, 0);
    font-weight: 500;
}

.highlight-tag i {
    font-size: 10px;
}

.route-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.route-rating i {
    color: #f0a500;
    font-size: 13px;
}

.route-rating span {
    color: #7a8899;
    font-size: 12px;
    margin-left: 3px;
}

/* ── Clubs Section ───────────────────────────────────── */

.clubs-section {
    padding: 100px 50px;
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.clubs-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.clubs-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.clubs-stat-tile {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    background: #242424;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
}

.clubs-stat-value {
    color: rgb(255, 140, 0);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 8px;
}

.clubs-stat-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.clubs-stat-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    margin-top: -44px;
    margin-bottom: 60px;
    font-style: italic;
}

.clubs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.clubs-feature-card {
    background: #242424;
    border: 1px solid rgba(255, 140, 0, 0.12);
    border-left: 3px solid rgb(255, 140, 0);
    border-radius: 12px;
    padding: 28px 24px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.clubs-section.visible .clubs-feature-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.clubs-section.visible .clubs-feature-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.clubs-section.visible .clubs-feature-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }

.clubs-feature-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clubs-feature-card h3 i {
    color: rgb(255, 140, 0);
    font-size: 15px;
}

.clubs-feature-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.65;
}

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

/* ── Early Access Section ────────────────────────────── */

.early-access-section {
    padding: 100px 50px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #2e2e2e;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.early-access-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.early-access-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 140, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.early-access-section h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.early-access-section .section-description {
    opacity: 1;
    transform: none;
    transition: none;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.early-access-form {
    display: flex;
    gap: 0;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.early-access-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: #ffffff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.25s ease;
}

.early-access-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.early-access-form input[type="email"]:focus {
    border-color: rgba(255, 140, 0, 0.5);
}

.early-access-form button {
    padding: 14px 28px;
    background: rgb(255, 140, 0);
    border: none;
    border-radius: 0 3px 3px 0;
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.early-access-form button:hover {
    background: rgb(230, 118, 0);
}

.early-access-success {
    color: rgb(255, 140, 0);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.early-access-note {
    color: rgba(255, 255, 255, 0.22);
    font-size: 11px;
    position: relative;
    z-index: 1;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
    .about-link { display: none; }

    .routes-section { padding: 72px 22px; }
    .routes-grid    { grid-template-columns: 1fr; gap: 20px; }
    .route-card     { max-width: 480px; margin: 0 auto; width: 100%; }

    .hero-logo-img  { height: 72px; }
    .hero-tagline   { font-size: 0.9rem; letter-spacing: 3px; }

    /* How It Works */
    .how-it-works            { padding: 32px 22px; }
    .how-it-works-steps      { flex-direction: column; align-items: center; gap: 8px; }
    .how-step                { width: 100%; max-width: 320px; padding: 0; }
    .how-step-arrow          { display: none; }

    /* Clubs */
    .clubs-section           { padding: 72px 22px; }
    .clubs-stats             { gap: 14px; }
    .clubs-stat-tile         { min-width: 120px; padding: 20px 14px; }
    .clubs-stat-value        { font-size: 1.6rem; }
    .clubs-features-grid     { grid-template-columns: 1fr; }
    .clubs-stat-note         { margin-top: 8px; margin-bottom: 36px; }

    /* Early Access */
    .early-access-section    { padding: 72px 22px; }
    .early-access-section h2 { font-size: 1.5rem; letter-spacing: 3px; }
    .early-access-form       { flex-direction: column; gap: 10px; }
    .early-access-form input[type="email"] {
        border-right: 1px solid #3a3a3a;
        border-radius: 3px;
    }
    .early-access-form button {
        border-radius: 3px;
    }

    /* Hero actions */
    .hero-actions        { flex-direction: column; align-items: center; gap: 10px; }
    .hero-btn-primary,
    .hero-btn-secondary  { width: 220px; text-align: center; }
    .hero-description    { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .routes-section { padding: 60px 16px; }
    .route-card     { max-width: 360px; }
    .route-image    { height: 160px; }
    .route-content  { padding: 18px; }
    .route-stats    { gap: 10px; }

    .hero-logo-img  { height: 56px; }

    /* How It Works */
    .how-it-works            { padding: 28px 16px; }

    /* Clubs */
    .clubs-section           { padding: 60px 16px; }

    /* Early Access */
    .early-access-section    { padding: 60px 16px; }
}

/* ── Plan a Ride nav link ─────────────────────────────── */

.nav-plan-link {
    border: 1.5px solid rgba(255, 140, 0, 0.45);
    border-radius: 4px;
    padding: 6px 14px !important;
    color: rgba(255, 140, 0, 0.85) !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.nav-plan-link:hover {
    border-color: rgb(255, 140, 0);
    color: rgb(255, 140, 0) !important;
    background: rgba(255, 140, 0, 0.07);
}
