/* ═══════════════════════════════════════════════════════════════════════════════
   4WaTT Bio Engenharia — 3D Cinematic Design System v3.0
   Baseado no 3d-demo.html — Nível Awwwards · Março 2026
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────────
   1. TOKENS E VARIÁVEIS
   ─────────────────────────────────────────────────────────────────────────────── */

:root {
  /* Cores principais Sarah */
  --color-roxo-deep: #2A0025;
  --color-roxo: #3a0940;
  --color-verde: #03a589;
  --color-verde-light: #00C4A9;
  --color-laranja: #DBAA0F;
  --color-turquesa: #2DACB6;
  
  /* Cores de fundo */
  --bg-deep: #0d0010;
  --bg-void: #050208;
  --bg-surface: #15001a;
  /* Superfícies usadas nas páginas internas (padroniza HTML inline) */
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-elevated: rgba(255, 255, 255, 0.06);
  
  /* Texto */
  --text-primary: #EAEAEA;
  --text-dim: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.20);
  
  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  
  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ───────────────────────────────────────────────────────────────────────────────
   Superfícies reutilizáveis (para reduzir inline styles)
   ─────────────────────────────────────────────────────────────────────────────── */
.surface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.surface-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

/* ───────────────────────────────────────────────────────────────────────────────
   Form controls (dark UI)
   - Várias páginas usam inputs/selects com inline styles.
   - Centralizamos aqui para consistência e legibilidade.
   ─────────────────────────────────────────────────────────────────────────────── */
.ui-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ui-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}

.ui-label .ui-required {
  color: var(--color-verde);
}

.ui-input,
.ui-select,
.ui-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.95rem;
  color: #fff;
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.ui-textarea {
  resize: vertical;
}

.ui-select {
  cursor: pointer;
}

.ui-input:focus,
.ui-select:focus,
.ui-textarea:focus {
  border-color: var(--color-verde);
  box-shadow: 0 0 0 4px rgba(0,160,137,0.14);
}

.ui-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.ui-help a {
  color: var(--color-verde);
  text-decoration: none;
}

.ui-help a:hover {
  text-decoration: underline;
}

/* Pills de filtro (projetos/artigos) */
.filter-pill {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: var(--text-dim);
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.filter-pill:hover {
  border-color: rgba(0,160,137,0.5);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--color-verde);
  border-color: var(--color-verde);
  color: #fff;
  font-weight: 600;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .filter-pill { transition: none; }
}

/* ───────────────────────────────────────────────────────────────────────────────
   2. RESET E BASE
   ─────────────────────────────────────────────────────────────────────────────── */

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

html {
  font-size: clamp(15px, 0.875rem + 0.35vw, 18px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(15px, 0.9rem + 0.3vw, 18px);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Compatibilidade: páginas com font-size inline em px */
[style*="font-size:10px"], [style*="font-size: 10px"] { font-size: clamp(0.62rem, 0.58rem + 0.18vw, 0.68rem) !important; }
[style*="font-size:11px"], [style*="font-size: 11px"] { font-size: clamp(0.68rem, 0.64rem + 0.2vw, 0.74rem) !important; }
[style*="font-size:12px"], [style*="font-size: 12px"] { font-size: clamp(0.72rem, 0.68rem + 0.22vw, 0.78rem) !important; }
[style*="font-size:13px"], [style*="font-size: 13px"] { font-size: clamp(0.78rem, 0.74rem + 0.24vw, 0.84rem) !important; }
[style*="font-size:14px"], [style*="font-size: 14px"] { font-size: clamp(0.84rem, 0.8rem + 0.26vw, 0.9rem) !important; }
[style*="font-size:15px"], [style*="font-size: 15px"] { font-size: clamp(0.9rem, 0.86rem + 0.28vw, 0.96rem) !important; }
[style*="font-size:16px"], [style*="font-size: 16px"] { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.02rem) !important; }
[style*="font-size:17px"], [style*="font-size: 17px"] { font-size: clamp(1rem, 0.94rem + 0.32vw, 1.08rem) !important; }
[style*="font-size:18px"], [style*="font-size: 18px"] { font-size: clamp(1.04rem, 0.98rem + 0.36vw, 1.14rem) !important; }
[style*="font-size:20px"], [style*="font-size: 20px"] { font-size: clamp(1.08rem, 1rem + 0.46vw, 1.26rem) !important; }
[style*="font-size:28px"], [style*="font-size: 28px"] { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem) !important; }
[style*="font-size:36px"], [style*="font-size: 36px"] { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.3rem) !important; }
[style*="font-size:40px"], [style*="font-size: 40px"] { font-size: clamp(2rem, 1.55rem + 1.8vw, 2.5rem) !important; }
[style*="font-size:52px"], [style*="font-size: 52px"] { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.25rem) !important; }

