/* Home premium - 3M Veículos */

:root {
    --home-gold: #e6bd2f;
    --home-gold-soft: #ffe082;
    --home-blue: #2f68f1;
    --home-green: #18a84f;
    --home-ink: #202124;
    --home-graphite: #242527;
    --home-charcoal: #303235;
    --home-silver: #bfc1c4;
    --home-card: rgba(36, 37, 39, 0.84);
    --home-title-section: clamp(30px, 3.4vw, 46px);
    --home-title-card: clamp(19px, 1.6vw, 22px);
    --home-text: clamp(16px, 1.15vw, 18px);
}

html {
    background: var(--home-graphite);
}

body {
    padding-top: 0;
    background: var(--home-graphite);
}

.topo {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(230, 189, 47, 0.22);
    background: rgba(31, 32, 34, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 96px;
}

.menu-mobile-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px 0 44px;
    border: 1px solid rgba(230, 189, 47, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--home-gold-soft);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.menu-mobile-toggle span {
    position: absolute;
    left: 16px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-mobile-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-mobile-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.logo {
    gap: 14px;
}

.logo img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.logo span {
    font-size: 30px;
    letter-spacing: -0.06em;
}

.logo small {
    margin-top: 2px;
    color: var(--home-gold);
    letter-spacing: 0.28em;
}

.nav nav {
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.nav nav a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 17px;
    color: rgba(255, 255, 255, 0.88);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav nav a:hover,
.nav nav a:first-child {
    background: rgba(230, 189, 47, 0.14);
    color: var(--home-gold-soft);
    transform: translateY(-1px);
}

.nav nav a:last-child {
    border: 1px solid rgba(230, 189, 47, 0.5);
    color: var(--home-gold);
}

.menu-mobile-aberto {
    overflow: hidden;
}

.nav .menu-toggle {
    display: none !important;
}

.hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 82% 20%, rgba(230, 189, 47, 0.2), transparent 28%),
        radial-gradient(circle at 12% 82%, rgba(191, 193, 196, 0.16), transparent 32%),
        linear-gradient(120deg, rgba(29, 30, 32, 0.97) 0%, rgba(47, 49, 52, 0.94) 52%, rgba(64, 66, 68, 0.92) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    opacity: 0.35;
}

.hero-modern {
    min-height: calc(100svh - 96px);
    display: grid;
    align-items: center;
    padding: clamp(34px, 5vh, 64px) 0;
    overflow: clip;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
}

.hero-text {
    max-width: 860px;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--home-gold), #f5d34d);
    color: #081225;
    box-shadow: 0 18px 45px rgba(230, 189, 47, 0.25);
    letter-spacing: 0.01em;
}

.hero-text .badge::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #081225;
    box-shadow: 0 0 0 5px rgba(8, 18, 37, 0.12);
}

