/* ============================================================
   TONEL EXPRESS — design tokens
   Marca: azul royal (#1553b0) + laranja (#f7841e) + amarelo (#ffc72c),
   fundo branco/limpo. Nicho: remoção de entulho, caçambas, Baixada
   Santista. Visual robusto, direto, "resolve rápido" — nada elegante,
   tipografia arredondada/bold (Baloo 2) + corpo em Inter.
   ============================================================ */
:root {
    --blue: #1553b0;
    --blue-dark: #0e3d85;
    --blue-tint: #e8eefb;
    --orange: #f7841e;
    --orange-dark: #d96d0f;
    --orange-tint: #fff1e2;
    --yellow: #ffc72c;
    --ink: #1a1a1a;
    --muted: #5c5c5c;
    --bg: #ffffff;
    --surface: #ffffff;
    --tint: #f5f7fb;
    --border: #e4e7ee;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow: 0 2px 4px rgba(20, 30, 60, .05), 0 10px 24px -10px rgba(20, 30, 60, .16);
    --shadow-lg: 0 6px 12px rgba(20, 30, 60, .06), 0 26px 50px -14px rgba(20, 30, 60, .24);

    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
    --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
    --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

    --font-heading: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1180px;
    --container-sm: 760px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 88px); }
html { overflow-x: hidden; }
body {
    margin: 0;
    overflow-x: hidden;
    max-width: 100vw;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.15;
    margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-3); }

.text-center { text-align: center; }
.mt-3 { margin-top: var(--space-3); }
.mt-8 { margin-top: var(--space-8); }

/* ============================================================
   Layout
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container-sm { width: 100%; max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--space-6); }
.main { overflow-x: hidden; padding-top: var(--header-h, 88px); }

.section { padding: var(--space-20) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--blue { background: var(--blue); color: rgba(255,255,255,.9); }
.section--blue h2, .section--blue h3 { color: #fff; }

.section__eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-family: var(--font-heading); font-weight: 700; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--orange-dark); margin-bottom: var(--space-3);
    background: var(--orange-tint); padding: .35rem .9rem; border-radius: var(--radius-pill);
}
.section__header { max-width: 720px; margin: 0 0 var(--space-10); }
.section__header.text-center { margin-left: auto; margin-right: auto; }
.section__subtitle { color: var(--muted); font-size: 1.05rem; }

/* Divisor diagonal — remete às "linhas de velocidade" do mascote */
.stripe-divider { display: flex; gap: 5px; margin: 0 0 var(--space-6); }
.stripe-divider span { width: 26px; height: 6px; border-radius: 3px; background: var(--orange); transform: skewX(-20deg); }
.stripe-divider span:nth-child(2) { background: var(--yellow); }
.stripe-divider span:nth-child(3) { background: var(--blue); }
.section__header.text-center .stripe-divider { justify-content: center; }

.grid { display: grid; gap: var(--space-6); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; } }

