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

:root {
  --bg: #14110F;
  --bg-alt: #2A2420;
  --text: #F2EBDD;
  --text-muted: #B8AC9C;
  --accent: #C8742B;
  --accent-hover: #A85F20;
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: var(--bg);
  padding: 8px 16px; z-index: 1000; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

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

h1, h2 { font-family: var(--font-title); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 20px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(15,12,10,0.55), transparent);
  transition: background 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 17, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 235, 221, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { font-family: var(--font-title); font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-menu a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--accent); }
.nav-menu a.ativo { color: var(--accent); border-bottom: 1px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt); padding: 20px; gap: 16px;
  }
  .nav-menu.aberto { display: flex; }
}

/* HERO */
.hero {
  position: relative; height: 70vh; min-height: 480px; max-height: 680px;
  display: flex; align-items: flex-end; background: var(--bg); padding-top: 60px;
  overflow: hidden; box-sizing: border-box; margin-bottom: 0;
}
.hero-video {
  position: absolute; inset: -40px 0; z-index: 0; width: 100%; height: calc(100% + 80px);
  object-fit: cover; object-position: 70% center;
  animation: heroZoom 8s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,12,10,.92) 0%, rgba(15,12,10,.65) 40%, rgba(15,12,10,.1) 75%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 25%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(200,116,43,0.09); mix-blend-mode: soft-light; pointer-events: none;
}
@media (max-width: 700px) {
  .hero { min-height: 520px; align-items: center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(15,12,10,.55) 0%, rgba(15,12,10,.85) 100%),
      linear-gradient(to top, var(--bg) 0%, transparent 25%),
      radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
  }
  .hero-video { object-position: center; }
}
.hero-content { position: relative; z-index: 2; padding-bottom: 48px; margin: 0; }
.hero-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; margin-bottom: 12px; }
.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  opacity: 0; animation: heroIn 0.6s var(--ease) 0.2s forwards;
}
.hero-tagline {
  font-size: clamp(1.05rem, 4vw, 1.35rem); color: var(--text-muted); margin: 12px 0 28px; max-width: 32ch;
  opacity: 0; animation: heroIn 0.6s var(--ease) 0.3s forwards;
}
.hero-kicker { opacity: 0; animation: heroIn 0.6s var(--ease) 0.1s forwards; }
.hero-content .btn { opacity: 0; animation: heroIn 0.6s var(--ease) 0.4s forwards; }
.hero-socials { opacity: 0; animation: heroIn 0.6s var(--ease) 0.5s forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-socials { display: flex; gap: 18px; margin-top: 20px; }
.hero-socials a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); }

.scroll-indicator {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 2px; height: 34px; background: rgba(242,235,221,0.25); overflow: hidden;
}
.scroll-indicator span {
  position: absolute; top: -12px; left: 0; width: 2px; height: 12px;
  background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -12px; } 70%, 100% { top: 34px; } }

/* BOTÕES */
.btn {
  display: inline-block; padding: 14px 28px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px rgba(200,116,43,0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border-color: var(--accent); color: var(--accent); margin-top: 24px; }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* SEÇÕES */
.section { padding: 80px 0; }
#sobre { padding-top: clamp(40px, 5vw, 72px); margin-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; display: block; margin-bottom: 12px; }

/* SOBRE */
.sobre-grid { display: grid; gap: 32px; }
.sobre-img img { width: 100%; max-height: 560px; }
.sobre-text p { color: var(--text-muted); margin-bottom: 16px; max-width: 52ch; }
@media (min-width: 800px) {
  .sobre-grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .sobre-img { transform: translateY(24px); }
}

/* GALERIA */
.galeria-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  margin-top: 24px; grid-auto-flow: dense;
}
.galeria-item { grid-column: span 4; position: relative; border: 0; background: none; cursor: pointer; padding: 0; overflow: hidden; }
.galeria-item img { width: 100%; height: 380px; object-fit: cover; transition: transform 0.5s var(--ease); }
.galeria-item:hover img { transform: scale(1.05); }
.galeria-item:nth-child(3n+1):last-child { grid-column: span 12; }
.galeria-item:nth-child(3n+1):last-child img { height: auto; aspect-ratio: 21/9; object-position: center 30%; }
.galeria-item:nth-child(3n+1):nth-last-child(2) { grid-column: span 6; }
.galeria-item:nth-child(3n+1):nth-last-child(2) + .galeria-item { grid-column: span 6; }
.galeria-item:nth-child(3n+1):nth-last-child(2) img,
.galeria-item:nth-child(3n+1):nth-last-child(2) + .galeria-item img { object-position: center 30%; }
.galeria-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,17,15,0.35); color: var(--text); opacity: 0; transition: opacity 0.4s ease;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
@media (max-width: 1024px) {
  .galeria-item { grid-column: span 6; }
  .galeria-item img { height: 300px; }
  .galeria-item:nth-child(odd):last-child { grid-column: span 12; }
  .galeria-item:nth-child(odd):last-child img { height: auto; aspect-ratio: 21/9; object-position: center 30%; }
  .galeria-item:nth-child(3n+1):nth-last-child(2),
  .galeria-item:nth-child(3n+1):nth-last-child(2) + .galeria-item { grid-column: span 6; }
}
@media (max-width: 640px) {
  .galeria-item, .galeria-item:nth-child(odd):last-child,
  .galeria-item:nth-child(3n+1):last-child,
  .galeria-item:nth-child(3n+1):nth-last-child(2),
  .galeria-item:nth-child(3n+1):nth-last-child(2) + .galeria-item { grid-column: span 12; }
  .galeria-item img, .galeria-item:nth-child(odd):last-child img,
  .galeria-item:nth-child(3n+1):last-child img { height: 280px; aspect-ratio: auto; object-position: center 30%; }
}

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10, 8, 7, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: var(--text); font-size: 2.4rem; cursor: pointer; padding: 12px; line-height: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* VÍDEOS */
.videos-grid { display: grid; gap: 16px; margin-top: 24px; }
.video-card { aspect-ratio: 16/9; background: var(--bg-alt); transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.video-card iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 800px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }

