/* ==========================================================================
   Salto Solutions: Home v2 (Clara / Apple Business + Salto Design System)
   Foco: Clean, sensacao de app nativo, fluidez, superficies ceramicas e contraste.
   Zero dependencia de estilos legados (styles.css).
   ========================================================================== */

/* ---------- 1. TOKENS & RESET ---------- */
:root {
  /* Marca e tinta */
  --h-bg: #f5f5f2;
  --h-ink: #0a0a0a;
  --h-ink-2: #232322;
  --h-ink-3: #3a3a38;
  --h-mute: #70706b;       /* Contraste AA > 4.5:1 */
  --h-mute-2: #b9b9b4;     /* Linhas sutis, placeholders */
  --h-line: rgba(10, 10, 10, 0.08);
  --h-line-2: rgba(10, 10, 10, 0.14);
  --h-card: rgba(255, 255, 255, 0.72);
  --h-card-hover: rgba(255, 255, 255, 0.95);
  --h-card-solid: #fbfbf9;
  --h-dark: #0a0a0a;
  --h-dark-2: #161616;
  --h-dark-line: rgba(245, 245, 242, 0.12);
  --h-dark-card: rgba(26, 26, 26, 0.72);

  --h-silver: linear-gradient(135deg, #e8e8e4 0%, #8f8f8a 30%, #ffffff 52%, #9c9c97 74%, #e8e8e4 100%);
  --h-silver-soft: linear-gradient(135deg, #f3f3f0 0%, #dcdcd7 42%, #fafaf8 58%, #d6d6d1 100%);
  --h-ok: #2f8f63;
  --h-ok-bg: rgba(47, 143, 99, 0.1);
  --h-danger: #c94a3d;
  --h-danger-bg: rgba(201, 74, 61, 0.1);

  /* Tipografia: Plus Jakarta Sans */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Geometria e elevacao do SDS */
  --h-radius: 28px;
  --h-radius-md: 20px;
  --h-radius-sm: 14px;
  --h-radius-pill: 9999px;

  --h-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --h-ease-pill: cubic-bezier(0.65, 0, 0.35, 1);

  --h-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -24px rgba(10, 10, 10, 0.12), 0 2px 6px -2px rgba(10, 10, 10, 0.04);
  --h-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 28px 56px -24px rgba(10, 10, 10, 0.22), 0 4px 12px -4px rgba(10, 10, 10, 0.06);
  --h-shadow-dark: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
  --h-shadow-modal: 0 40px 90px -25px rgba(0, 0, 0, 0.35);

  --glass-float: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.9);

  --max-w: 1240px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--h-bg);
  color: var(--h-ink);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, #e9e9e5, transparent 60%),
    var(--h-bg);
  background-attachment: fixed;
  color: var(--h-ink);
  line-height: 1.5;
  overflow-x: clip;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--h-ink);
  color: #f5f5f2;
  padding: 10px 16px;
  border-radius: var(--h-radius-pill);
  z-index: 9999;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 108px;
  padding-bottom: 108px;
  position: relative;
  scroll-margin-top: 24px;
}

.section-head {
  margin-bottom: 56px;
}
.section-head.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Titulos com prevencao de palavras viuvas */
.section-title {
  font-size: clamp(2.1rem, 1.8rem + 1.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--h-ink);
  text-wrap: balance;
}
.section-title span.dim {
  color: var(--h-mute);
  font-weight: 500;
}
.is-dark .section-title {
  color: #f5f5f2;
}
.is-dark .section-title span.dim {
  color: rgba(245, 245, 242, 0.5);
}

