/* ============================================================
   Maxm ℗ — Site público
   Direção: selo fonográfico / estúdio. Fundo plum-ink,
   acento âmbar (brilho de válvula / sol nordestino), coral
   energético (piseiro). Assinatura: marca ℗ + waveform.
   ============================================================ */

:root {
  --ink:        #161019;
  --surface:    #211826;
  --surface-2:  #2D2233;
  --bone:       #F5EFE6;
  --muted:      #A698A6;
  --sun:        #F4A52C;
  --coral:      #FF4E66;
  --line:       rgba(245, 239, 230, 0.10);
  --line-strong:rgba(245, 239, 230, 0.20);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ─── Tipografia ──────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
}
.cat-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.08em; }

/* ─── Header ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 16, 25, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand .p-mark {
  font-size: 0.9rem; color: var(--sun);
  border: 1.5px solid var(--sun); border-radius: 50%;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  align-self: center; font-family: var(--font-mono); font-weight: 400;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 0.92rem; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a.ativo { color: var(--bone); }
.nav a.ativo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--coral);
}
.btn-nav { color: var(--ink) !important; background: var(--sun); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.btn-nav:hover { background: var(--bone); }
.menu-toggle { display: none; background: none; border: 0; color: var(--bone); font-size: 1.6rem; cursor: pointer; }

/* ─── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 110px 0 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(244,165,44,0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(255,78,102,0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); }
.hero h1 .sun { color: var(--sun); }
.hero p.lead { max-width: 540px; margin-top: 22px; font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 0; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--bone); }
.btn-primary:hover { background: #ff6679; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); }

/* ─── Waveform (assinatura) ───────────────────────────── */
.waveform { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 54px; }
.waveform span {
  flex: 1; background: linear-gradient(var(--sun), var(--coral));
  border-radius: 3px; opacity: 0.85;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { height: 18%; }
  50%      { height: 100%; }
}

/* ─── Seções ──────────────────────────────────────────── */
section.bloco { padding: 76px 0; border-top: 1px solid var(--line); }
.bloco-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.bloco-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.link-mais { color: var(--sun); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; }
.link-mais:hover { color: var(--coral); }

/* ─── Grid de produções ───────────────────────────────── */
.grid-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card-prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.card-prod:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-capa { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.card-capa img { width: 100%; height: 100%; object-fit: cover; }
.card-capa .sem-capa {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; color: var(--line-strong);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.card-capa .tag-tipo {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(22,16,25,0.7); color: var(--sun); padding: 4px 10px; border-radius: 999px;
}
.card-info { padding: 16px 18px 20px; }
.card-info h3 { font-size: 1.12rem; }
.card-info .artista { color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.card-info .meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }

/* ─── Galeria ─────────────────────────────────────────── */
.galeria { columns: 4 220px; column-gap: 16px; }
.galeria figure { break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface); }
.galeria figure img { width: 100%; transition: transform .4s; }
.galeria figure:hover img { transform: scale(1.04); }
.galeria figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(transparent, rgba(22,16,25,0.85));
  font-size: 0.85rem; opacity: 0; transition: opacity .25s;
}
.galeria figure:hover figcaption { opacity: 1; }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filtros a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.filtros a.ativo, .filtros a:hover { border-color: var(--sun); color: var(--sun); }

/* ─── Detalhe da produção ─────────────────────────────── */
.detalhe { display: grid; grid-template-columns: 360px 1fr; gap: 48px; padding: 90px 0 76px; }
.detalhe .capa-grande { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--surface-2); }
.detalhe h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 12px 0; }
.detalhe .artista-grande { color: var(--sun); font-size: 1.2rem; font-weight: 600; }
.detalhe .descricao { margin: 24px 0; color: var(--muted); max-width: 560px; }
.fichinha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 28px 0; max-width: 480px; }
.fichinha div { background: var(--surface); padding: 14px 18px; }
.fichinha dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fichinha dd { font-size: 1rem; margin-top: 4px; }
.streaming { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.streaming a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; }
.streaming a:hover { border-color: var(--sun); color: var(--sun); }

/* ─── Grid de artistas ────────────────────────────────── */
.grid-artistas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.card-artista { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s; }
.card-artista:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-foto { aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; overflow: hidden; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; }
.card-foto .sem-foto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 4rem; color: var(--line-strong); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.card-foto .tag-tipo { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(22,16,25,0.72); color: var(--sun); padding: 4px 10px; border-radius: 999px; }

/* ─── Redes sociais (ícones) ──────────────────────────── */
.social-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: color .2s, border-color .2s, transform .15s; }
.social-links a:hover { color: var(--sun); border-color: var(--sun); transform: translateY(-2px); }
.footer-socials { margin-top: 18px; }
.social-grande { margin-top: 24px; }
.social-grande a { width: 46px; height: 46px; }

/* ─── Sobre ───────────────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre-grid h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.sobre-grid p { color: var(--muted); margin-bottom: 16px; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.numeros .n { font-family: var(--font-display); font-size: 2.6rem; color: var(--sun); }
.numeros .l { font-size: 0.85rem; color: var(--muted); }

/* ─── Formulário de contato ───────────────────────────── */
.form-card { max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.campo input, .campo textarea, .campo select {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 13px 15px; color: var(--bone); font-family: var(--font-body); font-size: 0.98rem;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--sun); }
.campo textarea { min-height: 130px; resize: vertical; }
.aviso { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.aviso.ok { background: rgba(244,165,44,0.12); border: 1px solid var(--sun); color: var(--sun); }
.aviso.erro { background: rgba(255,78,102,0.12); border: 1px solid var(--coral); color: var(--coral); }

/* ─── Página de erro / 404 ────────────────────────────── */
.centro-erro { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.centro-erro h1 { font-size: clamp(3rem, 12vw, 8rem); color: var(--sun); }

/* ─── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { font-size: 1.3rem; }
footer .copy { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--muted); font-size: 0.9rem; }
footer nav a:hover { color: var(--bone); }

/* ─── Responsivo ──────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--surface); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; }
  .nav.aberto { transform: translateY(0); }
  .menu-toggle { display: block; }
  .detalhe { grid-template-columns: 1fr; gap: 28px; }
  .detalhe .capa-grande { max-width: 320px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; height: 50%; }
  * { scroll-behavior: auto; }
}