.hero-text h1 {
    max-width: 720px;
    margin-top: 0;
    color: #fff;
    font-size: clamp(42px, 4.3vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-text p {
    max-width: 660px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 1.25vw, 22px);
    line-height: 1.52;
}

.hero-buttons {
    margin-top: clamp(20px, 2.8vh, 30px);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary,
.hero-buttons .btn-outline {
    min-height: 58px;
    padding-inline: 24px;
    border-radius: 14px;
    font-size: 18px;
}

.hero-servicos {
    margin-top: clamp(20px, 3vh, 32px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-servicos article,
.hero-servicos > div {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(11, 20, 38, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.hero-servicos small {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(230, 189, 47, 0.14);
    color: var(--home-gold-soft);
    font-weight: 900;
}

.hero-servicos strong {
    display: block;
    color: var(--home-gold);
    font-size: 15px;
    line-height: 1.25;
}

.hero-servicos span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

.hero-showcase {
    width: min(100%, 540px);
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(255, 255, 255, 0.035);
    overflow: hidden;
    transform: translateY(2px);
}

.showcase-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #202124, #3a3b3e);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.showcase-topline span {
    color: var(--home-gold);
    font-weight: 900;
}

.showcase-topline strong {
    color: rgba(255, 255, 255, 0.84);
}

.showcase-img {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    display: block;
    background: #dfe5ec;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.showcase-img-placeholder {
    background:
        linear-gradient(110deg, #dde3ea 8%, #f5f7fa 18%, #dde3ea 33%);
    background-size: 200% 100%;
    animation: showcasePulse 1.15s linear infinite;
}

.hero-showcase-loading .showcase-card h3,
.hero-showcase-loading .showcase-card p,
.hero-showcase-loading .showcase-price strong {
    color: #667085;
}

@keyframes showcasePulse {
    to {
        background-position-x: -200%;
    }
}

.hero-showcase .showcase-card {
    padding: 18px 22px 18px;
    color: var(--home-ink);
    min-height: 224px;
    display: flex;
    flex-direction: column;
}

.showcase-card .showcase-badge {
    display: inline-flex;
    width: auto;
    margin: 0 0 10px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #e7194b;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.showcase-card h3 {
    margin: 0 0 8px;
    color: var(--home-ink);
    font-size: clamp(24px, 1.8vw, 30px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    min-height: 62px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showcase-card p {
    margin: 0 0 8px;
    color: #667085;
    font-size: 17px;
    min-height: 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.showcase-price {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e6eaf0;
    min-height: 70px;
}

.showcase-price span {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #667085;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}

.showcase-price strong {
    color: var(--home-ink);
    font-size: clamp(28px, 2.2vw, 36px);
    letter-spacing: -0.045em;
    line-height: 1;
}

.showcase-indicadores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    min-height: 10px;
}

.showcase-img.card-clicavel,
.showcase-card.card-clicavel {
    cursor: pointer;
}

.showcase-img.card-clicavel:focus-visible,
.showcase-card.card-clicavel:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.9);
    outline-offset: 4px;
}

.showcase-indicadores button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.showcase-indicadores button.ativo {
    width: 28px;
    background: #e7194b;
    box-shadow: 0 8px 18px rgba(231, 25, 75, 0.22);
}

.whatsapp-float {
    box-shadow: 0 18px 40px rgba(24, 168, 79, 0.38);
}

.contato-modern {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(230, 189, 47, 0.22), transparent 30%),
        radial-gradient(circle at 84% 30%, rgba(191, 193, 196, 0.2), transparent 34%),
        linear-gradient(135deg, #202124 0%, #303235 52%, #444649 100%);
    color: #fff;
}

.contato-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
    pointer-events: none;
}

.contato-modern .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contato-modern h2,
.contato.contato-modern h2 {
    color: #fff !important;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.contato-modern p,
.contato.contato-modern p {
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.82) !important;
}

.contato-modern .btn-primary {
    background: linear-gradient(135deg, var(--home-gold), #ffd84d);
    color: #071225;
    box-shadow: 0 18px 42px rgba(230, 189, 47, 0.28);
}

.home-veiculos {
    background:
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.destaques {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(230, 189, 47, 0.16), transparent 30%),
        linear-gradient(135deg, #202124 0%, #37393c 100%);
}

.destaques::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.22;
    pointer-events: none;
}

.destaques .container {
    position: relative;
    z-index: 1;
}

.destaques h2 {
    color: #fff !important;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.destaques .card {
    border-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
}

@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
        gap: 34px;
    }

    .hero-servicos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .nav {
        min-height: auto;
        padding-block: 14px;
    }

    .menu-mobile-toggle {
        display: inline-flex;
    }

    .menu-mobile-aberto .menu-mobile-toggle span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-mobile-aberto .menu-mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-mobile-aberto .menu-mobile-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav nav {
        position: fixed;
        top: 86px;
        right: 18px;
        left: 18px;
        z-index: 40;
        display: grid;
        gap: 10px;
        width: auto;
        padding: 14px;
        border-radius: 24px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
            rgba(31, 32, 34, 0.97);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .menu-mobile-aberto .nav nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav nav a {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding-inline: 18px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.045);
    }

    .nav nav a::after {
        content: '›';
        color: var(--home-gold);
        font-size: 22px;
        line-height: 1;
    }

    .hero-modern {
        min-height: auto;
        padding: 34px 0 46px;
    }

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

    .hero-showcase {
        justify-self: start;
        width: min(100%, 680px);
    }

    .hero-text h1 {
        max-width: 720px;
    }
}

@media (max-width: 680px) {
    .topo {
        position: sticky;
    }

    .nav {
        gap: 12px;
    }

    .logo img {
        width: 52px;
        height: 52px;
    }

    .logo span {
        font-size: 22px;
    }

    .logo small {
        letter-spacing: 0.22em;
    }

    .menu-mobile-toggle {
        min-width: 44px;
        padding-inline: 12px;
        font-size: 0;
    }

    .menu-mobile-toggle span {
        left: 50%;
        width: 18px;
        margin-left: -9px;
    }

    .nav nav {
        top: 74px;
        right: 12px;
        left: 12px;
    }

    .hero-modern {
        padding: 26px 0 34px;
    }

    .hero-text h1 {
        margin-top: 16px;
        font-size: clamp(36px, 11vw, 48px);
        line-height: 0.98;
        letter-spacing: -0.052em;
    }

    .hero-text p {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-text .badge {
        padding: 10px 16px;
        font-size: 14px;
    }

    .hero-buttons {
        margin-top: 18px;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero-buttons .btn-outline {
        min-height: 50px;
        font-size: 16px;
    }

    .hero-buttons {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero-buttons .btn-outline {
        width: 100%;
    }

    .hero-showcase {
        border-radius: 24px;
        width: 100%;
    }

    .showcase-topline {
        display: none;
    }

    .showcase-img {
        height: clamp(190px, 50vw, 240px);
        background-position: center;
    }

    .hero-showcase .showcase-card {
        padding: 16px;
    }

    .showcase-card .showcase-badge {
        margin-bottom: 9px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .showcase-card h3 {
        font-size: 24px;
    }

    .showcase-card p {
        font-size: 15px;
    }

    .showcase-price strong {
        font-size: 28px;
    }

    .hero-servicos {
        display: none;
    }

    .home-veiculos {
        padding: 34px 0 28px;
    }

    .home-veiculos-grid {
        gap: 12px;
    }

    .home-veiculos-acoes {
        margin-top: 18px;
    }

    .destaques {
        padding: 34px 0 38px;
    }

    .destaques h2 {
        margin-bottom: 20px;
        font-size: clamp(28px, 8.5vw, 36px);
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .cards {
        gap: 12px;
    }

    .destaques .card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 18px;
        border-radius: 18px;
    }

    .destaques .card-icon {
        width: 52px;
        height: 52px;
        margin: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--home-gold), #ffd84d);
        color: #071225;
        box-shadow: 0 14px 32px rgba(230, 189, 47, 0.24);
    }

    .destaques .card h3 {
        min-width: 0;
        margin: 2px 0 6px;
        font-size: 19px;
        line-height: 1.18;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .destaques .card p {
        grid-column: 1 / -1;
        margin: 0;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .depoimentos-home-resumo,
    .contato {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .section-header {
        margin-bottom: 22px;
    }

    .section-header h2 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.1;
    }

    .section-header p {
        margin-top: 8px;
    }
}

@media (max-width: 520px) {
    .destaques .card {
        grid-template-columns: 1fr;
    }

    .destaques .card-icon {
        margin-bottom: 12px;
    }

    .destaques .card h3,
    .destaques .card p {
        grid-column: 1;
    }

    .destaques .card h3 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .logo span {
        font-size: 20px;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

    .hero-text h1 {
        font-size: clamp(34px, 11vw, 42px);
    }

    .showcase-img {
        height: 178px;
    }
}

@media (max-height: 820px) and (min-width: 981px) {
    .hero-modern {
        padding: 24px 0;
    }

    .hero-text h1 {
        font-size: clamp(42px, 4.4vw, 66px);
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-servicos article,
    .hero-servicos > div {
        min-height: 112px;
        padding: 16px;
    }

    .showcase-img {
        height: clamp(210px, 27vh, 270px);
    }

    .hero-showcase .showcase-card {
        padding: 18px;
    }

}

@media (max-height: 700px) and (min-width: 981px) {
    .showcase-topline {
        display: none;
    }

    .hero-servicos {
        display: none;
    }

    .showcase-img {
        height: 205px;
    }
}

/* Escala tipográfica da home */
.home-veiculos-topo h2,
.destaques h2,
.depoimentos-home-resumo .section-header h2,
.contato-modern h2,
.localizacao-info h2 {
    margin-top: 8px;
    font-size: var(--home-title-section);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.home-veiculos-topo > div > span,
.depoimentos-home-resumo .section-header > span,
.localizacao-info > .badge {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-veiculos-topo p,
.depoimentos-home-resumo .section-header p,
.contato-modern p,
.localizacao-info p {
    max-width: 720px;
    font-size: var(--home-text);
    line-height: 1.6;
}

.home-veiculos-topo p,
.depoimentos-home-resumo .section-header p,
.contato-modern p {
    margin-left: auto;
    margin-right: auto;
}

.carro-card h3,
.destaques .card h3,
.depoimento-card h3,
.showcase-card h3 {
    font-size: var(--home-title-card);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.home-veiculos .btn-primary,
.contato-modern .btn-primary,
.localizacao-info .btn-primary,
.carro-acoes a {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

/* Botões alinhados à paleta grafite da marca */
.hero-buttons .btn-primary {
    border-color: var(--home-gold);
    background: linear-gradient(135deg, var(--home-gold), #f5d34d);
    color: var(--home-ink);
    box-shadow: 0 16px 36px rgba(230, 189, 47, 0.24);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #f2cc3e, #ffe275);
    color: #18191b;
}

.hero-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.hero-buttons .btn-secondary:hover {
    border-color: var(--home-silver);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.home-veiculos .btn-primary,
.localizacao-info .btn-primary {
    border-color: var(--home-graphite);
    background: linear-gradient(135deg, var(--home-graphite), #3c3e41);
    color: #fff;
    box-shadow: 0 14px 30px rgba(32, 33, 36, 0.18);
}

.home-veiculos .btn-primary:hover,
.localizacao-info .btn-primary:hover {
    background: linear-gradient(135deg, #343538, #505256);
    color: #fff;
}

@media (max-width: 680px) {
    :root {
        --home-title-section: clamp(28px, 8vw, 34px);
        --home-title-card: 20px;
        --home-text: 16px;
    }

    .home-veiculos-topo h2,
    .destaques h2,
    .depoimentos-home-resumo .section-header h2,
    .contato-modern h2,
    .localizacao-info h2 {
        letter-spacing: -0.035em;
    }
}