/* Scrollbar minimalista */
::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
  background: rgba(0, 160, 137, 0.3);
  color: #fff;
}

/* ───────────────────────────────────────────────────────────────────────────────
   3. LOADING SCREEN
   ─────────────────────────────────────────────────────────────────────────────── */

#hero-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s var(--ease-reveal);
}

.loader-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.loader-bar-bg {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-verde), var(--color-verde-light));
  transition: width 0.15s linear;
}

.loader-percent {
  margin-top: 12px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.1em;
}

/* ───────────────────────────────────────────────────────────────────────────────
   4. HERO CINEMÁTICO (Parallax)
   ─────────────────────────────────────────────────────────────────────────────── */

.hero-scene {
  position: relative;
  width: 100%;
  height: 158vh;
}

@media (max-width: 768px) {
  .hero-scene {
    height: 118vh;
  }
}

@media (max-width: 480px) {
  .hero-scene {
    height: 108vh;
  }
}

.hero-scene__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-scene__image-wrap {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-scene__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.85) saturate(1.1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Escurecimento no scroll — animar opacity (GPU) em vez de filter na foto */
.hero-scene__scroll-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 2, 8, 0.15) 0%,
    rgba(13, 0, 16, 0.55) 45%,
    rgba(13, 0, 16, 0.72) 100%
  );
  will-change: opacity;
}

/* Overlays */
.hero-scene__overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 0, 16, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-scene__overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 0, 16, 0.4) 0%, transparent 30%, transparent 50%, rgba(13, 0, 16, 0.7) 85%, rgba(13, 0, 16, 1) 100%),
    linear-gradient(90deg, rgba(61, 0, 54, 0.3) 0%, transparent 40%);
  pointer-events: none;
  z-index: 3;
}

/* Glow effects */
.hero-scene__glow-verde {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 160, 137, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 4;
  filter: blur(40px);
  animation: glow-pulse 6s ease-in-out infinite;
}

.hero-scene__glow-warm {
  position: absolute;
  top: 30%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(219, 170, 15, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 4;
  filter: blur(30px);
  animation: glow-pulse 4s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   5. HERO CONTENT
   ─────────────────────────────────────────────────────────────────────────────── */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-content__inner {
  max-width: 800px;
  text-align: center;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
  position: relative;
  top: -3vh;
}

@media (max-width: 768px) {
  .hero-content__inner {
    top: 0;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .hero-h1 {
    font-size: clamp(26px, 8.5vw, 44px);
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .hero-h1 br {
    display: none;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .hero-badge {
    margin-bottom: 20px;
    padding: 8px 14px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: max(24px, env(safe-area-inset-bottom));
  }

  .scroll-indicator span:last-child {
    font-size: 9px;
  }
}

.hero-interactive {
  pointer-events: auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}

.hero-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-verde);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 160, 137, 0.4);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(0, 160, 137, 0);
  }
}

.hero-badge__text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Headline */
.hero-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6), 0 0 120px rgba(13, 0, 16, 0.4);
}

