
/* =========================================================
   AVANGUARDA
   Associação dos Proprietários de Veículos Automotores
   ========================================================= */


/* =========================
   VARIÁVEIS
========================= */

:root {
    --azul-escuro: #041a38;
    --azul-marinho: #062b55;
    --azul: #075fbd;
    --azul-vivo: #0788e8;
    --azul-claro: #eaf5ff;

    --branco: #ffffff;
    --cinza-fundo: #f5f8fc;
    --cinza: #64748b;
    --cinza-claro: #e7edf4;
    --texto: #152238;

    --verde-whatsapp: #25d366;

    --container: 1240px;
    --radius: 18px;

    --shadow:
        0 15px 45px rgba(4, 26, 56, 0.10);

    --transition: 0.3s ease;
}


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

    color: var(--texto);
    background: var(--branco);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =========================
   BOTÕES
========================= */

.btn {
    min-height: 48px;
    padding: 12px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible,
.nav a:focus-visible,
.menu-mobile:focus-visible,
.footer-links a:focus-visible,
.whatsapp-float:focus-visible {
    outline: 3px solid rgba(7, 136, 232, 0.45);
    outline-offset: 4px;
}

.btn-primary {
    color: var(--branco);

    background:
        linear-gradient(
            135deg,
            var(--azul-vivo),
            var(--azul)
        );

    box-shadow:
        0 10px 25px rgba(7, 95, 189, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 15px 30px rgba(7, 95, 189, 0.35);
}

.btn-outline {
    color: var(--azul-escuro);
    border-color: #cbd9e8;
    background: transparent;
}

.btn-outline:hover {
    color: var(--azul);
    border-color: var(--azul);
}

.btn-light {
    background: var(--branco);
    color: var(--azul-escuro);
}

.btn-light:hover {
    background: var(--azul-claro);
}

.btn-large {
    min-height: 54px;
    padding: 14px 28px;
    font-size: 15px;
}


/* =========================
   CABEÇALHO
========================= */

.header {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(6, 43, 85, 0.08);

    transition: var(--transition);
}

.header-container {
    min-height: 86px;

    display: flex;
    align-items: center;

    gap: 28px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    width: 245px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-left: auto;
}

.nav a {
    position: relative;

    color: #34445a;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: var(--transition);
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--azul-vivo);

    transition: var(--transition);
}

.nav a:hover {
    color: var(--azul);
}

.nav a:hover::after {
    width: 100%;
}

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

.menu-mobile {
    display: none;

    border: 0;
    background: transparent;

    color: var(--azul-escuro);

    font-size: 30px;

    cursor: pointer;
}


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

.hero {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;

    padding-top: 86px;

    color: var(--branco);

    background:
        linear-gradient(
            90deg,
            rgba(3, 20, 45, 0.94) 0%,
            rgba(4, 36, 75, 0.82) 42%,
            rgba(5, 64, 116, 0.32) 100%
        ),
        url("../assets/AVANGUARDA.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(0, 153, 255, 0.18),
            transparent 45%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-tag {
    display: inline-block;

    margin-bottom: 22px;

    color: #73c9ff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2.5px;
}

.hero h1 {
    max-width: 900px;

    font-size: clamp(43px, 5.5vw, 76px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero p {
    max-width: 690px;

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

    font-size: 19px;

    line-height: 1.8;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================
   SEÇÕES
========================= */

.section {
    padding: 105px 0;
}

.section-tag {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--azul);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.2px;
}

.section-tag.light {
    color: #83d1ff;
}

.section-header {
    max-width: 760px;

    margin:
        0 auto 55px;

    text-align: center;
}

.section-header h2,
.about-content h2,
.assistance h2,
.join h2 {
    color: var(--azul-escuro);

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.15;

    letter-spacing: -1.2px;

    margin-bottom: 18px;
}

.section-header p {
    color: var(--cinza);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================
   SOBRE
========================= */

.about {
    background: var(--branco);
}

.about-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    align-items: center;

    gap: 80px;
}

.about-content > p {
    color: var(--cinza);

    font-size: 17px;

    margin-bottom: 18px;
}

.about-image {
    position: relative;

    min-height: 540px;

    overflow: hidden;

    border-radius: 28px;

    background: #ffffff;

    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 540px;

    object-fit: cover;
    object-position: center;
}

.about-highlights {
    display: grid;

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

    gap: 15px;

    margin-top: 35px;
}

.highlight {
    padding: 20px 16px;

    border-radius: 14px;

    background: var(--cinza-fundo);

    border:
        1px solid var(--cinza-claro);
}

.highlight strong {
    display: block;

    color: var(--azul-escuro);

    margin-bottom: 5px;
}

.highlight span {
    display: block;

    color: var(--cinza);

    font-size: 13px;

    line-height: 1.5;
}


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

.cards-grid {
    display: grid;
    gap: 22px;
}

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

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

    border-radius: var(--radius);

    transition: var(--transition);
}

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

    border-color:
        rgba(7, 136, 232, 0.35);

    box-shadow: var(--shadow);
}


/* =========================
   VEÍCULOS
========================= */

.vehicles {
    background: var(--cinza-fundo);
}

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

.vehicle-card {
    padding: 35px 22px;

    text-align: center;
}

.card-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin:
        0 auto 20px;

    border-radius: 20px;

    background: var(--azul-claro);

    font-size: 34px;
}

.vehicle-card h3 {
    color: var(--azul-escuro);

    font-size: 19px;

    margin-bottom: 10px;
}

.vehicle-card p {
    color: var(--cinza);

    font-size: 14px;
}


/* =========================
   BENEFÍCIOS
========================= */

.benefits {
    background: var(--branco);
}

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

.benefit-card {
    padding: 35px;
}

.benefit-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            var(--azul-claro),
            #d6ecff
        );

    font-size: 29px;
}