.section-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--h-mute);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}
.is-dark .section-sub {
  color: rgba(245, 245, 242, 0.7);
}

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--h-radius-pill);
  transition: transform 0.3s var(--h-ease), background-color 0.25s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--h-ink);
  color: #f5f5f2;
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.4);
}
.btn-primary:hover {
  background: var(--h-ink-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(10, 10, 10, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--h-ink);
  border: 1px solid var(--h-line-2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(10, 10, 10, 0.12);
}

/* Sombra viva com respiracao suave */
@keyframes breathing-shadow {
  0%, 100% {
    box-shadow: var(--h-shadow);
  }
  50% {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 48px -22px rgba(10, 10, 10, 0.18), 0 3px 8px -2px rgba(10, 10, 10, 0.05);
  }
}

.breathe-card {
  animation: breathing-shadow 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .breathe-card {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 2. HEADER FLUTUANTE (BLUR ULTRA SUAVE PROGRESSIVO) ---------- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 16px 16px 28px;
}

/* Camadas de degradê com crossfade acelerado por GPU */
.header-wrapper::before,
.header-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper::before {
  background: linear-gradient(180deg, rgba(245, 245, 242, 0.75) 0%, rgba(245, 245, 242, 0.45) 50%, rgba(245, 245, 242, 0.15) 80%, transparent 100%);
  opacity: 1;
}

.header-wrapper::after {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.18) 80%, transparent 100%);
  opacity: 0;
}

.header-wrapper.is-dark::before {
  opacity: 0;
}
.header-wrapper.is-dark::after {
  opacity: 1;
}

.header-glass {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--glass-float);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 34px -14px rgba(10, 10, 10, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border-radius: var(--h-radius-pill);
  padding: 6px 10px 6px 9px;
  max-width: 1000px;
  width: 100%;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--h-ink);
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.header-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  background: rgba(10, 10, 10, 0.04);
  border-radius: var(--h-radius-pill);
  transition: background-color 0.3s ease;
}

.header-nav-link {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: var(--h-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--h-mute);
  transition: color 0.28s ease 0.12s;
  white-space: nowrap;
}
.header-nav-link:hover {
  color: var(--h-ink);
}
.header-nav-link.is-active {
  color: #f5f5f2;
}

.header-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
}

.header-nav-home svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}


.header-pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--h-radius-pill);
  background: var(--h-ink);
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.5);
  will-change: transform, width;
  pointer-events: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Seletor de idioma PT | EN em formato de switch discreto e leve */
.header-lang {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-lang .header-lang-sep {
  display: none;
}

.header-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 0;
  color: rgba(10, 10, 10, 0.45);
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-lang-link:hover {
  color: var(--h-ink);
}

.header-lang-link.is-active {
  background: rgba(10, 10, 10, 0.09);
  color: var(--h-ink);
  font-weight: 700;
}

.header-lang-link.is-active:hover {
  color: var(--h-ink);
}

.header-cta {
  font-size: 13px;
  padding: 9px 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s var(--h-ease), box-shadow 0.3s var(--h-ease), transform 0.25s;
}
.mobile-menu-toggle:hover {
  background: rgba(10, 10, 10, 0.09);
}
.mobile-menu-toggle.is-active,
.mobile-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px -2px rgba(10, 10, 10, 0.2), 0 1px 3px rgba(10, 10, 10, 0.08);
}
.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--h-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--h-ease), opacity 0.2s, background-color 0.2s;
  transform-origin: center;
}
.mobile-menu-toggle.is-active span:first-child,
.mobile-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:last-child,
.mobile-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Menu Dropdown Mobile que desce diretamente do header (estilo iOS) */
.mobile-nav-menu {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px 18px 24px;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-16px);
  opacity: 0;
  transition: transform 0.3s var(--h-ease), opacity 0.3s ease;
  pointer-events: auto;
}
.mobile-nav-menu.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--h-radius-sm);
  color: var(--h-ink);
  transition: background-color 0.2s;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(10, 10, 10, 0.05);
}

/* Seletor de idioma PT | EN dentro do menu mobile aberto: compacto e alinhado à esquerda */
.mobile-nav-lang {
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  width: fit-content;
  gap: 0;
  padding: 0;
  margin: 4px 0 2px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.mobile-nav-lang .header-lang-sep {
  display: none;
}

.mobile-nav-lang .header-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.45);
  background: transparent;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-lang .header-lang-link:hover {
  color: var(--h-ink);
}

.mobile-nav-lang .header-lang-link.is-active {
  background: rgba(10, 10, 10, 0.09);
  color: var(--h-ink);
  font-weight: 700;
}

.mobile-nav-lang .header-lang-link.is-active:hover {
  color: var(--h-ink);
}

.mobile-nav-cta {
  margin-top: 8px;
  width: 100%;
}

