/* =============================================================================
   Theme Variables
   ========================================================================== */
:root {
  /* Cores principais */
  --primary: #005ca5;
  --primary-dark: #004a8d;
  --secondary: #008c2c;
  --dark: #333;
  --light: #f4f4f4;
  --light-blue: #f0f8ff;
  --light-grey: #e6f2fc;

  /* Tipografia */
  --font-base: 'Helvetica Neue', Arial, sans-serif;

  /* Espaçamentos */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Botões */
  --btn-radius: 4px;
  --btn-transition: 0.3s ease;
}

html,
body {
  overflow-x: hidden;
}

/* =============================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--dark);
  line-height: 1.6;
}

/* =============================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================================================
   Global Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--btn-radius);
  font-weight: bold;
  transition: background var(--btn-transition), transform var(--btn-transition), box-shadow var(--btn-transition);
  transform-origin: center center;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero {
  /* mantém background-size/position que você já tinha */
  background-size: cover;
  background-position: center;

  /* ocupa a tela inteira */
  height: 100vh;
  min-height: 600px;
  /* fallback, opcional */

  /* estrutura flex para o container */
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* para posicionar filhos absolutos (scroll-indicator) */
  position: relative;
  color: #fff;
  text-align: center;
}

/* overlay de degrade existente */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 0;
}

/* container acima do overlay, com padding-top para empurrar conteúdo para baixo */
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-top: var(--spacing-md);
}

/* limita o tamanho da logo e mantém responsivo */
.hero .logo {
  max-width: 350px;
  width: 100%;
  height: auto;
  margin-bottom: var(--spacing-xl);
}

/* restaura estilo do botão dentro do hero */
.hero .btn {
  background: var(--primary);
  color: #fff;
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition:
    background var(--btn-transition),
    transform var(--btn-transition),
    box-shadow var(--btn-transition);
  margin-top: var(--spacing-lg);
  z-index: 1;
}

.hero .btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Indicador de scroll
   ============================================================================= */
.scroll-indicator {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2rem;
  color: #fff;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, 8px);
  }

  60% {
    transform: translate(-50%, 4px);
  }
}

/* =============================================================================
   Section Base
   ========================================================================== */
.section {
  padding: 60px 0;
  background-color: rgba(230, 242, 252, 1);
}

/* =============================================================================
   About Section Custom
   ============================================================================= */
.section-about {
  position: relative;
  /* primeiro degradê preto, depois bandeira, depois cor de fundo */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%),
    url("../images/flag-brasil.webp") center/cover no-repeat,
    var(--light-grey);
  color: #fff;

  padding: 50px 0;
  /* aumenta o “respiro” vertical */
}

.section-about .container {
  position: relative;
  /* fica acima do background */
  z-index: 1;

  padding: 35px 0;
  /* aumenta o “respiro” vertical */
}

.section-about h2 {
  font-size: 2.15rem;
  /* maior impacto */
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-about p {
  font-size: 1.4rem;
  /* leitura confortável */
  max-width: 1200px;
  /* não estica demais em widescreens */
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}


.section-about[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo: menos padding e fonte menor em mobile */
@media (max-width: 767px) {
  .section-about {
    padding: 15px 0;
    min-height: auto;
  }

  .section-about h2 {
    font-size: 1.8rem;
  }

  .section-about p {
    font-size: 1.1rem;
  }
}


/* =============================================================================
   Service Highlight Section (with “shrink-then-grow” effect)
   ========================================================================== */
.service-highlight {
  padding: 80px 0;
}

.service-highlight .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark);
}

/* Grid de cards: 3 colunas desktop, 2 tablet, 1 mobile */
.highlight-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 992px) {
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Cartão */
.highlight-card {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--btn-transition);
}

.highlight-card:hover {
  transform: scale(1.03);
}

/* Gradiente apenas no hover */
/* More gradual fade-out, quicker fade-in */
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 40%,
      rgba(0, 0, 0, 0.4) 70%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease-out;
  /* slower fade-out */
  z-index: 1;
}

.highlight-card:hover::before {
  opacity: 1;
  transition-duration: 0.3s;
  /* quicker fade-in */
}