/* ============================================================
   Componentes
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
    padding: .85rem 1.8rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -6px rgba(247,132,30,.55); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 12px 24px -6px rgba(247,132,30,.6); }
.btn-secondary { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-secondary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-on-dark { background: var(--yellow); color: var(--blue-dark); }
.btn-on-dark:hover { filter: brightness(1.06); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .875rem; }

.badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--yellow); color: var(--blue-dark);
    font-family: var(--font-heading); font-weight: 700;
    font-size: .9rem; padding: .4rem 1.1rem; border-radius: var(--radius-pill);
    margin-bottom: var(--space-4);
}

/* ============================================================
   Header
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--orange);
    transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 18px -10px rgba(20,30,60,.25); }
.header__container { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; gap: var(--space-6); }
.header__logo { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; margin-left: 4px; }
.header__logo img { height: 56px; width: auto; }
.header__logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--blue-dark); }
.header__nav { display: flex; align-items: center; gap: var(--space-6); }
.header__nav-link { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; color: var(--ink); position: relative; padding: .25rem 0; }
.header__nav-link:hover, .header__nav-link.active { color: var(--orange); }
.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.header__mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--blue-dark); }

@media (max-width: 860px) {
    .header { backdrop-filter: none; }
    .header__nav {
        position: fixed; inset: 76px 0 0 0; z-index: 150;
        background: #fff; opacity: 1; backdrop-filter: none;
        flex-direction: column; padding: var(--space-8) var(--space-6); gap: var(--space-5);
        box-shadow: 0 12px 24px -8px rgba(20,30,60,.15);
        transform: translateX(100%); transition: transform .25s ease;
    }
    .header__nav.is-open { transform: translateX(0); }
    .header__nav-link { font-size: 1.15rem; }
    .header__mobile-toggle { display: block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative; overflow: hidden; min-height: 620px;
    display: flex; align-items: center;
    padding: calc(var(--space-24) + var(--space-6)) 0 var(--space-20);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(14,61,133,.94) 0%, rgba(14,61,133,.82) 34%, rgba(14,61,133,.42) 62%, rgba(14,61,133,.12) 100%);
}
@media (max-width: 900px) {
    .hero__bg::after { background: linear-gradient(180deg, rgba(14,61,133,.78) 0%, rgba(14,61,133,.88) 55%, rgba(14,61,133,.94) 100%); }
}
.hero__grid { position: relative; z-index: 1; max-width: 640px; }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 540px; }
.hero__actions { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.hero h1 { color: #fff; }

/* ============================================================
   Diferenciais
   ============================================================ */
.diferenciais-card { text-align: left; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.diferenciais-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.diferenciais-card__icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: var(--space-4);
}

/* ============================================================
   Como funciona (steps)
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: var(--space-4); counter-reset: step; }
.step {
    display: flex; align-items: flex-start; gap: var(--space-5);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: var(--space-6); box-shadow: var(--shadow);
}
.step__num {
    counter-increment: step; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--orange); color: #fff;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}
.step__num::before { content: counter(step); }
.step__title { font-size: 1.15rem; margin-bottom: var(--space-1); }
.step__desc { color: var(--muted); }

/* ============================================================
   Sobre / Missão, Visão, Valores
   ============================================================ */
.sobre__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: start; }
.sobre__body { color: var(--muted); }
.sobre__body p { margin-bottom: var(--space-4); }
.sobre__mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
@media (max-width: 780px) { .sobre__mvv { grid-template-columns: 1fr; } }
.sobre__mvv-card {
    border-radius: var(--radius); padding: var(--space-6); color: #fff;
}
.sobre__mvv-card:nth-child(1) { background: var(--blue); }
.sobre__mvv-card:nth-child(2) { background: var(--orange); }
.sobre__mvv-card:nth-child(3) { background: var(--ink); }
.sobre__mvv-card h4 {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
    color: #fff; margin-bottom: var(--space-3);
}
.sobre__mvv-card p, .sobre__mvv-card ul { color: rgba(255,255,255,.9); font-size: .95rem; margin: 0; }
.sobre__mvv-card ul { display: flex; flex-direction: column; gap: var(--space-2); }
.sobre__mvv-card li { position: relative; padding-left: 1.2rem; }
.sobre__mvv-card li::before { content: '\2713'; position: absolute; left: 0; font-weight: 700; }

/* ============================================================
   Serviços
   ============================================================ */
