/* ==========================================
S&W INSTRUTORES AUTÔNOMOS
CSS PRINCIPAL
========================================== */


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

:root {

    --primary: #0d6efd;
    --primary-dark: #084298;

    --orange: #ff7a00;
    --yellow: #ffc107;

    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;

    --light: #f8fafc;
    --white: #ffffff;

    --border: #e5e7eb;

    --shadow:
        0 10px 30px rgba(0, 0, 0, .08);

}


/* =========================
GERAL
========================= */

html {

    scroll-behavior: smooth;

}

body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--white);

}

section {

    scroll-margin-top: 80px;

}

a {

    text-decoration: none;

}


/* =========================
NAVBAR
========================= */

.navbar {

    padding: 12px 0;

    transition:
        box-shadow .3s ease;

    z-index: 1000;

}

.navbar.shadow {

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .10);

}

.navbar-brand {

    color: var(--dark);

}

.logo-image {

    width: 58px;

    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid var(--primary);

}

.brand-name {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}

.brand-name strong {

    font-size: 1.25rem;

    color: var(--dark);

}

.brand-name small {

    font-size: .72rem;

    color: var(--muted);

}

.nav-link {

    color: #374151 !important;

    font-weight: 500;

    margin: 0 4px;

    transition: color .2s ease;

}

.nav-link:hover,
.nav-link.active {

    color: var(--primary) !important;

}


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

.btn-primary-custom {

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--yellow)
        );

    color: #111 !important;

    border: none;

    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}

.btn-primary-custom:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(255, 122, 0, .25);

}

.btn-outline-primary-custom {

    border: 2px solid var(--primary);

    color: var(--primary);

    font-weight: 600;

}

.btn-outline-primary-custom:hover {

    background: var(--primary);

    color: white;

}


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

.hero-section {

    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #fff,
            #f8fafc
        );

}

.badge-custom {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 15px;

    border-radius: 50px;

    background: #eaf2ff;

    color: var(--primary);

    font-weight: 700;

    font-size: .82rem;

}

.text-primary-custom {

    color: var(--primary);

}


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

.hero-info {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

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

    border-radius: 12px;

    background: white;

}

.hero-info > i {

    font-size: 1.6rem;

    color: var(--primary);

}

.hero-info strong,
.hero-info small {

    display: block;

}

.hero-info small {

    color: var(--muted);

}


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

.hero-card {

    background: white;

    border-radius: 25px;

    padding: 15px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .10);

}

.hero-card-content {

    padding: 25px;

    text-align: center;

}

.vehicle-image-wrapper {

    width: 100%;

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 18px;

    background: #f8fafc;

}

.vehicle-main-image {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


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

.category-box {

    padding: 12px 6px;

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

    border-radius: 15px;

    background: #fff;

    height: 100%;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.category-box:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow);

}

.category-image {

    display: block;

    width: 75px;

    height: 55px;

    object-fit: contain;

    margin: 0 auto 8px;

}

.category-ab-image {

    width: 80px;

    height: 55px;

}

.category-box strong,
.category-box small {

    display: block;

}

.category-box strong {

    color: var(--primary);

    font-size: 1.2rem;

}

.category-box small {

    color: var(--muted);

}


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

.section-padding {

    padding: 90px 0;

}

.section-light {

    background: var(--light);

}

.section-title {

    max-width: 700px;

}

.section-title span,
.section-kicker {

    color: var(--primary);

    font-size: .8rem;

    font-weight: 800;

    letter-spacing: 1px;

}

.section-title h2 {

    font-size: 2.4rem;

    font-weight: 800;

    margin-top: 8px;

}

.section-title p {

    color: var(--muted);

}


/* =========================
SERVIÇOS
========================= */

.service-card {

    padding: 30px;

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

    border-radius: 20px;

    background: white;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .04);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.service-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .10);

}

.service-card.featured {

    border-top: 4px solid var(--orange);

}

.service-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: #eaf2ff;

    color: var(--primary);

    font-size: 1.7rem;

    margin-bottom: 20px;

}

.service-category {

    color: var(--primary);

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .6px;

}

.service-card h3 {

    margin-top: 8px;

    font-weight: 700;

    color: var(--dark);

}

.service-card p {

    color: var(--muted);

    line-height: 1.7;

}

.service-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-weight: 700;

    margin-top: 10px;

}


/* =========================
VANTAGENS
========================= */

.advantage-card {

    padding: 25px;

    background: white;

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

    border-radius: 18px;

    height: 100%;

}

.advantage-card > i {

    font-size: 2rem;

    color: var(--primary);

}

.advantage-card h3 {

    font-size: 1.15rem;

    margin-top: 15px;

    font-weight: 700;

}

.advantage-card p {

    color: var(--muted);

    margin-bottom: 0;

}


/* =========================
PROFISSIONAIS
========================= */

.professional-card {

    text-align: center;

    padding: 35px;

    height: 100%;

    background: white;

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

    border-radius: 22px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .05);

}

.professional-photo {

    width: 150px;

    height: 150px;

    margin: 0 auto 20px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eaf2ff;

    border: 4px solid var(--primary);

    position: relative;

}

.professional-photo img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

}

.professional-photo i {

    position: absolute;

    font-size: 4rem;

    color: var(--primary);

    z-index: 0;

}

.professional-photo img {

    position: relative;

    z-index: 1;

}

.professional-card > span {

    color: var(--primary);

    font-size: .8rem;

    font-weight: 800;

    letter-spacing: 1px;

}

