/* ==========================================================================
   Instituto Musical Wave — folha de estilo
   Tema: azul escuro moderno · responsivo
   ========================================================================== */

:root {
  /* Paleta */
  --bg:        #070f22;   /* fundo profundo (noite azul) */
  --surface:   #0c1a38;   /* superfícies / cards */
  --surface-2: #10245a;   /* superfície de destaque */
  --line:      rgba(120,155,230,.16);
  --wave:      #3a63d0;    /* azul da marca */
  --wave-2:    #5b8cff;    /* azul claro */
  --spark:     #49b4ff;    /* brilho elétrico */
  --fg:        #eaf0ff;    /* texto principal */
  --muted:     #9fb2dd;    /* texto secundário */

  --maxw: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fundo atmosférico */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(73,180,255,.18), transparent 60%),
    radial-gradient(900px 520px at 10% 4%, rgba(58,99,208,.22), transparent 55%),
    linear-gradient(180deg, #081128 0%, var(--bg) 46%, #050b1c 100%);
}

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

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

/* Foco visível para navegação por teclado */
:focus-visible { outline: 2.5px solid var(--spark); outline-offset: 3px; border-radius: 6px; }

/* ============================ Tipografia ============================ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--spark);
  margin: 0 0 1rem;
}

.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

/* ============================ Cabeçalho ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,15,34,.72);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__logo {
  width: 60px; height: 60px; flex: none;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

/* Navegação */
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-size: .95rem; color: var(--muted); padding: .55rem .8rem; border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: rgba(91,140,255,.12); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 4px 0; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ Botões ============================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn--primary {
  color: #05122e;
  background: linear-gradient(135deg, var(--spark), var(--wave-2));
  box-shadow: 0 10px 30px rgba(73,180,255,.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(73,180,255,.45); }
.btn--ghost { color: var(--fg); border-color: var(--line); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--wave-2); transform: translateY(-2px); }

/* ============================ Seções ============================ */
.section { padding: 5rem 0; }
.section__head { max-width: 62ch; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .8rem; }
.section__head .lead { margin-inline: auto; }
.section__head .eyebrow { margin-bottom: .8rem; }

/* ============================ Herói ============================ */
.hero { position: relative; padding: 4.5rem 0 4rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.3rem); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--spark), var(--wave-2) 55%, #a9c4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin: 1.4rem auto 2.1rem; font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__stats { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem 1.3rem; }
.stat b { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.stat span { color: var(--muted); font-size: .82rem; }

/* Onda animada (elemento-assinatura) */
.wavebox {
  position: relative; aspect-ratio: 1 / 1; border-radius: 26px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  display: grid; place-items: center; overflow: hidden;
}
.wavebox::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(73,180,255,.28), transparent 60%);
}
.equalizer { display: flex; align-items: center; gap: clamp(6px, 1.8vw, 13px); height: 52%; z-index: 1; }
.equalizer .bar {
  width: clamp(9px, 2.3vw, 16px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--spark), var(--wave));
  box-shadow: 0 0 18px rgba(73,180,255,.5);
  animation: eq 1.25s var(--ease) infinite alternate;
  transform-origin: center;
}
.equalizer .bar:nth-child(1){ height:34%; animation-delay:-.1s }
.equalizer .bar:nth-child(2){ height:54%; animation-delay:-.5s }
.equalizer .bar:nth-child(3){ height:42%; animation-delay:-.9s }
.equalizer .bar:nth-child(4){ height:78%; animation-delay:-.2s }
.equalizer .bar:nth-child(5){ height:96%; animation-delay:-.7s }
.equalizer .bar:nth-child(6){ height:64%; animation-delay:-.35s }
.equalizer .bar:nth-child(7){ height:88%; animation-delay:-1s }
.equalizer .bar:nth-child(8){ height:48%; animation-delay:-.15s }
.equalizer .bar:nth-child(9){ height:30%; animation-delay:-.6s }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Herói centralizado com o logo em destaque */
.hero--centered { text-align: center; padding: 3rem 0 4rem; }
.hero--centered .eyebrow { margin-bottom: 1.1rem; }
.hero__logo-wrap { margin: 0 0 1.6rem; line-height: 0; }
.hero__logo {
  width: min(260px, 62vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.55));
}
.hero__lead { margin: 0 auto 2rem; }
.hero--centered .hero__cta { justify-content: center; }
.hero--centered .hero__stats { justify-content: center; }

