/* =====================================================
   Transportes Stall — V2
   Estende o Bootstrap 5 com identidade visual da Stall.
   ===================================================== */

:root {
    /* Paleta mais sóbria, estilo Linear/Notion */
    --brand: #0f1729;
    --brand-2: #1e293b;
    --brand-3: #334155;
    --accent: #e30613;
    --accent-2: #b8050f;
    --text: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f1729;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;

    --shadow-xs: 0 1px 2px rgba(15, 23, 41, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 41, .06);
    --shadow: 0 4px 12px rgba(15, 23, 41, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 41, .10);

    --radius: 8px;
    --radius-lg: 12px;
    --transition: .15s ease;

    /* Override Bootstrap */
    --bs-primary: #0f1729;
    --bs-primary-rgb: 15, 23, 41;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: #0f172a;
    --bs-body-bg: #ffffff;
    --bs-border-color: #e2e8f0;
}

body {
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--brand); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: #334155; }

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

.skip-link { position: absolute; left: -1000px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 2000; }

::selection { background: var(--accent); color: var(--brand); }

/* ======= Brand ======= */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none !important; }
.brand-logo { height: 42px; width: auto; }
.brand-logo-sidebar { height: 38px; width: auto; }
.footer-logo { height: 56px; width: auto; }

.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-2); margin-bottom: .65rem;
}

/* ======= Navbar do site público ======= */
/* =============================================
   AJUSTES DE RESPONSIVIDADE GLOBAL (mobile)
   ============================================= */
@media (max-width: 767px) {
    /* Hero slider menor em mobile */
    .hero-swiper { height: 380px; }
    .hero-content { padding: 1.5rem 1rem; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-cta { padding: .7rem 1.5rem; font-size: .9rem; }

    /* Mini-cards 3-col → 1-col */
    .hero-mini-card { padding: 1rem; }
    .hero-mini-card .icon { width: 48px; height: 48px; }
    .hero-mini-card h3 { font-size: 1rem; }
    .hero-mini-card p { font-size: .85rem; }

    /* About: ajustar título + ícones */
    .legacy-about { padding: 3rem 0; }
    .legacy-about .section-title-right h2 { font-size: 1.5rem; }
    .legacy-about .section-title-right .title-icon { width: 38px; }
    .about-lead { font-size: .95rem; }

    /* CTA banner */
    .legacy-cta-banner { padding: 2.5rem 0; text-align: center; }
    .legacy-cta-banner h2 { font-size: 1.4rem; }
    .legacy-cta-banner .text-lg-end { text-align: center !important; margin-top: 1rem; }

    /* Services */
    .legacy-services { padding: 3rem 0; }
    .legacy-services .section-title h2 { font-size: 1.6rem; }
    .legacy-service-card { padding: 1.5rem 1rem; }
    .legacy-service-card .icon { width: 64px; height: 64px; padding: 14px; }

    /* Footer */
    .site-footer { margin-top: 3rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    /* Modal de Rastreamento */
    .modal-header.bg-stall-dark h5 { font-size: 1rem; }
    .modal-body .form-label { font-size: .82rem; }
}

@media (max-width: 575px) {
    .hero-swiper { height: 340px; }
    .hero-content h1 { font-size: 1.5rem; }
    /* Esconder setas em telas bem pequenas — só paginação */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev { display: none !important; }
}

/* ======= Botão flutuante WhatsApp ======= */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    background: #25D366;
    color: #fff !important;
    border-radius: 50px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.15);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1;
}
.wa-float i {
    font-size: 28px;
    line-height: 1;
    animation: waPulse 2s infinite;
}
.wa-float:hover {
    transform: scale(1.05);
    background: #128C7E;
    box-shadow: 0 8px 24px rgba(18, 140, 126, .55);
    color: #fff !important;
}
.wa-float-text {
    white-space: nowrap;
    /* Esconde em telas pequenas — fica só o ícone redondo */
}
@media (max-width: 575px) {
    .wa-float {
        padding: 14px;
        right: 12px;
        bottom: 12px;
    }
    .wa-float-text { display: none; }
    .wa-float i { font-size: 26px; }
}