/* ---------- 2.1 HEADER ADAPTAÇÃO TEMA ESCURO (SEÇÕES ESCURAS) ---------- */
.header-wrapper.is-dark .header-glass {
  background: rgba(18, 18, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.header-wrapper.is-dark .header-brand {
  color: #f5f5f2;
}

.header-wrapper.is-dark .header-nav {
  background: rgba(255, 255, 255, 0.08);
}

.header-wrapper.is-dark .header-nav-link {
  color: rgba(245, 245, 242, 0.65);
}

.header-wrapper.is-dark .header-nav-link:hover {
  color: #ffffff;
}

.header-wrapper.is-dark .header-nav-link.is-active {
  color: #0a0a0a;
}

.header-wrapper.is-dark .header-pill {
  background: #ffffff;
  box-shadow: 0 4px 14px -4px rgba(255, 255, 255, 0.4);
}

.header-wrapper.is-dark .header-lang {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-wrapper.is-dark .header-lang-link {
  color: rgba(245, 245, 242, 0.5);
}

.header-wrapper.is-dark .header-lang-link:hover {
  color: #ffffff;
}

.header-wrapper.is-dark .header-lang-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.header-wrapper.is-dark .header-cta {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-wrapper.is-dark .header-cta:hover {
  background: #e8e8e4;
  color: #0a0a0a;
}

.header-wrapper.is-dark .mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.12);
}

.header-wrapper.is-dark .mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.header-wrapper.is-dark .mobile-menu-toggle span {
  background: #f5f5f2;
}

.header-wrapper.is-dark .mobile-menu-toggle.is-active,
.header-wrapper.is-dark .mobile-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.95);
}

.header-wrapper.is-dark .mobile-menu-toggle.is-active span,
.header-wrapper.is-dark .mobile-menu-toggle[aria-expanded="true"] span {
  background: #0a0a0a;
}

.header-wrapper.is-dark .mobile-nav-menu {
  background: rgba(18, 18, 18, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.6);
}

.header-wrapper.is-dark .mobile-nav-link {
  color: rgba(245, 245, 242, 0.85);
}

.header-wrapper.is-dark .mobile-nav-link:hover,
.header-wrapper.is-dark .mobile-nav-link:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-wrapper.is-dark .mobile-nav-cta {
  background: #ffffff;
  color: #0a0a0a;
}

.header-wrapper.is-dark ~ .mobile-nav-menu .mobile-nav-lang,
.header-wrapper.is-dark .mobile-nav-lang {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-wrapper.is-dark ~ .mobile-nav-menu .mobile-nav-lang .header-lang-link,
.header-wrapper.is-dark .mobile-nav-lang .header-lang-link {
  color: rgba(245, 245, 242, 0.5);
}

.header-wrapper.is-dark ~ .mobile-nav-menu .mobile-nav-lang .header-lang-link.is-active,
.header-wrapper.is-dark .mobile-nav-lang .header-lang-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ---------- 3. HERO SECTION COM CANVAS PARTICULAS SUTIL ---------- */
.hero {
  padding-top: 164px;
  padding-bottom: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.8rem, 2.3rem + 3.2vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--h-ink);
  max-width: 980px;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--h-mute);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 18px 32px;
  max-width: fit-content;
  margin: 0 auto;
  border-radius: var(--h-radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--h-shadow);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.proof-item-num {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--h-ink);
  white-space: nowrap;
}
.proof-item-txt {
  font-size: 13px;
  color: var(--h-mute);
  font-weight: 500;
  line-height: 1.25;
}
.proof-divider {
  width: 1px;
  height: 28px;
  background: var(--h-line);
}

