/* ============================================================
   leoquirinos · Portfólio de Editor de Vídeo
   Identidade visual: NORTIX (tema escuro espresso + âmbar/dourado)

   >>> TROQUE AS CORES AQUI (CSS variables) <<<
   ============================================================ */
:root {
  /* --- Fundos (preto puro, com variações sutis) --- */
  --bg:        #000000;  /* fundo principal da página (preto) */
  --bg-soft:   #0A0A0A;  /* fundo de seções alternadas (bem sutil) */
  --bg-card:   #101010;  /* fundo dos cards (discreto, pouco contraste) */

  /* --- Cor de destaque (dourado) --- */
  --accent:        #D3A500;  /* botões, números, hovers, detalhes */
  --accent-strong: #E8B82E;  /* hover um pouco mais claro do dourado */

  /* --- Texto (off-white / cinzas) --- */
  --text:        #F5F5F3;  /* texto principal */
  --text-muted:  #9A9A95;  /* texto secundário / legendas (sóbrio) */

  /* --- Bordas e sombras (quase invisíveis, look premium) --- */
  --border: rgba(245, 245, 243, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  /* --- Layout --- */
  --maxw: 1140px;          /* largura máxima do conteúdo */
  --radius: 16px;          /* arredondamento dos cards */
  --gap: 24px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Foco visível p/ acessibilidade (navegação por teclado) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #000000;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 20, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }

/* Troca de idioma PT | EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 6px;
}
.lang-btn[aria-pressed="true"] { color: var(--accent); }
.lang-sep { color: var(--text-muted); opacity: 0.5; }

/* ============================================================
   SEÇÕES (espaçamento / respiro)
   ============================================================ */
section { padding-block: 90px; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding-top: 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* No mobile a foto vem em cima do texto (ordem visual) */
.hero-photo { order: -1; }

/* Desktop: hero dividido (texto à esquerda, foto à direita) */
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-photo { order: 0; }
  .hero-photo img { max-width: 460px; margin-left: auto; }
}

/* ============================================================
   2. NÚMEROS / PROVA SOCIAL
   ============================================================ */
.stats { background: var(--bg-soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.stat-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  transition: border-color .3s ease;
}
.stat-card:hover { border-color: rgba(211, 165, 0, 0.45); }
.stat-num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.98rem;
}
@media (min-width: 820px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   3 & 4. GRADES DE VÍDEO
   ============================================================ */
.videos:nth-of-type(even) { background: var(--bg-soft); }

/* Shorts: 2 por linha no mobile, 4 no desktop */
.grid-shorts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (min-width: 820px) {
  .grid-shorts { grid-template-columns: repeat(4, 1fr); }
}

/* Longos: 1 por linha no mobile, até 3 no desktop */
.grid-longs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 820px) {
  .grid-longs { grid-template-columns: repeat(3, 1fr); }
}

/* --- Card de vídeo (facade) --- */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-facade {
  position: relative;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
  display: block;
  overflow: hidden;
}
/* Proporções (aspect-ratio reserva o espaço -> evita layout shift) */
.video-facade.vertical   { aspect-ratio: 9 / 16; }
.video-facade.horizontal { aspect-ratio: 16 / 9; }

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
}
.video-facade:hover img { transform: scale(1.05); opacity: 0.85; }

/* Botão de play sobreposto (vidro fosco, minimalista) */
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(244, 237, 227, 0.85);
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  pointer-events: none; /* o clique é capturado pelo botão facade */
}
.video-facade:hover .play-btn {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
}
.play-btn svg { width: 22px; height: 22px; fill: var(--text); margin-left: 3px; transition: fill .25s ease; }
.video-facade:hover .play-btn svg { fill: #000000; }

/* O iframe injetado ocupa todo o card mantendo a proporção */
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-title {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   5. SOBRE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.about-text p { color: var(--text-muted); margin-top: 16px; }
.tools-title { margin-top: 26px; font-size: 1.1rem; font-weight: 500; }
.tools-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tools-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text);
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .about-photo img { max-width: 420px; }
}

/* ============================================================
   6. REDES SOCIAIS
   ============================================================ */
.social { background: var(--bg-soft); text-align: center; }
.social .section-title { margin-bottom: 36px; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.social-link svg { fill: var(--text); transition: fill .2s ease; }
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.social-link:hover svg { fill: var(--accent); }

/* ============================================================
   7. CONTATO / CTA FINAL
   ============================================================ */
.contact { text-align: center; }
.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 14px auto 34px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   ANIMAÇÃO DE FADE-IN NO SCROLL (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Respeita usuários que pedem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
