/* =========================================
   LION SECURITY v5 — Padronizado 4/8px Grid
   Ultra Minimalista · Apple-like · Estrito
   ========================================= */

/* --------- CSS Custom Properties --------- */
:root {
  /* Paleta Apple-like */
  --color-canvas: #FFFFFF;
  --color-surface: #F5F5F7;
  --color-ink: #1D1D1F;
  --color-graphite: #86868B;
  --color-wire: #E5E5EA;
  --color-gold: #C9A96E;
  --color-gold-light: #DFCDA6; 

  /* Tipografia */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamentos Base 4/8px */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-128: 128px;

  /* Seção Padding (responsivo) */
  --section-padding: var(--sp-64);
  --gap: var(--sp-16);
  
  /* Largura */
  --container-max: 1400px;
  --container-padding: var(--sp-24);

  /* Border Radius Padrão */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transições */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.7s var(--ease-out-expo);
}

@media (min-width: 768px) {
  :root {
    --section-padding: var(--sp-96);
    --gap: var(--sp-24);
    --container-padding: var(--sp-40);
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: var(--sp-128);
    --gap: var(--sp-32);
    --container-padding: var(--sp-64);
  }
}

/* --------- Reset & Base --------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background-color: var(--color-canvas);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* --------- Container e Sections --------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* REGRA DE PADDING ABSOLUTO */
.section, .section-horizontal-wrapper, .section-numbers {
  padding: var(--section-padding) 0 !important;
  background-color: var(--color-canvas);
  position: relative;
}

.section-process { background-color: var(--color-surface); }

/* --------- Tipografia Global Padronizada --------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-12);
}

/* H2 seções: 40px desktop */
.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  max-width: 680px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 34px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 40px;
  }
}

/* Centralizar títulos quando aplicável */
.process-header .section-title,
.testimonials-header .section-title,
.text-center .section-title {
  margin-left: auto;
  margin-right: auto;
}

/* Evita palavras viúvas */
p, .h-card-desc, .box-desc, .hero-subtitle {
  text-wrap: pretty;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: #8E8E93;
}

/* Gradiente Dourado para destaque de texto */
.text-gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A96E 30%, #E8D5A3 50%, #C9A96E 70%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------- Reveal Element --------- */
.reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: calc(var(--index, 0) * 60ms);
}
.reveal-element.revealed { opacity: 1; transform: translateY(0); }

/* =========================================
   1. HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    min-height: auto;
    height: 100vh;
    max-height: 980px;
  }
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--color-canvas);
}

.hero-bg-video video {
  position: absolute;
  top: 0;
  right: 0; /* Trava o vídeo na extrema direita da tela */
  height: 100%; /* Respeita a altura da seção */
  width: auto; /* Não estica a largura para 100% (mantém a qualidade/resolução INTACTA nativa) */
  min-width: 60%; /* Garante que ele cubra pelo menos a metade da tela */
  max-width: 100%;
  object-fit: cover; 
  opacity: 1;
  /* Cria uma máscara "invisível" que faz a lateral esquerda do vídeo desaparecer suavemente, 
     misturando com o fundo branco do site sem a necessidade de colocar nenhuma camada/sombra branca por cima! */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
  /* O detalhe final de posicionamento com precisão milimétrica */
  transform: translateX(5%);
}

/* Mobile: vídeo cobre toda a tela e fica atrás do texto com overlay forte */
@media (max-width: 767px) {
  .hero-bg-video video {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
    right: auto;
    left: 0;
  }
}

/* Restauramos apenas a neblina vertical para suavizar as PATAS do leão sem jogar fumaça no rosto dele */
.video-overlay-gradient {
  position: absolute;
  inset: 0;
  /* Um degradê que vai somente de baixo para cima, apagando o corte seco e fundindo com o resto do site */
  background: linear-gradient(to top, var(--color-canvas) 0%, rgba(255,255,255,0) 25%);
  z-index: 2;
  pointer-events: none;
}

/* Mobile: overlay equilibrado — leão visível + texto legível */
@media (max-width: 767px) {
  .video-overlay-gradient {
    background: 
      linear-gradient(to top, var(--color-canvas) 0%, rgba(255,255,255,0.15) 35%),
      linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0) 70%);
  }
}

.hero-content-container {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  color: var(--color-ink);
}

.hero-brand {
  display: inline-flex;  
  align-items: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-32);
}
.hero-brand-icon { color: var(--color-gold); display: flex; }
.hero-brand-text { font-size: 16px; font-weight: 800; letter-spacing: 0.15em; }

/* H1 mantém tamanho próprio (maior que 40px) */
.hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin-bottom: var(--sp-24);
}

.hero-subtitle {
  font-size: 18px; /* Alterado de clamp para um valor fixo e exato de 18px */
  color: var(--color-graphite);
  line-height: 1.6;
}