/* ---------- 4. SERVICOS (CARDS + BOTAO "+" ALINHADO) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--h-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  transition: transform 0.4s var(--h-ease), box-shadow 0.4s var(--h-ease), border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-hover);
  border-color: rgba(255, 255, 255, 1);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.service-card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--h-radius-pill);
  background: rgba(10, 10, 10, 0.05);
  color: var(--h-ink-2);
}

.service-expand-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--h-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-ink);
  transition: transform 0.3s var(--h-ease), background-color 0.25s, color 0.25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
}
.service-expand-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.3s var(--h-ease);
}
.service-card:hover .service-expand-btn {
  background: var(--h-ink);
  color: #f5f5f2;
}
.service-card:hover .service-expand-btn svg {
  transform: rotate(90deg);
}

.service-card-body h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--h-ink);
  text-wrap: balance;
}

.service-card-desc {
  font-size: 15px;
  color: var(--h-mute);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--h-line);
}
.service-card-bullets li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--h-ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-bullet-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.06);
  color: var(--h-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-bullet-icon svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.4;
}

.service-card-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.service-card-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--h-radius-pill);
  background: var(--h-ink);
  color: #f5f5f2;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.35);
  transition: transform 0.25s var(--h-ease), background 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.service-card-cta:hover {
  background: #222222;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(10, 10, 10, 0.5);
}
.service-card-cta:active {
  transform: scale(0.98);
}

/* ---------- 5. MODAL ESTILO APPLE (860PX, ANIMAÇÃO FLUIDA, HEADER FIXO + BARRA FLUTUANTE) ---------- */
.service-dialog, .case-dialog {
  border: none;
  padding: 0;
  border-radius: 32px;
  background: var(--h-card-solid);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
  max-width: 860px;
  width: calc(100% - 40px);
  max-height: min(88vh, 860px);
  margin: auto;
  color: var(--h-ink);
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  flex-direction: column;
}
.service-dialog[open], .case-dialog[open] {
  display: flex;
}
.service-dialog::backdrop, .case-dialog::backdrop {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-dialog[open]::backdrop, .case-dialog[open]::backdrop {
  opacity: 1;
}

.service-dialog[open], .case-dialog[open] {
  animation: apple-modal-reveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes apple-modal-reveal {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-inner {
  padding: 40px 44px 36px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.case-modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(88vh, 860px);
  overflow: hidden;
  position: relative;
}

/* Header fixo no topo do modal */
.dialog-header-sticky {
  flex-shrink: 0;
  padding: 30px 40px 18px;
  background: rgba(251, 251, 249, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--h-line);
  z-index: 10;
  margin-bottom: 0;
}

/* Corpo com scroll vertical suave (padding-top em vez de margin-top evita corte do texto ao rolar) */
.dialog-scroll-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
  padding: 24px 40px 100px; /* 24px de respiro no topo para não colar nem cortar */
}
.dialog-scroll-body .dialog-desc.dialog-tagline {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Barra flutuante na parte inferior com fundo limpo (sem máscara que desbota sobre o botão) */
.dialog-floating-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 40px 20px;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--h-line);
  pointer-events: none;
  z-index: 10;
}
.dialog-floating-bar .btn {
  pointer-events: auto;
  background: #0a0a0a !important;
  color: #f5f5f2 !important;
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.4) !important;
  border: none !important;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.dialog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.05);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-ink);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.dialog-close-btn:focus {
  outline: none;
}
.dialog-close-btn:focus-visible {
  outline: 2px solid rgba(10, 10, 10, 0.25);
  outline-offset: 2px;
}
.dialog-close-btn:hover {
  background: rgba(10, 10, 10, 0.1);
  transform: scale(1.05);
}
.dialog-close-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.dialog-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 6px;
  text-wrap: balance;
}
.dialog-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--h-mute);
}

.dialog-body {
  margin-top: 20px;
}
.dialog-desc {
  font-size: 16px;
  color: var(--h-mute);
  line-height: 1.65;
  margin-bottom: 28px;
}
.dialog-desc.dialog-tagline {
  font-weight: 600;
  color: var(--h-ink-2);
  margin-bottom: 14px;
}

.dialog-highlight-box {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.dialog-highlight-box h4 {
  font-size: 13.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--h-mute);
  margin-bottom: 14px;
}
.dialog-highlight-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dialog-highlight-box li {
  font-size: 14.5px;
  color: var(--h-mute);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.55;
}
.dialog-highlight-box li span {
  font-size: 15px;
  font-weight: 700;
  color: var(--h-ink);
}

.dialog-audience {
  font-size: 14.5px;
  color: var(--h-ink-2);
  background: rgba(10, 10, 10, 0.03);
  padding: 16px 20px;
  border-radius: var(--h-radius-sm);
  margin-bottom: 32px;
}
.dialog-audience strong {
  color: var(--h-ink);
}

.dialog-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  border-top: 1px solid var(--h-line);
  padding-top: 24px;
}

/* ---------- 6. FAIXA ESCURA "COMO FUNCIONA" ---------- */
.section-dark {
  background-color: var(--h-dark);
  color: #f5f5f2;
  position: relative;
  overflow: hidden;
}

.process-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  max-width: 100%;
}

