/* 
  Scapini Transportes - Estilo Global
*/

:root {
  /* Paleta de Cores Scapini */
  --color-white: #FFFFFF;
  --color-off-white: #F7F8FA;
  --color-very-light-gray: #F3F4F6;
  --color-line-gray: #E5E7EB;
  --color-mid-gray: #6B7280;
  --color-text-main: #3A3A3A;
  --color-title-dark: #1F1F1F;
  --color-red-main: #E20E17;
  --color-red-dark: #AD1917;

  /* Fontes e Espaçamentos */
  --font-primary: 'Exo 2', sans-serif;
  --header-height: 90px;
  --container-width: 1200px;
  
  /* Efeitos e Transições */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-white);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-title-dark);
  font-weight: 800; /* Entre 700 e 800 */
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Utilidades */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--color-off-white);
}

.section-bg-gray {
  background-color: var(--color-very-light-gray);
}

.title-main {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.title-section {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
}

.subtitle-section {
  font-size: 1.125rem;
  font-weight: 600; /* Entre 600 e 700 para subtítulos */
  color: var(--color-mid-gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.text-color-primary {
  color: var(--color-red-main);
}

.label-optional {
  color: var(--color-mid-gray);
  font-weight: 400;
  font-size: 0.875em;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700; /* 600 ou 700 para botões */
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-red-main);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white); /* Keep white explicitly */
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-title-dark);
  color: var(--color-title-dark);
}

.btn-outline:hover {
  background-color: var(--color-title-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Header Navbar - Premium Redesign */
:root {
  --header-height: 100px;
  --header-height-scrolled: 80px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(229, 231, 235, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: height var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.site-header::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--color-red-main);
  z-index: 1001;
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
}

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

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

.logo img {
  height: 48px;
  width: auto;
  transition: height var(--transition-normal), transform var(--transition-fast);
}

.site-header.scrolled .logo img {
  height: 40px;
}

.logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-title-dark);
  position: relative;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-red-main);
  transition: width var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-red-main);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Premium Header Btn CTA */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-red-main), var(--color-red-dark));
  color: var(--color-white);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(226, 14, 23, 0.3);
  transition: all var(--transition-normal);
  border: none;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 14, 23, 0.4);
  background: linear-gradient(135deg, var(--color-red-dark), #8a1313);
  color: var(--color-white);
}

.btn-header-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.btn-header-cta:hover svg {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-title-dark);
  padding: 8px;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-very-light-gray);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1002;
  padding: 30px 24px;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-title-dark);
  margin-bottom: 30px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-title-dark);
}

/* Hero Section Base */
.hero-internal {
  padding: 160px 0 80px;
  background-color: var(--color-red-main);
  text-align: center;
}

.hero-internal .title-main {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.hero-internal p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   CARROSSEL DE SERVIÇOS (HOME)
   ========================================================================== */
.svc-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 28px 48px;
  margin: 0 -28px;
}

.svc-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  gap: 24px;
}

.svc-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.svc-slide:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.svc-slide-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.svc-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.svc-slide:hover .svc-slide-img img {
  transform: scale(1.05);
}

.svc-slide-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-slide-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-title-dark);
  line-height: 1.3;
}

.svc-slide-content p {
  font-size: 0.875rem;
  color: var(--color-mid-gray);
  line-height: 1.6;
}

.svc-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-red-main);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.svc-slide-link:hover {
  gap: 10px;
  color: var(--color-red-dark);
}

/* Arrows */
.svc-arrow {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.svc-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--color-title-dark);
}

.svc-arrow:hover {
  background: var(--color-red-main);
  border-color: var(--color-red-main);
  box-shadow: 0 4px 12px rgba(226, 14, 23, 0.2);
}

.svc-arrow:hover svg {
  color: #fff;
}

.svc-arrow-left { left: 4px; }
.svc-arrow-right { right: 4px; }

/* Dots */
.svc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.svc-dot.active {
  background: var(--color-red-main);
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-slide { flex: 0 0 calc(50% - 12px); }
  .svc-arrow-left { left: 4px; }
  .svc-arrow-right { right: 4px; }
}