/* Mobile: hero text adjustments */
@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
    margin-bottom: var(--sp-16);
  }
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
    max-width: 320px;
  }
  .hero-subtitle br {
    display: none;
  }
}

.hero-actions { margin-top: var(--sp-40); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-16);
  background: rgba(29, 29, 31, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: var(--sp-16) var(--sp-32);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-hero:hover::before { left: 150%; }

.btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: rgba(29, 29, 31, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.reveal-hero { opacity: 0; transform: translateY(20px); }


/* =========================================
   2. NÚMEROS
   ========================================= */
.numbers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-32);
}
.number-item {
  flex: 1; min-width: 160px; padding: var(--sp-16) 0; display: flex; flex-direction: column;
}
.number-row {
  display: flex;
  align-items: baseline;
}
.number-value {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.number-value-static, .number-suffix { color: var(--color-gold); }
.number-suffix {
  font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-left: 2px;
}
.number-label {
  margin-top: var(--sp-12); font-size: 16px; font-weight: 500; color: var(--color-graphite); line-height: 1.4;
}

.section-header, .process-header, .testimonials-header, .video-isolated-header, .about-header, .location-header {
  margin-bottom: clamp(32px, 5vw, 64px); 
}

/* =========================================
   3. SCROLL HORIZONTAL (SERVIÇOS)
   ========================================= */
.section-horizontal-wrapper {
  background-color: var(--color-canvas);
  overflow: hidden;
  position: relative;
}

.horizontal-intro {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.horizontal-track {
  display: flex;
  gap: var(--sp-24);
  width: max-content;
  will-change: transform;
}

.h-card {
  width: 380px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-wire);
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.h-card-inner {
  padding: var(--sp-40);
  display: flex; flex-direction: column; height: 100%;
}

.h-card-header {
  display: flex; justify-content: flex-start; align-items: center; margin-bottom: var(--sp-32);
}

/* Ícone Padrão Global */
.h-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-wire);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink);
}

/* Títulos de card: 24px desktop */
.h-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-12);
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .h-card-title {
    font-size: 24px;
  }
}

.h-card-desc {
  font-size: 16px;
  color: var(--color-graphite);
  line-height: 1.6;
}


/* =========================================
   4. VÍDEO INSTITUCIONAL ISOLADO
   ========================================= */
.video-isolated-block {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  margin: 0 auto;
}
.video-isolated-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #E5E5EA 0%, #D1D1D6 100%);
  z-index: 1;
}
.btn-play-isolated {
  position: relative;
  z-index: 2;
  width: 80px; height: 80px;
  border-radius: 50%;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease-spring), box-shadow var(--ease-spring);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.btn-play-isolated:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.btn-play-isolated .btn-play-icon { margin-left: 4px; display: flex; }


/* =========================================
   5. A ESSÊNCIA LION (DIFERENCIAIS)
   ========================================= */
.why-header { margin-bottom: clamp(32px, 5vw, 48px); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--sp-24);
}

.box-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-32);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .box-card {
    padding: var(--sp-40);
  }
}

.box-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-wire);
  transform: none;
}

.why-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-canvas);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink);
  margin-bottom: var(--sp-24);
  transition: color var(--transition-base);
}
.why-icon svg { width: 24px !important; height: 24px !important; }
.box-card:hover .why-icon { color: var(--color-gold); }

/* Why card titles: 24px desktop */
.why-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-16);
}

@media (min-width: 1024px) {
  .why-card-title {
    font-size: 24px;
  }
}

.why-card-desc { font-size: 16px; color: var(--color-graphite); line-height: 1.6; }


/* =========================================
   6. SOBRE A EMPRESA
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-48); align-items: start; }

.about-text-column { max-width: 900px; }
.about-text-column .about-content { margin-top: var(--sp-24); }
.about-content p { font-size: 18px; color: var(--color-graphite); margin-bottom: var(--sp-24); line-height: 1.6; }

.about-bullets { margin-top: var(--sp-40); display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--sp-32); }
.about-bullets li { display: flex; align-items: center; gap: var(--sp-16); font-weight: 600; font-size: 16px; line-height: 1.3; }

.bullet-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background-color: var(--color-surface); border: 1px solid var(--color-wire);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); flex-shrink: 0;
}

.bullet-icon svg { width: 24px; height: 24px; }


/* =========================================
   7. PROCESSO
   ========================================= */
.process-header { text-align: center; }
.process-steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-48); }
.process-step-number { font-size: 16px; font-weight: 700; color: var(--color-gold); margin-bottom: var(--sp-12); }
.process-step-line { width: 100%; height: 1px; background-color: var(--color-wire); margin-bottom: var(--sp-24); }

.process-step-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-8);
}

@media (min-width: 1024px) {
  .process-step-title {
    font-size: 24px;
  }
}

.process-step-desc { color: var(--color-graphite); font-size: 16px; line-height: 1.6; }


