/*
Theme Name: Fretes Já Umuarama
Theme URI: https://example.com/
Author: Projeto local
Description: Tema leve e responsivo para empresas de fretes e mudanças, focado em conversão pelo WhatsApp.
Version: 0.2.0
Text Domain: fretes-ja-umuarama
*/

:root {
  --navy: #09283f;
  --blue: #0b6fb8;
  --sky: #eaf6ff;
  --orange: #ff7a1a;
  --orange-dark: #d95900;
  --ink: #17212b;
  --muted: #5c6873;
  --line: #dce5ec;
  --white: #fff;
  --green: #1ca75b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(9, 40, 63, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 12px; background: #fff; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(220,229,236,.85);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(255,255,255,.98); box-shadow: 0 9px 28px rgba(9,40,63,.11); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.site-logo { width: min(300px, 34vw); height: 58px; object-fit: contain; object-position: left center; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--orange); font-size: 22px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.menu { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.menu a:not(.button):hover { color: var(--blue); }
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255,122,26,.22);
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button::after { content: ""; position: absolute; inset: -40% auto -40% -42%; width: 24%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .48s ease; pointer-events: none; }
.button:hover { transform: translateY(-2px); background: var(--orange-dark); box-shadow: 0 14px 30px rgba(255,122,26,.3); }
.button:hover::after { left: 122%; }
.button.secondary { color: var(--navy); background: #fff; border: 1px solid var(--line); box-shadow: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(11,111,184,.7), transparent 34%),
    linear-gradient(125deg, #071f32 0%, #0a3c60 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -5%;
  bottom: -20%;
  width: 72%;
  height: 78%;
  background: url("assets/images/caminhao-hero.png") left bottom / contain no-repeat;
  opacity: .34;
  filter: saturate(.8) contrast(1.05);
  -webkit-mask-image: linear-gradient(100deg, #000 10%, rgba(0,0,0,.9) 48%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, #000 10%, rgba(0,0,0,.9) 48%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  animation: hero-truck-in .9s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes hero-truck-in { from { clip-path: inset(0 100% 0 0); transform: translateX(-45px); } to { clip-path: inset(0); transform: translateX(0); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #bfe6ff; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 5px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: #ff9b54; }
.hero-copy { max-width: 630px; margin-bottom: 30px; color: #d7e9f5; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #d7e9f5; font-size: 13px; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: #62e4a1; font-weight: 900; }
.quote-card { padding: 28px; color: var(--ink); background: #fff; border-radius: 24px; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.quote-card { scroll-margin-top: 92px; }
.quote-card h2 { margin-bottom: 6px; color: var(--navy); font-size: 27px; letter-spacing: -.03em; }
.quote-card > p { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfc;
  color: var(--ink);
  font: inherit;
}
.quote-card .button { width: 100%; margin-top: 4px; }
.privacy { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 11px; }

.proof { border-bottom: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); transition: transform .2s ease, background .2s ease; }
.proof-item:hover { transform: translateY(-3px); background: #f7fbfe; }
.proof-item:hover strong { color: var(--orange); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; color: var(--navy); font-size: 23px; transition: color .2s ease, transform .2s ease; }
.proof-item:hover strong { transform: scale(1.04); }
.proof-item span { color: var(--muted); font-size: 12px; font-weight: 700; }

.insurance-strip { padding: 28px 0; background: var(--sky); border-bottom: 1px solid #cfe5f4; }
.insurance-inner { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 24px; }
.insurance-logo { width: 92px; height: 92px; padding: 7px; border-radius: 16px; background: #fff; object-fit: contain; box-shadow: 0 7px 24px rgba(9,40,63,.09); }
.insurance-copy .eyebrow { margin-bottom: 5px; color: var(--blue); }
.insurance-copy h2 { margin-bottom: 3px; color: var(--navy); font-size: clamp(22px, 3vw, 31px); line-height: 1.15; letter-spacing: -.035em; }
.insurance-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.insurance-badge { padding: 11px 17px; border-radius: 999px; color: #fff; background: var(--green); font-size: 13px; font-weight: 900; text-align: center; }

.section { padding: 88px 0; }
.section.soft { background: #f5f9fc; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--blue); }
.section-head h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(9,40,63,.05); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,122,26,.35); box-shadow: 0 18px 38px rgba(9,40,63,.12); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--sky); font-size: 24px; transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease; }
.card:hover .icon { transform: translateY(-2px) scale(1.06); color: var(--orange); background: #fff1e7; box-shadow: 0 8px 18px rgba(255,122,26,.18); }
.card h3 { margin-bottom: 8px; color: var(--navy); font-size: 20px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.visual-panel {
  min-height: 450px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0a436d, #09283f);
  box-shadow: var(--shadow);
}
.visual-panel-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  color: #fff;
  background: rgba(6,26,41,.5);
}
.visual-panel-inner::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 47%;
  background:
    linear-gradient(to top, rgba(6,26,41,.74), transparent 60%),
    url("assets/images/caminhao-etapas.png") left center / cover no-repeat;
  opacity: .78;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.86) 12%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.86) 12%, #000 30%);
  pointer-events: none;
}
.reveal.is-visible .visual-panel-inner::after { animation: steps-truck-in .8s .12s cubic-bezier(.2,.75,.25,1) both; }
@keyframes steps-truck-in { from { opacity: 0; transform: translateX(38px); } to { opacity: .78; transform: translateX(0); } }
.visual-panel-inner > * { position: relative; z-index: 1; }
.route { display: grid; gap: 22px; margin-top: 42px; }
.route-step { display: flex; align-items: center; gap: 15px; }
.route-dot { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--navy); background: #fff; font-weight: 900; }
.route-step:not(:last-child) .route-dot { position: relative; }
.route-step:not(:last-child) .route-dot::after { content: ""; position: absolute; top: 42px; width: 2px; height: 23px; background: rgba(255,255,255,.3); }
.benefits h2 { color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.benefits .eyebrow { color: var(--blue); }
.check-list { display: grid; gap: 16px; margin: 26px 0 30px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; transition: transform .2s ease; }
.check-list li:hover { transform: translateX(4px); }
.check-list li::before { content: "✓"; flex: 0 0 26px; display: grid; place-items: center; height: 26px; border-radius: 50%; color: var(--green); background: #e7f8ef; font-weight: 900; transition: transform .2s ease, color .2s ease, background .2s ease; }
.check-list li:hover::before { transform: scale(1.1); color: #fff; background: var(--orange); }
.check-list strong { display: block; color: var(--navy); }
.check-list span { color: var(--muted); font-size: 14px; }

.areas { color: #fff; background: var(--navy); }
.areas .section-head h2, .areas .section-head p { color: #fff; }
.areas .section-head .eyebrow { color: #bfe6ff; }
.area-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-pills span { padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 700; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.area-pills span:hover { transform: translateY(-3px); color: #fff; border-color: rgba(255,122,24,.85); background: rgba(255,122,24,.14); box-shadow: 0 8px 22px rgba(255,122,24,.2), 0 0 0 1px rgba(255,255,255,.08) inset; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stars { margin-bottom: 12px; color: #f5a000; letter-spacing: 2px; }
.person { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.person small { display: block; color: var(--muted); }

.faq { max-width: 820px; margin: auto; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq details::details-content { block-size: 0; opacity: 0; overflow: hidden; transition: block-size .3s ease, opacity .25s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq summary { position: relative; padding-right: 34px; color: var(--navy); font-weight: 850; cursor: pointer; list-style: none; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 3px; top: 50%; color: var(--orange); font-size: 22px; line-height: 1; transform: translateY(-50%); transition: transform .25s ease; }
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.faq details[open] p { animation: faq-open .28s ease both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .58s ease, transform .58s cubic-bezier(.2,.7,.25,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 46px; border-radius: 26px; color: #fff; background: linear-gradient(120deg, var(--blue), #064872); box-shadow: var(--shadow); }
.cta-box h2 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.cta-box p { margin-bottom: 0; color: #d8efff; }

.site-footer { padding: 48px 0 28px; color: #d6e2ea; background: #061a29; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo-link { display: inline-flex; margin-bottom: 15px; }
.footer-logo { width: min(245px, 100%); height: 58px; object-fit: contain; object-position: left center; }
.site-footer p, .site-footer a, .footer-service { color: #9fb3c1; font-size: 14px; }
.site-footer h3 { color: #fff; font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { transition: color .2s ease; }
.footer-service { display: inline-block; transition: color .2s ease, text-shadow .2s ease; }
.footer-service:hover { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.42); }
.site-footer .footer-whatsapp { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #dce9f0; background: rgba(255,255,255,.05); font-weight: 750; }
.site-footer .footer-whatsapp:hover { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.1); }
.card[id] { scroll-margin-top: 96px; }
.copyright { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #78909f; font-size: 12px; }
.whatsapp-float { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 10px 30px rgba(28,167,91,.4); font-size: 27px; }

@media (max-width: 900px) {
  .menu a:not(.button) { display: none; }
  .hero { padding-top: 54px; }
  .hero::after { left: -16%; bottom: -6%; width: 88%; height: 58%; opacity: .24; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .cards, .testimonials { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .brand small { display: none; }
  .site-logo { width: 178px; height: 46px; }
  .menu .button { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .hero { padding: 46px 0; }
  h1 { font-size: 43px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero::after { left: -38%; bottom: 27%; width: 142%; height: 34%; opacity: .2; }
  .field-grid, .cards, .testimonials, .footer-grid { grid-template-columns: 1fr; }
  .insurance-inner { grid-template-columns: 70px 1fr; gap: 15px; }
  .insurance-logo { width: 70px; height: 70px; border-radius: 13px; }
  .insurance-badge { grid-column: 1 / -1; }
  .section { padding: 66px 0; }
  .visual-panel { min-height: 0; padding: 20px; }
  .visual-panel-inner { padding: 23px; }
  .cta-box { grid-template-columns: 1fr; padding: 32px 25px; }
  .cta-box .button { width: 100%; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
