/*
Theme Name: TFL
Theme URI: https://alexencomendas.com.br
Author: Alex Encomendas - TFL Transportes
Description: Tema próprio da Alex Encomendas - TFL Transportes: leve, responsivo e sem page builder (base: tema Mangoni).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: tfl
*/

:root {
	--red: #d71920;
	--red-dark: #b3141a;
	--red-soft: #fdf1f1;
	--green: #00a651;
	--orange: #f28c1e;
	--ink: #26272b;
	--ink-2: #1b1c1f;
	--text: #4f5157;
	--muted: #80838a;
	--line: #e6e7ea;
	--bg: #fff;
	--bg-soft: #f5f6f8;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(20, 22, 30, .07);
	--shadow-lg: 0 24px 60px rgba(20, 22, 30, .14);
	--wrap: 1200px;
	--font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Barlow", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 17px/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 strong, h1 strong { color: var(--red); font-weight: 700; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; background: #fff; padding: 10px 16px; top: 8px; left: 8px; }
.lead { font-size: 1.18rem; color: var(--ink); }
.centro { text-align: center; margin-top: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 12px; }
.eyebrow i { color: var(--orange); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.6em; border-radius: 999px; font: 600 1rem var(--font-body); border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(215, 25, 32, .28); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { color: var(--red-dark); }
.btn--whats { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .28); }
.btn--whats:hover { background: #1ebe5b; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Topo ---------- */
.topbar { background: var(--ink-2); color: #b9bbc0; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; min-height: 40px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar i { color: var(--orange); margin-right: 7px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd3a3; }
.topbar__links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social i { color: #fff; margin: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--green) 0 33%, var(--orange) 33% 66%, var(--red) 66%); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.site-logo img { height: 62px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a { display: block; position: relative; padding: .5em .9em; color: var(--ink); font: 600 1.08rem var(--font-body); }
.nav > ul > li > a::before { content: ""; position: absolute; left: .9em; right: .9em; bottom: .15em; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav > ul > li > a:hover::before, .nav .current-menu-item > a::before { transform: scaleX(1); }
.nav a:hover, .nav .current-menu-item > a { color: var(--red); }
.nav__whats { display: none !important; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.hdr-orc { padding: .7em 1.3em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 40%, #fff 0 35%, transparent 70%), linear-gradient(135deg, #fff5f2 0%, #f3f5f8 60%, #eef6f1 100%); padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 5vw, 60px); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; border: 60px solid rgba(242, 140, 30, .08); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 { margin-bottom: .4em; }
.hero__media img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 30px rgba(20, 22, 30, .18)); }

/* Valores (4 itens abaixo do hero) */
.valores { margin-top: -10px; position: relative; z-index: 2; }
.valores__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.valores__lista li { display: flex; gap: 14px; align-items: center; padding: 22px 22px; border-right: 1px solid var(--line); font-size: .95rem; line-height: 1.35; }
.valores__lista li:last-child { border-right: 0; }
.valores__lista i { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 1.2rem; }
.valores__lista li:nth-child(2) i { background: #eaf7f0; color: var(--green); }
.valores__lista li:nth-child(3) i { background: #fef3e7; color: var(--orange); }
.valores__lista strong { display: block; font: 700 1.25rem var(--font-head); color: var(--ink); }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); }
.section__head p { color: var(--muted); }

/* Serviços (cards) */
.servicos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.servicos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.servicos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.servicos i { font-size: 1.7rem; color: var(--red); margin-bottom: 16px; }
.servicos h3 { margin-bottom: .3em; }
.servicos p { margin: 0; font-size: .95rem; }

/* Split (texto + imagem/lista) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split--cidades { align-items: start; }
.split--cidades .split__media img { max-width: 440px; margin-inline: auto; border-radius: 0; }

/* Cidades: lista em "chips" (vale na home e na página Cidades) */
.cidades, .entry .cidades { list-style: none; margin: 0 0 1.2em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cidades li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em .4em .85em; font-weight: 500; color: var(--ink); font-size: .95rem; margin: 0; }
.cidades li::before { content: "\f3c5"; font: 900 .8em "Font Awesome 6 Free"; color: var(--red); margin-right: 7px; }
.cidades .cidades__mais { background: var(--red); border-color: var(--red); }
.cidades .cidades__mais::before { content: none; }
.cidades .cidades__mais a { color: #fff; }
.aviso { background: #fef3e7; border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 8px; color: var(--ink); }

/* Parceiros: grade de logos */
.parceiros { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.parceiros li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 110px; display: grid; place-items: center; padding: 16px; margin: 0; }
.parceiros img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; border-radius: 0 !important; }
.parceiros li:hover img { filter: none; opacity: 1; }
.parceiros--faixa { margin-top: 0; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; border-radius: 16px; padding: clamp(30px, 5vw, 50px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .07); right: -90px; top: -150px; }
.cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta p { margin: 0; color: #ffe0e1; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Páginas internas ---------- */
.page-hero { background: linear-gradient(135deg, var(--ink-2), #34363c); color: #c9cbd0; padding: clamp(40px, 6vw, 70px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green) 0 33%, var(--orange) 33% 66%, var(--red) 66%); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero__lead { margin: 12px 0 0; max-width: 700px; font-size: 1.1rem; }
.breadcrumbs { font-size: .88rem; margin-bottom: 10px; }
.breadcrumbs a { color: #fff; }
.content-area { padding: clamp(46px, 6vw, 80px) 0; }
.entry { max-width: 860px; margin-inline: auto; }
.split .entry { max-width: none; margin: 0; }
.entry h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.entry ul:not(.cidades):not(.parceiros) { padding-left: 1.2em; }
.entry ul:not(.cidades):not(.parceiros) li { margin-bottom: .4em; }
.entry ul:not(.cidades):not(.parceiros) li::marker { color: var(--red); }
.entry img { border-radius: var(--radius); }

/* Formulários */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], textarea, select { width: 100%; padding: .8em 1em; border: 1px solid #d9dbe0; border-radius: 8px; font: inherit; font-size: .98rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, .12); }
input[type=submit], .wpcf7-submit { background: var(--red); color: #fff; border: 0; padding: .95em 2.2em; border-radius: 999px; font: 600 1rem var(--font-body); cursor: pointer; }
input[type=submit]:hover, .wpcf7-submit:hover { background: var(--red-dark); }
.wpcf7 label { display: block; font: 600 .92rem var(--font-body); color: var(--ink); margin-bottom: 16px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 label input, .wpcf7 label textarea, .wpcf7 label select { margin-top: 6px; font-weight: 400; }
.wpcf7-acceptance { font-size: .88rem; display: block; margin-bottom: 18px; }
.wpcf7-acceptance label { font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row > * { min-width: 0; }
.obrigatorio { color: var(--red); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.3fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info { background: var(--ink-2); color: #b9bbc0; border-radius: 16px; padding: 34px; position: sticky; top: 110px; }
.contact-info h3 { color: #fff; font-size: 1.6rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: center; overflow-wrap: anywhere; }
.contact-info li i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.contact-info li:nth-child(2) i { background: #25d366; }
.contact-info a { color: #fff; }
.contact-info small { display: block; color: #8b8e95; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.contact-form .entry { max-width: none; }
.map { width: 100%; max-width: 1920px; margin-inline: auto; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-2); color: #9a9ca3; padding: 64px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: 16px; }
.site-footer a { color: #d3d5da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.3fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { overflow-wrap: anywhere; }
.footer-contact i { color: var(--orange); width: 20px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { height: 52px; width: auto; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2c2e33; color: #fff; transition: .2s; }
.social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid #2c2e33; margin-top: 50px; padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom { align-items: center; }
/* Crédito "Desenvolvido por L9WEB" (padrão em todos os sites): logo branco com fundo transparente, para rodapé escuro */
.credito { display: inline-flex; align-items: center; gap: 8px; }
.credito img { height: 28px; width: auto; opacity: .85; transition: opacity .2s; }
.credito:hover img { opacity: 1; }

/* WhatsApp flutuante */
.whats-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: tfl-pulse 2.4s infinite; }
.whats-float:hover { color: #fff; transform: scale(1.06); }
@keyframes tfl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .whats-float { animation: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
	.valores__lista { grid-template-columns: 1fr 1fr; }
	.valores__lista li:nth-child(2) { border-right: 0; }
	.valores__lista li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.servicos { grid-template-columns: 1fr 1fr; }
	.topbar__links a[href^="mailto"] { display: none; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-header .wrap { min-height: 72px; }
	.site-logo img { height: 50px; }
	.nav { position: fixed; inset: 73px 0 0 0; background: #fff; padding: 20px 16px; transform: translateX(100%); transition: transform .3s, visibility .3s; overflow-y: auto; visibility: hidden; }
	.nav.is-open { visibility: visible; transform: none; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav a { font-size: 1.2rem; padding: .8em 1em; border-bottom: 1px solid var(--line); }
	.nav > ul > li > a::before { display: none; }
	.nav__whats { display: flex !important; justify-content: center; margin-top: 20px; background: #25d366; color: #fff !important; border-radius: 999px; padding: .9em 1em !important; border: 0 !important; }
	.hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.hero__media img { margin-inline: auto; max-width: 420px; }
	.contact-info { position: static; }
	.topbar .wrap { justify-content: center; }
	.topbar__msg { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.hdr-orc span { display: none; }
	.hdr-orc { width: 44px; height: 44px; padding: 0; }
	.site-logo img { height: 44px; }
	.form-row, .footer-grid { grid-template-columns: 1fr; }
	.valores__lista, .servicos { grid-template-columns: 1fr; }
	.valores__lista li { border-right: 0; border-bottom: 1px solid var(--line); }
	.valores__lista li:last-child { border-bottom: 0; }
	.contact-info, .contact-form { padding: 22px; }
	.parceiros { grid-template-columns: 1fr 1fr; gap: 10px; }
	.parceiros li { height: 90px; padding: 10px; }
	.map iframe { height: 300px; }
	.hero__texto, .section .split > div:first-child, .cta { text-align: center; }
	.btns, .cta__actions, .cta { justify-content: center; }
	.cidades { justify-content: center; }
	.footer-grid { text-align: center; gap: 30px; }
	.social { justify-content: center; }
	.footer-bottom { flex-direction: column; align-items: center; text-align: center; }
	.footer-legal { justify-content: center; }
}

/* ---------- Banner de cookies (LGPD) ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.cookies[hidden], .cookies [hidden] { display: none !important; } /* o display: grid/flex das classes não pode vencer o atributo hidden */
.cookies__caixa { pointer-events: auto; max-width: 760px; width: 100%; background: #fff; color: var(--text); border-top: 4px solid var(--red); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 22px 24px; font-size: .92rem; }
.cookies__titulo { font: 700 1.3rem var(--font-head); color: var(--ink); margin: 0 0 6px; }
.cookies__caixa p { margin: 0 0 12px; }
.cookies__opcoes { display: grid; gap: 10px; margin: 6px 0 16px; padding: 14px; background: var(--bg-soft); border-radius: 8px; }
.cookies__opcoes label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookies__opcoes input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.cookies__opcoes strong { display: block; color: var(--ink); }
.cookies__botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookies__botoes .btn { padding: .7em 1.4em; }
.btn--link { background: none; border: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; padding-inline: .4em !important; box-shadow: none; }
.btn--link:hover { transform: none; color: var(--red-dark); }
@media (max-width: 600px) {
	.cookies { left: 8px; right: 8px; bottom: 8px; }
	.cookies__caixa { padding: 18px; max-height: 80vh; overflow-y: auto; }
	.cookies__botoes .btn { flex: 1 1 auto; justify-content: center; }
}
