:root {
    --navy: #073044;
    --sky: #0284c7;
    --sky-deep: #0369a1;
    --sky-soft: #e0f2fe;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f8fb;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(7, 48, 68, 0.12);
    --font: 'Manrope', sans-serif;
    --display: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: #fff;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--display); }
a { text-decoration: none; }
img { max-width: 100%; }

.navbar {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15,23,42,.06);
    padding: 10px 0;
    transition: padding .35s ease, box-shadow .35s ease, background .35s ease;
}
.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(7, 48, 68, .08);
}
.brand-logo { height: 48px; width: auto; }
.navbar .nav-link {
    color: #334155;
    font-weight: 700;
    font-size: .95rem;
    padding: 8px 14px !important;
    border-radius: 999px;
    transition: background .25s ease, color .25s ease;
}
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--sky-deep); background: var(--sky-soft); }
.btn-wa, .btn-sky, .btn-outline-sky {
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-wa {
    background: #16a34a;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 18px;
}
.btn-wa:hover { background: #15803d; color: #fff; transform: translateY(-2px); }
.btn-sky {
    background: linear-gradient(180deg, #0ea5e9, var(--sky-deep));
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    padding: 12px 18px;
}
.btn-sky:hover { color: #fff; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(2, 132, 199, .28); }
.btn-outline-sky {
    border: 1.5px solid #bae6fd;
    color: var(--sky-deep);
    background: #fff;
    border-radius: 12px;
    font-weight: 800;
}
.btn-outline-sky:hover { background: var(--sky-soft); color: var(--sky-deep); transform: translateY(-2px); }

.hero {
    position: relative;
    min-height: 640px;
    padding: 130px 0 120px;
    color: #fff;
    background: #073044;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -6%;
    background: url('/assets/img/hero-road.jpg') center/cover no-repeat;
    animation: heroDrift 22s ease-in-out infinite alternate;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,48,68,.88) 0%, rgba(7,48,68,.55) 48%, rgba(2,132,199,.25) 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
    display: inline-block;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 800;
    color: #7dd3fc;
    margin-bottom: 12px;
}
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    max-width: 640px;
}
.hero h1 span { color: #7dd3fc; }
.hero-lead { max-width: 520px; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.hero-points span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.hero-points i { color: #7dd3fc; }
.hero-badge {
    position: absolute;
    right: 8%;
    top: 160px;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: var(--shadow);
    max-width: 230px;
}
.hero-badge i { color: var(--sky); font-size: 1.3rem; }
.hero-badge strong { display: block; font-size: .95rem; }
.hero-badge small { color: var(--muted); }

.search-card {
    margin-top: -70px;
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
}
.search-card label { font-size: .78rem; font-weight: 800; color: #475569; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.search-card .form-control,
.search-card .form-select { border-radius: 12px; border-color: #e2e8f0; min-height: 46px; }
.search-card .btn-sky { min-height: 46px; width: 100%; }

.section { padding: 64px 0; }
.section-soft { background: var(--bg); }
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.cat-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    font-size: .92rem;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.cat-link.active, .cat-link:hover { background: var(--sky); color: #fff; border-color: var(--sky); transform: translateY(-2px); }

.car-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    display: flex;
    flex-direction: column;
    transition: transform .4s ease, box-shadow .4s ease;
}
.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(7, 48, 68, .12);
}
.car-photo {
    height: 180px;
    background: linear-gradient(160deg, #e0f2fe, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    font-size: 3rem;
    overflow: hidden;
}
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car-card:hover .car-photo img { transform: scale(1.06); }
.car-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.15rem; margin: 0 0 8px; }
.car-meta { display: flex; gap: 12px; color: var(--muted); font-size: .86rem; font-weight: 700; margin-bottom: 14px; }
.car-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.price small { display: block; color: var(--muted); font-size: .75rem; }
.price strong { color: var(--sky-deep); font-size: 1.05rem; }

.page-hero {
    background: linear-gradient(160deg, #073044, #0284c7);
    color: #fff;
    padding: 130px 0 56px;
}
.page-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); }
.detail-photo {
    border-radius: 22px;
    overflow: hidden;
    background: var(--sky-soft);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #7dd3fc;
}
.detail-photo img { width: 100%; height: 420px; object-fit: cover; }
.book-card, .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
    transition: transform .35s ease, box-shadow .35s ease;
}
.panel:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(7, 48, 68, .1); }
.step-no { font-family: var(--display); font-size: 2rem; font-weight: 800; color: #7dd3fc; }

.site-footer { background: #062333; color: rgba(255,255,255,.78); padding: 48px 0 20px; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 12px; }
.site-footer a, .site-footer p { display: block; color: rgba(255,255,255,.75); margin: 0 0 8px; }
.site-footer a:hover { color: #7dd3fc; }
.footer-logo { height: 64px; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 14px; font-size: .88rem; }
.wa-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 20;
    width: 56px; height: 56px; border-radius: 50%;
    background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 10px 24px rgba(22,163,74,.35);
    transition: transform .25s ease;
    animation: waPulse 2.8s ease-out infinite;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #e0f2fe, #fff); padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); animation: rise .6s ease both; }
.empty { color: var(--muted); padding: 28px; text-align: center; }

.hero-kicker, .hero h1, .hero-lead, .hero-points, .hero-badge, .search-card, .page-hero .container {
    animation: rise .75s ease both;
}
.hero h1 { animation-delay: .08s; }
.hero-lead { animation-delay: .16s; }
.hero-points { animation-delay: .24s; }
.hero-badge { animation-delay: .32s; }
.search-card { animation-delay: .28s; }

.reveal { opacity: 0; transform: translateY(18px); animation: none; }
.reveal.show { animation: rise .7s ease var(--d, 0ms) both; }
.reveal.settled { animation: none; opacity: 1; transform: none; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroDrift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes waPulse {
    0% { box-shadow: 0 10px 24px rgba(22,163,74,.35), 0 0 0 0 rgba(22,163,74,.28); }
    70% { box-shadow: 0 10px 24px rgba(22,163,74,.35), 0 0 0 14px rgba(22,163,74,0); }
    100% { box-shadow: 0 10px 24px rgba(22,163,74,.35), 0 0 0 0 rgba(22,163,74,0); }
}

@media (max-width: 991px) {
    .hero { padding-bottom: 90px; }
    .hero::after { background: linear-gradient(180deg, rgba(7, 48, 68, 0.72), rgba(2, 132, 199, 0.45)); }
    .hero-badge { position: static; margin-top: 18px; }
    .search-card { margin-top: -48px; padding-right: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before, .wa-fab, .hero-kicker, .hero h1, .hero-lead, .hero-points, .hero-badge, .search-card, .page-hero .container, .login-card, .reveal {
        animation: none !important;
    }
    .reveal { opacity: 1; transform: none; }
    .car-card, .panel, .btn-sky, .btn-wa, .cat-link { transition: none; }
}