@keyframes waPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* ======= Topbar (dark, com contato + redes) ======= */
.site-topbar {
    background: var(--brand);
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: color .15s ease;
}
.topbar-contact a:hover { color: var(--accent); }
.topbar-contact i { color: var(--accent); font-size: .85rem; }
.topbar-social { display: flex; gap: .65rem; }
.topbar-social a {
    color: rgba(255,255,255,.7);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06);
    transition: var(--transition);
    text-decoration: none;
}
.topbar-social a:hover { background: var(--accent); color: #fff; }

/* ======= Social icons no rodapé ======= */
.footer-social { display: flex; gap: .65rem; }
.footer-social a {
    color: rgba(255,255,255,.7);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06);
    transition: var(--transition);
    text-decoration: none;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.site-navbar {
    background: rgba(15, 23, 41, .92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .85rem 0;
}
.site-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.06); }
.site-navbar .navbar-toggler { border-color: rgba(255,255,255,.2); }
.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ======= Buttons (estende Bootstrap) ======= */
.btn { font-weight: 500; border-radius: var(--radius); padding: .55rem 1.15rem; transition: var(--transition); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-accent {
    background: var(--accent); color: #fff !important;
    border: 1px solid var(--accent);
}
.btn-accent:hover {
    background: var(--accent-2); border-color: var(--accent-2);
    color: #fff !important;
}
.btn-primary {
    background: var(--brand); border-color: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost-light {
    background: transparent; color: #fff !important;
    border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* ======= Hero ======= */
.hero {
    background: var(--brand);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero.hero-clean {
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 60%, #334155 100%);
    padding: 6rem 0 5rem;
}
.hero.hero-clean::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(227,6,19,.18) 0%, transparent 65%);
    top: -200px; right: -200px;
    pointer-events: none;
}
.hero.hero-clean::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(227,6,19,.12) 0%, transparent 65%);
    bottom: -150px; left: -150px;
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 75% 30%, rgba(217,119,6,.08) 0%, transparent 55%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ======= Services clean ======= */
.services-clean { padding: 6rem 0; background: var(--bg); }
.services-clean .section-head { margin-bottom: 3.5rem; text-align: center; }
.services-clean .section-head h2 { color: var(--brand); }
.services-clean .eyebrow {
    display: inline-block; padding: .35rem .9rem;
    background: rgba(227,6,19,.08); color: var(--accent);
    border-radius: 999px; font-weight: 600;
    margin-bottom: 1rem;
}
.service-card-clean {
    background: #fff; border: 1px solid var(--border);
    padding: 2.5rem 2rem; border-radius: var(--radius-lg);
    text-align: center; height: 100%;
    transition: var(--transition);
}
.service-card-clean:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(227,6,19,.12);
}
.service-icon-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(227,6,19,.08), rgba(227,6,19,.18));
    color: var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.service-card-clean:hover .service-icon-circle {
    background: var(--accent); color: #fff;
    transform: scale(1.05);
}
.service-card-clean h3 { color: var(--brand); margin-bottom: .75rem; font-size: 1.15rem; }
.service-card-clean p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ======= About clean ======= */
.about-clean { padding: 6rem 0; background: var(--bg-soft); }
.about-clean h2 { color: var(--brand); }
.about-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-features li {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 0;
    color: var(--text); font-size: .95rem;
}
.about-features li i {
    width: 32px; height: 32px;
    background: rgba(227,6,19,.1);
    color: var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.about-image {
    width: 100%; display: block;
    aspect-ratio: 5/4; object-fit: cover;
}
.about-badge {
    position: absolute;
    bottom: -30px; right: -30px;
    background: var(--accent); color: #fff;
    width: 180px; height: 180px;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(227,6,19,.4);
}
.about-badge strong { display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; }
.about-badge span { display: block; font-size: .85rem; opacity: .9; margin-top: .25rem; }

/* ======= About grid 2x2 (igual legado: foto + card vermelho + card vermelho + foto) ======= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
}
.about-grid img {
    width: 100%; height: 100%;
    aspect-ratio: 1/1; object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.about-mini-card {
    background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
    color: #fff;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 25px rgba(227,6,19,.25);
    transition: transform .25s ease;
}
.about-mini-card:hover { transform: translateY(-4px); }
.about-mini-card i { font-size: 2rem; margin-bottom: .5rem; opacity: .9; }
.about-mini-card h4 {
    color: #fff; font-size: 1.05rem; font-weight: 700;
    margin: 0 0 .5rem; padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.25);
}
.about-mini-card p { font-size: .82rem; color: rgba(255,255,255,.92); margin: 0; line-height: 1.4; }

.about-badge-grid {
    position: absolute;
    bottom: -28px; right: -28px;
    background: var(--brand); color: var(--accent);
    width: 110px; height: 110px;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0,0,0,.25);
    border: 4px solid #fff;
    z-index: 2;
}
.about-badge-grid strong { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--accent); }
.about-badge-grid span { display: block; font-size: .72rem; color: #fff; opacity: .9; margin-top: .15rem; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 575px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-grid img, .about-mini-card { aspect-ratio: 4/3; }
    .about-badge-grid { width: 88px; height: 88px; bottom: -20px; right: -10px; }
    .about-badge-grid strong { font-size: 1.75rem; }
}

/* ======= Accordion Stall ======= */
.stall-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: .65rem;
    overflow: hidden;
    background: #fff;
}
.stall-accordion .accordion-button {
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    box-shadow: none !important;
}
.stall-accordion .accordion-button:not(.collapsed) {
    background: rgba(227,6,19,.06);
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}
.stall-accordion .accordion-button i { color: var(--accent); margin-right: .5rem; }
.stall-accordion .accordion-button::after { filter: hue-rotate(120deg) saturate(2); }
.stall-accordion .accordion-body { font-size: .9rem; color: var(--text); line-height: 1.55; padding: 1rem 1.25rem; }