@media (max-width: 768px) {
  .svc-slide { flex: 0 0 100%; }
  .svc-carousel-track { gap: 16px; }
  .svc-arrow { width: 36px; height: 36px; }
  .svc-arrow svg { width: 16px; height: 16px; }
  .svc-arrow-left { left: 4px; }
  .svc-arrow-right { right: 4px; }
}

/* Footer Global */
.site-footer {
  background-color: var(--color-title-dark);
  color: var(--color-white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--color-mid-gray);
  font-size: 0.9375rem;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-mid-gray);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact li {
  color: var(--color-mid-gray);
  font-size: 0.9375rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--color-mid-gray);
  font-size: 0.875rem;
}

/* Botão Flutuante WPP */
.btn-wpp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-red-main);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(226, 14, 23, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulse-red 2s infinite;
}

.btn-wpp-float:hover {
  transform: scale(1.1);
  background-color: var(--color-red-dark);
  box-shadow: 0 6px 20px rgba(173, 25, 23, 0.6);
  color: white;
  animation: none;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 14, 23, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(226, 14, 23, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 14, 23, 0);
  }
}

/* Animações On-Scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
/* Header: vira hambúrguer antes do footer para evitar quebra do menu
   entre 1025px e 1209px, quando os links ainda apareciam mas não cabiam. */
@media (max-width: 1210px) {
  .nav-links, .header-actions .btn-header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-contact li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .title-main {
    font-size: 2rem;
  }
  .title-section {
    font-size: 1.75rem;
  }
  .section {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MÓDULO DE OFERTAS DE CARGA
   ========================================================================== */

/* Identidade Espacial Topo */
.update-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Área de Conteúdo Central */
.page-content {
  padding: -40px 0 100px;
  margin-top: -30px; /* Sobrepor top content level */
}

/* Filtros Bar */
.filters-bar {
  background: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line-gray);
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 140px;
}

.filter-group.focus-search {
  flex: 2;
  flex-direction: row;
  align-items: center;
  background-color: var(--color-very-light-gray);
  border-radius: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.filter-group.focus-search:focus-within {
  border-color: var(--color-red-main);
  background-color: var(--color-white);
}

.filter-icon {
  width: 18px;
  height: 18px;
  color: var(--color-mid-gray);
  margin-right: 12px;
}

.filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-mid-gray);
  font-weight: 600;
  margin-bottom: 6px;
}

.filters-bar select, .filters-bar input[type="text"] {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--color-title-dark);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.filters-bar .focus-search input[type="text"] {
  padding: 16px 0;
}

.filters-bar select {
  border: 1px solid var(--color-line-gray);
  border-radius: 6px;
  padding: 10px 14px;
  appearance: none;
}
.filters-bar select:focus {
  border-color: var(--color-red-main);
}

/* Grid de Ofertas */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* ── Card Base ── */
.offer-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

/* ── Destaque sutil ── */
.offer-card.destaque {
  border-color: rgba(226, 14, 23, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 2px 0 0 var(--color-red-main);
}

.offer-card.destaque:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 2px 0 0 var(--color-red-main);
}

/* ── Topo: Estado + ID + Badges ── */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-state {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-title-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-id {
  font-size: 0.75rem;
  color: var(--color-mid-gray);
  font-weight: 500;
}

.card-badges {
  display: flex;
  gap: 6px;
}

.badge {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-disponivel {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.badge-destaque {
  background: rgba(226, 14, 23, 0.07);
  color: var(--color-red-main);
}

/* ── Bloco de Rota (herói do card) ── */
.card-route {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px 16px;
}

.route-point {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.route-end {
  text-align: right;
}

.route-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-mid-gray);
  font-weight: 500;
}

.route-city {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-title-dark);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mid-gray);
  opacity: 0.3;
  margin-top: 18px;
}

.route-arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Detalhes Técnicos ── */
.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-mid-gray);
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-title-dark);
}

