/* ==========================================================
   Sonido Estúdio — 2026
   Uma família (Archivo variável). O eixo de largura (wdth) é
   o elemento de design: largo nos títulos, estreito nas fichas.
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --laranja: #F79421;
  --preto: #000000;
  --branco: #FFFFFF;
  --espuma: #2A2522;
  --madeira: #C68642;
  --cinza: #9B918A;

  /* papéis de cor (cada marca sobrescreve) */
  --acento: var(--laranja);
  --tinta-acento: var(--preto);
  --hero-bg: var(--laranja);
  --hero-fg: var(--preto);
  --hero-batida: var(--branco);
  --manif-bg: var(--preto);
  --manif-fg: var(--branco);
  --manif-apagada: #3a3330;
  --manif-corpo: #d8d0ca;
  --selo: var(--laranja);
  --painel: var(--espuma);
  --painel-corpo: #d8d0ca;
  --detalhe: var(--madeira);
  --detalhe-linha: rgba(198,134,66,.35);
  --equip-bg: var(--preto);
  --contato-bg: var(--laranja);
  --contato-fg: var(--preto);
  --contato-hover: var(--branco);

  --fonte: "Archivo", "Arial Narrow", system-ui, sans-serif;

  /* escala modular 1.333 */
  --t-0: 1rem;
  --t-1: 1.333rem;
  --t-2: 1.777rem;
  --t-3: 2.369rem;
  --t-4: 3.157rem;
  --t-5: clamp(2.6rem, 6vw, 5.6rem);

  --margem: clamp(1.25rem, 4vw, 3.5rem);
  --topo-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--branco); color: var(--preto);
  padding: .6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--acento); color: var(--tinta-acento);
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: var(--t-0);
  padding: 1rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.botao:hover { background: var(--branco); color: var(--preto); }
.botao:active { transform: scale(.97); }
.botao--pequeno { padding: .55rem 1.1rem; font-size: .95rem; white-space: nowrap; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topo-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--margem);
  color: var(--hero-fg);
  transition: background-color .3s, color .3s;
}
.topo.escuro { background: rgba(0,0,0,.88); color: var(--branco); backdrop-filter: blur(8px); }
.topo__marca {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 900; font-size: 1.35rem;
  font-variation-settings: "wdth" 125; letter-spacing: -.01em;
  white-space: nowrap;
}
.topo__marca img { width: 34px; height: 34px; object-fit: contain; transition: filter .3s; }
.marca-sonido .topo__marca img { filter: brightness(0); }
.topo.escuro .topo__marca img { filter: none; }
.topo__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.topo__nav a {
  text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s;
}
.topo__nav a:hover { background-size: 100% 2px; }
.topo .botao--pequeno { background: var(--hero-fg); color: var(--hero-bg); }
.topo.escuro .botao--pequeno { background: var(--acento); color: var(--tinta-acento); }
.topo .botao--pequeno:hover { background: var(--branco); color: var(--preto); }

