/* ========== MegaCarros — base ========== */
:root {
    --navy: #07142E;
    --navy-800: #0A1B36;
    --navy-700: #0E2547;
    --cyan: #00C8F8;
    --cyan-soft: #7FE7FF;
    --blue: #14629E;
    --ink: #0B1220;
    --text: #445067;
    --muted: #5C6A82;
    --line: #E3E9F4;
    --bg: #F5F7FB;
    --white: #FFFFFF;
    --green: #16A34A;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(7, 20, 46, .06);
    --shadow-md: 0 16px 40px -20px rgba(7, 20, 46, .28);
    --shadow-lg: 0 40px 80px -32px rgba(7, 20, 46, .45);
    --nav-h: 72px;
    --max: 1180px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 800;
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cyan);
    color: var(--navy);
    padding: 10px 16px;
    z-index: 2000;
    font-weight: 700;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(7, 20, 46, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
    background: rgba(7, 20, 46, .96);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand-name {
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: rgba(255, 255, 255, .74);
    font-size: .875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.lang a {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .65);
    padding: 5px 9px;
    border-radius: 999px;
    transition: all .2s ease;
}

.lang a:hover {
    color: #fff;
}

.lang a.active {
    background: var(--cyan);
    color: var(--navy);
}

.nav-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-panel {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 24px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.nav-panel.open {
    display: flex;
}

.nav-panel a {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    padding: 12px 8px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-panel .lang {
    margin-top: 16px;
    align-self: flex-start;
}

/* ========== EYEBROW ========== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0B6E93;
    background: rgba(0, 200, 248, .12);
    border: 1px solid rgba(0, 200, 248, .38);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.eyebrow i {
    font-size: .8em;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}

.btn i {
    font-size: 1.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 18px 40px -18px rgba(0, 200, 248, .85);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -18px rgba(0, 200, 248, .95);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: #D7E0F0;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: .85rem;
    border-radius: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .62);
    padding: 64px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.footer-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.footer-about {
    font-size: .88rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h3 {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: .88rem;
    padding: 4px 0;
    color: rgba(255, 255, 255, .6);
    transition: color .2s ease;
}

.footer-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: .82rem;
}

.footer-bottom a:hover {
    color: var(--cyan);
}

/* ========== UTILITIES ========== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navbar .nav-cta {
        display: none;
    }

    .navbar .lang {
        display: none;
    }

    .nav-inner {
        gap: 12px;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