.equalizer--strip { height: 50px; margin: 2.4rem auto 0; justify-content: center; }

/* Em telas grandes, o herói ocupa a primeira dobra e respira mais */
@media (min-width: 861px) {
  .hero--centered {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    padding: 2rem 0 3.5rem;
  }
  .hero--centered > .wrap { width: min(100% - 4rem, 1500px); }
  .hero--centered .eyebrow { font-size: .9rem; letter-spacing: .4em; margin-bottom: 1.4rem; }
  .hero__logo-wrap { margin-bottom: 2rem; }
  .hero__logo { width: min(380px, 34vw); }
  .hero--centered .hero__lead { max-width: 52ch; margin-left: auto; margin-right: auto; text-align: center; }
  .hero__lead { font-size: 1.3rem; max-width: 52ch; margin-left: auto; margin-right: auto; margin-bottom: 2.6rem; }
  .equalizer--strip { height: 60px; margin-top: 3rem; }
}

@media (min-width: 1300px) {
  .hero--centered > .wrap { width: min(100% - 5rem, 1680px); }
  .hero__lead { max-width: 56ch; }
}

/* ============================ Cards de estilos ============================ */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.card {
  flex: 1 1 220px; max-width: 264px; text-align: center;
  background: linear-gradient(180deg, rgba(16,36,90,.55), rgba(12,26,56,.55));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 1.8rem 1.5rem;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(91,140,255,.55); box-shadow: 0 18px 44px rgba(37,79,190,.32); }
.card__icon { font-size: 1.4rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(73,180,255,.14); margin: 0 auto 1.1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============================ Método (passos) ============================ */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; counter-reset: step; }
.step { position: relative; flex: 1 1 210px; max-width: 250px; text-align: center;
  padding: 1.9rem 1.5rem 1.6rem; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(10,20,44,.5);
  transition: transform .22s var(--ease), border-color .22s var(--ease); }
.step:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.45); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  background: linear-gradient(120deg, var(--spark), var(--wave-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============================ Faixa de modalidades ============================ */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 900px; margin-inline: auto; }
.mode {
  border-radius: 20px; padding: 1.9rem; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(16,36,90,.7), rgba(10,20,44,.6));
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.mode:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.45); }
.mode h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin-bottom: .6rem; }
.mode p { color: var(--muted); margin: 0; }

/* ============================ CTA / Contato ============================ */
.cta {
  text-align: center; border-radius: 26px; padding: 3.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(58,99,208,.35), rgba(73,180,255,.18));
  border: 1px solid rgba(91,140,255,.35);
}
.cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: .8rem; }
.cta p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.8rem; }
.contact-list { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; transition: border-color .2s var(--ease); }
.contact-list a:hover { border-color: var(--wave-2); }

/* ============================ Página do Diretor ============================ */
.director { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.director__photo {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.5); width: 100%; object-fit: cover;
}
.director__frame { position: relative; }
.director__frame::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px;
  border-top: 2px solid var(--spark); border-right: 2px solid var(--spark); border-radius: 0 22px 0 0; opacity: .6;
}
.director h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3rem; }
.director .role { color: var(--spark); font-family: var(--font-display); font-weight: 600; margin-bottom: 1.4rem; }
.director p { color: var(--muted); margin: 0 0 1.1rem; }
.director .highlight { color: var(--fg); }

.page-hero { padding: 3.5rem 0 1rem; }

/* ============================ Rodapé ============================ */
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-inner p { color: var(--muted); font-size: .9rem; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }

/* Revelação em scroll — só oculta quando o JS está ativo (sem JS, tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================ Responsivo ============================ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(8,16,38,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1rem;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s var(--ease);
  }
  .nav[data-open="true"] { max-height: 340px; padding-top: .6rem; padding-bottom: 1rem; }
  .nav a { padding: .8rem .6rem; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .wavebox { max-width: 380px; margin-inline: auto; aspect-ratio: 4/3; }
  .director { grid-template-columns: 1fr; gap: 2rem; }
  .director__frame { max-width: 460px; margin-inline: auto; }
  .modes { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

@media (max-width: 460px) {
  .brand__tag { display: none; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__stats { gap: 1.4rem; }
}
