/* ==========================================================================
   Brasil Mudanças — Refatoração 2026
   Foco: Performance, SEO e visual moderno
   ========================================================================== */

/* ---------- Reset & base ------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Paleta — azul profissional + laranja energético (CTA) */
    --color-primary: #0b3d91;
    --color-primary-dark: #062a66;
    --color-primary-light: #1e57c4;
    --color-accent: #ff6a00;
    --color-accent-dark: #e65a00;
    --color-success: #25d366;
    /* WhatsApp */
    --color-success-dark: #1ebe5d;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fb;
    --color-bg-dark: #0a1a3a;
    --color-text: #1a1f36;
    --color-text-soft: #525a7a;
    --color-border: #e3e8f0;

    /* Tipografia */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Espaçamento & raios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 6px rgba(10, 26, 58, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 26, 58, 0.10);
    --shadow-lg: 0 20px 50px rgba(10, 26, 58, 0.15);

    /* Container */
    --container: 1200px;
    --header-h: 76px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-soft);
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 106, 0, 0.45);
}

.btn-whatsapp {
    background: var(--color-success);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: var(--color-success-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-lg {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
}

/* Botões compactos para uso dentro do header */
.btn-sm {
    padding: 0.6rem 1.15rem;
    font-size: 0.875rem;
}

/* ---------- Header ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
    box-shadow: 0 1px 0 rgba(10, 26, 58, 0.06);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Marca */
.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.brand img {
    height: 38px;
    width: auto;
    border-radius: 6px;
}

/* Nav links */
.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a {
    position: relative;
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: left 0.22s ease, right 0.22s ease;
}

.nav a:hover {
    color: var(--color-primary);
    background: rgba(11, 61, 145, 0.05);
}

.nav a:hover::after {
    left: 0.65rem;
    right: 0.65rem;
}

.nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav a.active::after {
    left: 0.65rem;
    right: 0.65rem;
    background: var(--color-accent);
}

/* Separador entre nav e CTAs */
.header-cta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
    padding-left: 1.25rem;
    border-left: 1px solid var(--color-border);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px auto;
    transition: 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    .nav.is-open {
        display: flex;
        animation: navSlideDown 0.22s ease;
    }

    .nav a {
        width: 100%;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }

    .nav a:last-child {
        border-bottom: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta .btn {
        display: none;
    }

    .header-cta .btn-whatsapp {
        display: inline-flex;
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
        gap: 0.4rem;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Telas muito pequenas: esconde texto da brand, mantém só logo */
@media (max-width: 520px) {
    .brand span {
        display: none;
    }

    .site-header .container {
        gap: 0.75rem;
    }

    .header-cta .btn-whatsapp .btn-wa-text {
        display: none;
    }

    .header-cta .btn-whatsapp {
        padding: 0.65rem;
    }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
    color: #fff;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 106, 0, 0.25), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(30, 87, 196, 0.4), transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    color: #fff;
}

.hero-content h1 .accent {
    color: #ffb066;
}

.hero-content p.lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 1.6rem;
    color: #fff;
    line-height: 1;
}

.hero-trust span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #fff;
    color: var(--color-text);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.hero-badge .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
        aspect-ratio: 16 / 10;
    }
}

/* ---------- Trust strip ------------------------------------------------- */
.trust-strip {
    background: var(--color-bg-soft);
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.trust-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.trust-strip li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.trust-strip li svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ---------- Services ---------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- How it works ----------------------------------------------- */
.how-it-works {
    background: var(--color-bg-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.4);
}

.step h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: var(--color-text-soft);
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Why us / Features ------------------------------------------ */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-grid .image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.why-grid .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variante para imagens com texto nas bordas (ex: cegonha) */
.why-grid .image-wrap--contain {
    aspect-ratio: auto;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-grid .image-wrap--contain img {
    object-fit: contain;
    height: auto;
    max-height: 480px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.feature-list li {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--color-border);
}

.feature-list li:last-child {
    border-bottom: 0;
}

.feature-list .check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    color: var(--color-success-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.feature-list strong {
    display: block;
    margin-bottom: 2px;
}

.feature-list span {
    color: var(--color-text-soft);
    font-size: 0.93rem;
}

@media (max-width: 800px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Coverage / Areas ------------------------------------------- */
.coverage {
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-primary-dark));
    color: #fff;
    text-align: center;
}

.coverage h2 {
    color: #fff;
}

.coverage .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
}

.area-tags span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.area-tags span:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ---------- Testimonials ----------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 18px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-accent);
    line-height: 1;
}

.testimonial .stars {
    color: #ffb800;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial p {
    color: var(--color-text);
    font-size: 0.98rem;
    font-style: italic;
}

.testimonial .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.testimonial .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.testimonial .author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial .author span {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

/* ---------- FAQ -------------------------------------------------------- */
.faq {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary-light);
}

.faq-item summary {
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--color-text-soft);
}

/* ---------- CTA banner ------------------------------------------------- */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(11, 61, 145, 0.92), rgba(255, 106, 0, 0.85)),
        url('../../images/caminhao-fundo-1024x861.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-banner h2 {
    color: #fff;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer .brand {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Floating WhatsApp ------------------------------------------ */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 90;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-success);
    opacity: 0.6;
    animation: pulse 2.4s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ---------- Reveal on scroll ------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Accessibility ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

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

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Utility ---------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}