/* ==========================================================================
   SENNA GUINCHO - DESIGN SYSTEM & FOLHA DE ESTILOS PURO (SEM FRAMEWORKS)
   Tema: Corporativo Minimalista Neutro com Foco em Conversão 24h
   ========================================================================== */

/* 1. RESET E VARIÁVEIS DE DESIGN */
:root {
  /* Paleta Neutra Corporativa */
  --bg-main: #0a0d14;
  --bg-surface: #121722;
  --bg-card: rgba(22, 29, 41, 0.85);
  --bg-card-hover: rgba(30, 39, 56, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-active: #3b82f6;

  /* Cores de Destaque e Ação */
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20ba5a;
  --color-whatsapp-glow: rgba(37, 211, 102, 0.35);
  --color-emergency: #f59e0b;
  --color-emergency-glow: rgba(245, 158, 11, 0.3);
  --color-primary-blue: #3b82f6;

  /* Tipografia e Textos Neutros */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8899a6;
  --text-dark: #0a0d14;

  /* Fontes */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Syne', sans-serif;

  /* Sombras e Elevações */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-whatsapp: 0 10px 30px rgba(37, 211, 102, 0.25);

  /* Transições Suaves */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Dimensões */
  --header-height: 72px;
  --footer-height: 52px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 2. ELEMENTOS DE FUNDO AMBIENTE (SUBTIS E ELEGANTES) */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.grid-pattern {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* 3. ESTRUTURA DO SITE (TELA ÚNICA EM DESKTOP) */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px;
}

/* 4. HEADER CORPORATIVO */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.header-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header-phone-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.icon-phone {
  color: var(--color-emergency);
}

/* 5. SEÇÃO PRINCIPAL (MAIN & HERO) */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.main-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

/* Coluna Esquerda: Texto e Ações */
.content-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.highlight-text {
  color: #fbbf24;
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 700;
}

/* GRUPO DE BOTÕES DE AÇÃO */
.cta-actions-group {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 6px;
}

/* BOTÃO GRANDE DE WHATSAPP (DESTAQUE MÁXIMO) */
.btn-primary-whatsapp {
  flex: 1.3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-glow-whatsapp), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-primary-whatsapp:hover::before {
  left: 140%;
}

.btn-primary-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.4), 0 6px 16px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #28e06c 0%, #1fae54 100%);
}

.btn-primary-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.btn-whatsapp-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.btn-sub-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.btn-arrow-badge {
  margin-left: auto;
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.btn-primary-whatsapp:hover .btn-arrow-badge {
  transform: translateX(4px);
}

/* BOTÃO SECUNDÁRIO DE TELEFONE */
.btn-secondary-phone {
  flex: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 18px;
  transition: all var(--transition-smooth);
}

.btn-secondary-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary-phone svg {
  color: var(--color-emergency);
}

/* CARDS DE DIFERENCIAIS CORPORATIVOS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--border-medium);
}

.feature-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 6. COLUNA DIREITA (SHOWCASE FOTOGRÁFICO DA FROTA) */
.media-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.truck-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0d1117;
  border: 1px solid var(--border-subtle);
}

.showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emergency);
}

/* Seletor de fotos da galeria */
.photo-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.selector-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.thumbs-container {
  display: flex;
  gap: 8px;
}

.thumb-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-btn img {
  width: 52px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  filter: brightness(0.85);
  transition: filter var(--transition-fast);
}

.thumb-btn:hover img {
  filter: brightness(1);
}

.thumb-btn.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.thumb-btn.active img {
  filter: brightness(1.05);
}

/* Categorias de veículos atendidos */
.service-tags-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 7. FOOTER CORPORATIVO INTEGRADO */
.site-footer {
  height: var(--footer-height);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-icon {
  color: var(--color-emergency);
  flex-shrink: 0;
}

.company-address {
  font-style: normal;
}

.company-address strong,
.coverage-col strong {
  color: var(--text-secondary);
}

/* 8. BARRA FLUTUANTE MOBILE (OCULTA NO DESKTOP) */
.mobile-sticky-bar {
  display: none;
}

/* ==========================================================================
   RESPONSIVIDADE E ADAPTAÇÕES DE TELA
   ========================================================================== */

/* Telas Grandes e Médias (Desktop: ajuste para visual sem rolagem) */
@media (min-width: 992px) {
  /* No desktop a página inteira fica perfeitamente contida na viewport */
  html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

/* Laptops e Telas com Altura Reduzida (ex: 1366x768 ou 1280x720) */
@media (min-width: 992px) and (max-height: 800px) {
  :root {
    --header-height: 62px;
    --footer-height: 44px;
  }
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .content-panel {
    gap: 12px;
  }
  .image-wrapper {
    height: 220px;
  }
  .btn-primary-whatsapp {
    padding: 10px 18px;
  }
  .btn-secondary-phone {
    padding: 10px 14px;
  }
}

/* Tablets e Telas Médias (<= 991px) */
@media (max-width: 991px) {
  body {
    overflow-y: auto;
  }
  
  .site-wrapper {
    padding: 0 16px;
    min-height: auto;
  }

  .site-header {
    height: auto;
    padding: 16px 0;
  }

  .header-inner {
    flex-direction: row;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 0 32px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .image-wrapper {
    height: 320px;
  }

  .site-footer {
    height: auto;
    padding: 20px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
}

/* Smartphones (<= 640px) */
@media (max-width: 640px) {
  body {
    padding-bottom: 74px; /* Espaço para a barra flutuante */
  }

  .site-header {
    padding: 12px 0;
  }

  .header-badges .status-indicator {
    display: none; /* No mobile economiza espaço */
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.22;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .cta-actions-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary-whatsapp,
  .btn-secondary-phone {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-card {
    padding: 10px 12px;
  }

  .image-wrapper {
    height: 210px;
  }

  .photo-selector-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .thumbs-container {
    width: 100%;
    justify-content: flex-start;
  }

  .thumb-btn img {
    width: 48px;
    height: 32px;
  }

  .service-tags-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* BARRA FLUTUANTE EM MOBILE */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 13, 20, 0.95);
    border-top: 1px solid var(--border-medium);
    padding: 10px 14px;
    gap: 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }

  .mobile-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
  }

  .mobile-bar-btn.phone {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-medium);
  }

  .mobile-bar-btn.phone svg {
    color: var(--color-emergency);
  }

  .mobile-bar-btn.whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  }
}