.benefit-card h3 {
    color: var(--azul-escuro);

    font-size: 21px;

    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--cinza);
    font-size: 15px;
}

.legal-note {
    max-width: 800px;

    margin:
        35px auto 0;

    color: #8492a6;

    text-align: center;

    font-size: 12px;
}


/* =========================
   COMO FUNCIONA
========================= */

.how-it-works {
    background:
        linear-gradient(
            180deg,
            #f7faff,
            #edf6ff
        );
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.step {
    position: relative;

    padding: 35px 28px;

    background: var(--branco);

    border-radius: var(--radius);

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

    box-shadow:
        0 10px 30px rgba(4, 26, 56, 0.05);
}

.step-number {
    display: block;

    color: #b8dfff;

    font-size: 52px;
    font-weight: 900;

    line-height: 1;

    margin-bottom: 20px;
}

.step h3 {
    color: var(--azul-escuro);

    margin-bottom: 10px;

    font-size: 19px;
}

.step p {
    color: var(--cinza);

    font-size: 14px;
}


/* =========================
   ASSISTÊNCIA
========================= */

.assistance {
    position: relative;

    padding: 90px 0;

    color: var(--branco);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #031a39,
            #064f99
        );
}

.assistance::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: -240px;

    border-radius: 50%;

    background:
        rgba(0, 157, 255, 0.15);
}

.assistance-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.assistance h2 {
    max-width: 700px;

    color: var(--branco);

    margin-bottom: 15px;
}

.assistance p {
    max-width: 700px;

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

    font-size: 17px;
}


/* =========================
   SEJA ASSOCIADO
========================= */

.join {
    background: var(--branco);
}

.join-box {
    padding: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #f0f8ff,
            #e2f2ff
        );

    border:
        1px solid #d5e9fa;
}

.join h2 {
    margin-bottom: 12px;
}

.join p {
    max-width: 650px;

    color: var(--cinza);

    font-size: 16px;
}


/* =========================
   CONTATO
========================= */

.contact {
    background: var(--cinza-fundo);
}

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.contact-item {
    padding: 30px;

    background: var(--branco);

    border-radius: var(--radius);

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

    text-align: center;
}

.contact-item strong {
    display: block;

    color: var(--azul-escuro);

    font-size: 17px;

    margin-bottom: 8px;
}

.contact-item span {
    color: var(--cinza);

    font-size: 14px;
}


/* =========================
   RODAPÉ
========================= */

.footer {
    position: relative;
    overflow: hidden;

    padding:
        75px 0 25px;

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

    background:
        radial-gradient(
            circle at 88% 35%,
            rgba(72, 170, 255, 0.35) 0%,
            rgba(18, 118, 215, 0.18) 25%,
            transparent 48%
        ),
        linear-gradient(
            110deg,
            #021a3d 0%,
            #043a73 38%,
            #0769c4 70%,
            #2c9cf4 100%
        );
}

.footer-grid {
    display: grid;

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

    gap: 70px;

    padding-bottom: 50px;
}

