:root {
    --bg: #eff3fb;
    --bg-soft: #e7edf9;
    --surface: #fbfdff;
    --surface-2: #f2f7ff;
    --line: #d2ddee;
    --line-strong: #bdcce6;
    --text: #1a2842;
    --muted: #5f7397;
    --accent: #4b88f3;
    --accent-strong: #2f66d9;
    --accent-soft: #d8e7ff;
    --accent-pale: #eef5ff;
    --accent-gradient: linear-gradient(135deg, #79acff, #4b88f3 55%, #2f66d9);
    --header-bg: linear-gradient(90deg, #0f2a57, #14356f 52%, #1d4a95);
    --header-text: #deebff;
    --header-line: rgba(255, 255, 255, 0.18);
    --shadow: 0 18px 42px rgba(28, 45, 74, 0.1);
    --btn-shadow: 0 4px 10px rgba(47, 102, 217, 0.16);
    --btn-shadow-hover: 0 6px 14px rgba(47, 102, 217, 0.2);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-padding-top: 96px;
}

body {
    font-family: "Barlow", sans-serif;
    color: var(--text);
    background: var(--bg);
    letter-spacing: 0.01em;
}

h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
    letter-spacing: 0.01em;
}

.background-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 8%, rgba(75, 136, 243, 0.16), transparent 34%),
        radial-gradient(circle at 85% 16%, rgba(75, 136, 243, 0.1), transparent 30%),
        linear-gradient(170deg, #f5f8fe, #ecf1fa 46%, #f3f7fd);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2.4vw 10px 1.2vw;
    backdrop-filter: blur(13px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-line);
    box-shadow: 0 7px 22px rgba(11, 29, 60, 0.22);
}

.site-header-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.site-header-overlay .site-nav a {
    color: #f3f8ff;
}

.site-header-overlay .site-nav-toggle {
    border-color: rgba(255, 255, 255, 0.52);
    color: #f3f8ff;
}

.site-header-overlay .site-nav a:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.site-header-overlay .site-nav .nav-admin {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

.site-header-overlay .site-nav .nav-admin:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.62);
}

.site-header-overlay.is-scrolled {
    background: var(--header-bg);
    border-bottom-color: var(--header-line);
    box-shadow: 0 7px 22px rgba(11, 29, 60, 0.22);
    backdrop-filter: blur(13px);
}

.site-header-overlay.is-scrolled .site-nav a {
    color: var(--header-text);
}

.site-header-overlay.is-scrolled .site-nav-toggle {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.site-header-overlay.is-scrolled .site-nav a:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
}

.site-header-overlay.is-scrolled .site-nav .nav-admin {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.site-header-overlay.is-scrolled .site-nav .nav-admin:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.46);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
}

.brand img {
    width: 194px;
    max-width: 48vw;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav-toggle {
    display: none;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(7, 20, 43, 0.2);
    color: #f3f8ff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.site-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.62);
}

.site-nav a {
    color: var(--header-text);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 9px 14px;
    font-size: 0.97rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav a:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
}

.site-nav a,
.cta-primary,
.cta-secondary,
.cta-ghost,
.filter-actions button,
.filter-clear,
.card-link {
    -webkit-tap-highlight-color: transparent;
}

.site-nav .nav-admin {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    box-shadow: none;
}

.site-nav .nav-admin:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow: none;
}

.site-header.is-menu-open {
    background: var(--header-bg);
    border-bottom-color: var(--header-line);
    box-shadow: 0 7px 22px rgba(11, 29, 60, 0.22);
    backdrop-filter: blur(13px);
}

.site-main {
    width: min(1200px, 92vw);
    margin: 30px auto 78px;
    display: grid;
    gap: 20px;
}

.home-main {
    width: 100%;
    margin: 0 0 78px;
    display: block;
}

.home-sections {
    width: min(1200px, 92vw);
    margin: 28px auto 0;
    display: grid;
    gap: 20px;
}

.home-sections > section {
    animation: rise 0.55s ease both;
}

.home-sections > section:nth-child(2) {
    animation-delay: 0.06s;
}

.home-sections > section:nth-child(3) {
    animation-delay: 0.12s;
}

.hero-cover {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: linear-gradient(125deg, #0c1f40, #123261 60%, #1a4b9a);
}

.hero-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-cover-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.hero-cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(5, 16, 37, 0.36) 8%, rgba(8, 21, 45, 0.14) 52%, rgba(8, 21, 45, 0.3) 100%),
        linear-gradient(180deg, rgba(5, 16, 37, 0.02), rgba(5, 16, 37, 0.31) 85%);
}

