/* =========================================================
   VENTURA RBLX — MAIN STYLESHEET
   ========================================================= */

:root {
    --blue: #003e5f;
    --blue-dark: #002b42;
    --blue-light: #005477;
    --yellow: #fee200;

    --background: #f4f7f9;
    --surface: #ffffff;
    --surface-2: #eef3f6;

    --text: #12303f;
    --muted: #6c808b;

    --border: #dfe8ed;

    --success: #168447;
    --warning: #a97900;

    --shadow: 0 12px 35px rgba(0, 45, 70, 0.09);
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] {

    --background: #071923;
    --surface: #0d2634;
    --surface-2: #102f40;

    --text: #f2f7fa;
    --muted: #a8bac4;

    --border: #1d3b4a;

    --shadow: 0 12px 35px rgba(0,0,0,0.3);
}


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

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;
}


img {
    max-width: 100%;
}


button,
input,
select {
    font: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1200px, 92%);

    margin: 0 auto;
}


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

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 5px 20px rgba(0,0,0,0.04);
}


.nav {
    min-height: 78px;

    display: flex;

    align-items: center;

    gap: 18px;
}


/* LOGO */

.logo {
    width: 145px;

    height: auto;

    display: block;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-left: 20px;
}


.nav-links a {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 13px;

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    border-radius: 10px;

    transition:
        background .2s ease,
        color .2s ease;
}


.nav-links a:hover {
    background: var(--surface-2);

    color: var(--blue);
}


.nav-links a.active {
    background: rgba(254,226,0,0.22);

    color: var(--blue);
}


/* =========================================================
   CSS NAV ICONS
   ========================================================= */

.nav-icon {
    width: 17px;

    height: 17px;

    display: inline-block;

    position: relative;

    flex-shrink: 0;
}


/* HOME */

.home-icon::before {
    content: "";

    position: absolute;

    width: 10px;
    height: 9px;

    left: 3px;
    top: 7px;

    border: 2px solid currentColor;

    border-top: none;

    border-radius: 2px;
}


.home-icon::after {
    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    left: 3px;
    top: 2px;

    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;

    transform: rotate(45deg);

    border-radius: 2px;
}


/* APPLICATIONS */

.applications-icon {
    border: 2px solid currentColor;

    border-radius: 3px;
}


.applications-icon::before,
.applications-icon::after {
    content: "";

    position: absolute;

    left: 3px;
    right: 3px;

    height: 2px;

    background: currentColor;

    border-radius: 2px;
}


.applications-icon::before {
    top: 4px;
}


.applications-icon::after {
    top: 9px;
}


/* FLEET */

.fleet-icon {
    border: 2px solid currentColor;

    border-radius: 4px;
}


.fleet-icon::before {
    content: "";

    position: absolute;

    width: 4px;
    height: 4px;

    background: currentColor;

    border-radius: 50%;

    left: 2px;
    bottom: -3px;

    box-shadow:
        7px 0 0 currentColor;
}


.fleet-icon::after {
    content: "";

    position: absolute;

    left: 2px;
    right: 2px;

    top: 5px;

    height: 2px;

    background: currentColor;
}


/* DISRUPTIONS */

.disruption-icon::before {
    content: "!";

    position: absolute;

    width: 15px;
    height: 15px;

    border: 2px solid currentColor;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 900;

    line-height: 15px;
}


/* EVENTS */

.events-icon {
    border: 2px solid currentColor;

    border-radius: 3px;

    margin-top: 2px;
}


.events-icon::before {
    content: "";

    position: absolute;

    left: -2px;
    right: -2px;

    top: 3px;

    height: 2px;

    background: currentColor;
}


.events-icon::after {
    content: "";

    position: absolute;

    width: 3px;
    height: 3px;

    background: currentColor;

    left: 3px;
    top: 7px;

    box-shadow:
        6px 0 0 currentColor,
        0 4px 0 currentColor,
        6px 4px 0 currentColor;
}


/* =========================================================
   SPACER
   ========================================================= */

.nav-spacer {
    flex: 1;
}


/* =========================================================
   DISCORD
   ========================================================= */

.discord {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    background: var(--blue);

    color: white;

    text-decoration: none;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;

    transition: .2s ease;
}


.discord:hover {
    background: var(--blue-light);

    transform: translateY(-1px);
}


.discord-icon {
    color: var(--yellow);

    font-size: 9px;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-toggle {
    width: 40px;

    height: 40px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    border-radius: 10px;

    cursor: pointer;

    transition: .2s ease;
}


.theme-toggle:hover {
    background: var(--surface-2);

    transform: translateY(-1px);
}


/* =========================================================
   CLOCK
   ========================================================= */

.clock {
    min-width: 105px;

    text-align: right;
}


.clock-label {
    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
}


.clock-time {
    font-size: 15px;

    font-weight: 800;

    color: var(--blue);
}


html[data-theme="dark"] .clock-time {
    color: var(--yellow);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    border-radius: 10px;

    cursor: pointer;

    font-size: 20px;
}


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

.page-hero {
    padding: 75px 0;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-light)
        );

    color: white;

    position: relative;

    overflow: hidden;
}


