/* ============================================================
   Heavy Drops Media — estilos
   ============================================================ */

:root {
  --bg: #000000;
  --bg-soft: #0b0b0b;
  --text: #ffffff;
  --muted: #9a9a9a;
  --line: #1f1f1f;
  --accent: #19b3a6;
  --header-h: 92px;
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Cabeçalho ---------- */
.hd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 48px;
}
.hd-nav {
  display: flex;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.hd-nav a { color: var(--muted); transition: color 0.2s ease; }
.hd-nav a:hover { color: var(--text); }
/* item ativo conforme a seção da página */
body[data-section="inicio"] .hd-nav a[data-nav="inicio"],
body[data-section="podcasts"] .hd-nav a[data-nav="podcasts"],
body[data-section="aftermovies"] .hd-nav a[data-nav="aftermovies"],
body[data-section="youtube"] .hd-nav a[data-nav="youtube"],
body[data-section="institucionais"] .hd-nav a[data-nav="institucionais"],
body[data-section="comerciais"] .hd-nav a[data-nav="comerciais"],
body[data-section="contato"] .hd-nav a[data-nav="contato"] { color: var(--text); }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  justify-self: center;
  transition: color 0.25s ease;
}
.wordmark__light { font-weight: 300; }
.wordmark__bold { font-weight: 800; }
.wordmark:hover { color: var(--accent); }

.hd-header__social { justify-self: end; }

ul.social {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.social .icon {
  width: 30px;
  height: 24px;
  fill: var(--muted);
  transition: fill 0.2s ease;
}
ul.social a:hover .icon { fill: var(--text); }

.hd-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}
.hd-burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Home: grade de capas ---------- */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 36px 48px 56px;
  max-width: 1760px;
  margin: 0 auto;
}
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}
/* Capas reais já têm tratamento próprio: nenhum véu por padrão.
   O véu só aparece no fallback (thumbnail do YouTube), pra dar contraste ao rótulo. */
.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile--fallback .tile__overlay { opacity: 1; }
.tile__label {
  display: none; /* a capa oficial já tem o rótulo embutido; só mostramos no fallback */
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.tile--fallback .tile__label,
.tile--show-label .tile__label { display: block; }
/* tile com rótulo por cima (capa sem nome embutido): véu leve pra dar contraste */
.tile--show-label .tile__overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.45));
}
.tile:hover .tile__img { transform: scale(1.05); }
/* Caixa solitária (nº ímpar): largura total, bordas alinhadas às colunas (cinemascope) */
.cover-grid .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* ---------- Páginas de categoria ---------- */
.page-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video { grid-column: span 1; }
.video--featured { grid-column: 1 / -1; }
/* vídeo "featured" sozinho: largura total (as duas colunas) */
.video--featured .yt-lite { max-width: 100%; margin: 0; }

.yt-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #111;
  overflow: hidden;
}
.yt-lite__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.yt-lite:hover .yt-lite__thumb { transform: scale(1.04); filter: brightness(1.08); }
.yt-lite__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
}
.yt-lite__play svg { width: 100%; height: 100%; }
.yt-lite__bg { fill: #212121; opacity: 0.85; transition: fill 0.2s ease, opacity 0.2s ease; }
.yt-lite:hover .yt-lite__bg { fill: #f00; opacity: 1; }
.yt-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contato ---------- */
.contato__inner { max-width: 760px; margin: 0 auto; }
.contato__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.contato__lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 34px; }
.contato__lead a { color: var(--accent); }

.lead-form { display: block; }
.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.lead-form__full { margin-bottom: 22px; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 13px 15px;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 179, 166, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #00231f;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- Páginas de mensagem (obrigado / 404) ---------- */
.message-page { min-height: 60vh; display: flex; align-items: center; }
.message-page__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.message-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}
.message-page p { color: var(--muted); margin: 0 0 28px; }
.message-page a:not(.btn) { color: var(--accent); }

/* ---------- Rodapé ---------- */
.hd-footer {
  border-top: 1px solid var(--line);
  padding: 46px 28px;
  text-align: center;
}
.hd-footer__social { display: flex; justify-content: center; margin-bottom: 22px; }
.hd-footer__address {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- Voltar ao topo ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: #00231f; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hd-header__inner { grid-template-columns: auto 1fr auto; padding: 0 24px; }
  .cover-grid { padding: 20px 24px 36px; gap: 16px; }
  .cover-grid .tile:last-child:nth-child(odd) { aspect-ratio: 16 / 9; }
  .hd-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    font-size: 1rem;
  }
  .hd-nav a { padding: 14px 28px; }
  body.nav-open .hd-nav { transform: translateY(0); }
  .wordmark { justify-self: start; }
  .hd-header__social { display: none; }
  .hd-burger { display: flex; }
  body.nav-open .hd-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .hd-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .hd-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  .cover-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video--featured .yt-lite { max-width: 100%; }
  .lead-form__grid { grid-template-columns: 1fr; }
}