.hero-cover-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, 92vw);
    margin: 0 auto;
    min-height: 100svh;
    padding: 136px 0 58px;
    display: grid;
    align-items: end;
    grid-template-columns: 1.45fr 0.8fr;
    gap: 20px;
}

.hero-cover-copy h1 {
    margin: 0 0 12px;
    color: #f5f8ff;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.02;
    max-width: 760px;
    text-shadow: 0 10px 26px rgba(3, 9, 20, 0.34);
}

.hero-cover-copy p {
    margin: 0;
    color: rgba(228, 238, 255, 0.9);
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.58;
}

.hero-cover-copy .hero-tag {
    color: #c5dafd;
}

.hero-outline {
    border-color: rgba(228, 238, 255, 0.56);
    background: rgba(7, 20, 43, 0.3);
    color: #f3f8ff;
}

.hero-outline:hover {
    border-color: rgba(233, 243, 255, 0.82);
    background: rgba(7, 20, 43, 0.55);
}

.hero-cover-panel {
    display: grid;
    gap: 12px;
    align-content: end;
}

.hero-cover-panel .hero-stat {
    border: 1px solid rgba(228, 238, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    background: rgba(6, 18, 39, 0.16);
    backdrop-filter: blur(6px);
}

.hero-cover-panel .hero-stat strong {
    display: block;
    color: #f5f8ff;
    font-family: "Sora", sans-serif;
    font-size: 1.92rem;
    line-height: 1;
}

.hero-cover-panel .hero-stat span {
    margin-top: 6px;
    display: block;
    color: rgba(224, 236, 255, 0.88);
    font-size: 1rem;
}

.site-main > section {
    animation: rise 0.55s ease both;
}

.site-main > section:nth-child(2) {
    animation-delay: 0.06s;
}

.site-main > section:nth-child(3) {
    animation-delay: 0.12s;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    border-radius: 26px;
    border: 1px solid var(--line);
    padding: 34px;
    background:
        linear-gradient(140deg, #ffffff, #f1f6ff),
        radial-gradient(circle at 100% 0, rgba(75, 136, 243, 0.22), transparent 40%);
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 1px solid rgba(110, 136, 186, 0.2);
    opacity: 0.5;
}

.hero-tag {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.19em;
    color: var(--accent-strong);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
    font-size: 1.07rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cta-primary,
.cta-secondary,
.cta-ghost {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.94rem;
    transition: 0.2s ease;
}

.cta-primary {
    color: #fff;
    background: var(--accent-gradient);
    border-color: var(--accent);
    box-shadow: var(--btn-shadow);
}

.cta-primary:hover {
    background: var(--accent-gradient);
    border-color: var(--accent-strong);
    box-shadow: var(--btn-shadow-hover);
}

.cta-secondary {
    color: var(--text);
    border-color: var(--line);
    background: #fff;
}

.cta-secondary:hover {
    border-color: var(--line-strong);
    background: #f8fbff;
}

.cta-ghost {
    color: var(--accent-strong);
    border-color: #b9d3ff;
    background: #eef5ff;
}

.cta-ghost:hover {
    background: #dfeeff;
    border-color: #a4c5ff;
}

.hero-panel {
    display: grid;
    gap: 12px;
    align-content: center;
}

.hero-panel .hero-stat {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

.hero-panel .hero-stat strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.9rem;
    line-height: 1;
}

.hero-panel .hero-stat span {
    margin-top: 6px;
    display: block;
    color: var(--muted);
    font-size: 1rem;
}

.filters-wrap,
.about-company,
.featured,
.inventory,
.vehicle-detail {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(155deg, var(--surface), #f6f9ff 80%);
    box-shadow: var(--shadow);
}

.inventory {
    scroll-margin-top: 96px;
}

.brand-carousel-wrap {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    border: 0;
    border-radius: 0;
    padding: 42px min(7vw, 96px) 38px;
    background: linear-gradient(180deg, #1f4178 0%, #234a84 52%, #1d406f 100%);
    box-shadow:
        inset 0 1px 0 rgba(240, 246, 255, 0.12),
        inset 0 -1px 0 rgba(240, 246, 255, 0.08);
}

.brand-carousel-wrap .section-head h2,
.brand-carousel-wrap .section-head p {
    color: #f1f6ff;
}

.brand-carousel-wrap .section-head {
    text-align: center;
}

.brand-carousel-wrap .section-head h2 {
    margin: 0;
    font-family: "Barlow", sans-serif;
    font-size: clamp(2.3rem, 3.5vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.brand-carousel-wrap .section-head p {
    display: none;
}

.brand-carousel-shell {
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.brand-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: rgba(241, 247, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    transition: 0.2s ease;
}

.brand-carousel-arrow:hover:not(:disabled) {
    color: #ffffff;
    transform: scale(1.06);
}

.brand-carousel-arrow:disabled {
    opacity: 0.26;
    cursor: default;
}

.brand-carousel-track {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px;
    align-items: center;
}

.brand-carousel-track::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex: 0 0 138px;
    min-height: 72px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #eef5ff;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    opacity: 0.9;
}

.brand-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.brand-item.is-active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(233, 244, 255, 0.2));
}

.brand-item-logo {
    width: 100%;
    height: 68px;
    border-radius: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.brand-item-logo img {
    width: 124px;
    height: 56px;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.85) contrast(1.08);
    opacity: 0.95;
}

.brand-item-monogram {
    font-family: "Barlow", sans-serif;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: 1.05rem;
    color: #e8f2ff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7fbff;
    padding: 14px;
}

.about-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #24457a;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.empresa-hero,
.empresa-quem-somos,
.empresa-pilares {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg, #ffffff, #f1f6ff 84%);
    box-shadow: var(--shadow);
}

.empresa-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    padding: 26px;
}

.empresa-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #355fa3;
}

.empresa-hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    line-height: 1.08;
}

.empresa-hero-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
    font-size: 1.02rem;
    max-width: 600px;
}

.empresa-hero-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.empresa-hero-media img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    display: block;
}