.process-tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: var(--h-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--h-dark-line);
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.process-tab-btn {
  position: relative;
  z-index: 1;
  padding: 10px 24px;
  border-radius: var(--h-radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 245, 242, 0.6);
  transition: color 0.3s ease 0.12s;
  white-space: nowrap;
}
.process-tab-btn:hover {
  color: #f5f5f2;
}
.process-tab-btn.is-active {
  color: var(--h-ink);
}

.process-pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--h-radius-pill);
  background: #f5f5f2;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
  will-change: transform, width;
}

.process-content-card {
  background: var(--h-dark-card);
  border: 1px solid var(--h-dark-line);
  border-radius: var(--h-radius);
  padding: 48px 56px;
  box-shadow: var(--h-shadow-dark);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 380px;
}

.process-card-info h3 {
  font-size: clamp(2rem, 1.8rem + 1vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #f5f5f2;
  text-wrap: balance;
}

.process-card-info p {
  font-size: 16.5px;
  color: rgba(245, 245, 242, 0.72);
  line-height: 1.65;
  margin-bottom: 28px;
}

.process-card-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-card-highlights li {
  font-size: 14.5px;
  color: rgba(245, 245, 242, 0.88);
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-card-highlights li::before {
  content: '→';
  font-weight: 700;
  color: #f5f5f2;
}

.process-visual-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--h-dark-line);
  border-radius: var(--h-radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.process-metric {
  border-bottom: 1px solid var(--h-dark-line);
  padding-bottom: 14px;
}
.process-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.process-metric-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #f5f5f2;
}
.process-metric-label {
  font-size: 13px;
  color: rgba(245, 245, 242, 0.55);
  margin-top: 2px;
}

/* ---------- 7. SOBRE (FOTO ACOMPANHA SCROLL COM STICKY) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.about-sticky-col {
  position: sticky;
  top: 110px;
  align-self: start;
}

.about-profile-card {
  background: var(--h-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--h-radius);
  padding: 32px;
  box-shadow: var(--h-shadow);
  backdrop-filter: blur(14px);
  text-align: center;
}

.about-portrait-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  position: relative;
}
.about-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px -8px rgba(10, 10, 10, 0.25);
  border: 3px solid #ffffff;
}

.about-profile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--h-ink);
}
.about-profile-role {
  font-size: 13.5px;
  color: var(--h-mute);
  margin-top: 4px;
  margin-bottom: 20px;
}

.about-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.about-mini-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--h-radius-pill);
  background: rgba(10, 10, 10, 0.05);
  color: var(--h-ink-3);
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-lead {
  font-size: clamp(1.2rem, 1.15rem + 0.3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}

.about-text {
  font-size: 15.5px;
  color: var(--h-mute);
  line-height: 1.7;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--h-line);
}

.about-stat-item {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-md);
  padding: 22px;
  box-shadow: 0 4px 12px -4px rgba(10, 10, 10, 0.04);
}
.about-stat-val {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--h-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.about-stat-desc {
  font-size: 13px;
  color: var(--h-mute);
  margin-top: 8px;
  line-height: 1.35;
}

/* ---------- 8. PROJETOS PRÓPRIOS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--h-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--h-radius);
  padding: 34px 30px;
  box-shadow: var(--h-shadow);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--h-ease), box-shadow 0.4s var(--h-ease);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-hover);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.project-card-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--h-radius-pill);
  background: rgba(10, 10, 10, 0.05);
  color: var(--h-ink-2);
}

.project-card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--h-ink);
  text-wrap: balance;
}

.project-card-desc {
  font-size: 14.5px;
  color: var(--h-mute);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-card-app-thumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--h-radius-sm);
  border: 1px solid var(--h-line);
}
.project-card-app-thumb img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.project-card-app-meta strong {
  display: block;
  font-size: 14px;
  color: var(--h-ink);
}
.project-card-app-meta span {
  font-size: 12px;
  color: var(--h-mute);
}

.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid var(--h-line);
  padding-top: 20px;
  margin-top: auto;
}
.project-card-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--h-mute);
}

/* ==========================================================================
   9. CASES: ESTILO APPLE BUSINESS CAROUSEL (LARGURAS ASSIMÉTRICAS + MOCKUP)
   ========================================================================== */
.cases-section {
  padding-bottom: 120px;
}

.cases-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Margem esquerda alinhada exatamente com as colunas de conteúdo (projetos/serviços) */
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
  scroll-padding-left: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
  cursor: grab;
}
.cases-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.cases-carousel-viewport:active {
  cursor: grabbing;
}

