* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Lato', Arial, sans-serif;
    background: #222;
    color: #BDBDBD;
    line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: all .3s; }
h1, h2, h3, h4 { font-family: 'Poppins', Arial, sans-serif; color: #fff; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.2rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.col { flex: 1; padding: 0 0.75rem; }

.edit-fab {
    position: fixed;
    top: 4.8rem;
    right: 1rem;
    z-index: 15;
    width: 1.9rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0C000;
    color: #1a1a1a !important;
    border-radius: 0;
    box-shadow: 0 .2rem .6rem rgba(0,0,0,.4);
    opacity: .85;
    transition: opacity .2s, transform .2s;
}
.edit-fab svg { width: .8rem; height: .8rem; }
.edit-fab:hover { opacity: 1; transform: scale(1.08); }

.card-item { position: relative; }
.card-edit {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0C000;
    color: #1a1a1a !important;
    border-radius: 0;
    opacity: .85;
    box-shadow: 0 .15rem .4rem rgba(0,0,0,.3);
}
.card-edit svg { width: .7rem; height: .7rem; }
.card-edit:hover { opacity: 1; }

.btn {
    display: inline-block;
    background-color: #CD0018;
    color: #fff !important;
    padding: .25rem 2rem;
    border-radius: 0;
    font-weight: 900;
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: .02rem;
    margin-top: 1rem;
    white-space: nowrap;
}
.btn:hover { background-color: #a50013; }

/* HEADER */
header.site-header {
    background: #121212;
    padding: .8rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.4);
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header.site-header img.logo { max-height: 3.5rem; }
nav.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main-nav a { color: #EEE; font-weight: 600; font-size: .92rem; }
nav.main-nav a:hover { color: #CAAC00; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: .32rem;
    width: 2.4rem;
    height: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 30;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 0;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(.52rem) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-.52rem) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 19;
    opacity: 0;
    transition: opacity .3s;
}
.nav-overlay.open { display: block; opacity: 1; }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    nav.main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78%;
        max-width: 22rem;
        background: #121212;
        z-index: 20;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform .35s ease;
        box-shadow: -.3rem 0 1.5rem rgba(0,0,0,.5);
        overflow-y: auto;
    }
    nav.main-nav.open { transform: translateX(0); }
    nav.main-nav ul { flex-direction: column; gap: 0; }
    nav.main-nav li { border-bottom: 1px solid #2a2a2a; }
    nav.main-nav a { display: block; padding: 1rem 0; font-size: 1.05rem; }
}

/* SEÇÕES SPLIT (postos / transportadoras / pneus) */
section { padding: 4rem 0; overflow: hidden; }
.section-dark { background: #1A1A1A; color: #ccc; }
.section-light { background: #f5f5f5; color: #333; }
.section-light h2, .section-light h3, .section-light strong { color: #1a1a1a; }
.section-gray { background: #4a4a4a; color: #eee; }
.section-gray h2, .section-gray h3 { color: #fff; }

.split-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 22rem;
    padding: 0;
    display: flex;
    align-items: center;
}
.split-banner .split-box {
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 50vw;
    background: linear-gradient(135deg, rgba(205,0,24,.97), rgba(92,0,10,.97));
    border-radius: 0;
}
.split-banner.align-right .split-box { right: 0; }
.split-banner.align-left .split-box { left: 0; }

.split-banner > .container { position: relative; z-index: 2; display: flex; width: 100%; }
.split-banner .split-text { color: #fff; width: 50%; padding: 3rem 2.5rem; }
.split-banner.align-right .split-text { margin-left: auto; }
.split-banner.align-left .split-text { margin-right: auto; }
.split-banner h2 { color: #fff; font-size: 1.7rem; line-height: 1.3; }
.split-banner p { margin: 0; }

@media (max-width: 900px) {
    .split-banner { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 18rem; padding: 0; }
    .split-banner .split-box { display: none; }
    .split-banner > .container { display: block; width: 100%; }
    .split-banner .split-text {
        width: 100%; max-width: 100%; margin: 0 !important;
        padding: 1.5rem 1.2rem;
        background: linear-gradient(135deg, rgba(205,0,24,.95), rgba(92,0,10,.95));
    }
}

/* CARDS (postos / transportadoras) */
.card-list { display: flex; flex-direction: column; gap: 1.5rem; }
.card-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #262626;
    padding: 1.2rem;
    border-radius: 0;
    color: #eee;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.2);
}
.card-item .card-img-link { flex: 0 0 21rem; display: block; }
.card-item img { width: 21rem; aspect-ratio: 16/9; height: auto; border-radius: 0; object-fit: cover; display: block; }
.card-item .card-body { flex: 1; min-width: 0; }
.card-item h3 { color: #CAAC00; margin: 0 0 .5rem; font-size: 1.3rem; }
.card-item .card-body p { margin: 0; padding-bottom: .75rem; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
.blog-card {
    background: #333;
    border-radius: 0;
    overflow: hidden;
    display: block;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 0 1rem rgba(0,0,0,.2);
}
.blog-card:hover { transform: translateY(-.4rem); box-shadow: 0 .5rem 1rem rgba(0,0,0,.4); }
.blog-card img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.blog-card .body { padding: 1.2rem; }
.blog-card h3 { font-size: 1.15rem; color: #fff; margin: .3rem 0; }
.blog-card p { color: #aaa; font-size: .92rem; }

/* LOCALIZAÇÕES */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.locations-grid li { background: #262626; padding: 1.2rem; border-radius: 0; color: #aaa; font-size: .92rem; }
.locations-grid li strong { display: block; color: #fff; margin-bottom: .4rem; font-size: 1.05rem; }
.locations-grid li a { color: #F55; }

/* FOOTER */
footer.site-footer { background: #1E1D24; color: #ccc; padding: 3.5rem 0 2rem; }
footer.site-footer .row { align-items: flex-start; }
footer.site-footer .logo { margin-bottom: 1rem; }
footer.site-footer h3 { margin: 0 0 1.2rem; font-size: 1.05rem; color: #CAAC00; text-transform: uppercase; letter-spacing: .03rem; }
footer.site-footer .col > h3:not(:first-child) { margin-top: 2rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: .6rem; }
footer.site-footer a { color: #ccc; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { color: #999; font-size: .92rem; line-height: 1.7; }
.social-icons { display: flex; gap: .7rem; margin: 0 0 2rem !important; }
.social-icons li { margin: 0 !important; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem; border-radius: 0;
    background: #CD0018; color: #fff !important; font-size: 1rem;
}
.social-icons a:hover { background: #a50013; }
.credit { background: #000; color: #999; padding: 1rem 0; text-align: center; font-size: .85rem; }

/* PÁGINA DE TOPO (postos, transportadoras, blog, páginas internas) */
.page-title {
    background: #171717;
    padding: 4rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-title::before { content:''; position:absolute; inset:0; background: rgba(0,0,0,.55); }
.page-title .container { position: relative; }
.page-title h1 { color: #fff; font-size: 2.2rem; }
.page-title p { color: #ddd; }

/* CONTATO */
form.contato label { display: block; margin-bottom: .8rem; font-size: .9rem; color: #ccc; }
form.contato input, form.contato textarea {
    width: 100%;
    margin-top: .3rem;
    padding: .7rem;
    border-radius: 0;
    border: 1px solid #555;
    background: transparent;
    color: #fff;
    font-family: inherit;
}
form.contato button {
    background: #CD0018;
    color: #fff;
    border: none;
    padding: .7rem 2.2rem;
    border-radius: 0;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}
form.contato button:hover { background: #a50013; }

@media (max-width: 768px) {
    .card-item { flex-direction: column; }
    .card-item .card-img-link { flex-basis: auto; width: 100%; }
    .card-item img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
    .page-title { padding: 2.5rem 0; }
    .page-title h1 { font-size: 1.6rem; }
    section { padding: 2.5rem 0; }
    .row { flex-direction: column; margin: 0; }
    .row > .col { padding: 0; margin-bottom: 2rem; }
    .row > .col:last-child { margin-bottom: 0; }
    .split-banner h2, .split-text h2 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    header.site-header img.logo { max-height: 2.6rem; }
    .btn { padding: .5rem 1.4rem; font-size: .8rem; }
}