.text-gradient-verde {
  background: linear-gradient(135deg, var(--color-verde-light) 0%, var(--color-verde) 50%, var(--color-turquesa) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ───────────────────────────────────────────────────────────────────────────────
   6. BOTÕES
   ─────────────────────────────────────────────────────────────────────────────── */

.btn-primary {
  height: 52px;
  padding: 0 36px;
  background: var(--color-verde);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-reveal);
  box-shadow: 0 0 24px rgba(0, 160, 137, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-verde-light);
  box-shadow: 0 0 40px rgba(0, 160, 137, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  height: 52px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-reveal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

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

/* ───────────────────────────────────────────────────────────────────────────────
   7. SCROLL INDICATOR
   ─────────────────────────────────────────────────────────────────────────────── */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-indicator__mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator__mouse::after {
  content: '';
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.2;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   8. NAVBAR
   ─────────────────────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: all 0.5s ease;
}

.navbar.scrolled {
  background: rgba(13, 0, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo marca (aumentada para melhor visibilidade) */
.navbar__logo img {
  height: 90px;
  width: 90px;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.navbar__logo img:hover {
  transform: scale(1.05);
}

@media (min-width: 769px) {
  .navbar__logo img {
    height: 100px;
    width: 100px;
  }
}

.navbar__logo-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}

.navbar__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: white;
  letter-spacing: -0.02em;
}

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

.navbar__links a {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.navbar__links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.navbar__links a:hover {
  color: white;
}

.navbar__cta {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--color-verde), var(--color-verde-dark));
  border: 2px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 160, 137, 0.3);
}

.navbar__cta:hover {
  background: linear-gradient(135deg, var(--color-verde-light), var(--color-verde));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 160, 137, 0.4);
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__inner {
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    height: auto;
    padding-top: env(safe-area-inset-top);
    min-height: calc(84px + env(safe-area-inset-top));
  }

  .navbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* ─── Menu mobile (hamburger + drawer) ─── */
.navbar__toggle {
  display: none;
}

@media (max-width: 1100px) {
  .navbar__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease;
  }

  .navbar__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .navbar__toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease-reveal), opacity 0.25s ease;
  }

  .navbar__toggle.is-open .navbar__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar__toggle.is-open .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar__toggle.is-open .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.navbar__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(5, 2, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-reveal);
}

.navbar__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.navbar__drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10050;
  width: min(100%, 340px);
  max-width: calc(100vw - 16px);
  height: 100vh;
  height: 100dvh;
  padding: calc(96px + env(safe-area-inset-top)) 24px 32px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0a0512 0%, var(--bg-void) 45%);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-reveal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar__drawer.is-open {
  transform: translateX(0);
}

.navbar.is-mobile-nav-open {
  z-index: 10060;
}

.navbar__drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar__drawer-link {
  display: block;
  padding: 16px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.navbar__drawer-link:hover,
.navbar__drawer-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.navbar__drawer-cta {
  margin-top: 20px;
  width: 100%;
  min-height: 52px;
  justify-content: center;
  text-align: center;
}

body.navbar-mobile-open {
  overflow: hidden;
}

/* ───────────────────────────────────────────────────────────────────────────────
   9. MAIN CONTENT CURTAIN
   ─────────────────────────────────────────────────────────────────────────────── */

.main-content {
  position: relative;
  z-index: 20;
  background: var(--bg-deep);
  box-shadow: 0 -60px 120px var(--bg-deep);
}

/* ───────────────────────────────────────────────────────────────────────────────
   10. REVEAL ANIMATION
   ─────────────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(24px);
  transition: all 0.9s var(--ease-reveal);
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   11. SECTIONS
   ─────────────────────────────────────────────────────────────────────────────── */

.section {
  padding: clamp(64px, 8vw, 120px) 24px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: clamp(48px, 10vw, 72px) max(16px, env(safe-area-inset-left)) clamp(48px, 10vw, 72px) max(16px, env(safe-area-inset-right));
  }
}

.section-narrow {
  max-width: 860px;
}

/* ───────────────────────────────────────────────────────────────────────────────
   12. KARAOKE TEXT
   ─────────────────────────────────────────────────────────────────────────────── */

.karaoke-word {
  opacity: 0.2;
  transition: all 0.4s var(--ease-reveal);
}

.karaoke-word.active {
  opacity: 1;
  color: white;
}

