@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@400;500;600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ============================================================
   DESIGN TOKENS — Mission Control
   ============================================================ */
:root {
  --bg:        #060A0E;
  --bg-1:      #0B1018;
  --bg-2:      #0F1522;
  --accent:    #05D9C2;
  --accent-2:  #00F0D8;
  --accent-dim: rgba(5, 217, 194, 0.10);
  --accent-glow: rgba(5, 217, 194, 0.22);
  --purple:      #5E1E5E;
  --purple-hover: #B26AD0;
  --purple-glow: rgba(126, 45, 156, 0.45);
  --text:      #DDE6F0;
  --muted:     #5C6E7F;
  --border:    rgba(5, 217, 194, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --radius:    2px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --section-gap: 120px;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(6, 10, 14, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 0 rgba(5, 217, 194, 0.10);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease);
}

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

.navbar-brand { display: flex; align-items: center; gap: 8px; padding: 0; }
.navbar-brand img { filter: brightness(1); }

/* Lockup horizontal da navbar: logo (W) + wordmark "WIDE / Tecnologia" ao lado,
   na fonte padrão da marca (mesmo tratamento do rodapé). */
.navbar-brand__logo { width: 110px; }

.navbar-brand__wordmark {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
  /* Sobe ~2px para casar com o centro óptico do "W" (o PNG tem mais respiro
     embaixo do que em cima) e relacionar o texto à posição do logo. */
  transform: translateY(-2px);
}

.navbar-brand__wordmark-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  line-height: 0.86;
  color: var(--text);
}

/* "TECNOLOGIA" tracejada para ocupar exatamente a largura de "WIDE",
   formando um bloco retangular limpo, alinhado à esquerda com a palavra. */
.navbar-brand__wordmark-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.205em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 0.205em;
}

.navbar .nav-link {
  font-family: var(--font-mono);
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0 !important;
  position: relative;
  transition: color 0.25s;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  transition: width 0.3s var(--ease);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  padding: 6px 10px;
  border-radius: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--accent) !important;
}

/* Ícone do hambúrguer em branco explícito (o tema escuro + invert antigo deixava
   o ícone preto sobre fundo escuro, quase invisível no celular). */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2.2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
  background: transparent !important;
}

@media (max-width: 991px) {
  /* Permite que o painel do menu "quebre" para a linha de baixo (a barra
     mantém logo + hambúrguer na 1ª linha; o menu desce full-width). */
  .navbar .container-wide,
  .navbar .container { flex-wrap: wrap; }

  .navbar-collapse {
    flex-basis: 100%;
    background: rgba(6, 10, 14, 0.97) !important;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    border-radius: 0 0 10px 10px;
  }
  /* Empilha o menu na vertical (o id real é #navMain) para o painel descer
     abaixo da barra em vez de colidir com o logo. */
  .navbar-collapse ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px !important;
  }
  .navbar-collapse .nav-link { padding: 8px 0 !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Teal radial glow behind the video logo area */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 55% at 22% 55%,
    rgba(5, 217, 194, 0.05) 0%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* fundo escuro = início do vídeo, evita flash de imagem antes do 1º frame */
  background: var(--bg);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(6, 10, 14, 0.22) 0%,
      rgba(6, 10, 14, 0.06) 35%,
      rgba(6, 10, 14, 0.60) 70%,
      rgba(6, 10, 14, 0.88) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(6, 10, 14, 0.28) 0%,
      transparent 30%,
      transparent 60%,
      rgba(6, 10, 14, 0.75) 100%
    );
}

.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateY(-14vh);
}

.hero__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 24px);
  max-width: clamp(320px, 38vw, 560px);
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1s var(--ease),
    transform 1.2s var(--ease);
  will-change: opacity, transform;
}