.empresa-quem-somos {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    padding: 22px;
}

.empresa-media-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.empresa-media-stack figure {
    margin: 0;
}

.empresa-media-stack img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    display: block;
}

.empresa-quem-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.empresa-quem-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.empresa-metrics {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.empresa-metrics article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.empresa-metrics strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.45rem;
}

.empresa-metrics span {
    color: var(--muted);
    font-size: 0.88rem;
}

.empresa-pilares {
    padding: 22px;
}

.empresa-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.empresa-pilar-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

.empresa-pilar-card span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    color: #2e63cc;
    background: #e3eeff;
    border: 1px solid #c7dbff;
}

.empresa-pilar-card h3 {
    margin: 10px 0 8px;
    font-size: 1.08rem;
    color: #223f72;
}

.empresa-pilar-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.96rem;
}

.section-head h2 {
    margin: 0 0 4px;
    font-size: 1.45rem;
}

.section-head p {
    margin: 0 0 14px;
    color: var(--muted);
}

.filters {
    display: grid;
    gap: 12px;
}

.filters-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filters input,
.filters select,
.filter-actions button {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fdfefe;
    color: var(--text);
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.98rem;
}

.filters select {
    appearance: none;
}

.filter-actions button {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
}

.filter-actions button:hover {
    background: var(--accent-gradient);
    border-color: var(--accent-strong);
    box-shadow: var(--btn-shadow-hover);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-clear {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.filter-clear:hover {
    border-color: var(--line-strong);
    background: #f8fbff;
}

.featured h2,
.inventory h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.featured-card,
.vehicle-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fcfdff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover,
.vehicle-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 136, 243, 0.45);
    box-shadow: 0 14px 28px rgba(28, 45, 74, 0.12);
}

.card-preview-gallery {
    position: relative;
    touch-action: pan-y;
}

.featured-card img,
.vehicle-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.featured-card img {
    height: 178px;
}

.vehicle-cover img {
    height: 205px;
    transition: transform 0.45s ease;
}

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

.card-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(11, 26, 50, 0.54);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.card-preview-gallery:hover .card-preview-nav {
    opacity: 1;
}

.card-preview-prev {
    left: 8px;
}

.card-preview-next {
    right: 8px;
}

.card-preview-nav:hover {
    background: rgba(11, 26, 50, 0.78);
}