/* ======= CTA clean ======= */
.cta-clean {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-clean::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.cta-clean .container { position: relative; z-index: 1; }
.cta-clean h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-clean .eyebrow {
    background: rgba(255,255,255,.12); color: #fff !important;
    padding: .35rem .9rem; border-radius: 999px;
    display: inline-block; margin-bottom: 1rem; font-weight: 600;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; }
.hero .eyebrow { color: var(--accent); }

.hero-track-card {
    background: #fff; color: var(--text);
    padding: 1.75rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-track-card h2 { font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--brand); }

/* =============================================
   ESTILOS DA HOME PADRÃO LEGADO
   ============================================= */

/* ======= Hero slider (Swiper) ======= */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-swiper {
    height: clamp(420px, 70vh, 640px);
    width: 100%;
}
.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,31,58,.78) 0%, rgba(11,31,58,.35) 70%, transparent 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    color: #fff;
    padding: 2rem 1.25rem;
    max-width: 720px;
}
.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    letter-spacing: -.02em;
    color: #fff;
}
.hero-content .hero-sub {
    font-size: .85em; font-weight: 400; color: rgba(255,255,255,.85);
}
.hero-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent);
    color: #fff !important;
    padding: .85rem 2.25rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: var(--transition);
}
.hero-cta:hover { background: transparent; color: #fff !important; }

/* Swiper controls custom */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,.3);
    width: 44px; height: 44px;
    border-radius: 50%;
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 1.1rem; font-weight: 700; }
.hero-swiper .swiper-pagination-bullet {
    background: #fff; opacity: .5; width: 10px; height: 10px;
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--accent); width: 28px; border-radius: 5px; }

/* ======= Mini cards abaixo do slider ======= */
.hero-mini-cards {
    background: var(--bg);
    padding: 3.5rem 0;
}
.hero-mini-card {
    display: flex; gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.hero-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.hero-mini-card .icon {
    flex-shrink: 0; width: 56px; height: 56px;
    background: var(--accent);
    border-radius: 12px;
    display: grid; place-items: center;
    padding: 8px;
}
.hero-mini-card .icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.hero-mini-card h3 { font-size: 1.1rem; color: var(--brand); margin: 0 0 .35rem; font-weight: 700; }
.hero-mini-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.45; }

