/* ==========================================================================
   COMU INTEGRADA Ã¢â‚¬â€ Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --c-verde-agua: #60a39f;
  --c-azul-profundo: #01303d;
  --c-azul-medio: #417197;

  /* Secondary */
  --c-azul-acinzentado: #718da2;
  --c-verde-acinzentado: #8ea5a5;
  --c-verde-musgo: #5e7e62;
  --c-cinza-claro: #c4cfd2;

  /* Warm Accents */
  --c-laranja: #da7731;
  --c-amarelo-suave: #f2cf8d;
  --c-marrom-bege: #9e6d3f;

  /* Cursor color Ã¢â‚¬â€ updated by JS per section */
  --cursor-color: #60a39f;

  /* Neutrals */
  --c-lilas: #b0a0ba;
  --c-offwhite: #f5efe6;
  --c-branco: #ffffff;
  --c-preto: #0a1a20;

  /* Typography */
  --font-primary: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Comfortaa', 'Poppins', system-ui, sans-serif;
  --font-accent:  'Fredoka', 'Poppins', system-ui, sans-serif;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1320px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 300ms ease;
  --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(1, 48, 61, 0.08), 0 1px 2px rgba(1, 48, 61, 0.04);
  --shadow-md: 0 4px 16px rgba(1, 48, 61, 0.10), 0 2px 4px rgba(1, 48, 61, 0.06);
  --shadow-lg: 0 20px 48px rgba(1, 48, 61, 0.14), 0 8px 16px rgba(1, 48, 61, 0.08);
  --shadow-xl: 0 32px 80px rgba(1, 48, 61, 0.18);

  /* Border Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Header height for offset anchors */
  --header-h: 90px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-preto);
  background-color: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--c-azul-profundo);
  color: var(--c-offwhite);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--r-md);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   4. Focus Styles
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-verde-agua);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-azul-profundo);
}

/* h1-hero: "Treinamento que vira" Ã¢â‚¬â€ mesmo tamanho de impacto que "performance." */
.h1-hero {
  font-size: clamp(2.25rem, 3.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-offwhite);
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  max-width: 65ch;
}

p + p {
  margin-top: var(--space-4);
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(10, 26, 32, 0.72);
  max-width: 55ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-verde-agua);
  margin-bottom: var(--space-4);
}

.eyebrow-dark {
  color: var(--c-verde-agua);
}

.stat-number {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-verde-agua), var(--c-azul-medio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   6. Container & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

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

.container--wide {
  max-width: 1520px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   7. Section Spacing
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(4rem, 8vw, 8rem);
  position: relative;
}

.section--dark {
  background: var(--c-azul-profundo);
  color: var(--c-offwhite);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-offwhite);
}

.section--dark .lead {
  color: rgba(245, 239, 230, 0.72);
}

.section--dark p {
  color: rgba(245, 239, 230, 0.85);
}

.section--dark .eyebrow {
  color: var(--c-verde-agua);
}

.section--offwhite {
  background: var(--c-offwhite);
}

.section--white {
  background: var(--c-branco);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center p,
.section-header--center .lead {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background-color var(--t-base), border-color var(--t-base), color var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98) translateY(0);
}

.btn-primary {
  background: var(--c-laranja);
  color: var(--c-azul-profundo);
  border-color: var(--c-laranja);
}

.btn-primary:hover {
  background: #e5832a;
  border-color: #e5832a;
  box-shadow: 0 8px 24px rgba(218, 119, 49, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #b0a0ba;
  border-color: #b0a0ba;
}

.btn-secondary:hover {
  background: rgba(176, 160, 186, 0.12);
  box-shadow: 0 4px 16px rgba(176, 160, 186, 0.25);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgb(255 255 255 / 45%);
}

.btn-ghost:hover {
  border-color: #b0a0ba;
  background: rgba(176, 160, 186, 0.1);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

/* Ripple effect on buttons */
.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(30);
    opacity: 0;
  }
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t-base), backdrop-filter var(--t-base), box-shadow var(--t-base);
}

.site-header.scrolled {
  background-color: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(1, 48, 61, 0.08);
}

.site-header.header-dark {
  background-color: transparent;
  /* Gradiente suave no topo Ã¢â‚¬â€ header sempre legÃƒÂ­vel sobre o hero */
  background-image: linear-gradient(to bottom, rgba(1, 48, 61, 0.55) 0%, transparent 100%);
}