.card-preview-counter {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(8, 20, 40, 0.6);
    color: #eef5ff;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.featured-card div,
.vehicle-content {
    padding: 14px;
}

.featured-card h3,
.vehicle-card h3 {
    margin: 0 0 6px;
    font-size: 1.13rem;
}

.featured-card p,
.vehicle-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.featured-card strong,
.vehicle-price strong {
    color: var(--accent-strong);
    font-family: "Sora", sans-serif;
}

.card-link {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(130deg, #fdfefe, #eff6ff);
}

.card-link:hover {
    border-color: rgba(75, 136, 243, 0.45);
    color: var(--accent-strong);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.vehicle-topline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.vehicle-meta span,
.vehicle-quick span {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f4f8ff;
    color: #35538c;
    padding: 6px 10px;
    font-size: 0.86rem;
}

.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.detail-features span {
    border-radius: 999px;
    border: 1px solid #bed5fb;
    background: #eaf2ff;
    color: #2c5aa8;
    padding: 5px 9px;
    font-size: 0.82rem;
}

.vehicle-price {
    margin-top: 13px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vehicle-price small {
    color: var(--muted);
    text-decoration: line-through;
}

.vehicle-price strong {
    font-size: 1.3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid transparent;
}

.badge-disponivel {
    color: #245abf;
    border-color: rgba(75, 136, 243, 0.36);
    background: rgba(75, 136, 243, 0.14);
}

.badge-reservado {
    color: #2d66cf;
    border-color: rgba(75, 136, 243, 0.28);
    background: rgba(75, 136, 243, 0.1);
}

.badge-vendido {
    color: #1f4ea8;
    border-color: rgba(75, 136, 243, 0.24);
    background: rgba(75, 136, 243, 0.08);
}

.empty-message {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.vehicle-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    align-items: start;
}

.vehicle-hero-image,
.vehicle-detail-info {
    min-width: 0;
}

.vehicle-main-wrap {
    position: relative;
    border-radius: 14px;
}

.vehicle-main-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
    position: relative;
}

.vehicle-main-image {
    width: 100%;
    display: block;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 340px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    transition: transform 0.25s ease;
}

.vehicle-main-trigger:hover .vehicle-main-image {
    transform: scale(1.014);
}

.vehicle-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.77rem;
    font-weight: 700;
    color: #f2f7ff;
    background: rgba(13, 28, 54, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.9;
}

.vehicle-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(17, 36, 68, 0.52);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
}

.vehicle-gallery-nav:hover {
    background: rgba(17, 36, 68, 0.72);
}

.vehicle-gallery-prev {
    left: 10px;
}

.vehicle-gallery-next {
    right: 10px;
}

.vehicle-gallery-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vehicle-gallery-grid img {
    display: block;
    width: 100%;
    height: 96px;
    min-height: 0;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.vehicle-gallery-thumb {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    min-width: 0;
}

.vehicle-gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(75, 136, 243, 0.2);
}

.vehicle-lightbox[hidden] {
    display: none;
}

.vehicle-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 20px;
    display: grid;
    place-items: center;
}

.vehicle-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    background: rgba(7, 14, 31, 0.78);
    cursor: zoom-out;
}

.vehicle-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, 95vw);
    max-height: 90vh;
    display: grid;
    place-items: center;
}

.vehicle-lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: 84vh;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(236, 244, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: #07152e;
    transform-origin: center center;
    transition: transform 0.18s ease;
    cursor: zoom-in;
    touch-action: none;
    user-select: none;
}

.vehicle-lightbox-image.is-zoomed {
    cursor: grab;
}

.vehicle-lightbox-image.is-dragging {
    cursor: grabbing;
}

.vehicle-lightbox-dialog.is-zoomed .vehicle-lightbox-nav {
    opacity: 0;
    pointer-events: none;
}

.vehicle-lightbox-nav,
.vehicle-lightbox-close {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(8, 20, 42, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.vehicle-lightbox-close {
    top: -14px;
    right: -14px;
    font-size: 1.35rem;
}

.vehicle-lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.vehicle-lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.vehicle-lightbox-nav:hover,
.vehicle-lightbox-close:hover {
    background: rgba(11, 27, 54, 0.9);
}

.vehicle-lightbox-counter {
    margin-top: 10px;
    color: #f2f7ff;
    font-weight: 600;
    font-size: 0.9rem;
}

body.lightbox-open {
    overflow: hidden;
}

.vehicle-detail-info h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.8rem, 2.4vw, 2rem);
    line-height: 1.14;
}

.vehicle-subtitle {
    margin: 0;
    color: var(--muted);
}

