/* ==========================================================================
   Hampesco — landing "Videomaker Valorizado"
   Tema num lugar só: mexa nas variáveis abaixo pra mudar as cores do site.
   Formato HSL (matiz saturação luminosidade), sem vírgulas.
   ========================================================================== */

:root {
  --background: 210 20% 6%;      /* fundo da página */
  --foreground: 180 10% 90%;     /* cor do texto principal */
  --card: 210 18% 9%;            /* fundo das caixas */
  --secondary: 210 15% 14%;      /* fundo dos cards de depoimento */
  --muted-foreground: 210 10% 50%; /* texto secundário, cinza */
  --border: 210 12% 16%;         /* linhas e bordas */
  --primary: 168 72% 50%;        /* VERDE da marca — destaques e CTA */
  --radius: 0.75rem;

  --max-width: 64rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* --------------------------------------------------------------------------
   Barra do topo
   -------------------------------------------------------------------------- */

.topbar {
  padding-block: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.topbar p {
  margin: 0;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.375;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Hero — chamada + vídeo
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 2.5rem;
  text-align: center;
}

.hero .container { max-width: 48rem; }

.hero .eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.8);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-wrap: balance;
}

.hero .sub {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}

/* destaque verde dentro dos títulos */
.accent { color: hsl(var(--primary)); }

.video-frame {
  margin-top: 1.5rem;
  background: hsl(var(--card));
  box-shadow:
    0 0 40px hsl(var(--primary) / 0.25),
    0 0 80px hsl(var(--primary) / 0.1);
}

.video-frame .ratio {
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Depoimentos — grade estilo masonry
   -------------------------------------------------------------------------- */

.depoimentos {
  padding-block: 3rem;
  background: hsl(var(--card) / 0.5);
}

.depoimentos h2 {
  margin: 0 0 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

.grid {
  columns: 1;
  column-gap: 1rem;
}

.card {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.card:hover { border-color: hsl(var(--primary) / 0.3); }

.card .meta { padding: 0.75rem 1rem; }

.card .nome {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.card .local {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

footer {
  padding-block: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border) / 0.5);
}

footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Animações de entrada
   Use class="fade-up" e style="animation-delay: .25s" pra escalonar.
   -------------------------------------------------------------------------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up   { opacity: 0; animation: fade-up 0.6s ease-out forwards; }
.fade-soft { opacity: 0; animation: fade-soft 0.8s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-soft { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Telas maiores
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .topbar { padding-block: 1rem; }
  .topbar p { font-size: 0.875rem; letter-spacing: 0.2em; }

  .hero { padding-block: 6rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .sub { font-size: 1.125rem; }

  .video-frame {
    margin-top: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
  }

  .depoimentos { padding-block: 6rem; }
  .depoimentos h2 { font-size: 1.875rem; margin-bottom: 3rem; }

  .grid { columns: 2; column-gap: 1.25rem; }
  .card { margin-bottom: 1.25rem; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .depoimentos h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .grid { columns: 3; }
}