/* ── Rodapé: Preço + Obs + CTA ── */
.card-bottom {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.card-price-obs {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-tag {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-title-dark);
  flex-shrink: 0;
}

.obs-chip {
  font-size: 0.8125rem;
  color: #6B7280;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
}

.btn-wpp-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-wpp-card svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-wpp-card:hover {
  background: #1ebd5b;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Skeleton Loading ── */
.skeleton-card {
  height: 300px;
  background: #F3F4F6;
  border-radius: 14px;
  animation: pulse-loading 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-weight: 600;
}

@keyframes pulse-loading {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-mid-gray);
  font-size: 1.125rem;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
  .offers-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 768px) {
  .page-content { margin-top: -20px; }
  .filters-grid { flex-direction: column; align-items: stretch; }
  .filter-group.focus-search { flex: auto; }
  .offers-grid { grid-template-columns: 1fr; }

  .card-route { flex-direction: column; gap: 4px; align-items: stretch; }
  .route-end { text-align: left; }
  .route-arrow { transform: rotate(90deg); align-self: center; }
  .card-details { grid-template-columns: 1fr 1fr; }

  .card-route { flex-direction: column; gap: 2px; }
  .route-arrow { margin-top: 0; transform: rotate(90deg); align-self: center; }
  .route-end { text-align: left; }
}

/* ==========================================================================
   SUB-FOOTER — Assinatura "Desenvolvido por"
   ========================================================================== */
.sub-footer {
  height: 50px;
  background-color: var(--color-white, #fff);
  color: var(--color-title-dark, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.sub-footer:hover {
  background-color: var(--color-very-light-gray, #f3f4f6);
  color: var(--color-title-dark, #0b0b0b);
}

.sub-footer p {
  color: var(--color-title-dark, #0b0b0b);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-logo-light, .sub-logo-dark {
  height: 24px;
  width: auto;
  transform: translateY(-3px);
}

.sub-logo-light {
  display: none;
}

.sub-logo-dark {
  display: block;
}

@media (max-width: 640px) {
  .sub-footer {
    height: auto;
    min-height: 50px;
    padding: 14px 16px;
  }
  .sub-footer p {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    gap: 0;
  }
  .sub-footer p img {
    height: 18px;
    vertical-align: middle;
    margin: 0 4px;
    transform: translateY(-2px);
  }
  .sub-logo-dark {
    display: inline-block;
  }
}

/* ==========================================================================
   CARROSSÉIS DE CERTIFICAÇÕES E PROGRAMAS (DIFERENCIAIS)
   ========================================================================== */
.credentials-section {
  background-color: var(--color-off-white);
  padding: 110px 0 120px;
  position: relative;
}

.credentials-section .section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 72px;
}

.credentials-section .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-red-main);
  margin-bottom: 18px;
}

.credentials-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-title-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.credentials-section h2 em {
  font-style: normal;
  color: var(--color-red-main);
}

.credentials-section .section-lead {
  font-size: 1.0625rem;
  color: var(--color-mid-gray);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.credentials-block {
  margin-top: 56px;
}

.credentials-block + .credentials-block {
  margin-top: 72px;
}

.credentials-block-title {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.credentials-block-title::before,
.credentials-block-title::after {
  content: '';
  flex: 0 0 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 31, 31, 0.18), transparent);
}

.credentials-block-title h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-title-dark);
  margin: 0;
}

/* Marquee (carrossel automático infinito) */
.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee--slow .logo-marquee-track {
  animation-duration: 55s;
}

@keyframes logo-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logo-card {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 18px rgba(31, 31, 31, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 14px 32px rgba(31, 31, 31, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Responsivo */
@media (max-width: 1024px) {
  .credentials-section {
    padding: 90px 0 100px;
  }
  .credentials-section h2 {
    font-size: 1.875rem;
  }
  .logo-card {
    width: 180px;
    height: 110px;
    padding: 20px 22px;
  }
  .logo-marquee-track {
    gap: 22px;
    animation-duration: 40s;
  }
  .logo-marquee--slow .logo-marquee-track {
    animation-duration: 50s;
  }
}

@media (max-width: 640px) {
  .credentials-section {
    padding: 72px 0 84px;
  }
  .credentials-section .section-header {
    margin-bottom: 52px;
  }
  .credentials-section h2 {
    font-size: 1.5rem;
  }
  .credentials-section .section-lead {
    font-size: 1rem;
  }
  .credentials-block + .credentials-block {
    margin-top: 56px;
  }
  .credentials-block-title::before,
  .credentials-block-title::after {
    flex: 0 0 28px;
  }
  .credentials-block-title h3 {
    font-size: 0.8125rem;
    letter-spacing: 2.2px;
  }
  .logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .logo-marquee-track {
    gap: 16px;
    animation-duration: 32s;
  }
  .logo-marquee--slow .logo-marquee-track {
    animation-duration: 40s;
  }
  .logo-card {
    width: 150px;
    height: 95px;
    padding: 16px 18px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation-duration: 120s;
  }
}

/* ==========================================================================
   PÁGINA LEGAL — Política de Privacidade e Uso de Cookies
   ========================================================================== */
.legal-section {
  padding: 80px 0 110px;
  background-color: var(--color-white);
}

.legal-layout {
  display: block;
}

/* Sumário lateral */
.legal-toc {
  position: sticky;
  top: 120px;
  background: var(--color-off-white);
  border: 1px solid var(--color-line-gray);
  border-radius: 12px;
  padding: 24px 22px;
  font-size: 0.875rem;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.legal-toc-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red-main);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--color-text-main);
  font-weight: 500;
  line-height: 1.4;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.legal-toc a::before {
  content: counter(toc) ".";
  color: var(--color-mid-gray);
  font-weight: 600;
  flex: 0 0 auto;
}

.legal-toc a:hover {
  background-color: var(--color-white);
  color: var(--color-red-main);
}

/* Conteúdo */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-main);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-mid-gray);
  background: var(--color-off-white);
  border-left: 3px solid var(--color-red-main);
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 48px;
}

.legal-block {
  margin-bottom: 48px;
  scroll-margin-top: 110px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-title-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-line-gray);
  position: relative;
}