.vehicle-quick {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vehicle-price-detail {
    margin-top: 14px;
}

.vehicle-price-detail small {
    display: block;
    color: var(--muted);
    text-decoration: line-through;
}

.vehicle-price-detail strong {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    color: var(--accent-strong);
}

.spec-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spec-grid div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #f4f8ff;
}

.spec-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.spec-grid strong {
    font-family: "Sora", sans-serif;
    font-size: 0.96rem;
}

.vehicle-description-card {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    padding: 14px 16px;
}

.vehicle-description-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: #223a63;
}

.vehicle-description-text {
    color: #334867;
    line-height: 1.58;
    font-size: 1rem;
    white-space: pre-line;
    min-height: 180px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.vehicle-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    width: min(1200px, 92vw);
    margin: 10px auto 38px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #fbfdff, #f1f6ff);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.site-footer h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.site-footer p {
    margin: 4px 0;
    color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(75, 136, 243, 0.35);
    outline-offset: 2px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero-cover-inner {
        grid-template-columns: 1fr;
        padding-top: 122px;
    }

    .hero-cover-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
    }

    .hero,
    .vehicle-detail {
        grid-template-columns: 1fr;
    }

    .vehicle-detail {
        gap: 14px;
    }

    .vehicle-grid,
    .featured-grid,
    .about-grid,
    .empresa-pilares-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .brand-item {
        flex-basis: 124px;
    }

    .empresa-hero,
    .empresa-quem-somos {
        grid-template-columns: 1fr;
    }

    .filters-wrap,
    .about-company,
    .featured,
    .inventory,
    .vehicle-detail,
    .empresa-hero,
    .empresa-quem-somos,
    .empresa-pilares {
        padding: 18px;
    }
}