/* Overlay: flex container para título e detalhes */
.highlight-overlay {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  flex-direction: column-reverse;
  pointer-events: none;
  z-index: 2;
}

/* Título */
.highlight-overlay h3 {
  order: 1;
  position: relative;
  z-index: 3;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
  transition: transform 0.6s ease-out;
  /* mais suave ao sair do hover */
}

.highlight-card:hover .highlight-overlay h3 {
  transform: translateY(-0.30em);
}

/* Detalhes (descrição + botão) */
.highlight-details {
  order: 2;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease-out,
    /* mais suave ao sair do hover */
    transform 0.6s ease-out;
  pointer-events: none;
}

/* No hover: inverter a ordem e exibir detalhes */
.highlight-card:hover .highlight-overlay {
  flex-direction: column;
  pointer-events: auto;
}

.highlight-card:hover .highlight-details {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.3s;
  /* mais rápido ao entrar no hover */
  pointer-events: auto;
}

/* Texto de descrição dentro de .highlight-details */
.highlight-details p {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Botão “Saiba Mais” */
.btn-highlight {
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.9rem;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background var(--btn-transition);
}

.btn-highlight:hover {
  background: var(--primary-dark);
}

/* Chamada final */
.highlight-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}


/* =============================================================================
   Config para Particles
   ========================================================================== */
/* garante que a section seja o “relativo” para o overlay */
.service-highlight,
.section.clients {
  position: relative;
  overflow: hidden;
}

/* o div que conterá o canvas do particles.js */
.particles-overlay {
  position: absolute;
  inset: 0;              /* top:0; right:0; bottom:0; left:0; */
  z-index: 1;            /* abaixo do conteúdo (.container) */
  pointer-events: none;  /* cliques passam para trás */
}

/* o conteúdo real da section deve ficar acima */
.service-highlight .container,
.section.clients .container {
  position: relative;
  z-index: 2;
}


/* =============================================================================
   Clients Section
   ========================================================================== */
.section.clients {
  position: relative;
  overflow: hidden;
  padding: 30px 0 100px 0;
}

.section.clients::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section.clients .container {
  position: relative;
  z-index: 1;
}

.section.clients .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark);
}

.section.clients .section-title.inline-bg {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  perspective: 800px;
  perspective-origin: center center;
}

.client-card {
  background: rgba(255, 255, 255, 0.9);
  /* leve transparência */
  border-radius: 8px;
  padding: var(--spacing-md);
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease, transform var(--btn-transition), box-shadow var(--btn-transition);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.client-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.client-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.client-logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* =============================================================================
   Contact & Form
   ============================================================================= */

.contact {
  background: url("../images/bg-contact-form.webp") center/cover no-repeat !important;
  position: relative;
  min-height: 100vh;
  padding: 60px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#contact .section-title {
  color: #fff;
  font-size: 2rem;
  margin: var(--spacing-lg) 0;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

/* propriedades comuns a todas as stripes */
.stripe {
  position: absolute;
  width: 2px;
  height: 0;
  background-color: rgba(135, 206, 250, 0.6);
  pointer-events: none;
  transition: height 0.6s ease-out;
}

/* transform/origem em comum para as “left” */
.stripe-left,
.stripe-left-2 {
  transform: rotate(45deg);
  transform-origin: left bottom;
  left: 0;
}

/* transform/origem em comum para as “right” */
.stripe-right,
.stripe-right-2 {
  transform: rotate(45deg);
  transform-origin: right top;
  right: 0;
}

/* apenas as posições distintas */
.stripe-left {
  bottom: 35%;
}

.stripe-left-2 {
  bottom: 30%;
}

.stripe-right {
  top: 5%;
}

.stripe-right-2 {
  top: 10%;
}


.contact-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
}

@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }

  .stripe {
    height: 0%;
  }
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
  max-width: 600px;
  flex: 1;
}