.hero.is-ready .hero__group {
  opacity: 1;
  transform: translateY(0);
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  max-width: 14ch;
  text-wrap: balance;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.hero__cta-btn {
  margin-top: 4px;
}

@media (max-width: 768px) {
  /* No celular o hero vira uma pilha vertical: o vídeo aparece INTEIRO no topo
     (em vez de cortado pelo cover), e o texto vem logo abaixo. */
  .hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 40px;
  }
  .hero__video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .hero__overlay { display: none; }
  .hero__container {
    transform: none;
    padding: 28px 24px 0;
    justify-content: center;
  }
  .hero__group {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .hero__title {
    font-size: clamp(2.6rem, 10vw, 3.6rem);
  }
  .hero__sub {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__group {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__video { display: none; }
  .hero {
    background-image: url("../images/hero-datacenter.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg) !important;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text) !important;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Variante roxa da marca — roxo profundo do logo, com a MESMA interação de
   inversão dos botões teal (preenchimento some → contorno + texto na cor da
   marca + lift + glow). */
.btn-outline-custom.btn-purple {
  border-color: var(--purple);
  color: #fff !important;
  background: var(--purple);
}

.btn-outline-custom.btn-purple:hover {
  background: transparent;
  border-color: var(--purple-hover);
  color: var(--purple-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--purple-glow);
}

.btn-outline-custom.btn-purple:focus-visible {
  outline: 2px solid var(--purple-hover);
  outline-offset: 3px;
}

.btn-outline-custom.btn-purple:active {
  transform: translateY(0);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 22px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
}

.marquee-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.marquee-item:hover { color: var(--text); }

.marquee-item span {
  width: 1px;
  height: 18px;
  background: rgba(5, 217, 194, 0.30);
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
  padding: var(--section-gap) 0;
}

.section--dark   { background: var(--bg-1); }
.section--darker { background: var(--bg-2); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.82;
  max-width: 520px;
  font-weight: 400;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ============================================================
   SEÇÃO: SOMOS A WIDE
   ============================================================ */
.about-section {
  padding: var(--section-gap) 0;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

/* Bracket corner accents */
.about-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
  pointer-events: none;
}

.about-visual::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 36px; height: 36px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
  pointer-events: none;
}

.about-visual img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.85);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.about-visual:hover img:first-child {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1);
}

.about-visual__badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(6, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.about-visual__badge img {
  max-width: 72px;
  display: block;
}

/* --- Logo "W" 3D (Three.js) dentro do about-visual --- */
.about-logo3d {
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(5, 217, 194, 0.10), transparent 55%),
    linear-gradient(160deg, #0A0F16 0%, #04070A 100%);
  isolation: isolate;
}

/* O canvas WebGL ocupa todo o card e fica acima do spotlight */
.about-logo3d__canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

/* Glow estilo "spotlight" — atmosfera por trás do logo, animado suavemente */
.about-robot__spotlight {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90%;
  height: 110%;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(0, 240, 216, 0.22),
    rgba(5, 217, 194, 0.08) 45%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: about-robot-spotlight 7s var(--ease) infinite alternate;
}

@keyframes about-robot-spotlight {
  from { opacity: 0.55; transform: translateX(-50%) translateY(-4%) scale(0.96); }
  to   { opacity: 1;    transform: translateX(-50%) translateY(2%)  scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .about-robot__spotlight { animation: none; }
}

@media (max-width: 768px) {
  .about-section .container { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 4 / 3; order: -1; }
}

/* ============================================================
   SEÇÃO: SOLUÇÕES
   ============================================================ */
.solucoes-section {
  padding: var(--section-gap) 0;
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

.solucoes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(5, 217, 194, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.solucoes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.solucoes-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(0.8);
}

.solucoes-content {
  padding: 80px 80px 80px 60px;
}

@media (max-width: 900px) {
  .solucoes-inner { grid-template-columns: 1fr; }
  .solucoes-img { max-height: 360px; }
  .solucoes-content { padding: 48px 24px; }
}

/* ============================================================
   SEÇÃO: DIFERENCIAIS
   ============================================================ */
.diferenciais-section {
  padding: var(--section-gap) 0;
}

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

.diferencial-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Horizontal scan sweep on hover */
.diferencial-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 217, 194, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.diferencial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 48px var(--accent-glow), 0 0 0 1px var(--border);
  transform: translateY(-6px);
}

.diferencial-card:hover::after {
  opacity: 1;
}

.diferencial-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.diferencial-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(145deg);
}

.diferencial-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.diferencial-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.72;
}

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

/* ============================================================
   SEÇÃO: EQUIPAMENTOS (SWIPER)
   ============================================================ */
.equipamentos-section {
  padding: var(--section-gap) 0;
  background: var(--bg-1);
}

.mySwiper {
  max-width: 1200px;
  width: 100%;
  padding: 16px 40px 56px !important;
}

.swiper-slide {
  background: var(--bg-2) !important;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.swiper-slide:hover {
  border-top-color: var(--accent);
  border-color: var(--border);
  box-shadow: 0 4px 36px var(--accent-glow);
  transform: translateY(-4px);
}

.swiper-slide img {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(145deg);
  opacity: 0.65;
  transition: opacity 0.3s;
}

.swiper-slide:hover img {
  opacity: 1;
}

.swiper-slide h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  text-align: center;
}

.swiper-pagination-bullet {
  background: var(--muted) !important;
  opacity: 0.4 !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1 !important;
  box-shadow: 0 0 6px var(--accent);
}

.img-equip { display: flex; align-items: center; justify-content: center; }
.margin    { margin-right: 0 !important; }

/* ============================================================
   SEÇÃO: EM QUE ACREDITAMOS
   ============================================================ */
.valores-section {
  padding: var(--section-gap) 0;
  position: relative;
}

.valores-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.valor-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.valor-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 48px var(--accent-glow);
  transform: translateY(-8px);
}

.valor-card img {
  width: 48px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(145deg);
  opacity: 0.82;
}

.valor-card h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.valor-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.78;
}

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

/* ============================================================
   SEÇÃO: CLIENTES
   ============================================================ */
.clientes-section {
  padding: var(--section-gap) 0;
  background: var(--bg-1);
}

.clientes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.clientes-img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.65);
  box-shadow: 0 0 0 1px var(--border-subtle), 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.clientes-img:hover {
  filter: brightness(0.85) saturate(0.9);
  box-shadow: 0 0 0 1px var(--border), 0 24px 60px rgba(5, 217, 194, 0.08);
}

@media (max-width: 768px) {
  .clientes-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   PRÉ-FOOTER
   ============================================================ */
.prefooter {
  padding: 72px 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

/* Lockup da marca = W (topo) + WIDE (bold) + TECNOLOGIA (tracking), como no
   manual da marca (brand_assets/…@.pdf). Alinhado à esquerda no rodapé. */
.prefooter__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prefooter__brand-logo {
  width: 82px;
  max-width: none;
  margin: 0 0 12px;
}

.prefooter__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 20px;
}

.prefooter__wordmark-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.05rem;
  letter-spacing: 0.01em;
  line-height: 0.88;
  color: var(--text);
}

.prefooter__wordmark-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  /* tracking calibrado p/ a largura de "TECNOLOGIA" casar com "WIDE" acima */
  letter-spacing: 0.235em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  padding-left: 0.235em;   /* compensa o tracking p/ manter o alinhamento à esquerda */
}