/* ───────────────────────────────────────────────────────────────────────────────
   13. GLASS CARDS
   ─────────────────────────────────────────────────────────────────────────────── */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.7s var(--ease-reveal);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ───────────────────────────────────────────────────────────────────────────────
   14. STATS
   ─────────────────────────────────────────────────────────────────────────────── */

.stats-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  max-width: 1400px !important;
  margin: 3rem auto 2rem !important;
  padding: 2rem clamp(1rem, 3vw, 2rem) !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  background: rgba(255,255,255,0.02);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

.stats-grid::-webkit-scrollbar {
  display: none !important;
}

.stats-grid::-webkit-scrollbar-track {
  background: transparent;
}

.stats-grid::before,
.stats-grid::after {
  content: none !important;
}

.stat-item {
  flex: 0 0 clamp(220px, 22vw, 280px) !important;
  scroll-snap-align: center !important;
  text-align: center !important;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem !important;
  position: relative !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(32px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.stat-item:hover {
  transform: translateY(-12px) scale(1.05) !important;
  box-shadow: 0 24px 64px rgba(0,160,137,0.3) !important;
  border-color: rgba(0,160,137,0.4) !important;
}

.stat-item:nth-child(1):hover { box-shadow: 0 24px 64px rgba(0,160,137,0.4) !important; }
.stat-item:nth-child(2):hover { box-shadow: 0 24px 64px rgba(219,170,15,0.4) !important; }
.stat-item:nth-child(3):hover { box-shadow: 0 24px 64px rgba(45,172,182,0.4) !important; }
.stat-item:nth-child(4):hover { box-shadow: 0 24px 64px rgba(93,0,80,0.4) !important; }

.stat-icon {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  width: 64px !important;
  height: 64px !important;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  animation: iconFloat 4s ease-in-out infinite !important;
  opacity: 0.9 !important;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(180deg); }
}

.stat-item.reveal.active .stat-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.8s;
}

.stat-item {
  overflow: hidden;
}

.stat-item .stat-number,
.stat-item .stat-icon {
  transform: translateX(-100%);
}