.site-header.header-dark.scrolled {
  background-color: rgba(1, 48, 61, 0.92);
  background-image: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

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

.header-logo img,
.header-logo svg {
  height: 70px;
  width: auto;
  transition: opacity var(--t-base);
}

.logo-light { display: block; }
.logo-dark  { display: none; }

.site-header.header-dark .logo-light { display: none; }
.site-header.header-dark .logo-dark  { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-azul-profundo);
  position: relative;
  padding-block: 4px;
  transition: color var(--t-fast);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--c-verde-agua);
  transition: right var(--t-base);
  border-radius: 2px;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

.site-header.header-dark .site-nav a {
  color: rgba(245, 239, 230, 0.9);
}

.site-header.header-dark .site-nav a:hover {
  color: var(--c-offwhite);
}

.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-azul-profundo);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity var(--t-base), width var(--t-base);
  transform-origin: center;
}

.site-header.header-dark .nav-toggle span {
  background: var(--c-offwhite);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-azul-profundo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-nav.open {
  clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem);
  pointer-events: all;
}

.mobile-nav a {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--c-offwhite);
  text-align: center;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: color var(--t-fast), opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a:hover {
  color: var(--c-verde-agua);
}

.mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav .mobile-cta { transition-delay: 0.3s; }

/* Oculto por padrão no desktop — só aparece em mobile via media query */
.mobile-comuplay-btn { display: none; }

/* --------------------------------------------------------------------------
   10. Hero Section Ã¢â‚¬â€ estilo "make": imagem sangrando + badges flutuantes
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  /* clip-x sem criar scroll container: deixa o conteÃƒÂºdo empurrar a altura */
  overflow-x: clip;
  background: linear-gradient(155deg, #1d7485 0%, #186577 55%, #156070 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Canvas fades out before hero-visual starts (58vw visual Ã¢â€ â€™ starts at 42vw) */
  -webkit-mask-image: linear-gradient(to right, black 16vw, transparent 38vw);
  mask-image: linear-gradient(to right, black 16vw, transparent 38vw);
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #01303d 0%, #072532 100%);
  z-index: 0;
  display: none;
}

/* Grain noise */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* AnÃƒÂ©is decorativos (motivo de ondas da marca COMU) */
.hero-rings {
  position: absolute;
  /* Posicionados onde a coluna de texto encontra a imagem (centro-direita) */
  right: clamp(28%, 34vw, 42%);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 42vw, 600px);
  height: auto;
  z-index: 2; /* acima do canvas, abaixo da imagem */
  pointer-events: none;
}

