/* =========================================================
   Alfa Cargas — folha de estilo principal
   ========================================================= */

:root {
    --primary: #d91b01;
    --primary-dark: #b41601;
    --text: #212529;
    --muted: #818090;
    --nav-text: #323131;
    --field-bg: rgba(139, 62, 234, .09);
    --footer-bg: #f3f6fd;
    --whatsapp: #25d366;
    --border-soft: rgba(221, 221, 221, .5);
    --header-h: 85px;
    /* Largura do container: definida por faixa logo abaixo, em .container */
    --container: 100%;
}

/* ------------------ Base ------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h5, h6, p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 12px;
}

/* Escada de larguras do container, por faixa de tela */
@media (min-width: 576px)  { :root { --container: 540px;  } }
@media (min-width: 768px)  { :root { --container: 720px;  } }
@media (min-width: 992px)  { :root { --container: 960px;  } }
@media (min-width: 1200px) { :root { --container: 1140px; } }
@media (min-width: 1400px) { :root { --container: 1440px; } }

/* Âncoras compensando o cabeçalho fixo */
.anchor {
    display: block;
    position: relative;
    top: calc(var(--header-h) * -1);
    visibility: hidden;
}

.section-35 { padding: 35px 0; }
.section-75 { padding: 75px 0; }

/* ------------------ Cabeçalho ------------------ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 28px 0 rgba(0, 0, 0, .06);
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
}

.logo img {
    width: 169px;
    height: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 26px;
}

.main-nav li:last-child {
    margin-right: 0;
}

.main-nav a {
    position: relative;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
    color: var(--nav-text);
    padding-bottom: 5px;
}

.main-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--nav-text);
    transition: width .3s ease;
}

.main-nav a:hover::before {
    width: 100%;
}

/* Botão hambúrguer (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--nav-text);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------ Banner ------------------ */
.banner {
    background: url("../images/banner.jpg") center center / cover no-repeat;
    padding: 160px 0 85px;
    min-height: 697px;
    display: flex;
    align-items: center;
}

.banner-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.banner-text h1 {
    font-size: 82px;
    line-height: 75px;
    font-weight: 500;
    color: #fff;
}

.banner-text h3 {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
}

/* ------------------ Formulário de orçamento ------------------ */
.quote-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 4px 14px 28px 0 rgba(0, 0, 0, .1);
}

.field-row {
    display: grid;
    gap: 16px;
}

.field-row + .field-row {
    margin-top: 16px;
}

.field-row.cols-1 { grid-template-columns: 1fr; }
.field-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.field-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.field {
    position: relative;
    background: var(--field-bg);
    border-radius: 10px;
    padding: 10px 10px 10px 20px;
}

.field p {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    resize: none;
}

.field textarea {
    display: block;
    line-height: 26px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b3b2be;
    font-weight: 400;
}

.field-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 15px;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.btn {
    font-family: inherit;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: background-color .25s ease;
}

.btn-theme {
    background: var(--primary);
    color: #fff;
    border-radius: 5px;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: 400;
}

.btn-theme:hover {
    background: var(--primary-dark);
}

/* Autocomplete de cidades (origem / destino) */
.field.ac-open {
    /* A lista aberta precisa passar por cima do campo seguinte. */
    z-index: 5;
}

.ac-list {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 244px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 26px 0 rgba(0, 0, 0, .16);
}

.ac-list[hidden] {
    display: none;
}

.ac-item {
    padding: 9px 20px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.ac-item.is-active,
.ac-item:hover {
    background: var(--field-bg);
}

.ac-item mark {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
}

/* Erros de validação e retorno do envio */
.field.has-error {
    box-shadow: inset 0 0 0 1px var(--primary);
}

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: var(--primary);
}

.form-feedback {
    margin: 16px 0 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
}

.form-feedback.is-success {
    background: rgba(37, 211, 102, .12);
    color: #15773c;
}

.form-feedback.is-error {
    background: rgba(217, 27, 1, .08);
    color: var(--primary-dark);
}

.btn[disabled] {
    opacity: .65;
    cursor: default;
}

/* ------------------ Sobre nós ------------------ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
}

.about-text h5 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
}

.about-text h2 {
    margin-top: 10px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 500;
    color: var(--text);
}

.about-text p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 28px;
    color: var(--muted);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
}

.image-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transition: transform .25s ease;
}

.image-badge:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

/* ------------------ Cabeçalho de seção ------------------ */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 500;
    color: var(--text);
}

/* ------------------ Serviços ------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: box-shadow .3s ease, transform .3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateY(-4px);
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.service-card h3 {
    padding: 35px 0 10px;
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
}

.service-card p {
    padding-top: 20px;
    font-size: 16px;
    line-height: 28px;
    color: var(--muted);
}

/* ------------------ Contatos ------------------ */
.contact-area {
    padding: 100px 0 50px;
}

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

.contact-box {
    border-radius: 12px;
    padding: 30px 15px;
    box-shadow: -4px -5px 14px 0 rgba(0, 0, 0, .08),
                 5px  8px 16px 0 rgba(0, 0, 0, .08);
}

.contact-box h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
}

.contact-box h6 {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
}

.contact-box h6 a {
    color: var(--primary);
}

.contact-box h6 a:hover {
    text-decoration: underline;
}

.contact-box h6.plain {
    color: var(--text);
    font-weight: 400;
}

.map-box {
    padding: 0;
    overflow: hidden;
}

.map-box iframe {
    display: block;
    border: 0;
    border-radius: 12px;
}

/* ------------------ Rodapé ------------------ */
.copyright-area {
    background: var(--footer-bg);
    padding: 15px 0;
}

.copyright-area p {
    font-size: 16px;
    color: var(--muted);
}

/* ------------------ Botões flutuantes ------------------ */
.whatsapp-float {
    position: fixed;
    right: 15px;
    bottom: 75px;
    width: 60px;
    height: 63px;
    border-radius: 50px;
    background: var(--whatsapp);
    color: #fff;
    font-size: 30px;
    text-align: center;
    box-shadow: 1px 1px 2px #888;
    z-index: 1000;
}

.whatsapp-float i {
    display: inline-block;
    margin-top: 16px;
    line-height: 30px;
}

.go-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    z-index: 1000;
}

.go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 991px) {
    .banner {
        padding: 130px 0 60px;
        min-height: 0;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .banner-text h1 {
        font-size: 56px;
        line-height: 56px;
    }

    .about-grid,
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .contact-area {
        padding: 60px 0 40px;
    }
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border-soft);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .main-nav.is-open {
        max-height: 320px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 16px;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .main-nav a::before {
        display: none;
    }

    .banner-text h1 {
        font-size: 40px;
        line-height: 44px;
    }

    .banner-text h3 {
        font-size: 18px;
    }

    .quote-card {
        padding: 20px;
        border-radius: 14px;
    }

    .field-row.cols-2,
    .field-row.cols-3 {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .about-text h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .service-card h3 {
        padding-top: 25px;
    }

    .whatsapp-float {
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 140px;
    }

    .banner-text h1 {
        font-size: 34px;
        line-height: 38px;
    }
}
