/* ═══════════════════════════════════════════
   DNI Sports — Vinhetas Apple-style
   (pós-hero: Como Funciona / Números / Pessoas / CTA)
═══════════════════════════════════════════ */

/* ─── Base de vinheta ─── */
.vinheta {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh 8vw;
  box-sizing: border-box;
  background: var(--dark, #080F1F);
  overflow: hidden;
}

.vinheta + .vinheta {
  border-top: 1px solid rgba(78, 195, 224, 0.04);
}

/* Eyebrow + display headline (compartilhado) */
.vinheta .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-cyan, #4EC3E0);
  margin-bottom: 24px;
}

.vinheta .display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 32px 0;
  max-width: 18ch;
}

.vinheta .display em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-cyan, #4EC3E0) 0%, var(--color-mint, #6DEC94) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.vinheta .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  margin: 0 0 40px 0;
  font-weight: 400;
}

/* ─── Vinheta 1: COMO FUNCIONA (rail horizontal) ─── */
#vinheta-funciona {
  padding: 14vh 0;
}
#vinheta-funciona .vinheta-head {
  padding: 0 8vw;
  margin-bottom: 56px;
}
#vinheta-funciona .rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 16px 8vw 32px;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
#vinheta-funciona .rail::-webkit-scrollbar { display: none; }
#vinheta-funciona .rail:active { cursor: grabbing; }

/* ─── Servico Card — Apple Feature Tile ─── */
.servico-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 min(380px, 75vw);
  height: 540px;
  scroll-snap-align: start;
  background: #08111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0;
  cursor: default;
  transition:
    transform 0.6s var(--ease-apple),
    box-shadow 0.6s var(--ease-apple),
    border-color 0.6s var(--ease-apple);
}

.servico-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-apple);
  will-change: transform;
}

.servico-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 24, 0)    0%,
    rgba(6, 12, 24, 0.05) 30%,
    rgba(6, 12, 24, 0.55) 58%,
    rgba(6, 12, 24, 0.93) 78%,
    rgba(6, 12, 24, 1)   100%
  );
}

.servico-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
}

.servico-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(78, 195, 224, 0.28);
  box-shadow:
    0 0 0 1px rgba(78, 195, 224, 0.15),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -10px rgba(78, 195, 224, 0.12);
}

.servico-card:hover .servico-card-img {
  transform: scale(1.06);
}

.servico-card .servico-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(78, 195, 224, 0.15);
  backdrop-filter: blur(8px);
  color: var(--color-cyan, #4EC3E0);
  margin-bottom: 14px;
  border: 1px solid rgba(78, 195, 224, 0.2);
}

.servico-card .servico-icon svg { width: 20px; height: 20px; }

.servico-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.servico-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ─── Vinheta 2: NÚMEROS (grid horizontal) ─── */
#vinheta-numeros {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 12vh 8vw;
  background: var(--dark);
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

.vinheta-numero-bloco {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 40px 0 0;
  border-right: 1px solid rgba(78, 195, 224, 0.12);
  /* entrada: invisível, deslocado para baixo */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vinheta-numero-bloco:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 40px;
}

.vinheta-numero-bloco:not(:first-child):not(:last-child) {
  padding-left: 40px;
}

/* Stagger delays por filho */
.vinheta-numero-bloco:nth-child(1) { transition-delay: 0ms; }
.vinheta-numero-bloco:nth-child(2) { transition-delay: 120ms; }
.vinheta-numero-bloco:nth-child(3) { transition-delay: 240ms; }
.vinheta-numero-bloco:nth-child(4) { transition-delay: 360ms; }

/* Classe adicionada pelo IntersectionObserver */
#vinheta-numeros.numeros-visible .vinheta-numero-bloco {
  opacity: 1;
  transform: translateY(0);
}

.numero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-cyan, #4EC3E0);
  margin-bottom: 20px;
}

.numero-valor {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.numero-valor .suffix {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--color-cyan, #4EC3E0);
  -webkit-text-fill-color: var(--color-cyan, #4EC3E0);
  margin-left: 4px;
}

.numero-label {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 22ch;
  line-height: 1.55;
}

/* ─── Vinheta 3: PESSOAS (Diogo + team) ─── */
#vinheta-pessoas {
  padding: 14vh 8vw;
}
.pessoas-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.3fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

.pessoa-destaque {
  position: sticky;
  top: 120px;
  text-align: left;
}

.pessoa-destaque .pessoa-foto-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--color-navy), var(--dark));
}