/* Linha decorativa no eyebrow */
.eyebrow-line {
  display: block;
  width: 24px;
  height: 1px;
  background: #b0a0ba;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Coluna de texto: esquerda, max 580px, alinhada ao container */
.hero-content {
  position: relative;
  z-index: 4;
  /* min-height garante pelo menos 100vh; se conteÃƒÂºdo for maior, expande */
  /* min-height: 100dvh; */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* max-width: 580px; */
  /* Padding reduzido para tudo caber no viewport */
  /* padding-top: calc(var(--header-h) + clamp(0.rem, 0vw, 1rem)); */
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  padding-right: 1rem;
  padding-left: clamp(1.5rem, 5vw, 5rem);
}

/* Eyebrow no hero Ã¢â‚¬â€ lilÃƒÂ¡s como toque de cor */
.hero-content .eyebrow {
  color: #b0a0ba;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ eyebrow: linha + texto (editorial, sem pill) Ã¢â€â‚¬Ã¢â€â‚¬ */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-verde-agua);
  margin-bottom: 1.75rem;
  width: fit-content;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-verde-agua);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(96, 163, 159, 0.2);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(96, 163, 159, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(96, 163, 159, 0.08); }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ hero text Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-content .h1-hero,
.hero-text .h1-hero {
  color: var(--c-offwhite);
  margin-bottom: 0;
}

/* "performance." */
.hero-accent {
  display: block;
  font-family: var(--font-accent);
  font-style: normal;
  font-size: clamp(2.75rem, 4.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-top: 0;
  margin-bottom: 0.15em;
  background: linear-gradient(115deg, #c8ecea 0%, var(--c-verde-agua) 50%, #b0a0ba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "ComunicaÃƒÂ§ÃƒÂ£o que sustenta cultura." */
.hero-h1-sub {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
  margin-top: 0.2em;
}

.hero-content .lead,
.hero-text .lead {
  color: rgba(245, 239, 230, 0.72);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 50ch;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ stats strip abaixo dos CTAs Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(176, 160, 186, 0.25);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-offwhite);
  line-height: 1;
}

.trust-lbl {
  font-size: 0.6875rem;
  color: rgba(245, 239, 230, 0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-div {
  width: 1px;
  height: 28px;
  background: rgba(245, 239, 230, 0.15);
  flex-shrink: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Painel de imagem (direita, absoluto) Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(300px, 58vw, 900px);
  z-index: 3;
  pointer-events: none;
  /* Fade suave nas bordas esquerda e direita */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 88%, transparent 100%);
}

/* Cobre ÃƒÂ­cones que sobrepÃƒÂµem o texto */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  bottom: 0;
  width: 70%;
  background: linear-gradient(
    to right,
    #186577 0%,
    #186577 40%,
    rgba(24,101,119,0.7) 65%,
    transparent 100%
  );
  z-index: 2;
}

/* Gradiente de fade no rodapÃƒÂ© */
.hero-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top, #156070 5%, transparent 100%);
  z-index: 2;
}

.hero-person {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
  filter: brightness(0.95) contrast(1.02) saturate(0.95);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ floating badge cards Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Ã¢â€â‚¬Ã¢â€â‚¬ Liquid glass badges Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-badge {
  position: absolute;
  /* Fundo quase transparente Ã¢â‚¬â€ o conteÃƒÂºdo atrÃƒÂ¡s fica visÃƒÂ­vel */
  background: rgba(255, 255, 255, 0.07);
  /* Blur alto + saturaÃƒÂ§ÃƒÂ£o cria o efeito "lente lÃƒÂ­quida" */
  backdrop-filter: blur(48px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(48px) saturate(180%) brightness(1.08);
  border-radius: 18px;
  /* Borda sutil: branca translÃƒÂºcida simula superfÃƒÂ­cie de vidro */
  border: 1px solid rgba(255, 255, 255, 0.14);
  /* Specular highlight no topo (refraÃƒÂ§ÃƒÂ£o de luz em vidro real) */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 4;
  min-width: 195px;
}

.hero-badge--top {
  top: 22%;
  left: 10%;
}

.hero-badge--bottom {
  bottom: 20%;
  right: 7%;
}

.hero-badge--b2 {
  top: 42%;
  right: 5%;
  animation-delay: 0.3s;
}

.hero-badge--b3 {
  top: 8%;
  right: 8%;
  animation-delay: 0.6s;
}

.hero-badge--b4 {
  bottom: 18%;
  left: 5%;
  animation-delay: 0.9s;
}

.hb-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0a0ba;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(176, 160, 186, 0.25), 0 0 0 1px rgba(176, 160, 186, 0.5);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.hb-content { flex: 1; }

.hb-val {
  font-size: 0.9rem;
  font-weight: 700;
  /* Branco puro para contraste mÃƒÂ¡ximo sobre liquid glass */
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hb-desc {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  font-weight: 400;
}

.hb-icon {
  width: 36px;
  height: 36px;
  /* Liquid glass no ÃƒÂ­cone tambÃƒÂ©m */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5; /* acima de hero-visual (z:3) e hero-content (z:4) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(245, 239, 230, 0.4);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(96, 163, 159, 0.7));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsivo hero (Ã¢â€°Â¤ 1024px) Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 1024px) {
  /* Abordagem limpa: hero-visual (painel desktop) some.
     A imagem entra como background-image do prÃƒÂ³prio .hero Ã¢â‚¬â€ sem stacking issues. */
  /* Esconde canvas WebGL e painel de imagem desktop Ã¢â‚¬â€ economiza CPU no mobile */
  #hero-canvas,
  .hero-visual,
  .hero-rings { display: none; }

  .hero {
    overflow: visible;
    background-color: #186577;
    /* Topo sÃƒÂ³lido (texto legÃƒÂ­vel), imagem surge na metade inferior */
    background-image:
      linear-gradient(
        to bottom,
        rgba(24, 101, 119, 1.0)  0%,
        rgba(24, 101, 119, 1.0) 38%,
        rgba(24, 101, 119, 0.75) 55%,
        rgba(24, 101, 119, 0.25) 72%,
        rgba(24, 101, 119, 0.0)  86%
      ),
      url('../img/hero.png');
    background-size: cover, cover;
    background-position: center, 60% 100%;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    max-width: none;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    min-height: 100dvh;
    min-height: 100vh;
    position: relative;
    z-index: 2;
  }

  .hero-content .lead,
  .hero-text .lead {
    max-width: 42ch;
    margin-inline: auto;
    text-align: center;
    font-size: 0.9375rem;
  }
  .hero-content .h1-hero,
  .hero-text .h1-hero { text-align: center; }
  .hero-accent { letter-spacing: -0.04em; }
  .btn-group { justify-content: center; flex-direction: column; gap: 0.75rem; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .eyebrow-pill { margin-inline: auto; justify-content: center; }
  .eyebrow-line { display: none; }

  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(10, 26, 32, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(245, 239, 230, 0.1);
  }
  .trust-div { display: none; }
  .trust-lbl { color: rgba(245, 239, 230, 0.8); }
  .hero-badge { display: none; }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }
  .hero-content .h1-hero { font-size: clamp(1.75rem, 6.5vw, 2.5rem); }
  .hero-accent { font-size: clamp(2rem, 7.5vw, 3rem) !important; }
  .hero-h1-sub { font-size: clamp(1.125rem, 4.5vw, 1.625rem) !important; }
}

/* --------------------------------------------------------------------------
   11. Social Proof Strip
   -------------------------------------------------------------------------- */
.social-proof-strip {
  padding-block: var(--space-10);
  background: var(--c-branco);
  border-top: 1px solid rgba(1, 48, 61, 0.06);
  border-bottom: 1px solid rgba(1, 48, 61, 0.06);
  overflow: hidden;
}

.strip-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-azul-acinzentado);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: var(--space-6);
}

.strip-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  flex-wrap: wrap;
}

.strip-stat {
  text-align: center;
}

.strip-stat .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-verde-agua), var(--c-azul-medio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip-stat .label {
  font-size: 0.875rem;
  color: var(--c-azul-acinzentado);
  font-weight: 500;
  margin-top: var(--space-1);
}

.strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(1, 48, 61, 0.1);
}

/* --------------------------------------------------------------------------
   12. Dor Cards
   -------------------------------------------------------------------------- */
.dor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-6);
}