@media (max-width: 860px) {
    body.site-menu-open {
        overflow: hidden;
    }

    html,
    body {
        scroll-padding-top: 78px;
    }

    .site-header,
    .site-header-overlay {
        padding-top: calc(9px + env(safe-area-inset-top, 0px));
        padding-right: calc(4vw + env(safe-area-inset-right, 0px));
        padding-bottom: 9px;
        padding-left: calc(4vw + env(safe-area-inset-left, 0px));
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .site-header-overlay {
        transition: background-color 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
    }

    .brand img,
    .site-header-overlay .brand img {
        width: 164px;
    }

    .site-nav-toggle {
        display: inline-flex;
        margin-left: auto;
        width: auto;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 4px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(9, 24, 50, 0.74);
        backdrop-filter: blur(8px);
        box-shadow: 0 12px 30px rgba(7, 17, 34, 0.28);
    }

    .site-header.mobile-nav-ready .site-nav {
        display: none;
    }

    .site-header.mobile-nav-ready.is-menu-open .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 46px;
        font-size: 0.95rem;
    }

    .site-nav .nav-admin {
        background: rgba(255, 255, 255, 0.24);
    }

    .site-header-overlay .site-nav a {
        background: rgba(7, 20, 43, 0.48);
        border-color: rgba(255, 255, 255, 0.28);
    }

    .site-header-overlay .site-nav .nav-admin {
        background: rgba(255, 255, 255, 0.18);
    }

    .site-main,
    .home-sections {
        width: 94vw;
    }

    .home-sections {
        margin-top: 18px;
        gap: 14px;
    }

    .hero-cover {
        min-height: 92svh;
    }

    .hero-cover-inner {
        width: 94vw;
        min-height: 92svh;
        padding-top: calc(108px + env(safe-area-inset-top, 0px));
        padding-right: 0;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        padding-left: 0;
        gap: 12px;
    }

    .hero-cover-copy h1 {
        font-size: clamp(1.9rem, 7.2vw, 2.8rem);
        margin-bottom: 10px;
    }

    .hero-cover-copy p {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .hero-actions {
        width: 100%;
        gap: 9px;
        margin-top: 14px;
    }

    .hero-cover-panel .hero-stat {
        padding: 14px;
    }

    .hero-cover-panel .hero-stat strong {
        font-size: 1.72rem;
    }

    .brand-carousel-wrap {
        padding: 32px 14px 26px;
    }

    .brand-carousel-shell {
        margin-top: 18px;
        gap: 10px;
    }

    .brand-carousel-track {
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .brand-item {
        scroll-snap-align: center;
    }

    .featured h2,
    .inventory h2,
    .section-head h2 {
        font-size: clamp(1.34rem, 4.8vw, 1.66rem);
    }

    .featured-card,
    .vehicle-card {
        border-radius: 14px;
    }

    .featured-card div,
    .vehicle-content {
        padding: 12px;
    }

    .vehicle-cover img {
        height: 212px;
    }

    .card-preview-nav {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .vehicle-main-image {
        min-height: 246px;
        max-height: 392px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 700px) {
    .hero-cover-panel {
        grid-template-columns: 1fr;
    }

    .vehicle-grid,
    .featured-grid,
    .about-grid,
    .empresa-pilares-grid,
    .filters-grid,
    .site-footer,
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .brand-carousel-shell {
        grid-template-columns: 1fr;
    }

    .brand-carousel-arrow {
        display: none;
    }

    .brand-item {
        flex-basis: 112px;
        min-height: 68px;
    }

    .brand-item-logo {
        height: 54px;
    }

    .brand-item-logo img {
        width: 118px;
        height: 50px;
        max-height: 46px;
    }

    .empresa-media-stack,
    .empresa-metrics {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions button,
    .filter-clear {
        width: 100%;
        min-height: 48px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-actions a {
        width: 100%;
    }

    .vehicle-description-text {
        min-height: 140px;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .vehicle-gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .vehicle-gallery-thumb {
        flex: 0 0 112px;
        scroll-snap-align: start;
    }

    .vehicle-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .vehicle-lightbox-close {
        top: -8px;
        right: -8px;
    }

    .vehicle-lightbox-nav,
    .vehicle-lightbox-close {
        width: 40px;
        height: 40px;
    }

    .vehicle-lightbox-prev {
        left: 8px;
    }

    .vehicle-lightbox-next {
        right: 8px;
    }

    .vehicle-lightbox-image {
        max-height: 76vh;
        max-width: 96vw;
    }

    .site-footer {
        text-align: center;
        gap: 10px;
    }

    .site-footer h3 {
        font-size: 1.08rem;
    }
}

@media (max-width: 560px) {
    html,
    body {
        scroll-padding-top: 72px;
    }

    .site-header,
    .site-header-overlay {
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        padding-right: calc(4vw + env(safe-area-inset-right, 0px));
        padding-bottom: 8px;
        padding-left: calc(4vw + env(safe-area-inset-left, 0px));
    }

    .brand img,
    .site-header-overlay .brand img {
        width: 148px;
    }

    .site-nav a {
        font-size: 0.9rem;
        min-height: 44px;
        padding: 8px 11px;
    }

    .hero-cover-inner {
        padding-top: 100px;
        padding-bottom: 24px;
    }

    .hero-cover-copy h1 {
        font-size: clamp(1.66rem, 9vw, 2.12rem);
    }

    .hero-cover-copy p {
        font-size: 0.93rem;
    }

    .hero-cover-panel .hero-stat {
        padding: 12px;
    }

    .hero-cover-panel .hero-stat strong {
        font-size: 1.55rem;
    }

    .hero-cover-panel .hero-stat span {
        font-size: 0.93rem;
    }

    .filters-wrap,
    .about-company,
    .featured,
    .inventory,
    .vehicle-detail,
    .empresa-hero,
    .empresa-quem-somos,
    .empresa-pilares,
    .site-footer {
        padding: 14px;
    }

    .brand-carousel-wrap {
        padding: 26px 10px 22px;
    }

    .brand-carousel-track {
        gap: 16px;
    }

    .vehicle-gallery-thumb {
        flex-basis: 102px;
    }

    .brand-item-logo img {
        width: 108px;
        height: 46px;
        max-height: 44px;
    }

    .vehicle-gallery-grid img {
        height: 84px;
    }

    .card-preview-nav {
        width: 34px;
        height: 34px;
    }

    .vehicle-main-image {
        min-height: 220px;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .vehicle-detail-info h1 {
        font-size: 1.5rem;
    }

    .vehicle-price-detail strong {
        font-size: 1.56rem;
    }
}

@media (max-width: 420px) {
    .site-main,
    .home-sections {
        width: 95vw;
    }

    .hero-cover-inner {
        width: 95vw;
    }

    .brand img,
    .site-header-overlay .brand img {
        width: 138px;
    }

    .hero-cover-copy .hero-tag {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .hero-cover-panel .hero-stat strong {
        font-size: 1.42rem;
    }

    .featured-card h3,
    .vehicle-card h3 {
        font-size: 1.02rem;
    }

    .card-link {
        width: 100%;
    }
}
