/* ═══════════════════════════════════════════════════════
   RouteOn Technologies — Shared Base Stylesheet
   Loaded by all RouteOn & Rydar pages.
   Rydar pages also load rydar/styles.css for overrides.
   RouteOn pages also load routeon-styles.css for overrides.
═══════════════════════════════════════════════════════ */

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

body {
    font-family: 'Arial', sans-serif;
    position: relative;
    color: #1a2533;
}

/* ── Header ─────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 50px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
    transition: background 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}

.header.scrolled {
    background: rgba(6, 7, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 50px;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: height 0.35s ease;
    display: block;
}

.header.scrolled .logo-img {
    height: 38px;
}

/* ── Navigation ──────────────────────────────────────── */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu > a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: opacity 0.25s ease;
}

.nav-menu > a:hover {
    opacity: 0.72;
}

/* ── CTA Button ─────────────────────────────────────── */

.contact-btn {
    background: rgb(255, 140, 0);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.contact-btn:hover {
    background: rgb(230, 118, 0);
    transform: translateY(-1px);
}

/* ── Hamburger Button ────────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Social Icons (vertical sidebar) ────────────────── */

.social-icons {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 10;
}

.social-icons a {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.25s ease;
}

.social-icons a:hover {
    color: rgb(255, 140, 0);
}


/* ── Bottom Elements / Scroll-to-Top ─────────────────── */

.bottom-elements {
    position: fixed;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.scroll-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: all;
}

.scroll-to-top.visible {
    opacity: 0.55;
    visibility: visible;
}

.scroll-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.scroll-to-top i {
    font-size: 13px;
}

/* ── Scroll Indicator ────────────────────────────────── */

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    animation: bounce 2.5s ease infinite;
}

.scroll-indicator i {
    font-size: 13px;
}

.scroll-indicator:hover {
    opacity: 0.75;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ── Container ───────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ── Section Titles & Subtitles ──────────────────────── */

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 400;
    color: #1a2533;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
}

.section-subtitle,
.section-description {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 50px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease-out 0.3s, transform 0.7s ease-out 0.3s;
}

/* Animate titles when parent section becomes visible */
section.visible .section-title,
.about-section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

section.visible .section-subtitle,
section.visible .section-description,
.about-section.visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ── Features Section ────────────────────────────────── */

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

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(255, 140, 0, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.25s ease;
}

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

.features-section.visible .feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 140, 0, 0.08);
    border: 1.5px solid rgba(255, 140, 0, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 26px;
    color: rgb(255, 140, 0);
}

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

.feature-card p {
    color: #5a6a7a;
    font-size: 15px;
    line-height: 1.65;
}


/* ── About Page ──────────────────────────────────────── */

.about-main {
    padding: 110px 50px 80px;
    min-height: 100vh;
    background: linear-gradient(155deg, #0e1117 0%, #1c2a38 100%);
    position: relative;
}

.about-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.about-section {
    margin-bottom: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.about-text {
    color: #4a5a6a;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.section-image {
    margin-top: 24px;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.terms-content h3,
.privacy-content h3 {
    color: #1a2533;
    font-size: 16px;
    font-weight: 600;
    margin: 22px 0 9px;
}

.terms-content p,
.privacy-content p {
    color: #4a5a6a;
    font-size: 15px;
    line-height: 1.72;
    margin-bottom: 12px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.company-item {
    background: rgba(255, 140, 0, 0.04);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 140, 0, 0.18);
}

.company-item h3 {
    color: rgb(210, 100, 0);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.company-item p {
    color: #4a5a6a;
    font-size: 15px;
    line-height: 1.65;
}

.contact-info {
    background: rgba(255, 140, 0, 0.04);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 140, 0, 0.18);
    margin-top: 22px;
}

.contact-info h3 {
    color: rgb(210, 100, 0);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.contact-info p {
    color: #4a5a6a;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 8px;
}

.contact-info a {
    color: rgb(210, 100, 0);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
    background: #06070a;
    border-top: 1px solid rgba(255, 140, 0, 0.18);
    padding: 64px 50px 30px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 44px;
    display: flex;
    gap: 60px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 0 0 auto;
    max-width: 260px;
}

.footer-logo {
    height: 34px;
    width: auto;
}

.footer-brand p {
    color: #777;
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.65;
}

.footer-powered {
    margin-top: 8px !important;
    font-size: 12px !important;
}

.footer-powered a {
    color: rgb(255, 140, 0);
    text-decoration: none;
}

.footer-powered a:hover {
    text-decoration: underline;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 110px;
}

.footer-col h4 {
    color: rgba(255,255,255,0.82);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 6px;
}

.footer-col a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.22s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: rgb(255, 140, 0);
}

.badge-soon {
    font-size: 10px;
    color: #444;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.3px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 22px;
    text-align: center;
    color: #444;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Header */
    .header        { padding: 16px 22px; }
    .header.scrolled { padding: 12px 22px; }
    .logo-img      { height: 40px; }
    .header.scrolled .logo-img { height: 34px; }

    /* Hamburger */
    .hamburger { display: flex; }

    /* Mobile nav overlay */
    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(4, 5, 8, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        overflow-y: auto;
        padding: 80px 40px 60px;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu > a {
        font-size: 22px;
        font-weight: 300;
        letter-spacing: 1px;
    }

    .contact-btn {
        font-size: 16px;
        padding: 13px 36px;
        margin-top: 8px;
    }

    /* Hide sidebar elements on mobile */
    .social-icons { display: none; }

    /* Sections */
    .features-section { padding: 72px 22px; }

    .about-main { padding: 88px 22px 60px; }
    .about-section { padding: 28px 24px; }

    .features-grid { grid-template-columns: 1fr; gap: 18px; }

    .feature-card { padding: 28px 20px; }

    /* Footer */
    .site-footer      { padding: 44px 22px 22px; }
    .footer-container { flex-direction: column; gap: 28px; }
    .footer-links     { gap: 28px; }
    .footer-brand     { max-width: 100%; }
}

@media (max-width: 480px) {

    .header         { padding: 13px 16px; }
    .header.scrolled { padding: 10px 16px; }
    .logo-img       { height: 34px; }
    .header.scrolled .logo-img { height: 30px; }

    .about-main     { padding: 76px 16px 48px; }
    .about-section  { padding: 22px 18px; }

    .features-section { padding: 60px 16px; }

    .site-footer    { padding: 32px 16px 16px; }
    .footer-links   { gap: 20px; }
}