.page-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    right: -220px;
    top: -250px;

    border: 1px solid rgba(254,226,0,0.25);

    box-shadow:
        0 0 0 70px rgba(254,226,0,0.04),
        0 0 0 140px rgba(254,226,0,0.025);
}


.page-hero .container {
    position: relative;

    z-index: 2;
}


.page-hero h1 {
    margin: 0 0 10px;

    font-size: clamp(40px, 6vw, 64px);

    line-height: 1;

    letter-spacing: -2px;
}


.page-hero p {
    margin: 0;

    color: rgba(255,255,255,0.8);

    font-size: 17px;
}


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

.section {
    padding: 80px 0;
}


.section-head {
    margin-bottom: 30px;
}


.kicker {
    color: var(--blue);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


html[data-theme="dark"] .kicker {
    color: var(--yellow);
}


.section h2 {
    margin: 6px 0 8px;

    font-size: 34px;

    line-height: 1.2;
}


.section-head p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    gap: 22px;
}


.grid-3 {
    grid-template-columns:
        repeat(3, 1fr);
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 24px;

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(0,40,60,0.13);
}


.card h3 {
    margin: 12px 0 7px;

    font-size: 23px;

    color: var(--text);
}


.card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   BUS IMAGES
   ========================================================= */

.vehicle-photo {
    width: 100%;

    height: 190px;

    overflow: hidden;

    border-radius: 14px;

    margin-bottom: 18px;

    background: var(--surface-2);
}


.vehicle-photo img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .3s ease;
}


.card:hover .vehicle-photo img {
    transform: scale(1.04);
}


/* =========================================================
   OLD VEHICLE VISUAL
   ========================================================= */

.vehicle-visual {
    height: 180px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-light)
        );

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    margin-bottom: 18px;
}


.vehicle-label {
    font-weight: 900;

    letter-spacing: 1px;

    color: var(--yellow);
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;
}


.badge.success {
    background: #d9f5e4;

    color: var(--success);
}


.badge.warning {
    background: #fff1c4;

    color: var(--warning);
}


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

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 17px;

    border: 0;

    border-radius: 10px;

    background: var(--blue);

    color: white;

    font-weight: 800;

    cursor: pointer;

    transition: .2s ease;
}


.btn:hover {
    background: var(--blue-light);

    transform: translateY(-2px);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search {
    width: 100%;

    max-width: 420px;

    padding: 13px 15px;

    margin: 0 8px 20px 0;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--surface);

    color: var(--text);

    outline: none;
}


.search:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(0,62,95,0.1);
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty {
    padding: 30px;

    text-align: center;

    color: var(--muted);
}


/* =========================================================
   MODALS
   ========================================================= */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0,20,30,0.65);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 2000;

    backdrop-filter: blur(5px);
}


.modal.open {
    display: flex;
}


.modal-box {
    width: min(600px, 100%);

    background: var(--surface);

    color: var(--text);

    border-radius: 22px;

    padding: 30px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);
}


.modal-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.modal-top h2 {
    margin: 5px 0 0;
}


.close {
    width: 38px;

    height: 38px;

    border: 0;

    border-radius: 10px;

    background: var(--surface-2);

    color: var(--text);

    cursor: pointer;

    font-size: 25px;
}


.notice {
    margin-top: 20px;

    padding: 15px;

    background: var(--surface-2);

    border-radius: 12px;

    color: var(--muted);
}


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

footer {
    background: var(--blue-dark);

    color: white;

    padding: 45px 0;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 40px;

    align-items: start;
}


footer p {
    color: rgba(255,255,255,0.65);

    margin: 8px 0;
}


.footer-links {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-links a {
    color: rgba(255,255,255,0.75);

    text-decoration: none;

    transition: .2s ease;
}


.footer-links a:hover {
    color: var(--yellow);
}


.copyright {
    color: rgba(255,255,255,0.55);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.reveal {
    animation:
        reveal .6s ease both;
}


@keyframes reveal {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


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

@media (max-width: 950px) {

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 9px 8px;

        font-size: 13px;
    }

    .discord {
        display: none;
    }

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

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

}


@media (max-width: 700px) {

    .nav {
        min-height: 68px;
    }

    .logo {
        width: 120px;
    }

    .nav-links {
        display: none;
    }

    .clock {
        display: none;
    }

    .menu-btn {
        display: block;
    }

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

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

    .page-hero {
        padding: 55px 0;
    }

    .section {
        padding: 60px 0;
    }

}


@media (max-width: 450px) {

    .theme-toggle {
        width: 36px;

        height: 36px;
    }

    .menu-btn {
        width: 36px;

        height: 36px;
    }

}