.servico-card { display: flex; flex-direction: column; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.servico-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.servico-card__icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background: var(--orange-tint); color: var(--orange-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: var(--space-4);
    transition: background .2s ease, color .2s ease;
}
.servico-card:hover .servico-card__icon { background: var(--orange); color: #fff; }
.servico-card__body { color: var(--muted); flex: 1; }

/* ============================================================
   Galeria
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid img {
    width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .25s ease;
}
.gallery-grid a:hover img { transform: scale(1.03); }
.gallery-grid a { cursor: zoom-in; display: block; }

/* ============================================================
   Lightbox da galeria
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 16, 32, .92);
    padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain;
    border-radius: var(--radius); box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
}
.lightbox__close {
    position: absolute; top: var(--space-5); right: var(--space-5);
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: var(--space-5); }
.lightbox__next { right: var(--space-5); }
@media (max-width: 640px) {
    .lightbox__nav { width: 42px; height: 42px; font-size: 1.8rem; }
    .lightbox__prev { left: var(--space-2); }
    .lightbox__next { right: var(--space-2); }
    .lightbox__close { top: var(--space-3); right: var(--space-3); }
}

/* ============================================================
   Mapa
   ============================================================ */
.map-block { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.map-block iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: var(--space-5) var(--space-6); }
.faq-item summary {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--blue-dark);
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { color: var(--orange); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { color: var(--muted); margin-top: var(--space-3); }

/* ============================================================
   Contato
   ============================================================ */
.contato__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .contato__grid { grid-template-columns: 1fr; } }
.contato__item { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); color: var(--ink); }
.contato__item i { color: var(--orange); width: 22px; text-align: center; font-size: 1.1rem; }
.contato-card { background: var(--blue); color: #fff; border-radius: var(--radius); padding: var(--space-6); }
.contato-card .contato__item { color: #fff; }
.contato-card .contato__item i { color: var(--yellow); }

.form-envi { display: flex; flex-direction: column; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-8); box-shadow: var(--shadow); }
.form-envi label { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--blue-dark); width: 100%; max-width: 100%; box-sizing: border-box; }
.form-envi input, .form-envi textarea, .form-envi select {
    font-family: var(--font-body); font-size: .95rem; padding: .7rem .9rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint);
    color: var(--ink); width: 100%; max-width: 100%; box-sizing: border-box;
}
.form-envi input:focus, .form-envi textarea:focus, .form-envi select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-envi__success { background: var(--yellow); color: var(--blue-dark); border-radius: var(--radius-sm); padding: var(--space-4); font-weight: 700; }
.recaptcha-notice { font-size: .72rem; color: var(--muted); }
.recaptcha-notice a { text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final { background: var(--blue); border-radius: var(--radius-lg); padding: var(--space-16) var(--space-10); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-final::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 18px, transparent 18px 36px);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.8); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.68);
    padding: var(--space-16) 0 var(--space-6);
    border-top: 4px solid var(--orange);
}
.footer__content { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-10); }
@media (max-width: 780px) { .footer__content { grid-template-columns: 1fr; gap: var(--space-8); } }
.footer__logo { height: 52px; margin-bottom: var(--space-3); }
.footer h4 {
    font-family: var(--font-heading); color: var(--yellow); font-size: 1rem; font-weight: 800;
    margin-bottom: var(--space-5); padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a:hover { color: var(--orange); }
.footer__links--icons a { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer__social a {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.footer__social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
    padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.12);
    font-size: .8rem;
}

/* WhatsApp flutuante */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 8px 20px -4px rgba(0,0,0,.35);
    transition: transform .15s ease;
    animation: wa-pulse 2.2s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 8px 20px -4px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.5); }
    50% { box-shadow: 0 8px 20px -4px rgba(0,0,0,.35), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ============================================================
   Movimento — entrada ao rolar a página
   ============================================================ */
html.js .section__header,
html.js .card,
html.js .diferenciais-card,
html.js .step,
html.js .sobre__mvv-card,
html.js .servico-card,
html.js .faq-item,
html.js .contato-card,
html.js .cta-final,
html.js .map-block,
html.js .sobre__grid > *:first-child {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
html.js .in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
@media (prefers-reduced-motion: reduce) {
    html.js .section__header, html.js .card, html.js .diferenciais-card, html.js .step,
    html.js .sobre__mvv-card, html.js .servico-card, html.js .faq-item, html.js .contato-card,
    html.js .cta-final, html.js .map-block, html.js .sobre__grid > *:first-child {
        opacity: 1 !important; transform: none !important; transition: none !important;
    }
}