/* ======= Sobre (estilo legado: foto + card vermelho + card vermelho + foto) ======= */
.legacy-about {
    background: var(--bg);
    padding: 5rem 0;
}
.legacy-about .section-title-right {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.legacy-about .section-title-right .title-icon {
    width: 50px; flex-shrink: 0;
}
.legacy-about .section-title-right .title-icon img { width: 100%; }
.legacy-about .section-title-right h2 {
    color: var(--accent);
    margin: 0; font-size: 2rem; font-weight: 700;
}
.legacy-about .about-lead {
    color: var(--text); font-size: 1.02rem; line-height: 1.7; margin: 0;
}

.legacy-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.legacy-about-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}
.legacy-about-grid .card-service {
    background: var(--accent);
    color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    aspect-ratio: 1/1;
    display: flex; flex-direction: column;
}
.legacy-about-grid .card-service .icon { width: 50px; height: 50px; margin-bottom: .75rem; }
.legacy-about-grid .card-service .icon img { width: 100%; filter: brightness(0) invert(1); }
.legacy-about-grid .card-service h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 700; }
.legacy-about-grid .card-service hr { border-color: rgba(255,255,255,.3); margin: .35rem 0 .75rem; }
.legacy-about-grid .card-service p { font-size: .82rem; color: rgba(255,255,255,.95); margin: 0; line-height: 1.45; }

@media (max-width: 575px) {
    .legacy-about-grid { grid-template-columns: 1fr; }
    .legacy-about-grid img, .legacy-about-grid .card-service { aspect-ratio: 16/10; }
}

/* ======= CTA Banner (faixa vermelha) ======= */
.legacy-cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.legacy-cta-banner::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.legacy-cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; margin: 0 0 .5rem; }
.legacy-cta-banner p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }
.legacy-cta-btn {
    display: inline-flex; align-items: center; gap: .75rem;
    background: rgba(0,0,0,.25);
    padding: 1rem 2rem;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    transition: var(--transition);
}
.legacy-cta-btn:hover { background: rgba(0,0,0,.45); transform: translateY(-2px); }
.legacy-cta-btn img { width: 32px; height: 32px; filter: brightness(0) invert(1); }

/* ======= Serviços (4 cards) ======= */
.legacy-services {
    background: var(--bg-soft);
    padding: 5rem 0;
    position: relative;
}
.legacy-services .section-title {
    margin-bottom: 1rem;
}
.legacy-services .section-title .title-icon-text {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.legacy-services .section-title h2 {
    color: var(--brand);
    font-size: 2.25rem; font-weight: 700;
    margin: 0 0 .5rem;
}
.legacy-services .section-title .lead {
    color: var(--muted);
    font-size: 1rem;
}

.legacy-service-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.legacy-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    border-color: var(--accent);
}
.legacy-service-card .icon {
    width: 80px; height: 80px; margin: 0 auto 1.25rem;
    background: var(--bg-soft);
    border-radius: 50%;
    display: grid; place-items: center;
    padding: 18px;
    transition: var(--transition);
}
.legacy-service-card:hover .icon { background: var(--accent); }
.legacy-service-card .icon img { width: 100%; height: 100%; object-fit: contain; transition: var(--transition); }
.legacy-service-card:hover .icon img { filter: brightness(0) invert(1); }
.legacy-service-card h3 { color: var(--brand); font-size: 1.1rem; font-weight: 700; margin: 0 0 .65rem; }
.legacy-service-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.5; }