.pessoa-destaque .pessoa-foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pessoa-destaque h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.pessoa-destaque .role {
  color: var(--color-cyan, #4EC3E0);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.pessoa-destaque .credenciais {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.pessoa-destaque .credencial {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pessoa-destaque .cred-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  background: rgba(78, 195, 224, 0.15);
  color: var(--color-cyan, #4EC3E0);
  border: 1px solid rgba(78, 195, 224, 0.3);
}

.pessoa-destaque .social {
  display: flex;
  gap: 10px;
}
.pessoa-destaque .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s var(--ease-apple);
}
.pessoa-destaque .social a:hover {
  background: var(--color-cyan, #4EC3E0);
  color: var(--color-navy, #0C2340);
  border-color: var(--color-cyan, #4EC3E0);
  transform: scale(1.1);
}

/* ─── Marcas Parceiras ─── */
.brands-block { width: 100%; }
.brands-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-cyan, #4EC3E0);
  margin-bottom: 28px;
  opacity: 0.85;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition:
    background 0.4s var(--ease-apple),
    border-color 0.4s var(--ease-apple),
    transform 0.4s var(--ease-apple);
}
/* CBFS shield (last tile) spans both columns, centered */
.brand-tile--icon {
  grid-column: 1 / -1;
}
/* Base image reset */
.brand-tile img {
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition:
    opacity 0.4s var(--ease-apple),
    transform 0.4s var(--ease-apple);
}
/* Variant: preserve original colors as B&W (e.g. multicolor logos like Federación Peruana) */
.brand-tile img.brand-img--bw {
  filter: grayscale(100%) brightness(1.4) contrast(1.1);
  opacity: 0.65;
}
.brand-tile:hover img.brand-img--bw {
  filter: grayscale(100%) brightness(1.5) contrast(1.15);
  opacity: 1;
}
/* Wide text logos: balance for visual consistency across simple wordmarks
   (FIFA, CONMEBOL) and stacked icon+text marks (FIFA Foundation, AIDEP). */
.brand-img--text {
  max-width: 50%;
  max-height: 56px;
}
/* Icon/badge logos: taller allowed, narrower proportion */
.brand-img--icon {
  max-width: 36%;
  max-height: 70px;
}
.brand-tile:hover {
  background: rgba(78, 195, 224, 0.07);
  border-color: rgba(78, 195, 224, 0.3);
  transform: translateY(-3px);
}
.brand-tile:hover img {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 720px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-tile { height: 90px; padding: 16px 14px; }
  .brand-img--text { max-width: 60%; max-height: 44px; }
  .brand-img--icon { max-width: 45%; max-height: 52px; }
}

/* ─── Vinheta 4: CTA monumental ─── */
#vinheta-cta {
  background: linear-gradient(160deg, var(--color-navy, #0C2340) 0%, var(--dark, #080F1F) 100%);
  position: relative;
  align-items: center;
  text-align: center;
  padding: 18vh 8vw;
}

#vinheta-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(78, 195, 224, 0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(109, 236, 148, 0.1), transparent 50%);
  pointer-events: none;
}

#vinheta-cta > * { position: relative; z-index: 1; }

#vinheta-cta .display {
  max-width: 22ch;
  margin: 0 auto 40px;
  font-size: clamp(3rem, 8vw, 7rem);
}

#vinheta-cta .lead {
  margin: 0 auto 48px;
  text-align: center;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--ease-apple);
  cursor: pointer;
}

.btn-pill.primary {
  background: linear-gradient(135deg, var(--color-cyan, #4EC3E0), var(--color-mint, #6DEC94));
  color: var(--color-navy, #0C2340);
  box-shadow:
    0 0 0 1px rgba(78, 195, 224, 0.5),
    0 20px 50px -10px rgba(78, 195, 224, 0.5);
}

.btn-pill.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(78, 195, 224, 0.8),
    0 30px 70px -10px rgba(78, 195, 224, 0.7);
}

.btn-pill.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-pill.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ─── Reveal on scroll (sutil) ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-apple), transform 0.9s var(--ease-apple);
}

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

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .vinheta { padding: 12vh 6vw; }
  .pessoas-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .pessoa-destaque { position: relative; top: auto; }
  #team-grid { grid-template-columns: 1fr; }
  #vinheta-funciona .vinheta-head { padding: 0 6vw; }
  #vinheta-funciona .rail { padding: 16px 6vw 32px; }
  .servico-card { flex: 0 0 82vw; height: 480px; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .vinheta-numero-bloco { padding: 0 24px 0 0 !important; }
  .vinheta-numero-bloco:nth-child(2n) { padding: 0 0 0 24px !important; border-right: none; border-left: 1px solid rgba(78,195,224,0.12); }
  .vinheta-numero-bloco:nth-child(3), .vinheta-numero-bloco:nth-child(4) { border-top: 1px solid rgba(78,195,224,0.08); padding-top: 48px !important; }
  .numero-valor { font-size: clamp(3rem, 14vw, 5rem); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn-pill { justify-content: center; }
}