/* =========================================
   8. DEPOIMENTOS (Marquee)
   ========================================= */


.testimonials-header { text-align: center; margin-bottom: var(--sp-32); }

.marquee-container {
  width: 100%; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: var(--sp-8) 0;
}
.marquee-track {
  display: flex; gap: var(--sp-24); width: max-content;
  animation: marquee 40s linear infinite;
  align-items: stretch;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 12px)); } }

.t-card {
  width: 320px;
  min-height: 200px;
  max-height: 240px;
  background-color: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-24); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.t-text { font-size: 14px; line-height: 1.5; font-style: italic; font-weight: 500; margin-bottom: var(--sp-12); }
.t-author { display: flex; align-items: center; gap: var(--sp-12); margin-top: auto; }
.t-avatar {
  width: 36px; height: 36px; border-radius: 50%; background-color: #E0E0E5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.t-meta strong { font-size: 13px; }
.t-meta { font-size: 11px; color: var(--color-graphite); line-height: 1.3; }


/* =========================================
   9. MAPA DE LOCALIZAÇÃO — Compacto
   ========================================= */
.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-32);
  align-items: stretch; /* Estica o mapa para ter a exata altura do texto */
}

.map-desc {
  font-size: 16px;
  color: var(--color-graphite);
  margin-top: var(--sp-16);
  max-width: 520px;
  line-height: 1.6;
}

.map-address-box {
  margin-top: var(--sp-24);
  display: flex; align-items: flex-start; gap: var(--sp-12);
  background-color: var(--color-surface);
  padding: var(--sp-16); border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.5;
}
.map-pin { color: var(--color-gold); flex-shrink: 0; }

.map-embed-wrapper {
  width: 100%;
  height: 100%;
  grid-column: span 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  background-color: var(--color-surface);
  position: relative; /* para iframe absoluto */
}

.map-embed-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================
   10. CONTATO E FOOTER
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
}

.contact-desc { color: var(--color-graphite); font-size: 18px; margin-top: var(--sp-16); max-width: 480px; line-height: 1.6; }

.contact-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-32);
}

@media (min-width: 1024px) {
  .contact-card {
    padding: var(--sp-40);
  }
}

.contact-info-list {
  display: flex; flex-direction: column; gap: var(--sp-24);
  margin-bottom: var(--sp-32);
}
.contact-info-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-graphite); margin-bottom: var(--sp-4); }
.contact-info-value { font-size: 18px; font-weight: 600; }

.contact-whatsapp {
  display: inline-flex; align-items: center; gap: var(--sp-16);
  background-color: var(--color-ink); color: #FFF; padding: var(--sp-16) var(--sp-32); border-radius: var(--radius-md);
  font-weight: 600; font-size: 16px; transition: all 0.4s var(--ease-spring);
  position: relative; overflow: hidden;
}
.contact-whatsapp::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.contact-whatsapp:hover::before { left: 150%; }
.contact-whatsapp:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }

.site-footer { padding: var(--sp-32) 0; border-top: 1px solid var(--color-wire); }
.footer-inner { display: flex; flex-direction: column; gap: var(--sp-12); align-items: center; }
.footer-logo { font-size: 16px; font-weight: 800; letter-spacing: 0.15em; }
.footer-legal { font-size: 14px; color: var(--color-graphite); }


/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-48) var(--sp-32); }
  .map-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  
  .h-card { width: 360px; }
  .t-card { width: 320px; }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-32); }
  
  .h-card { width: 380px; }
  .t-card { width: 340px; }
}

/* ---------- Mobile (até 767px) ---------- */
@media (max-width: 767px) {
  /* NÚMEROS: grid 2x2 compacto */
  .numbers-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
  .number-item {
    flex: none;
    min-width: 0;
    width: auto;
    align-items: flex-start;
    padding: var(--sp-16);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
  }
  .number-value {
    font-size: 28px;
  }
  .number-suffix {
    font-size: 20px;
  }
  .number-label {
    font-size: 13px;
  }
  .number-label br {
    display: none;
  }
  
  /* SERVIÇOS: cards empilhados verticalmente no mobile */
  .section-horizontal-wrapper {
    overflow: visible !important;
  }
  .horizontal-pin-container {
    overflow: visible !important;
  }
  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    gap: var(--sp-16);
    padding: 0 var(--sp-24);
  }
  .h-card {
    width: 100% !important;
    flex-shrink: 0;
  }
  .h-card-inner { padding: var(--sp-24); }
  .h-card-header { margin-bottom: var(--sp-24); }
  
  .t-card { width: 300px; min-height: 240px; padding: var(--sp-24); }
  
  .map-embed-wrapper { max-width: 100%; aspect-ratio: 4/3; }
  .map-desc { max-width: 100%; }
  
  .about-bullets { flex-direction: column; gap: var(--sp-16); }
  
  .hero-brand { margin-bottom: var(--sp-24); }
}