.cases-carousel-track {
  display: flex;
  gap: 28px;
  align-items: stretch;
  width: max-content;
  padding-right: 48px;
}

/* Card Apple Business: tamanhos generosos, assimetria intencional, imagem full background */
.case-card-apple {
  scroll-snap-align: start;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow: 0 16px 45px -18px rgba(10, 10, 10, 0.28);
  height: 620px;
  min-height: 620px;
  padding: 44px 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform 0.4s var(--h-ease), box-shadow 0.4s var(--h-ease), border-color 0.3s;
}
.case-card-apple:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 32px 70px -20px rgba(10, 10, 10, 0.4);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Backgrounds provisórios com os mockups existentes */
.case-bg-rancho {
  background-image: url('/cases/rancho-em-cardoso/rancho-desktop.webp');
}
.case-bg-trampolim {
  background-image: url('/cases/trampolim/trampolim-desktop.webp');
}
.case-bg-aquele-drop {
  background-image: url('/cases/aquele-drop/aqueledrop-desktop.webp');
}
.case-bg-vote-certo {
  background-image: url('/cases/vote-certo/votecerto-desktop.webp');
}

/* Overlay sutil para garantir contraste e legibilidade dos textos */
.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.case-card-apple:hover .case-card-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0.8) 100%);
}

.case-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Larguras no desktop: assimetria editorial estilo Apple */
.case-card-apple.case-width-wide {
  width: 820px;
}
.case-card-apple.case-width-mid {
  width: 620px;
}

.case-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-card-sector {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.8);
  letter-spacing: 0.05em;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--h-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.case-card-btn-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--h-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--h-ease), background-color 0.2s, color 0.2s;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}
.case-card-btn-plus svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
}
.case-card-apple:hover .case-card-btn-plus {
  transform: scale(1.08) rotate(90deg);
  background: #ffffff;
}

.case-card-title {
  font-size: clamp(1.8rem, 1.6rem + 1vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
  max-width: 620px;
  margin-top: auto;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Barra inferior com apenas as setas deslocadas para o lado direito, bem próxima dos cards */
.cases-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.cases-carousel-nav-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--h-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-ink);
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.1);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.carousel-arrow-btn:hover {
  background: var(--h-ink);
  color: #f5f5f2;
  transform: scale(1.05);
}
.carousel-arrow-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Modal do Case com mockup ampliado */
.case-modal-hero-img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--h-line);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.15);
  margin-bottom: 28px;
  overflow: hidden;
}
.case-modal-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.case-modal-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.case-result-box {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-sm);
  padding: 18px;
}
.case-result-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--h-ink);
  margin-bottom: 4px;
}
.case-result-desc {
  font-size: 12.5px;
  color: var(--h-mute);
  line-height: 1.45;
}