.dor-card {
  padding: var(--space-8);
  background: var(--c-branco);
  border: 1px solid rgba(1, 48, 61, 0.08);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.dor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-verde-agua), var(--c-azul-medio));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.dor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(96, 163, 159, 0.2);
}

.dor-card:hover::before {
  transform: scaleX(1);
}

.dor-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 163, 159, 0.1);
  border-radius: var(--r-md);
  color: var(--c-verde-agua);
  margin-bottom: var(--space-4);
}

.dor-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-azul-profundo);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.dor-card p {
  font-size: 0.9375rem;
  color: rgba(10, 26, 32, 0.65);
  line-height: 1.6;
  max-width: none;
}

/* --------------------------------------------------------------------------
   13. Pilares Grid
   -------------------------------------------------------------------------- */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.pilar-card {
  padding: var(--space-8) var(--space-6);
  background: var(--c-branco);
  border: 1px solid rgba(1, 48, 61, 0.08);
  border-radius: var(--r-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.pilar-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(96, 163, 159, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(0) translate(-50%, -50%);
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.pilar-card:hover::after {
  transform: scale(3) translate(-50%, -50%);
  opacity: 1;
}

.pilar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(96, 163, 159, 0.25);
}

.pilar-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-verde-agua);
  margin-bottom: var(--space-4);
}

.pilar-icon {
  width: 88px;
  height: 88px;
  background: rgba(96, 163, 159, 0.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  transition: background var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
  padding: 14px;
}

.pilar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pilar-card:hover .pilar-icon {
  background: #fff;
  box-shadow: 0 4px 16px rgba(96, 163, 159, 0.2);
}

.pilar-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-azul-profundo);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.pilar-card p {
  font-size: 0.8125rem;
  color: rgba(10, 26, 32, 0.6);
  line-height: 1.5;
  max-width: none;
}

.pilar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-verde-agua);
  margin-top: var(--space-4);
  transition: gap var(--t-fast);
}

