/* ============================================
   Pequenos Fretes Cuiabá — Design System
   ============================================ */

:root {
  --primary:    #0B5C7E;
  --primary-dark: #094a66;
  --secondary:  #4084D5;
  --accent:     #FFA402;
  --accent-dark: #E59200;
  --dark:       #073649;
  --dark-2:     #073346;
  --gray-btn:   #69727D;
  --gray-btn-dark: #565E68;
  --gray-bg:    #EBEBEB;
  --heading:    #333333;
  --text:       #000000;
  --white:      #FFFFFF;
  --shadow:     0 0 10px rgba(0, 0, 0, .2);
  --container:  1140px;
  --header-h:   80px;
  --topbar-h:   54px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

/* ============================================
   Botões
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 15px;
  transition: background-color .3s ease, transform .2s ease;
  text-align: center;
  cursor: pointer;
}

.btn--gray {
  background: var(--gray-btn);
  color: var(--white);
}
.btn--gray:hover { background: var(--gray-btn-dark); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  font-size: 20.8px;
  letter-spacing: 2.5px;
  font-weight: 500;
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--submit {
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  padding: 20px 40px;
  border-radius: 5px;
  width: 100%;
}
.btn--submit:hover { background: var(--primary-dark); }

/* ============================================
   Inputs
   ============================================ */

.field {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  font-size: 15px;
  border: 1.33px solid var(--accent);
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  color: var(--text);
}
.field::placeholder { color: #999; }
.field:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

textarea.field {
  height: auto;
  min-height: 108px;
  padding-top: 10px;
  resize: vertical;
}

/* ============================================
   Sublinhado laranja (títulos)
   ============================================ */

.underline {
  display: block;
  width: 190px;
  height: 4px;
  background: var(--accent);
  margin-top: 8px;
}
.underline--center { margin-left: auto; margin-right: auto; width: 180px; }

/* ============================================
   0. Topbar
   ============================================ */

.topbar {
  height: var(--topbar-h);
  background: var(--dark);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
}
.topbar__phone i { color: var(--accent); font-size: 16px; }
.topbar__phone:hover { color: var(--accent); }

.topbar__social {
  display: flex;
  gap: 16px;
}
.topbar__social a {
  color: var(--accent);
  font-size: 15px;
  transition: opacity .3s;
}
.topbar__social a:hover { opacity: .7; }

/* ============================================
   1. Header sticky
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { width: 160px; }

.nav__list {
  display: flex;
  align-items: center;
}

.nav__list a {
  display: inline-block;
  padding: 13px 20px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .3s, border-color .3s;
}

.nav__list a:hover,
.nav__list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header__actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   2. Hero
   ============================================ */

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease, transform 10s linear;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.15);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: .65;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__inner {
  max-width: 570px;
}

.hero h1 {
  font-size: 40px;
  line-height: 40px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   3. Cards flutuantes
   ============================================ */

.floating-cards {
  position: relative;
  z-index: 5;
  margin-top: -96px;
}

.floating-cards .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.floating-card {
  background: var(--white);
  padding: 32px 32px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.floating-card__icon { width: 70px; flex-shrink: 0; }

.floating-card__body { flex: 1; }

.floating-card__body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  padding-bottom: 12px;
  border-bottom: 1px solid #E0E0E0;
  margin-bottom: 12px;
}

.floating-card__body p { font-size: 15px; line-height: 22px; color: #444; margin: 0 0 4px; }

/* ============================================
   4. Quem somos
   ============================================ */

.quem-somos {
  background: var(--white);
  padding: 96px 0;
}

.quem-somos .container {
  display: grid;
  grid-template-columns: 432px 1fr;
  gap: 40px;
  align-items: center;
}

.quem-somos__img img { width: 100%; border-radius: 0; }

.quem-somos h2 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 500;
  color: var(--heading);
}

.quem-somos__text p {
  font-size: 18px;
  line-height: 27px;
  color: #333;
  margin-top: 24px;
}

/* ============================================
   5. Faixa parallax (servico)
   ============================================ */

.faixa {
  position: relative;
  padding: 96px 0;
  background-image: url("../assets/img/bg-faixa.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.faixa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
}

.faixa .container { position: relative; z-index: 1; }

.faixa__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.faixa__card {
  padding: 31px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.faixa__card:nth-child(1) { background: rgba(255,255,255,.56); }
.faixa__card:nth-child(2) { background: rgba(255,255,255,.65); }

.faixa__card img { width: 48px; flex-shrink: 0; }

.faixa__card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.faixa__cta { text-align: center; }

/* ============================================
   6. Como funciona
   ============================================ */

.como-funciona {
  background: var(--white);
  padding: 96px 0;
}

.como-funciona__head {
  text-align: center;
  margin-bottom: 40px;
}

.como-funciona h2 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 500;
  color: var(--heading);
}

.como-funciona__head .underline { margin-left: auto; margin-right: auto; }

.como-funciona__lead {
  font-size: 18px;
  line-height: 27px;
  color: #333;
  max-width: 700px;
  margin: 24px auto 0;
  text-align: center;
}

.como-funciona__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.como-funciona__card {
  padding: 32px;
  box-shadow: var(--shadow);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.como-funciona__card img { width: 40px; margin-bottom: 20px; }

.como-funciona__card p { font-size: 18px; line-height: 26px; color: #333; }

/* ============================================
   7. CTA Agradecemos
   ============================================ */

.cta-agradecemos {
  position: relative;
  padding: 96px 0;
  background-image: url("../assets/img/bg-cta.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-agradecemos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: .39;
}

.cta-agradecemos .container { position: relative; z-index: 1; }

.cta-agradecemos p {
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 32px;
}

/* ============================================
   8. O Que Transportamos
   ============================================ */

.transportamos {
  background: var(--gray-bg);
  padding: 32px 0 96px;
}

.transportamos__head {
  text-align: center;
  padding-top: 48px;
  margin-bottom: 40px;
}

.transportamos h2 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 500;
  color: var(--heading);
}

.transportamos__head .underline { margin-left: auto; margin-right: auto; }

.transportamos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.transportamos__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.transportamos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.transportamos__item:hover img { transform: scale(1.04); }

/* ============================================
   9. Contato
   ============================================ */

.contato {
  background: var(--white);
  padding: 96px 0;
}

.contato .container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
}

.contato h2 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 500;
  color: var(--heading);
}

.contato__info p {
  font-size: 18px;
  line-height: 27px;
  color: #333;
  margin-top: 24px;
}

.form__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.form__row .field { flex: 1; }

.contato form > .field,
.contato form > textarea.field { margin-bottom: 10px; }

.form__status {
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}
.form__status.ok { color: #1a7a3c; }
.form__status.err { color: #c0392b; }

/* ============================================
   10. Footer
   ============================================ */

.footer {
  background: var(--accent);
  padding: 48px 0 32px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer__logo img { width: 140px; }

.footer nav ul li { margin-bottom: 12px; }
.footer nav ul a {
  color: var(--white);
  font-size: 15px;
  transition: opacity .3s;
}
.footer nav ul a:hover { opacity: .75; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
}
.footer__contact li i { width: 16px; margin-top: 3px; }
.footer__contact a { color: var(--white); }
.footer__contact a:hover { opacity: .75; }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, background .3s;
}
.footer__social a:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ============================================
   11. Sub-footer
   ============================================ */

.subfooter {
  background: var(--dark-2);
  padding: 12px 0;
}
.subfooter p {
  color: var(--white);
  font-size: 13px;
  text-align: center;
}
.subfooter strong { font-weight: 700; }
.subfooter a { text-decoration: none; }
.subfooter a:hover { text-decoration: underline; }

/* ============================================
   12. Botão flutuante WhatsApp
   ============================================ */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .3s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================
   Página estática (política de privacidade)
   ============================================ */

.page-content {
  padding: 96px 0;
  max-width: 860px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: 34px;
  color: var(--heading);
  font-weight: 500;
  margin-bottom: 8px;
}
.page-content h2 {
  font-size: 22px;
  color: var(--heading);
  font-weight: 600;
  margin: 32px 0 12px;
}
.page-content p, .page-content li {
  font-size: 16px;
  line-height: 26px;
  color: #333;
  margin-bottom: 12px;
}
.page-content ul { padding-left: 20px; list-style: disc; }
.page-content .updated { color: #777; font-size: 14px; margin-bottom: 32px; }
.page-content .legal-note {
  background: #FFF6E5;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  font-size: 14px;
  color: #555;
  margin-top: 40px;
}

/* ============================================
   Animações de entrada no scroll
   ============================================ */

.reveal {
  opacity: 0;
  transition: opacity 2s ease-out, transform 2s ease-out;
}
.reveal--up { transform: translateY(40px); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__slide { transition: opacity 1s ease; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Responsivo — ≤1024px
   ============================================ */

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: 280px;
    height: calc(100vh - var(--header-h));
    background: var(--white);
    box-shadow: -4px 0 16px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
  }
  .nav__list a { padding: 16px 24px; border-bottom: 1px solid #eee; }

  .hamburger { display: flex; }

  .como-funciona__grid { grid-template-columns: repeat(2, 1fr); }

  .quem-somos .container,
  .contato .container {
    grid-template-columns: 1fr;
  }
  .quem-somos__img { max-width: 432px; }

  .hero h1 { font-size: 34px; line-height: 38px; }

  .footer .container { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ============================================
   Responsivo — ≤767px
   ============================================ */

@media (max-width: 767px) {
  section[id] { scroll-margin-top: var(--header-h); }

  .topbar__social { gap: 12px; }
  .topbar .container { padding: 0 15px; }

  .hero { padding: 40px 0; }
  .hero__inner { max-width: 100%; }
  .hero h1 { font-size: 28px; line-height: 34px; }
  .hero p { font-size: 16px; line-height: 24px; }
  .hero__actions .btn--accent { font-size: 16px; letter-spacing: 1.5px; }

  .floating-cards { margin-top: -60px; }
  .floating-cards .container { grid-template-columns: 1fr; gap: 16px; }

  .quem-somos, .como-funciona, .contato { padding: 60px 0; }
  .faixa, .cta-agradecemos { padding: 60px 0; background-attachment: scroll; }

  .faixa__cards { grid-template-columns: 1fr; }

  .como-funciona__grid { grid-template-columns: 1fr; }

  .transportamos__grid { grid-template-columns: repeat(2, 1fr); }

  .footer .container { grid-template-columns: 1fr; text-align: left; }

  h2 { font-size: 26px !important; line-height: 30px !important; }
}