.case-modal-site-cta {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

/* ---------- 10. BLOG (INSIGHTS) ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--h-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--h-radius);
  padding: 30px;
  box-shadow: var(--h-shadow);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-hover);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--h-mute);
  margin-bottom: 16px;
}
.post-card-tag {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--h-radius-pill);
  background: rgba(10, 10, 10, 0.05);
  color: var(--h-ink-2);
}

.post-card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--h-ink);
  line-height: 1.35;
  margin-bottom: 12px;
  text-wrap: balance;
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--h-mute);
  line-height: 1.6;
  margin-bottom: 24px;
}

.post-card-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--h-ink);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 11. FORMULARIO E SELECT HARMONIZADO ---------- */
.contact-container {
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  background: var(--h-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--h-radius);
  padding: 48px;
  box-shadow: var(--h-shadow);
  backdrop-filter: blur(18px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--h-ink-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  height: 50px;
  padding: 12px 18px;
  border-radius: var(--h-radius-sm);
  background: #ffffff;
  border: 1px solid var(--h-line-2);
  color: var(--h-ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 44px;
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--h-ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.06);
}

.form-input.is-invalid, .form-textarea.is-invalid, .form-select.is-invalid {
  border-color: var(--h-danger);
  box-shadow: 0 0 0 4px var(--h-danger-bg);
}

.form-error-msg {
  font-size: 12px;
  color: var(--h-danger);
  min-height: 16px;
}

.contact-turnstile-wrap {
  margin: 6px 0;
}

.contact-submit-btn {
  width: 100%;
  height: 52px;
  font-size: 16px;
  position: relative;
  transition: background-color 0.3s var(--h-ease), color 0.3s var(--h-ease), transform 0.2s, box-shadow 0.3s;
}

.contact-submit-btn.is-loading {
  background: var(--h-ink-2) !important;
  color: #f5f5f2 !important;
  cursor: wait;
  opacity: 0.9;
}

.contact-submit-btn.is-success {
  background: #238636 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px -4px rgba(35, 134, 54, 0.45);
  cursor: default;
}

.contact-status-box {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--h-radius-sm);
  font-size: 14px;
  display: none;
}
.contact-status-box.is-success {
  display: block;
  background: var(--h-ok-bg);
  color: var(--h-ok);
  border: 1px solid rgba(47, 143, 99, 0.25);
}
.contact-status-box.is-error {
  display: block;
  background: var(--h-danger-bg);
  color: var(--h-danger);
  border: 1px solid rgba(201, 74, 61, 0.25);
}

.contact-wa-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--h-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-wa-text {
  font-size: 14px;
  color: var(--h-mute);
}
.contact-wa-text strong {
  color: var(--h-ink);
  display: block;
}

/* CTA WhatsApp nos formulários com borda verde oficial */
.contact-wa-block .btn {
  border: 1.5px solid rgba(37, 211, 102, 0.55);
  background: rgba(255, 255, 255, 0.8);
  color: var(--h-ink);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.contact-wa-block .btn:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 4px 16px -3px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* ============================================================
   BOTÃO FIXO FLUTUANTE DE WHATSAPP (APENAS MOBILE)
   Mesmo visual translúcido sofisticado com cápsula escura de vidro
   e véu com blur progressivo no rodapé.
   ============================================================ */
.contact-float-veil {
  display: none;
}
.contact-float {
  display: none;
}

@media (max-width: 820px) {
  .contact-float-veil {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    height: 7.5rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
    mask-image: linear-gradient(to top, #000 40%, transparent);
    pointer-events: none;
    transition: opacity 0.35s var(--h-ease);
  }

  .contact-float-veil::before,
  .contact-float-veil::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .contact-float-veil::before {
    background: linear-gradient(to top, rgba(245, 245, 242, 0.88) 0%, rgba(245, 245, 242, 0.45) 55%, transparent 100%);
    opacity: 1;
  }

  .contact-float-veil::after {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 55%, transparent 100%);
    opacity: 0;
  }

  .contact-float-veil.is-dark::before {
    opacity: 0;
  }
  .contact-float-veil.is-dark::after {
    opacity: 1;
  }

  .contact-float {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(1.2rem + env(safe-area-inset-bottom));
    z-index: 1060;
    transform: translateX(-50%);
    transition: opacity 0.35s var(--h-ease), transform 0.45s var(--h-ease), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    padding: 5px;
    border-radius: var(--h-radius-pill);
    border: 1px solid var(--glass-border);
    background: var(--glass-float);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 16px 36px -10px rgba(10, 10, 10, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }

  .contact-float__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--h-radius-pill);
    border: 1px solid rgba(10, 10, 10, 0.06);
    background: rgba(255, 255, 255, 0.7);
    color: var(--h-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.25s, transform 0.2s, color 0.35s ease, border-color 0.35s ease;
  }
  .contact-float__btn:active {
    transform: scale(0.96);
  }
  .contact-float__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #25d366;
  }

  /* Tema Escuro do CTA WhatsApp nas seções escuras (Diagnóstico) */
  .contact-float.is-dark {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(18, 18, 18, 0.85);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  }

  .contact-float.is-dark .contact-float__btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f2;
  }

  .contact-float.is-hidden {
    opacity: 0;
    transform: translate(-50%, 150%);
    pointer-events: none;
  }
  .contact-float-veil.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* ---------- 12. FOOTER CLARO + CADASTUR ---------- */
.footer-v2 {
  padding-top: 80px;
  padding-bottom: 48px;
  border-top: 1px solid var(--h-line);
  background: rgba(255, 255, 255, 0.4);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--h-ink);
}
.footer-brand p {
  font-size: 14px;
  color: var(--h-mute);
  margin-top: 6px;
  max-width: 320px;
}