.pilar-link:hover {
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   14. Metodologia Preview
   -------------------------------------------------------------------------- */
.metodologia-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* SVG substituÃ­do por CSS â€” mais confiÃ¡vel em todos os browsers */
.step-connector {
  display: none;
}

.metodologia-steps::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: var(--c-verde-agua);
  opacity: 0.35;
  z-index: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metodologia-steps.line-animate::after {
  clip-path: inset(0 0% 0 0);
}

.step {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(96, 163, 159, 0.3);
  background: var(--c-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-verde-agua);
  letter-spacing: 0.05em;
  margin: 0 auto var(--space-4);
  transition: background var(--t-base), border-color var(--t-base);
}

.step.is-active .step-num,
.step:hover .step-num {
  background: var(--c-verde-agua);
  border-color: var(--c-verde-agua);
  color: var(--c-branco);
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-azul-profundo);
  margin-bottom: var(--space-2);
}

.step p {
  font-size: 0.875rem;
  color: rgba(10, 26, 32, 0.6);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. Manifesto Section
   -------------------------------------------------------------------------- */
.manifesto {
  background: linear-gradient(160deg, var(--c-azul-profundo) 0%, #072532 100%);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  position: relative;
}

.manifesto-quote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--c-offwhite);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 20ch;
  position: relative;
}

.manifesto-quote::before {
  content: '"';
  font-size: 8rem;
  font-weight: 800;
  color: rgba(96, 163, 159, 0.15);
  line-height: 1;
  position: absolute;
  top: -2rem;
  left: -2rem;
  pointer-events: none;
  font-family: Georgia, serif;
}

.manifesto-body {
  font-size: 1.0625rem;
  color: rgba(245, 239, 230, 0.75);
  line-height: 1.7;
  max-width: 55ch;
}

/* Foto da equipe + lightbox */
.manifesto-team-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.manifesto-team-photo {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 480px);
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88);
}

.manifesto-team-btn:hover .manifesto-team-photo {
  transform: scale(1.03);
  filter: brightness(0.72);
}

.manifesto-team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.manifesto-team-btn:hover .manifesto-team-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(1, 48, 61, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   16. CTA Final Section
   -------------------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(160deg, var(--c-azul-profundo) 0%, #072532 100%);
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-final h2 {
  color: var(--c-offwhite);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.cta-final .lead {
  color: rgba(245, 239, 230, 0.72);
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* Quick Contact Form */
.quick-form {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 239, 230, 0.1);
  border-radius: var(--r-xl);
  padding: var(--space-10);
  max-width: 640px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-azul-profundo);
  color: var(--c-offwhite);
  padding-top: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Team Cards
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(1, 48, 61, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 48, 61, 0.12);
}

.team-card-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-avatar svg {
  width: 55%;
  height: 55%;
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-azul-profundo);
  margin-bottom: 0.25rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.team-card-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-verde-agua);
  margin-bottom: 0.75rem;
  max-width: none;
}

.team-card-bio {
  font-size: 0.875rem;
  color: rgba(10, 26, 32, 0.6);
  line-height: 1.6;
  flex: 1;
  max-width: none;
  margin-bottom: 1rem;
}

.team-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-azul-medio);
  transition: color 0.2s ease;
  margin-top: auto;
}

.team-card-linkedin:hover {
  color: var(--c-azul-profundo);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  overflow: hidden;
}

.footer-wave-svg {
  width: 200%;
  height: 100%;
  animation: wave-scroll 8s linear infinite;
}

@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}

.footer-brand .footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(245, 239, 230, 0.65);
  line-height: 1.6;
  max-width: 28ch;
  margin-bottom: var(--space-6);
}

.footer-col h5 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-verde-agua);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: rgba(245, 239, 230, 0.65);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover {
  color: var(--c-offwhite);
}

.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(245, 239, 230, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(245, 239, 230, 0.4);
  transition: color var(--t-fast);
}

.footer-legal a:hover {
  color: rgba(245, 239, 230, 0.8);
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
.form-group {
  position: relative;
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-azul-profundo);
  margin-bottom: var(--space-2);
  transition: color var(--t-fast);
}

.form-label .required {
  color: var(--c-laranja);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--c-branco);
  border: 1.5px solid rgba(1, 48, 61, 0.15);
  border-radius: var(--r-md);
  color: var(--c-preto);
  font-size: 0.9375rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-verde-agua);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(96, 163, 159, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #d94f4f;
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8125rem;
  color: #d94f4f;
  margin-top: var(--space-2);
  display: none;
}