/* REPERTÓRIO */
.repertorio-lista { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.repertorio-lista li { font-family: var(--font-title); font-size: 1.3rem; padding-left: 20px; position: relative; }
.repertorio-lista li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* EVENTOS */
.eventos-texto { color: var(--text-muted); max-width: 56ch; }

/* INTRO DE SEÇÃO */
.secao-intro { color: var(--text-muted); max-width: 62ch; margin-bottom: 8px; }
.sobre-text strong { color: var(--text); font-weight: 700; }

/* PROJETOS AUTORAIS */
.projetos-grid { display: grid; gap: 16px; margin-top: 28px; }
.projeto-card {
  background: var(--bg); border: 1px solid rgba(242,235,221,0.1);
  border-top: 2px solid var(--accent);
  padding: 26px 24px; border-radius: 4px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.projeto-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.projeto-card h3 { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 10px; }
.projeto-card p { color: var(--text-muted); max-width: 58ch; }
@media (min-width: 860px) { .projetos-grid { grid-template-columns: repeat(3, 1fr); } }

/* APRESENTAÇÕES */
.formatos-grid { display: grid; gap: 14px; margin-top: 28px; }
.formato-card {
  background: var(--bg-alt); border: 1px solid rgba(242,235,221,0.1);
  padding: 22px 20px; border-radius: 4px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.formato-card:hover { transform: translateY(-3px); border-color: rgba(200,116,43,0.5); }
.formato-card h3 { font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.formato-card p { color: var(--text-muted); font-size: 0.98rem; }
.formato-destaque { border-top: 2px solid var(--accent); background: var(--bg-alt); }
@media (min-width: 860px) { .formatos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .formato-card:last-child { grid-column: span 1; } }

/* ESTÚDIO */
.estudio-lista { list-style: none; display: grid; gap: 14px; margin: 28px 0 32px; }
.estudio-lista li {
  background: var(--bg); border: 1px solid rgba(242,235,221,0.1);
  padding: 20px; border-radius: 4px; display: grid; gap: 6px;
  border-left: 2px solid var(--accent);
}
.estudio-lista strong { font-family: var(--font-title); font-size: 1.2rem; }
.estudio-lista span { color: var(--text-muted); }
@media (min-width: 860px) { .estudio-lista { grid-template-columns: repeat(3, 1fr); } }

/* CONTEÚDOS YOUTUBE */
.conteudos-lista { list-style: none; display: grid; gap: 10px; margin: 20px 0 8px; }
.conteudos-lista li { font-family: var(--font-title); font-size: 1.25rem; padding-left: 22px; position: relative; }
.conteudos-lista li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* NAV com mais itens */
@media (min-width: 641px) and (max-width: 940px) {
  .nav-menu { gap: 12px; }
  .nav-menu a { font-size: 0.82rem; }
}

/* CONTATO */
.contato-grid { display: grid; gap: 40px; }
.contato-info p { color: var(--text-muted); margin-bottom: 20px; }
.contato-socials { display: flex; gap: 18px; margin-top: 20px; }
.contato-socials a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.contato-socials a:hover { color: var(--accent); }
@media (min-width: 800px) { .contato-grid { grid-template-columns: 1fr 1fr; } }

.contato-form { display: grid; gap: 16px; }
.campo label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-muted); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid rgba(242,235,221,0.15);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; border-radius: 2px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.erro { color: #E0855A; font-size: 0.82rem; margin-top: 4px; }

/* FOOTER */
.footer { padding: 32px 0; border-top: 1px solid rgba(242,235,221,0.08); color: var(--text-muted); font-size: 0.85rem; }

/* WHATSAPP FLUTUANTE */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  animation: waPulse 3s ease-in-out infinite;
  transition: background 0.3s ease;
}
.wa-float:hover { background: var(--accent-hover); }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* REVEAL AO ROLAR */
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal-item.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-item { opacity: 1; transform: none; }
  .hero-name, .hero-tagline, .hero-kicker, .hero-content .btn, .hero-socials { opacity: 1; }
}