.prefooter__tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 280px;
}

.prefooter__col-title {
  font-family: var(--font-mono);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.prefooter__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prefooter__nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  width: fit-content;
  transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
}

/* Hover/focus: acende na cor da marca com leve brilho neon e desliza. */
.prefooter__nav a:hover,
.prefooter__nav a:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  transform: translateX(3px);
}

.prefooter__contact {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2.2;
}

@media (max-width: 767px) {
  .prefooter {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background-color 0.25s;
}

/* Hover/focus: anel neon, fundo levemente tingido e leve elevação. */
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  border-color: var(--accent);
  background-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-3px);
}

.site-footer__social a:active { transform: translateY(-1px); }

.site-footer__social img {
  width: 18px; height: 18px;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(145deg);
  transition: transform 0.25s, filter 0.25s;
}

.site-footer__social a:hover img,
.site-footer__social a:focus-visible img {
  transform: scale(1.12);
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(145deg) brightness(1.25);
}

/* ============================================================
   PAGE: SOBRE
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.0;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: var(--section-gap) 0;
}

.about-intro img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.82);
  width: 100%;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.banner-dark {
  position: relative;
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-dark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.5);
}

.banner-dark__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 24px;
}

.banner-dark__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.0;
}

.banner-dark__content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: var(--section-gap) 0;
}

.about-col h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-col p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
  margin-bottom: 16px;
}

.atendimento-block {
  padding: var(--section-gap) 0;
  text-align: center;
}

.atendimento-block h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.atendimento-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 16px;
}

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-cols  { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   PAGE: SERVIÇOS
   ============================================================ */
.servico-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: var(--section-gap) 0;
}