.legal-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--color-red-main);
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-title-dark);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--color-title-dark);
  font-weight: 700;
}

.legal-content em {
  font-style: italic;
  color: var(--color-title-dark);
}

.legal-list {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
}

.legal-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red-main);
}

.legal-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-line-gray);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.legal-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--color-red-main);
  font-size: 1rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.legal-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.legal-footnote {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line-gray);
  font-size: 0.8125rem;
  color: var(--color-mid-gray);
  font-style: italic;
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .legal-section {
    padding: 56px 0 80px;
  }
  .legal-content {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .legal-content h2 {
    font-size: 1.25rem;
  }
  .legal-content h3 {
    font-size: 1rem;
  }
  .legal-block {
    margin-bottom: 36px;
  }
  .legal-toc {
    padding: 18px 16px;
  }
}

/* ==========================================================================
   SISTEMA DE COOKIES — Popup + Modal de Preferências
   ========================================================================== */

/* Popup inicial */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--color-white);
  border: 1.5px solid var(--color-red-main);
  border-radius: 14px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 22px 22px 20px;
  z-index: 9000;
  font-family: var(--font-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.cookie-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-popup-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-title-dark);
  margin-bottom: 8px;
}

.cookie-popup-title-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--color-red-main);
}

.cookie-popup-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.cookie-popup-text a {
  color: var(--color-red-main);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(226, 14, 23, 0.3);
  text-underline-offset: 2px;
}

.cookie-popup-text a:hover {
  color: var(--color-red-dark);
  text-decoration-color: currentColor;
}

.cookie-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn--primary {
  background: var(--color-red-main);
  color: var(--color-white);
  border-color: var(--color-red-main);
  box-shadow: 0 4px 14px rgba(226, 14, 23, 0.22);
}