.form-error.visible {
  display: block;
}

/* Dark form variant */
.form-dark .form-label,
.form-label--dark {
  color: rgba(245, 239, 230, 0.85);
}

.form-dark .form-input,
.form-dark .form-select,
.form-dark .form-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 239, 230, 0.15);
  color: var(--c-offwhite);
}

.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder {
  color: rgba(245, 239, 230, 0.35);
}

.form-dark .form-input:focus,
.form-dark .form-select:focus,
.form-dark .form-textarea:focus {
  border-color: var(--c-verde-agua);
  background: rgba(96, 163, 159, 0.05);
}

/* Submit success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
  color: var(--c-offwhite);
}

.form-success.visible {
  display: block;
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}

.success-check circle {
  stroke: var(--c-verde-agua);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}

.success-check path {
  stroke: var(--c-verde-agua);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.success-check.animate circle {
  animation: check-circle 0.6s ease forwards;
}

.success-check.animate path {
  animation: check-mark 0.4s 0.5s ease forwards;
}

@keyframes check-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes check-mark {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   19. Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 560px;
  background: var(--c-azul-profundo);
  color: var(--c-offwhite);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-8);
  z-index: 9000;
  box-shadow: var(--shadow-xl);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(96, 163, 159, 0.2);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.875rem;
  color: rgba(245, 239, 230, 0.75);
  margin-bottom: var(--space-4);
  max-width: none;
}

.cookie-banner p a {
  color: var(--c-verde-agua);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   20. Dividers & Decorative
   -------------------------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--c-verde-agua), var(--c-azul-medio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight underline */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-verde-agua);
  border-radius: 2px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   21. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--c-azul-profundo) 0%, #072532 100%);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero h1 {
  color: var(--c-offwhite);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.page-hero .lead {
  color: rgba(245, 239, 230, 0.72);
  max-width: 55ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }

.opacity-0 { opacity: 0; }

/* GSAP initial states */
[data-reveal],
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal-fade] {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pilares-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: var(--space-12);
  }

  .hero-text .lead,
  .hero-text .btn-group {
    margin-inline: auto;
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .metodologia-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  /* Botão COMUPlay exclusivo do mobile — fica entre logo e hamburger */
  .mobile-comuplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid rgba(245,239,230,0.45);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(245,239,230,0.9);
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .mobile-comuplay-btn:hover {
    border-color: rgba(245,239,230,0.8);
    color: #f5efe6;
  }

  /* Versão para header claro */
  .site-header:not(.header-dark) .mobile-comuplay-btn {
    border-color: rgba(10,26,32,0.3);
    color: rgba(10,26,32,0.75);
  }

  .nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
  }

  /* Logo levemente maior no mobile */
  .header-logo img {
    height: 52px;
  }

  .pilares-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-stats {
    gap: var(--space-6);
  }

  .strip-divider {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .quick-form {
    padding: var(--space-6);
  }
}

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

  .metodologia-steps {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   24. Mobile clip / anti-overlap fixes
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Desativa sticky da coluna esquerda do manifesto em telas menores */
  .grid-2 [style*="sticky"] {
    position: static !important;
  }

  /* Garante que sections com animações não vazar elementos pré-animação */
  .section,
  .section--white,
  .section--offwhite {
    overflow: hidden;
  }

  /* Corrige potencial overlap de elementos [data-reveal] durante animação */
  [data-reveal],
  [data-reveal-stagger] > * {
    isolation: isolate;
  }
}

/* --------------------------------------------------------------------------
   25. prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  [data-reveal-stagger] > *,
  [data-reveal-fade] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   25. Custom Cursor (desktop only)
   -------------------------------------------------------------------------- */
@media (pointer: fine) {
  .cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: background 0.5s ease, transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: normal;
    opacity: 0;
  }

  .cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: border-color 0.5s ease, transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  body:has(.cursor) {
    cursor: none;
  }

  body:has(.cursor) a,
  body:has(.cursor) button {
    cursor: none;
  }

  .cursor.visible,
  .cursor-follower.visible {
    opacity: 1;
  }

  .cursor.hover,
  .cursor-follower.hover {
    width: 48px;
    height: 48px;
  }
}