.footer-brand img {
    width: 220px;

    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 400px;

    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-links h4 {
    color: var(--branco);

    font-size: 13px;

    letter-spacing: 1.5px;

    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;

    transition: var(--transition);
}

.footer-links a:hover {
    color: #65c5ff;

    transform:
        translateX(3px);
}

.footer-bottom {
    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    display: flex;
    justify-content: space-between;

    gap: 30px;

    font-size: 12px;
}

.footer-disclaimer {
    text-align: right;
}


/* =========================
   WHATSAPP
========================= */

.whatsapp-float {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 999;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--verde-whatsapp);

    color: var(--branco);

    font-size: 27px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    transition: var(--transition);
}

.whatsapp-float:hover {
    transform:
        translateY(-4px)
        scale(1.05);
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 1180px) {

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 13px;
    }

    .header-actions .btn-outline {
        display: none;
    }

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

}


@media (max-width: 960px) {

    .header-container {
        min-height: 76px;
    }

    .logo img {
        width: 205px;
        max-height: 62px;
    }

    .nav {
        position: fixed;

        top: 76px;
        left: 0;

        width: 100%;

        padding: 25px;

        display: none;
        flex-direction: column;

        align-items: flex-start;

        background: var(--branco);

        border-top:
            1px solid var(--cinza-claro);

        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;

        padding: 9px 0;

        font-size: 15px;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .menu-mobile {
        display: block;
    }

    .hero {
        min-height: 700px;

        padding-top: 76px;

        background-position: center;
    }

    .hero h1 {
        max-width: 700px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-image {
        min-height: auto;
    }

    .about-image img {
        height: 480px;
    }

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

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

    .assistance-content,
    .join-box {
        flex-direction: column;
        align-items: flex-start;
    }

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

}


@media (max-width: 700px) {

    .section {
        padding: 75px 0;
    }

    .hero {
        min-height: 650px;

        background-position: center;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 380px;
    }

    .vehicle-grid,
    .benefits-grid,
    .steps,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .join-box {
        padding: 38px 25px;
    }

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

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 12px;
    }

    .footer-disclaimer {
        text-align: left;
    }

}


@media (max-width: 450px) {

    .container {
        width: 90%;
    }

    .logo img {
        width: 175px;
        max-height: 56px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-header h2,
    .about-content h2,
    .assistance h2,
    .join h2 {
        font-size: 32px;
    }

    .benefit-card,
    .step {
        padding: 27px 23px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;

        right: 18px;
        bottom: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   HERO NOVO — LOGO TRANSPARENTE À DIREITA
   ========================================================= */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding-top: 86px;
    color: var(--branco);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 45%, rgba(126,199,255,.42) 0%, rgba(126,199,255,.10) 28%, transparent 52%),
        linear-gradient(105deg, #031a39 0%, #063f78 47%, #c8e6fb 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
    background:
        linear-gradient(128deg, transparent 0 67%, rgba(255,255,255,.18) 67.2% 69%, transparent 69.2%),
        linear-gradient(52deg, transparent 0 76%, rgba(255,255,255,.10) 76.2% 77.4%, transparent 77.6%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 620px;
    height: 620px;
    right: -110px;
    bottom: -390px;
    border: 3px solid rgba(255,255,255,.16);
    border-radius: 50%;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(2,19,43,.42) 0%, rgba(3,35,72,.10) 52%, rgba(255,255,255,.05) 100%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    width: min(92%, var(--container));
    margin: 0 auto;
    padding-top: 62px;
    padding-bottom: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    gap: 34px;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0;
    min-width: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(43px, 4.7vw, 72px);
}

.hero p {
    max-width: 680px;
}

.hero-brand {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand img {
    display: block;
    width: min(100%, 590px);
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(0,25,58,.20));
}

@media (max-width: 960px) {
    .hero {
        min-height: 700px;
        padding-top: 76px;
    }

    .hero-layout {
        grid-template-columns: 1fr .78fr;
        gap: 18px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero h1 {
        font-size: clamp(40px, 6vw, 58px);
    }

    .hero-brand img {
        width: min(100%, 430px);
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: auto;
        padding-top: 76px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 52px;
        padding-bottom: 46px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-brand img {
        width: min(92%, 430px);
        max-height: 330px;
    }
}

@media (max-width: 450px) {
    .hero-layout {
        width: 90%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-brand img {
        width: 100%;
    }
}