.professional-card h2 {

    margin-top: 8px;

    font-weight: 800;

}

.professional-card h3 {

    color: var(--orange);

    font-size: 1.1rem;

    font-weight: 700;

}

.professional-card p {

    color: var(--muted);

    line-height: 1.7;

}

.experience-text {

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

}

.experience-text i {

    font-size: 2.5rem;

    color: var(--primary);

}

.experience-text p {

    font-size: 1.15rem;

    color: var(--text);

}


/* =========================
LOGOS CREDENCIAMENTO
========================= */

.credentials-logos {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 60px;

    flex-wrap: wrap;

    margin-top: 45px;

}

.credential-logo {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    font-weight: 700;

    color: var(--dark);

}

.credential-logo img {

    width: 120px;

    height: 80px;

    object-fit: contain;

}


/* =========================
CNH
========================= */

.cnh-image {

    max-width: 100%;

    width: 400px;

    height: auto;

    object-fit: contain;

}


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

.step-card {

    position: relative;

    height: 100%;

    padding: 30px;

    background: white;

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

    border-radius: 18px;

}

.step-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    font-weight: 800;

    margin-bottom: 18px;

}

.step-card h3 {

    font-size: 1.2rem;

    font-weight: 700;

}

.step-card p {

    color: var(--muted);

}


/* =========================
LOCALIZAÇÃO
========================= */

.location-card {

    padding: 35px;

    border-radius: 20px;

    background: white;

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

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .05);

}

.location-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eaf2ff;

    color: var(--primary);

    font-size: 1.6rem;

    margin-bottom: 20px;

}

.location-card h3 {

    font-weight: 700;

}

.location-card p {

    color: var(--muted);

    line-height: 1.8;

}

.map-wrapper {

    height: 100%;

    min-height: 350px;

    overflow: hidden;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

}

.map-wrapper iframe {

    width: 100%;

    height: 100%;

    min-height: 350px;

    border: 0;

}


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

.contact-section {

    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #0b5ed7,
            #084298
        );

}

.contact-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 30px;

}

.btn-whatsapp {

    background: #25d366;

    color: white !important;

    border: none;

}

.btn-whatsapp:hover {

    background: #1ebe5d;

    color: white !important;

}

.btn-whatsapp-outline {

    border: 2px solid white;

    color: white !important;

    background: transparent;

}

.btn-whatsapp-outline:hover {

    background: white;

    color: #084298 !important;

}

.instagram-button {

    display: inline-block;

    color: white;

    font-weight: 700;

    padding: 10px 18px;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50px;

}

.instagram-button:hover {

    background: white;

    color: #084298;

}


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

.footer {

    padding: 60px 0 25px;

    background: #111827;

    color: #d1d5db;

}

.footer-logo {

    width: 55px;

    height: 55px;

    object-fit: cover;

    border-radius: 50%;

}

.footer-brand strong {

    color: white;

}

.footer h4 {

    color: white;

    font-size: 1.1rem;

    margin-bottom: 18px;

}

.footer a {

    display: block;

    color: #d1d5db;

    margin-bottom: 10px;

    transition: color .2s ease;

}

.footer a:hover {

    color: white;

}

.footer hr {

    border-color: rgba(255,255,255,.15);

    margin: 35px 0 20px;

}

.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

}


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

.whatsapp-float {

    position: fixed;

    left: 25px;

    bottom: 25px;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: white;

    font-size: 1.8rem;

    box-shadow:
        0 8px 25px rgba(0,0,0,.2);

    z-index: 999;

    transition:
        transform .2s ease;

}

.whatsapp-float:hover {

    transform: scale(1.08);

    color: white;

}


/* =========================
VOLTAR AO TOPO
========================= */

.back-to-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    font-size: 1.2rem;

    box-shadow:
        0 8px 25px rgba(0,0,0,.2);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;

}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


/* =========================
ANIMAÇÃO
========================= */

.service-card,
.advantage-card,
.step-card {

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity .6s ease,
        transform .6s ease;

}

.elemento-visivel {

    opacity: 1 !important;

    transform: translateY(0) !important;

}


/* =========================
RESPONSIVO
========================= */

@media (max-width: 991px) {

    .navbar-collapse {

        padding-top: 15px;

    }

    .nav-link {

        padding: 10px 0;

    }

    .hero-section {

        padding: 60px 0;

    }

}


@media (max-width: 767px) {

    .section-padding {

        padding: 65px 0;

    }

    .section-title h2 {

        font-size: 2rem;

    }

    .hero-card-content {

        padding: 18px;

    }

    .vehicle-image-wrapper {

        height: 150px;

    }

    .category-image {

        width: 60px;

        height: 45px;

    }

    .professional-photo {

        width: 130px;

        height: 130px;

    }

    .credentials-logos {

        gap: 35px;

    }

    .whatsapp-float {

        left: 18px;

        bottom: 18px;

    }

    .back-to-top {

        right: 18px;

        bottom: 18px;

    }

}


@media (max-width: 480px) {

    .logo-image {

        width: 50px;

        height: 50px;

    }

    .brand-name strong {

        font-size: 1.1rem;

    }

    .brand-name small {

        font-size: .65rem;

    }

    .hero-section h1 {

        font-size: 2.3rem;

    }

    .contact-buttons {

        flex-direction: column;

    }

    .contact-buttons .btn {

        width: 100%;

    }

}