.servico-hero img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.70) saturate(0.78);
  width: 100%;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.servico-body {
  padding: 0 0 var(--section-gap);
}

.servico-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 48px 0 12px;
  text-transform: uppercase;
  scroll-margin-top: 110px;
}

/* Destaque do serviço aberto a partir do link da barra */
.servico-body h2:target {
  animation: servicoTargetGlow 2.4s ease-out;
}

@keyframes servicoTargetGlow {
  0%   { color: var(--text); text-shadow: 0 0 18px var(--accent); }
  100% { color: var(--accent); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .servico-body h2:target { animation: none; }
}

.servico-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
  margin-bottom: 12px;
}

.servico-body p strong,
.servico-body .fw-bold {
  color: var(--text);
  font-weight: 600;
}

.servico-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.servico-body ul li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.78;
  padding: 6px 0 6px 20px;
  position: relative;
}

.servico-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}

.servico-cta {
  padding: 48px;
  background: var(--bg-1);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  text-align: center;
  margin: 40px 0 var(--section-gap);
  position: relative;
  overflow: hidden;
}

.servico-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.servico-cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .servico-hero { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   PAGE: CONTATO
   ============================================================ */
.contato-banner {
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.contato-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: saturate(0.4);
}

.contato-banner__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.contato-banner__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.0;
}

.contato-banner__content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  max-width: 600px;
  margin: 0 auto;
}

.contato-cards {
  padding: var(--section-gap) 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contato-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  width: 300px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contato-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px var(--accent-glow);
  transform: translateY(-4px);
}

.contato-card img {
  width: 48px;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(145deg);
  opacity: 0.78;
}

.contato-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 12px;
}

.contato-card .phone-number {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.contato-card .email-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

.btn-whatsapp:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp img { width: 22px; filter: brightness(0) invert(1); }

@media (max-width: 768px) {
  .contato-cards { flex-direction: column; align-items: center; }
  .contato-card  { width: 100%; max-width: 380px; }
}

/* ---- Layout: canais (esquerda) + formulário (direita) ---- */
.contato-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
}

.contato-channels {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contato-channels .contato-card {
  width: 100%;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
}

.contato-channels .contato-card h2 { margin-bottom: 10px; }

@media (max-width: 880px) {
  .contato-layout { grid-template-columns: 1fr; }
  .contato-channels { flex-direction: row; }
  .contato-channels .contato-card { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .contato-channels { flex-direction: column; }
}

/* ---- Formulário de contato ---- */
.contato-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* No layout lado a lado, o formulário vira um painel que preenche a coluna */
.contato-layout .contato-form-wrap {
  max-width: none;
  margin: 0;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 44px 48px;
}

.contato-layout .contato-form-head {
  text-align: left;
  margin-bottom: 28px;
}

.contato-layout .contato-form-head .section-eyebrow { justify-content: flex-start; }

.contato-layout .contato-form-sub { max-width: none; margin: 0; }

.contato-form-head {
  text-align: center;
  margin-bottom: 36px;
}

.contato-form-head .section-eyebrow {
  justify-content: center;
}

.contato-form-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.0;
  margin: 14px 0 14px;
}

.contato-form-sub {
  color: #C8D2DE;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.contato-form .field {
  margin-bottom: 20px;
}

.contato-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contato-form .field-opt {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  transition: border-color 0.3s, box-shadow 0.3s;
}

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

.contato-form input::placeholder,
.contato-form textarea::placeholder {
  color: rgba(200, 210, 222, 0.40);
}

.contato-form input:hover,
.contato-form textarea:hover {
  border-color: rgba(5, 217, 194, 0.45);
}

.contato-form input:focus-visible,
.contato-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px var(--accent-glow);
}

.contato-form .btn-primary-custom {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.contato-form .btn-primary-custom:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.contato-form-status {
  min-height: 1.2em;
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.contato-form-status.is-success { color: var(--accent); }
.contato-form-status.is-error   { color: #ff6b6b; }

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.bg-body-tertiary { background: transparent !important; }

.text-body-secondary { color: var(--muted) !important; }

.card {
  background: var(--bg-1) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text) !important;
}

.border-top { border-color: var(--border-subtle) !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container-wide { padding: 0 20px; }
  :root { --section-gap: 72px; }
}