/* ======= Modal Rastreamento header ======= */
.bg-stall-dark { background: var(--brand); color: #fff; }
.bg-stall-dark .modal-title { color: #fff; }
.modal-header.bg-stall-dark .text-accent { color: var(--accent) !important; }

/* ======= Section heads ======= */
.section-head { text-align: left; max-width: 680px; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ======= Service cards ======= */
.services { padding: 6rem 0; background: var(--bg); }
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    border-color: var(--brand-3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.service-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--bg-soft);
    color: var(--brand-3);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}
.service-card:hover .service-icon { background: var(--brand); color: #fff; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }

/* ======= About strip / Stats ======= */
.about-strip { padding: 6rem 0; background: var(--bg-soft); }
.stat-card {
    text-align: left; height: 100%;
    padding: 1.25rem 0;
}
.stat-card strong { font-size: 2.25rem; color: var(--brand); font-weight: 700; display: block; letter-spacing: -.03em; line-height: 1; }
.stat-card span { color: var(--muted); font-size: .85rem; margin-top: .35rem; display: block; }

/* ======= CTA final ======= */
.cta-final {
    background: var(--brand);
    color: #fff; padding: 4.5rem 0; text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ======= Page hero (subpáginas) ======= */
.page-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 700px; }
.page-hero .eyebrow { color: var(--accent); }

/* ======= Content sections ======= */
.content-section { padding: 4rem 0; }
.content-aside {
    background: var(--bg-soft); padding: 2rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    position: sticky; top: 90px;
}
.value-list { list-style: none; padding: 0; }
.value-list li { padding-left: 1.75rem; position: relative; margin-bottom: .85rem; }
.value-list li::before {
    content: '\F26A'; font-family: 'bootstrap-icons';
    color: var(--accent-2); position: absolute; left: 0; top: -2px;
}
.feature-list { list-style: none; padding: 0; margin-top: 1rem; }
.feature-list li { padding-left: 1.5rem; position: relative; margin-bottom: .5rem; }
.feature-list li::before {
    content: '\F285'; font-family: 'bootstrap-icons';
    color: var(--accent-2); position: absolute; left: 0;
}

/* ======= Service details ======= */
.service-detail {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: 0; }
.service-detail-img {
    background: linear-gradient(135deg, var(--bg-soft), #e8edf5);
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    display: grid; place-items: center;
    font-size: 6rem;
    border: 1px solid var(--border);
}

/* ======= Forms (estende Bootstrap) ======= */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(224,165,38,.18);
}
.form-control.is-loading { background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' r='32' stroke='%23e0a526' stroke-width='6' fill='none' stroke-linecap='round'%3e%3canimateTransform attributeName='transform' type='rotate' values='0 50 50;360 50 50' dur='1s' repeatCount='indefinite'/%3e%3c/circle%3e%3c/svg%3e") right 8px center/22px no-repeat #fff; }
.hp { position: absolute; left: -10000px !important; }

/* =============================================
   RASTREAMENTO — UX moderna (refactored)
   ============================================= */

/* Hero (só aparece sem resultado) */
.track-hero {
    background: linear-gradient(135deg, var(--brand) 0%, #0a1628 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.track-hero::before {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(227,6,19,.15) 0%, transparent 60%);
    top: -200px; right: -200px;
    pointer-events: none;
}
.track-hero-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent);
}
.track-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: .75rem; }
.track-hero .lead { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0; }

/* Search bar */
.track-search-section { padding: 2rem 0 3rem; margin-top: -3rem; position: relative; z-index: 2; }
.track-search-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 1px solid var(--border);
}
.track-search-form .form-label { color: var(--muted); }

.track-error {
    background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #ef4444;
    color: #7f1d1d; padding: 1rem 1.25rem;
    border-radius: var(--radius); margin-top: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
}
.track-error i { font-size: 1.5rem; color: #ef4444; flex-shrink: 0; }
.track-error p { margin: .25rem 0 0; font-size: .92rem; }

/* Resultado: hero do resultado */
.track-result-section { padding-bottom: 5rem; }
.track-result-hero {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid var(--border);
    border-left: 6px solid var(--status-color, #5b6573);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 1rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
    box-shadow: var(--shadow);
}
.track-hero-label {
    font-size: .75rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 700;
}
.track-hero-id {
    font-size: 2rem; font-weight: 800; color: var(--brand);
    margin: .25rem 0 1rem; line-height: 1;
}
.track-hero-id span { color: var(--accent); }
.track-status-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.25rem;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: .92rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.track-status-pill i { font-size: 1.1rem; }

.track-eta {
    background: #f1f5f9; padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 1rem;
    border-left: 4px solid #3b82f6;
}
.track-eta i { font-size: 2rem; color: #3b82f6; }
.track-eta small {
    display: block; font-size: .72rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.track-eta strong { display: block; font-size: 1.15rem; color: var(--brand); font-weight: 700; }
.track-eta-date { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.track-eta.entregue { border-left-color: #10b981; }
.track-eta.entregue i { color: #10b981; }
.track-eta.atrasado { border-left-color: #ef4444; background: #fef2f2; }
.track-eta.atrasado i { color: #ef4444; }

/* Route card: origem → destino com barra de progresso */
.track-route-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
}
.track-route-end {
    display: flex; gap: 1rem; align-items: center;
}
.track-route-icon {
    width: 50px; height: 50px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.track-route-end.origem .track-route-icon { background: rgba(59,130,246,.1); color: #3b82f6; }
.track-route-end.destino .track-route-icon { background: rgba(16,185,129,.1); color: #10b981; }
.track-route-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--muted); font-weight: 700;
}
.track-route-cidade { font-size: 1.05rem; color: var(--brand); font-weight: 700; margin-top: .2rem; }
.track-route-empresa { font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.3; }

.track-route-line {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
}
.track-route-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, var(--accent) 50%, #10b981 100%);
    border-radius: 4px;
    transition: width .8s ease;
}
.track-route-truck {
    position: absolute;
    top: -16px;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(227,6,19,.4);
    transition: left .8s ease;
}

@media (max-width: 767px) {
    .track-route-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
    .track-route-line { display: none; }
}

/* Info grid */
.track-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.track-info-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 1rem;
}
.track-info-icon {
    width: 42px; height: 42px;
    background: rgba(227,6,19,.08);
    color: var(--accent);
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.track-info-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.track-info-value { font-size: .98rem; color: var(--brand); font-weight: 700; margin-top: .15rem; }
.track-info-value.mono { font-family: Menlo, Monaco, Consolas, monospace; font-size: .88rem; }

/* Timeline horizontal */
.track-timeline-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
}
.track-timeline-title {
    font-size: 1rem; color: var(--brand); margin: 0 0 1.5rem;
    display: flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700;
}
.track-timeline-title i { color: var(--accent); font-size: 1.1rem; }

.track-timeline-h {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.track-step {
    text-align: center;
    position: relative;
    padding: 0 .5rem;
}
.track-step-dot {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    color: #cbd5e1;
    display: grid; place-items: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    transition: all .3s ease;
    position: relative;
    z-index: 2;
}
.track-step.done .track-step-dot {
    background: var(--step-color, #10b981);
    border-color: var(--step-color, #10b981);
    color: #fff;
}
.track-step.current .track-step-dot {
    background: var(--step-color);
    border-color: var(--step-color);
    color: #fff;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--step-color) 25%, transparent), 0 4px 12px rgba(0,0,0,.15);
    transform: scale(1.1);
}
.track-step-body h4 {
    font-size: .82rem;
    color: var(--brand);
    font-weight: 700;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.track-step.pending .track-step-body h4 { color: var(--muted); }
.track-step-body time { font-size: .72rem; color: var(--muted); }

.track-step-line {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.track-step.done + .track-step .track-step-line,
.track-step.done .track-step-line { background: var(--step-color, #10b981); }

@media (max-width: 767px) {
    .track-timeline-h {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .track-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 1rem;
        text-align: left;
        padding: .75rem 0;
        position: relative;
    }
    .track-step-dot { margin: 0; }
    .track-step-line {
        top: 48px; left: 22px;
        width: 3px; height: calc(100% - 24px);
    }
    .track-step-body h4 { margin-top: .5rem; font-size: .95rem; }
    .track-step-body time { font-size: .82rem; }
}

/* Extra cards (notas, galerias) */
.track-extra-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 1.5rem;
}
.track-extra-card h3 {
    font-size: 1rem !important;
    color: var(--brand);
    margin: 0 0 1.25rem;
    display: flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700;
}
.track-extra-card h3 i {
    color: var(--accent);
    font-size: 1.15rem !important;
}
.badge-count {
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: .25rem;
}

.track-nfs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
}
.track-nf {
    background: var(--bg-soft);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    position: relative;
    border-left: 3px solid var(--accent);
}
.track-nf-num small,
.track-nf-chave small {
    font-size: .65rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--muted); font-weight: 700;
}
.track-nf-num strong { display: block; font-size: 1.1rem; color: var(--brand); font-weight: 800; margin-top: .15rem; }
.track-nf-chave { margin-top: .65rem; }
.track-nf-chave .mono {
    display: block; font-size: .68rem; color: var(--text);
    font-family: Menlo, Monaco, Consolas, monospace;
    margin-top: .15rem;
    word-break: break-all;
}
.badge-tipo {
    position: absolute; top: .65rem; right: .85rem;
    background: var(--accent); color: #fff;
    font-size: .65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
}

/* CTA Ajuda */
.track-help {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #14171c 0%, #1f2937 100%);
    color: #fff;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.track-help > div:first-child {
    display: flex; align-items: center; gap: 1rem;
}
.track-help i.bi-question-circle-fill {
    font-size: 2rem; color: var(--accent);
}
.track-help strong { display: block; color: #fff; font-size: 1.05rem; }
.track-help p { color: rgba(255,255,255,.7); margin: .15rem 0 0; font-size: .9rem; }
.track-help-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.track-help-actions .btn-success { background: #25D366; border-color: #25D366; }
.track-help-actions .btn-success:hover { background: #128C7E; border-color: #128C7E; }

/* Galerias (reaproveita track-grid + track-thumb antigos) */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}
.track-thumb {
    aspect-ratio: 1/1; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg-soft); padding: 0;
    cursor: pointer; transition: var(--transition);
    display: block; position: relative;
}
.track-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.track-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.track-thumb {
    aspect-ratio: 1/1; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg-soft); padding: 0;
    cursor: pointer; transition: var(--transition);
    display: block; position: relative;
}
.track-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.track-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-thumb-pdf {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .35rem; padding: 1rem; text-align: center; text-decoration: none; color: var(--text);
}
.track-thumb-pdf i { font-size: 2.5rem; color: #dc2626; }
.track-thumb-pdf span { font-size: .75rem; word-break: break-word; line-height: 1.2; color: var(--muted); }

/* ======= Lightbox ======= */
.lightbox {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
    position: relative; max-width: 95vw; max-height: 95vh;
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.lightbox-img {
    max-width: 95vw; max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
    border-radius: 4px;
    background: #1a1a1a;
}
.lightbox-caption {
    color: rgba(255,255,255,.85);
    font-size: .9rem; text-align: center;
    max-width: 90vw; padding: 0 1rem;
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background .15s ease;
    z-index: 1;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-nav.prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .lightbox-nav { width: 38px; height: 38px; }
    .lightbox-nav.prev { left: .5rem; }
    .lightbox-nav.next { right: .5rem; }
    .lightbox-close { top: .5rem; right: .5rem; }
}

/* ======= Footer ======= */
.site-footer {
    background: var(--bg-dark); color: rgba(255,255,255,.75);
    margin-top: 5rem;
}
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-list a { color: rgba(255,255,255,.7); }
.footer-list a:hover { color: var(--accent); }
.footer-contact li { margin-bottom: .85rem; }
.footer-contact i { color: var(--accent); margin-right: .35rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
}
.footer-bottom p { color: rgba(255,255,255,.55); font-size: .85rem; }

/* ======= Error pages ======= */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1.25rem; }
.error-page h1 { font-size: 5rem; color: var(--brand); margin-bottom: .5rem; }
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ======= Toasts ======= */
.toast-msg {
    position: fixed; right: 1rem; bottom: 1rem;
    padding: .85rem 1.25rem;
    background: #fff; color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px); opacity: 0;
    transition: var(--transition);
    z-index: 3000;
    border-left: 4px solid var(--brand-3);
}
.toast-msg.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: #3b82f6; }