.form-block form {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.form-block input,
.form-block textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--btn-transition), opacity 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.8rem;
  color: #fff;
  text-align: center;
  margin-top: var(--spacing-sm);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.contact-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-logo {
  max-width: 140px;
  margin: var(--spacing-md) auto 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.social-icons a {
  font-size: 1.6rem;
  color: var(--primary);
  transition: color var(--btn-transition), transform var(--btn-transition);
}

.social-icons a:hover {
  color: var(--primary-dark);
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .contact-wrapper {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .form-block,
  .contact-info {
    max-width: 90%;
  }
}

/* =============================================================================
  Footer
   ========================================================================== */

/* Container geral */
#footer {
  position: relative;
  width: 100%;
  height: 140px;
  /* total = back-panel height + sobresalto do front-panel */
  overflow: visible;
}

.back-panel {
  background-color: #004a8d;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* empurra o conteúdo para o fim (direita) */
  padding-right: 10%;
  /* deixa 5% de margem à direita */
  gap: 0.5rem;
  /* espaçamento entre ícone e texto */

  font-size: 0.8rem;
  /* um pouco menor que .footer-info */
  color: var(--light-blue);
}

/* Camada de frente */
.front-panel {
  background-color: #005ca5;
  /* azul principal da marca */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  height: 100px;
  z-index: 2;

  /* efeito “degraus” para profundidade */
  box-shadow:
    1px 1px 0 #003766,
    2px 2px 0 #003766,
    3px 3px 0 #003766,
    4px 4px 0 #003766,
    5px 5px 0 #003766,
    6px 6px 0 #003766,
    7px 7px 0 #003766,
    8px 8px 0 #003766,
    9px 9px 0 #003766,
    10px 10px 0 #003766,
    11px 11px 0 #003766,
    12px 12px 0 #003766,
    13px 13px 0 #003766,
    14px 14px 0 #003766,
    15px 15px 0 #003766;

  /* centraliza o texto horizontal e verticalmente */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto interno */
.footer-info {
  color: var(--light-blue);
  text-align: center;
}

.back-panel .linkedin-link i {
  font-size: 1.2rem;
  /* tamanho do ícone */
  vertical-align: middle;
  color: var(--light-blue);
  transition: color 0.3s;
}

.back-panel .linkedin-link:hover i {
  color: #0e76a8;
  /* tom oficial do LinkedIn no hover */
}

/* crédito do desenvolvedor */
.back-panel .developer-credit a {
  color: var(--light-blue);
  text-decoration: underline;
}

.back-panel .developer-credit a:hover {
  color: #fff;
}

/* (Opcional) Ajuste do caminhão dentro do back-panel */
.truck-overlay {
  position: absolute;
  bottom: 30%;
  left: -2%;
  height:auto;
  pointer-events: none;
  width: 27%;
}

@media (max-width: 992px) {
  .truck-overlay {
    bottom: 50%;
  }
}


/* =============================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  /* ajustado para ficar mais proporcional */
  right: 20px;
  background: var(--secondary);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform var(--btn-transition), opacity var(--btn-transition);
}

.whatsapp-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.whatsapp-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--btn-transition), transform var(--btn-transition);
  pointer-events: none;
  font-size: 0.85rem;
}

.whatsapp-button:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .quote-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {

  /* 1. Footer vira coluna flexível */
  #footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
    margin-top: 20px;
  }

  /* 2. Front + back ficam estáticos e 100% largura */
  .front-panel,
  .back-panel {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0.5rem 1rem;
  }

  /* 3. Caminhão vira relativo e centralizado */
  .front-panel .truck-overlay {
    position: relative !important;
    display: block !important;
    margin: 0 auto 0.25rem;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    pointer-events: none;
  }

  /* 4. Texto copyright menor e centrado */
  .front-panel .footer-info {
    font-size: 0.75rem;
    text-align: center;
    color: var(--light-blue);
  }

  /* 5. Back-panel em coluna, icon + crédito centralizados */
  .back-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background-color: #004a8d;
    /* manter cor */
  }

  .back-panel .linkedin-link i {
    font-size: 1rem;
  }

  .back-panel .developer-credit {
    font-size: 0.75rem;
    color: var(--light-blue);
    text-align: center;
    white-space: normal;
  }

}