.stat-item.reveal.active .stat-number,
.stat-item.reveal.active .stat-icon,
.stat-item.reveal.active .stat-label {
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:nth-child(1).reveal.active .stat-number,
.stat-item:nth-child(1).reveal.active .stat-icon { transition-delay: 0.2s; }
.stat-item:nth-child(2).reveal.active .stat-number,
.stat-item:nth-child(2).reveal.active .stat-icon { transition-delay: 0.35s; }
.stat-item:nth-child(3).reveal.active .stat-number,
.stat-item:nth-child(3).reveal.active .stat-icon { transition-delay: 0.5s; }
.stat-item:nth-child(4).reveal.active .stat-number,
.stat-item:nth-child(4).reveal.active .stat-icon { transition-delay: 0.65s; }

.stat-item.reveal.active .stat-label { transition-delay: 0.4s; }

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(3.5rem, 10vw, 6rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin-bottom: 0.75rem !important;
  position: relative !important;
  text-shadow: 
    0 4px 16px rgba(255,255,255,0.6),
    0 0 32px currentColor !important;
  z-index: 2 !important;
  animation: numberGlow 2s ease-in-out infinite alternate !important;
}

.stat-number::before {
  content: attr(data-suffix) !important;
  position: absolute !important;
  top: 0 !important;
  right: -0.5em !important;
  font-size: 0.4em !important;
  opacity: 0.9 !important;
}

@keyframes numberGlow {
  from { filter: drop-shadow(0 0 8px currentColor); }
  to { filter: drop-shadow(0 0 24px currentColor); }
}

.stat-item:nth-child(1) .stat-number { background: linear-gradient(135deg, #00C4A9, #00A089); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(2) .stat-number { background: linear-gradient(135deg, #DBAA0F, #F4B400); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(3) .stat-number { background: linear-gradient(135deg, #2DACB6, #00C4A9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(4) .stat-number { background: linear-gradient(135deg, #5C0050, #3D0036); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-verde), #00C4A9);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.6s ease 0.4s;
}

.stat-item.reveal.active .stat-number::after {
  width: 60px;
}

.stat-accent {
  color: var(--color-verde);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .stats-grid {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding: 1.5rem 1rem !important;
  }
  
  .stat-item {
    flex: 0 1 calc(50% - 0.75rem) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 1.75rem 1rem !important;
  }

  .stat-number {
    font-size: clamp(2.5rem, 9vw, 4rem) !important;
  }
  
  .stat-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .stat-item {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   15. OVERLINE
   ─────────────────────────────────────────────────────────────────────────────── */

.overline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-verde);
  margin-bottom: 12px;
  text-align: center !important;
  display: block;
}

@media (max-width: 768px) {
  .overline {
    font-size: clamp(13px, 4vw, 18px);
    letter-spacing: 0.09em;
    margin-bottom: 10px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   16. CTA SECTION
   ─────────────────────────────────────────────────────────────────────────────── */

.cta-section {
  position: relative;
  z-index: 10;
  min-height: 90vh;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 160, 137, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(61, 0, 54, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(0, 196, 169, 0.08) 0%, transparent 40%);
  animation: cta-gradient 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-gradient {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
  }
}

.cta-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: radial-gradient(ellipse at center bottom, rgba(0, 160, 137, 0.1) 0%, transparent 50%);
}

.cta-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.cta-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Mobile responsive fix for CTA section */
@media (max-width: 768px) {
  .cta-section {
    height: auto;
    min-height: 80vh;
  }
  .cta-sticky {
    position: relative;
    height: auto;
    min-height: 80vh;
    padding: 60px 24px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   17. FOOTER
   ─────────────────────────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 20;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 24px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 300px;
  line-height: 1.7;
  margin-top: 16px;
}

.footer__columns {
  display: flex;
  gap: 80px;
}

.footer__col h4 {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.footer__col a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer {
    padding: 48px max(18px, env(safe-area-inset-left)) 40px max(18px, env(safe-area-inset-right));
  }

  .footer__inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer__brand {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer__brand p {
    font-size: 15.5px;
    line-height: 1.75;
    max-width: 100%;
    margin-top: 12px;
  }
  
  .footer__columns {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .footer__col {
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer__col:last-child {
    border-bottom: 0;
  }

  .footer__col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }

  .footer__col a {
    padding: 8px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    font-size: 16.5px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
  }

  .footer__col a:focus-visible {
    outline: 2px solid var(--color-verde);
    outline-offset: 3px;
    border-radius: 8px;
  }

  .footer__col a[href^="mailto:"],
  .footer__col a[href^="https://wa.me/"] {
    background: rgba(0,160,137,0.12);
    border: 1px solid rgba(0,160,137,0.35);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 54px;
    margin: 6px 0 10px;
    color: #fff;
    font-weight: 600;
  }
}

/* Grid de cases / cards na home — sem overflow horizontal */
.home-grid-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .home-grid-cases {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .home-grid-cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-grid-feature {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .home-grid-feature {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .home-grid-feature {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-section--home {
  margin-top: -60px;
}

@media (max-width: 768px) {
  .cta-section--home {
    margin-top: -32px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   18. UTILITÁRIOS
   ─────────────────────────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ───────────────────────────────────────────────────────────────────────────────
   19. RESPONSIVE HARDENING (mobile-first)
   Ajustes globais para evitar quebras em 320px+ e tablets
   ─────────────────────────────────────────────────────────────────────────────── */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Evita overflow por textos longos em cards/títulos */
h1, h2, h3, h4, h5, h6,
p, a, span, li {
  overflow-wrap: anywhere;
}

/* Grid 2 colunas em tablets para melhor densidade */
@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Refino para telas pequenas */
@media (max-width: 768px) {
  .section {
    max-width: 100%;
  }

  .glass-card {
    padding: 22px;
    border-radius: 18px;
  }

  .kicker {
    letter-spacing: 0.12em;
    font-size: 11px;
  }
}

/* Ultra mobile */
@media (max-width: 420px) {
  .section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .glass-card {
    padding: 18px;
    border-radius: 16px;
  }
}
