/* ==========================================================================
   João Paulo Marques — Editor de Vídeo
   Design system: escuro e cinematográfico, mobile-first (base 390px)
   ========================================================================== */

:root {
  --bg: #0A0A0B;
  --bg-elevated: #141416;
  --accent: #E63946;
  --accent-hover: #FF4D5A;
  --text: #F5F5F5;
  --text-muted: #9CA3AF;
  --border: #26262A;
  --success: #25D366;
  --success-hover: #2EE578;

  --font-title: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --navbar-height: 64px;
  --container-max: 1200px;
  --radius: 12px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

svg { width: 1.25em; height: 1.25em; }

/* --- Foco visível (acessibilidade) --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--text);
  padding: .8rem 1.2rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-family: var(--font-title);
}
.skip-link:focus {
  left: 0;
}

/* --- Movimento reduzido --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--success);
  color: var(--bg);
}
.btn-whatsapp:hover { background: var(--success-hover); }

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

.btn-small {
  padding: .55rem 1rem;
  font-size: .85rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn:active { transform: scale(.98); }

.btn .icon { width: 1.1em; height: 1.1em; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.logo span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: .85rem;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ==========================================================================
   Divisor "timeline"
   ========================================================================== */
.timeline {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 22px;
  opacity: .35;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.25rem; right: 1.25rem;
  top: 50%;
  height: 1px;
  background: var(--accent);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 1.25rem; right: 1.25rem;
  top: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0, var(--accent) 1px,
    transparent 1px, transparent 40px
  );
}

/* ==========================================================================
   Seções — genérico
   ========================================================================== */
.secao {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.secao-cabecalho {
  max-width: 620px;
  margin: 0 0 2.25rem;
}
.secao-cabecalho p {
  color: var(--text-muted);
}

/* --- Animação fade-up on-scroll --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: calc(var(--navbar-height) + 3.5rem) 1.25rem 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230, 57, 70, 0.12), transparent),
    var(--bg);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.hero-actions .btn { width: 100%; }

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .hero-actions .btn { width: auto; }
}

.prova-social {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: 6px;
  margin-bottom: .6rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}
.badge-editado {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(230, 57, 70, .08);
}

/* ==========================================================================
   Vídeo — slots e placeholders
   ========================================================================== */
.video-slot {
  position: relative;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-slot--9x16 { aspect-ratio: 9 / 16; }
.video-slot--16x9 { aspect-ratio: 16 / 9; }

.video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: .85rem;
}
.icon-play { width: 2.2rem; height: 2.2rem; color: var(--text-muted); opacity: .6; }

.video-card { margin: 0; }
.video-caption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Antes / Depois
   ========================================================================== */
.comparacoes {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.comparacao-titulo {
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.comparacao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 480px;
}

@media (min-width: 640px) {
  .comparacao-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

/* ==========================================================================
   Trabalhos — grids
   ========================================================================== */
.trabalhos-grupo { margin-bottom: 2.5rem; }
.trabalhos-grupo:last-child { margin-bottom: 0; }

.trabalhos-subtitulo {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.grid-shorts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-shorts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-shorts { grid-template-columns: repeat(6, 1fr); }
}

.grid-longos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-longos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-longos { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .servicos-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.servico-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s ease, transform .2s ease;
}
.servico-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.servico-card--destaque {
  border-color: var(--accent);
}

.selo {
  align-self: flex-start;
  font-family: var(--font-title);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: rgba(230, 57, 70, .08);
  padding: .3rem .65rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.servico-card h3 {
  font-size: 1.3rem;
  margin-bottom: .3rem;
}

.servico-tagline {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.servico-lista {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}
.servico-lista li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .92rem;
  color: var(--text);
}
.servico-lista li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.servico-card .btn { align-self: flex-start; }

.servicos-rodape {
  margin-top: 2.25rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.servicos-rodape strong { color: var(--text); }

/* ==========================================================================
   Como funciona
   ========================================================================== */
.passos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 900px) {
  .passos {
    flex-direction: row;
    position: relative;
  }
  .passos::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0; right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
  }
}

.passo {
  flex: 1;
  position: relative;
  z-index: 1;
}

.passo-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 1rem;
}

.passo h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.passo p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   Sobre
   ========================================================================== */
.sobre-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .sobre-grid {
    flex-direction: row;
    gap: 3rem;
  }
}

.sobre-foto { width: 100%; max-width: 260px; margin: 0 auto; }
@media (min-width: 900px) { .sobre-foto { margin: 0; flex-shrink: 0; } }

.foto-placeholder,
.sobre-foto-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  object-fit: cover;
}
.foto-placeholder {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.foto-placeholder svg { width: 3.5rem; height: 3.5rem; }

.sobre-conteudo { flex: 1; }

.ferramentas-titulo {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ferramentas-lista {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  font-family: var(--font-title);
  font-weight: 500;
}
.chip-nivel {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .8rem;
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .depoimentos-grid { grid-template-columns: repeat(3, 1fr); }
}

.depoimento-card {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.depoimento-card p {
  font-style: italic;
  margin-bottom: .8rem;
}
.depoimento-card cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--bg-elevated);
  border-top: 3px solid var(--accent);
  padding: 4rem 1.25rem;
  text-align: center;
}

.cta-final-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cta-final-inner p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-nome {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-links svg { width: 1.15rem; height: 1.15rem; }

.footer-copyright {
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  transition: background-color .2s ease, transform .2s ease;
}
.whatsapp-float:hover {
  background: var(--success-hover);
  transform: scale(1.06);
}
.whatsapp-float svg { width: 1.7rem; height: 1.7rem; }