.cookie-btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(226, 14, 23, 0.3);
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--color-title-dark);
  border-color: var(--color-line-gray);
}

.cookie-btn--secondary:hover {
  background: var(--color-off-white);
  border-color: var(--color-mid-gray);
}

.cookie-popup-secondary-row {
  display: flex;
  gap: 10px;
}

.cookie-popup-secondary-row .cookie-btn {
  flex: 1;
}

/* Modal de preferências */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.is-visible .cookie-modal {
  transform: translateY(0) scale(1);
}

.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 14px;
  border-bottom: 1px solid var(--color-line-gray);
}

.cookie-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-title-dark);
  margin: 0 0 6px;
}

.cookie-modal-header p {
  font-size: 0.875rem;
  color: var(--color-mid-gray);
  line-height: 1.55;
  margin: 0;
}

.cookie-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-off-white);
  color: var(--color-title-dark);
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cookie-modal-close:hover {
  background: var(--color-line-gray);
}

.cookie-modal-body {
  padding: 18px 28px 8px;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  border: 1px solid var(--color-line-gray);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.cookie-category:hover {
  border-color: rgba(226, 14, 23, 0.25);
}

.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.cookie-category-head h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-title-dark);
  margin: 0;
}

.cookie-category-desc {
  font-size: 0.8125rem;
  color: var(--color-mid-gray);
  line-height: 1.55;
  margin: 0;
}

.cookie-category-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-mid-gray);
  background: var(--color-off-white);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Toggle */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: var(--color-line-gray);
  border-radius: 24px;
  transition: background-color var(--transition-fast);
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--color-red-main);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(226, 14, 23, 0.25);
}

.cookie-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--color-line-gray);
  background: var(--color-off-white);
}

.cookie-modal-footer .cookie-btn {
  flex: 1;
}

/* Responsivo */
@media (max-width: 640px) {
  .cookie-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 18px 18px 16px;
  }
  .cookie-popup-secondary-row {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-modal {
    border-radius: 14px;
  }
  .cookie-modal-header {
    padding: 22px 20px 12px;
  }
  .cookie-modal-body {
    padding: 14px 20px 6px;
  }
  .cookie-modal-footer {
    padding: 14px 20px 18px;
    flex-direction: column;
  }
  .cookie-category {
    padding: 14px 14px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .cookie-popup {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%) translateY(20px);
    width: 460px;
  }
  .cookie-popup.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================================
   CTA CREDIBILIDADE — Faixa institucional de fechamento
   ========================================================================== */
.cta-credibility {
  padding: 100px 0;
  background-color: var(--color-off-white);
}

.cta-credibility-card {
  background: var(--color-white);
  border: 1px solid var(--color-line-gray);
  border-radius: 18px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.04),
              0 1px 3px rgba(31, 31, 31, 0.02);
}

.cta-credibility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-red-main);
}

.cta-credibility-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-title-dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.cta-credibility-content h2 em {
  font-style: normal;
  color: var(--color-red-main);
}

.cta-credibility-content p {
  color: var(--color-mid-gray);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

.cta-credibility-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cta-credibility-actions .btn {
  white-space: nowrap;
  padding: 14px 26px;
}

@media (max-width: 1024px) {
  .cta-credibility {
    padding: 84px 0;
  }
  .cta-credibility-card {
    padding: 44px 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-credibility-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cta-credibility-actions .btn {
    flex: 1;
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .cta-credibility {
    padding: 64px 0;
  }
  .cta-credibility-card {
    padding: 32px 22px 32px 26px;
    border-radius: 14px;
  }
  .cta-credibility-card::before {
    width: 100%;
    height: 4px;
  }
  .cta-credibility-content h2 {
    font-size: 1.375rem;
    padding-right: 6px;
  }
  .cta-credibility-content p {
    font-size: 0.9375rem;
    padding-right: 6px;
  }
  .cta-credibility-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-credibility-actions .btn {
    width: 100%;
    flex: none;
    white-space: normal;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.3;
  }
}