.footer-nav-col {
  display: flex;
  gap: 48px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--h-ink);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 14px;
  color: var(--h-mute);
  transition: color 0.2s;
}
.footer-col-links a:hover {
  color: var(--h-ink);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--h-line);
  font-size: 13px;
  color: var(--h-mute);
  flex-wrap: wrap;
  gap: 20px;
}

.cadastur-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cadastur-img {
  height: 22px;
  width: auto;
}
.cadastur-text {
  font-size: 12px;
  color: var(--h-mute);
  max-width: 480px;
  line-height: 1.35;
}

/* ---------- 13. RESPONSIVO ---------- */
@media (max-width: 1080px) {
  .services-grid, .projects-grid, .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-sticky-col {
    position: static;
  }
  .process-content-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 30px;
  }
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }
  .header-lang {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .services-grid, .projects-grid, .insights-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Pílulas do Diagnóstico no Mobile: fixas durante o scroll do bloco e com scroll horizontal */
  .section-dark {
    overflow: clip;
  }
  .process-tabs-wrapper {
    position: sticky;
    top: 84px;
    z-index: 900;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
    margin-bottom: 24px;
    background: transparent;
    width: 100%;
  }
  .process-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  .process-tabs {
    flex-shrink: 0;
    margin: 0 auto;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    background: rgba(22, 22, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .process-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* Carousel de Cases no Mobile: largura ajustada para 260px, alinhado a 16px */
  .cases-carousel-viewport {
    padding-top: 16px;
    padding-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-padding-left: 16px;
  }
  .case-card-apple.case-width-wide,
  .case-card-apple.case-width-mid {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 400px;
    min-height: 400px;
    padding: 24px 20px 20px;
    border-radius: 26px;
  }
  .case-card-title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 0;
  }
  .cases-bottom-nav {
    justify-content: flex-end;
    margin-top: 14px;
    padding: 0 16px;
  }
  
  /* Hero social proof harmonizada no mobile */
  .hero-social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
  }
  .proof-item {
    width: 100%;
    gap: 14px;
  }
  .proof-item-num {
    min-width: 90px;
    font-size: 18px;
  }
  .proof-divider {
    width: 100%;
    height: 1px;
    background: var(--h-line);
  }

  .about-stats-row {
    grid-template-columns: 1fr;
  }
  .case-modal-results {
    grid-template-columns: 1fr;
  }
  .service-dialog, .case-dialog {
    width: calc(100% - 24px);
    max-height: 92vh;
    border-radius: 24px;
  }
  .dialog-inner {
    padding: 28px 20px 24px;
  }
  .dialog-header-sticky {
    padding: 24px 20px 16px;
  }
  .dialog-scroll-body {
    margin-top: 0;
    padding: 20px 20px 90px;
  }
  .dialog-floating-bar {
    padding: 14px 20px 18px;
    gap: 10px;
  }
  .dialog-floating-bar .btn {
    padding: 10px 16px;
    font-size: 13.5px;
  }
  .footer-nav-col {
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
    scroll-margin-top: 24px;
  }
  .hero {
    padding-top: 130px;
    padding-bottom: 64px;
    scroll-margin-top: 24px;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .footer-nav-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    width: 100%;
  }
  /* Coluna 1: Serviços (topo) e Empresa (abaixo) */
  .footer-nav-col > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .footer-nav-col > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  /* Coluna 2: Conectar ao lado de Serviços */
  .footer-nav-col > div:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cadastur-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 13. AVISO DE COOKIES (LGPD / APPLE BUSINESS V2) ---------- */
.cookie-notice {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1040;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px -10px rgba(10, 10, 10, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s var(--h-ease);
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice.is-closing {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cookie-notice__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--h-ink-2);
  margin: 0;
}

.cookie-notice__text a {
  color: var(--h-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__close {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--h-radius-pill);
  border: none;
  background: var(--h-ink);
  color: #f5f5f2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cookie-notice__close:hover {
  background: #222222;
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .cookie-notice {
    left: 14px;
    right: 14px;
    bottom: calc(5.2rem + env(safe-area-inset-bottom));
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .cookie-notice__close {
    text-align: center;
    width: 100%;
    padding: 10px;
  }
}