/* ---------- Hero: as letras são pads ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--hero-bg);
  color: var(--hero-fg);
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: calc(var(--topo-h) + 1rem) var(--margem) var(--margem);
  overflow: hidden;
}

.pads__linha { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.pads__linha--cheia { justify-content: space-between; }
.pads {
  display: flex; flex-direction: column; align-items: stretch;
  font-size: clamp(4rem, 15vw, 22rem);
  align-self: center;
  width: 100%;
}
.pad {
  flex: 0 0 auto;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
  line-height: .78;
  font-weight: 900;
  font-size: 1em;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.02em;
  color: var(--hero-fg);
  position: relative; z-index: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: .08em;
}
.pad span {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform;
}
.pad:focus-visible { outline: 4px solid var(--hero-fg); outline-offset: .05em; }
.pad.batendo span { color: var(--hero-batida); }

.hero__base {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "frase marca" "unid marca" "dica marca";
  align-items: end;
  gap: .4rem 2rem;
  border-top: 3px solid currentColor;
  position: relative; z-index: 1;
  padding-top: 1.25rem;
}
.hero__frase {
  grid-area: frase;
  font-size: var(--t-2);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  line-height: 1.15;
  max-width: 22ch;
}
.hero__dica { grid-area: dica; font-size: var(--t-0); }
.hero__marca {
  grid-area: marca;
  width: clamp(80px, 10vw, 140px);
  transform-origin: 50% 90%;
}
.marca-sonido .hero__marca { filter: brightness(0); }
.hero__unidades { grid-area: unid; display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .25rem; }
.hero__unidades a {
  text-decoration: none; font-weight: 700; padding: .4rem .95rem; border-radius: 999px;
  border: 2px solid currentColor; transition: background-color .2s, color .2s;
}
.hero__unidades a[aria-current="page"], .hero__unidades a:hover { background: var(--hero-fg); color: var(--hero-bg); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--manif-bg); color: var(--manif-fg);
  padding: clamp(6rem, 16vh, 12rem) var(--margem);
  display: grid;
  gap: 3rem;
}
.manifesto__texto {
  font-size: clamp(2.4rem, 7.2vw, 7rem);
  font-weight: 900;
  font-variation-settings: "wdth" 118;
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.manifesto__texto .palavra { display: inline-block; color: var(--manif-apagada); transition: color .15s; }
.manifesto__texto .palavra.acesa { color: var(--manif-fg); }
.manifesto__corpo {
  display: grid;
  grid-template-columns: minmax(0, 36rem) auto;
  gap: 2rem 4rem;
  align-items: end;
  justify-self: end;
  max-width: 64rem;
}
.manifesto__corpo p:first-child { font-size: var(--t-1); line-height: 1.45; color: var(--manif-corpo); }
.manifesto__selo {
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: var(--t-3); line-height: 1;
  color: var(--selo);
  max-width: 7ch;
}

/* ---------- Salas (scroll horizontal no desktop) ---------- */
.salas { background: var(--painel); overflow: hidden; }
.salas__trilho {
  display: flex;
  align-items: stretch;
  height: 100svh;
  width: max-content;
  padding-top: var(--topo-h);
}
.salas__intro {
  width: min(32rem, 80vw);
  padding: 0 var(--margem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.salas__intro h2 {
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900; font-variation-settings: "wdth" 125;
  line-height: .85; letter-spacing: -.03em;
  color: var(--acento);
}
.salas__intro p { font-size: var(--t-1); line-height: 1.4; max-width: 24ch; color: var(--painel-corpo); }

.sala {
  width: min(88vw, 82rem);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 4vh, 3rem) var(--margem);
  align-items: center;
}
.sala__fotos { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
.sala__principal {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 64svh;
  object-fit: cover;
  border-radius: 6px;
  background: #1c1816;
}
.sala__miniaturas { display: flex; gap: .75rem; }
.sala__miniaturas button {
  width: 6.5rem; aspect-ratio: 4 / 3;
  padding: 0; border: 2px solid transparent; border-radius: 4px;
  background: none; cursor: pointer; overflow: hidden; opacity: .55;
  transition: opacity .2s, border-color .2s;
}
.sala__miniaturas button img { width: 100%; height: 100%; object-fit: cover; }
.sala__miniaturas button:hover { opacity: .9; }
.sala__miniaturas button[aria-pressed="true"] { opacity: 1; border-color: var(--acento); }
.sala__miniaturas .sala__mini-video,
.sala__miniaturas .sala__mini-capa {
  display: grid; place-items: center; align-content: center;
  background: rgba(0,0,0,.35); color: var(--acento); line-height: 1;
}
.sala__miniaturas .sala__mini-video { opacity: .85; font-size: .8rem; font-weight: 700; color: var(--branco); }
.sala__miniaturas .sala__mini-video:hover { opacity: 1; }
.sala__miniaturas .sala__mini-video[aria-pressed="true"] { opacity: 1; }
.sala__mini-video svg { width: 1.6rem; height: 1.6rem; color: var(--acento); }
.sala__mini-capa span { font-size: 1.75rem; font-weight: 900; font-variation-settings: "wdth" 125; }

.sala__video {
  display: block; width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 64svh;
  object-fit: contain;
  border-radius: 6px;
  background: var(--preto);
}
.sala__fotos [hidden] { display: none; }

.sala__ficha h3 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900; font-variation-settings: "wdth" 125;
  line-height: .9; letter-spacing: -.02em;
  margin-bottom: 1.75rem;
}
.sala__ficha dl { display: grid; grid-template-columns: auto 1fr; border-top: 2px solid var(--detalhe); }
.sala__ficha dt, .sala__ficha dd {
  padding: .8rem 0;
  border-bottom: 1px solid var(--detalhe-linha);
}
.sala__ficha dt {
  font-weight: 800; color: var(--detalhe);
  font-variation-settings: "wdth" 75;
  padding-right: 1.25rem;
}
.sala__ficha dd { font-variation-settings: "wdth" 75; font-size: 1.1rem; line-height: 1.35; }

/* ---------- Equipamentos ---------- */
.equip {
  background: var(--equip-bg);
  padding: clamp(6rem, 14vh, 10rem) var(--margem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.equip__cabeca { min-width: 0; position: sticky; top: calc(var(--topo-h) + 2rem); display: grid; gap: 1.5rem; }
.equip__cabeca h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 900; font-variation-settings: "wdth" 100;
  line-height: .9; letter-spacing: -.03em;
}
.equip__cabeca p { color: #d8d0ca; max-width: 34ch; }
.equip__cabeca img { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }

.equip__grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
}
.equip__grupo { padding: 1.5rem 0 2rem; border-top: 2px solid var(--branco); }
.equip__grupo--alto { grid-row: span 2; }
.equip__grupo h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: var(--t-1); font-weight: 800; font-variation-settings: "wdth" 100;
  line-height: 1.2; margin-bottom: 1rem;
}
.equip__grupo h3 span {
  color: var(--acento); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: var(--t-3); line-height: 1;
}
.equip__grupo li {
  font-variation-settings: "wdth" 75;
  font-size: 1.1rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ---------- Contato ---------- */
.contato {
  background: var(--contato-bg); color: var(--contato-fg);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.contato__foto { overflow: hidden; }
.contato__foto img { width: 100%; height: 100%; object-fit: cover; }
.contato__info {
  padding: clamp(5rem, 12vh, 8rem) var(--margem) var(--margem);
  display: grid; align-content: start; gap: 2.25rem;
}
.contato__info h2 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 900; font-variation-settings: "wdth" 125;
  line-height: .85; letter-spacing: -.03em;
}
.contato__info .botao { justify-self: start; background: var(--contato-fg); color: var(--contato-bg); }
.contato__info .botao:hover { background: var(--contato-hover); color: var(--contato-bg); }
.contato__dados { display: grid; grid-template-columns: auto 1fr; gap: .9rem 2rem; font-size: var(--t-1); line-height: 1.3; }
.contato__dados dt { font-weight: 800; font-size: 1rem; padding-top: .25rem; }
.contato__dados a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contato__dados a:hover { text-decoration-color: var(--contato-hover); }
.contato__redes { display: flex; flex-wrap: wrap; gap: .75rem; }
.contato__redes a {
  display: inline-block; text-decoration: none; font-weight: 700;
  border: 2px solid currentColor; border-radius: 999px; padding: .45rem 1rem;
  transition: background-color .2s, color .2s;
}
.contato__redes a:hover { background: var(--contato-fg); color: var(--contato-bg); }
.contato__mapa { position: relative; display: block; max-width: 26rem; text-decoration: none; }
.contato__mapa img { border-radius: 6px; border: 3px solid currentColor; aspect-ratio: 4/3; object-fit: cover; object-position: center 40%; width: 100%; }
.contato__mapa span {
  position: absolute; right: .75rem; bottom: .75rem;
  background: var(--contato-fg); color: var(--contato-bg); font-weight: 700;
  padding: .45rem .9rem; border-radius: 999px; font-size: .95rem;
}

/* ---------- Rodapé ---------- */
.rodape {
  padding: 4rem var(--margem) 3rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 4rem; align-items: end;
  background: var(--preto);
}
/* Os logos têm proporções muito diferentes: a largura de cada um equilibra o peso visual */
.logo--sonido { width: 3.25rem; }
.logo--pata { width: 4.875rem; }
.logo--cardeal { width: 8.25rem; }
/* min-height = altura do logo do Sonido, para centralizar na mesma linha dos outros logos */
.rodape__marca { display: grid; align-content: center; gap: .5rem; min-height: 4.96rem; font-weight: 700; font-size: .9rem; }
.rodape__grupo p { color: var(--cinza); margin-bottom: .5rem; }
.rodape__grupo ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin-top: 1rem; }
.rodape__grupo a { display: grid; gap: .5rem; font-weight: 700; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.rodape__grupo a:hover { opacity: .7; }
.rodape__nota { color: var(--cinza); font-size: .9rem; }

/* ---------- WhatsApp flutuante (só aparece depois do hero) ---------- */
.whats {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--branco);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.whats svg { width: 2rem; height: 2rem; }
.whats.visivel { transform: scale(1); }
.whats:hover { transform: scale(1.08); }


/* ---------- Salas sem foto ---------- */
.sala__semfoto {
  aspect-ratio: 4 / 3; max-height: 64svh; border-radius: 6px;
  display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, transparent 0 18px, var(--detalhe-linha) 18px 20px), rgba(0,0,0,.25);
  overflow: hidden;
}
.sala__semfoto span {
  font-weight: 900; font-variation-settings: "wdth" 125; line-height: .8;
  font-size: clamp(10rem, 24vw, 22rem); color: var(--acento);
}

/* ---------- Efeitos de marca no hero ---------- */
.carimbo {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(70px, 9vw, 140px); height: auto;
  opacity: .22;
}
.vu {
  display: flex; align-items: flex-end; gap: clamp(3px, .6vw, 8px);
  height: clamp(48px, 9vh, 96px); margin-bottom: 1rem;
}
.vu i { flex: 1; height: 6%; background: var(--acento); border-radius: 2px 2px 0 0; transform-origin: bottom; }

/* ==========================================================
   Marcas
   ========================================================== */
.marca-pata {
  --acento: #FFFFFF;
  --tinta-acento: #000000;
  --hero-bg: #000000;
  --hero-fg: #FFFFFF;
  --hero-batida: #8C8C8C;
  --manif-bg: #FFFFFF;
  --manif-fg: #000000;
  --manif-apagada: #D9D9D9;
  --manif-corpo: #3A3A3A;
  --selo: #000000;
  --painel: #1C1C1C;
  --painel-corpo: #C9C9C9;
  --detalhe: #BDBDBD;
  --detalhe-linha: rgba(255,255,255,.18);
  --contato-bg: #FFFFFF;
  --contato-fg: #000000;
  --contato-hover: #6E6E6E;
}
.marca-pata .pad { font-variation-settings: "wdth" 70; font-weight: 800; letter-spacing: .02em; }
.marca-pata .hero__marca { width: clamp(70px, 8vw, 120px); }
.marca-pata .salas__intro h2,
.marca-pata .sala__ficha h3 { font-variation-settings: "wdth" 70; letter-spacing: .01em; }

.marca-cardeal {
  --acento: #ED1847;
  --tinta-acento: #231F20;
  --hero-bg: #231F20;
  --hero-fg: #ED1847;
  --hero-batida: #FFFFFF;
  --manif-bg: #ED1847;
  --manif-fg: #231F20;
  --manif-apagada: #F57A95;
  --manif-corpo: #231F20;
  --selo: #FFFFFF;
  --painel: #2B211C;
  --painel-corpo: #E3D3C6;
  --detalhe: #D9A066;
  --detalhe-linha: rgba(217,160,102,.3);
  --equip-bg: #231F20;
  --contato-bg: #231F20;
  --contato-fg: #FFFFFF;
  --contato-hover: #ED1847;
}
.marca-cardeal .botao { font-weight: 900; }
.marca-cardeal .hero__base { color: var(--branco); border-top-color: var(--hero-fg); }
.marca-cardeal .hero__unidades a[aria-current="page"], .marca-cardeal .hero__unidades a:hover { background: var(--acento); color: var(--hero-bg); border-color: var(--acento); }
.marca-cardeal .topo { color: var(--branco); }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 900px) {
  .topo__nav { display: none; }
  .topo { justify-content: space-between; }

  .hero__base { grid-template-columns: 1fr auto; }
  .hero__frase { font-size: var(--t-1); }

  .manifesto__corpo { grid-template-columns: 1fr; justify-self: stretch; }

  /* salas empilhadas */
  .salas__trilho { flex-direction: column; height: auto; width: auto; padding: 5rem 0 3rem; }
  .salas__intro { width: auto; padding-bottom: 1rem; }
  .sala { width: auto; grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sala__principal, .sala__video { max-height: none; }
  .sala__miniaturas button { width: 5rem; }

  .equip { grid-template-columns: 1fr; }
  .equip__cabeca { position: static; }
  .equip__grade { grid-template-columns: 1fr; }
  .equip__grupo--alto { grid-row: auto; }

  .contato { grid-template-columns: 1fr; }
  .contato__foto img { aspect-ratio: 4 / 3; height: auto; }

  .rodape { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__dica { font-size: .9rem; }
  .topo__marca { font-size: 1.05rem; font-variation-settings: "wdth" 100; }
  .topo__marca img { width: 28px; height: 28px; }
  .so-teclado { display: none; }
  .contato__dados { grid-template-columns: 1fr; gap: .2rem; }
  .contato__dados dd { margin-bottom: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .manifesto__texto .palavra { color: var(--branco); }
}
