/* ============================================================
   Aché Artes — hero experimental
   Tokens, camadas da fachada viva, parallax CSS, responsivo.
   ============================================================ */

:root {
  --night-1: #050c1c;
  --night-2: #0b1d3a;
  --night-3: #16305e;
  --facade-blue: #1f3f7a;
  --beige: #e8d4b4;
  --red: #e63946;
  --red-glow: #ff5a66;
  --cyan: #22c7e0;
  --yellow: #ffd23f;
  --magenta: #ff2fa0;
  --text: #f6efe3;
  --text-dim: rgba(246, 239, 227, .72);

  /* Coordenadas (% da foto fachada.webp 605×520). Reajustar ao trocar a foto. */
  --arc-top: 31%;
  --arc-h: 27%;
  --arc-w: 14%;
  --arc-left-x: 18%;
  --arc-center-x: 44%;
  --arc-right-x: 71%;
  --sign-top-y: 6.2%;
  --sign-top-h: 9%;
  --sign-marquee-y: 62.6%;
  --sign-marquee-h: 11%;
  --sign-x: 50%;

  --reflection: .36;       /* altura do reflexo em relação à fachada */
  --px: 0;                 /* ponteiro normalizado -1..1 (main.js) */
  --py: 0;
  --font-brush: 'Permanent Marker', 'Comic Sans MS', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Céu: noite azul com leve granulação e brilho de cidade atrás da loja. */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 68% 62%, rgba(230, 57, 70, .18), transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(34, 199, 224, .10), transparent 70%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  transform: translate(calc(var(--px) * -4px), calc(var(--py) * -3px));
}
.hero__sky::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: center;
}

/* ---------- Conteúdo ---------- */
.hero__content {
  position: relative;
  z-index: 4;
  transform: translate(calc(var(--px) * 6px), calc(var(--py) * 4px));
}
.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .06);
  margin-bottom: 1.5rem;
}
.hero__eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero__title em {
  font-style: normal;
  font-family: var(--font-brush);
  font-weight: 400;
  color: var(--red-glow);
  text-shadow: 0 0 18px rgba(230, 57, 70, .55);
}
.hero__subtitle {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 20px; height: 20px; }
.btn--primary {
  background: linear-gradient(135deg, #ff2fa0, #ff7a2f 55%, #ffd23f);
  box-shadow: 0 10px 28px rgba(255, 47, 160, .35);
  color: #1a0b14;
}
.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Stage: fachada viva ---------- */
.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  perspective: 1400px;
  transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px));
}

.stage__facade {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--px) * 3deg)) rotateX(calc(var(--py) * -2.5deg));
  transition: transform .08s linear;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}
.stage__photo {
  width: 100%;
  height: auto;
  border-radius: 6px 6px 0 0;
  /* Fim de tarde: esfria e escurece a foto de dia. */
  filter: saturate(1.1) brightness(.78) contrast(1.08);
}
/* Luz da marquise sobre a vitrine, e sombra no topo para a foto nascer da noite. */
.stage__facade::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px 6px 0 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 28, .55) 0%, transparent 22%),
    radial-gradient(ellipse 45% 18% at var(--sign-x) 72%, rgba(230, 57, 70, .28), transparent 70%);
}

/* Arcos: vidro escuro com luz interna. O central acende e revela a Santa. */
.arc {
  position: absolute;
  top: var(--arc-top);
  width: var(--arc-w);
  height: var(--arc-h);
  border-radius: 50% 50% 4px 4px / 46% 46% 4px 4px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 190, 110, .14), transparent 75%),
    linear-gradient(180deg, rgba(10, 18, 40, .35), rgba(5, 10, 24, .6));
  transition: background .6s ease, box-shadow .6s ease;
}
.arc--left { left: var(--arc-left-x); }
.arc--center { left: var(--arc-center-x); cursor: pointer; }
.arc--right { left: var(--arc-right-x); }
.arc--center:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.arc__santa {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 72%;
  height: auto;
  transform: translateX(-50%) translateY(6%);
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255, 200, 120, .55)) sepia(.25);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.arc--center:hover,
.arc--center.is-lit {
  background:
    radial-gradient(ellipse 75% 70% at 50% 55%, rgba(255, 196, 110, .55), rgba(255, 150, 60, .18) 60%, transparent 85%),
    linear-gradient(180deg, rgba(60, 35, 15, .4), rgba(20, 12, 8, .55));
  box-shadow: 0 0 40px rgba(255, 180, 90, .35), inset 0 0 30px rgba(255, 200, 120, .25);
}
.arc--center:hover .arc__santa,
.arc--center.is-lit .arc__santa {
  opacity: .92;
  transform: translateX(-50%) translateY(0);
}

/* Letreiros: o da marquise é o neon vivo; o do topo só acompanha a cor. */
.sign {
  position: absolute;
  left: var(--sign-x);
  transform: translateX(-50%);
  font-family: var(--font-brush);
  color: var(--red-glow);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.sign--top {
  top: var(--sign-top-y);
  height: var(--sign-top-h);
  font-size: 5.6cqw;
  opacity: .9;
  text-shadow: 0 0 8px rgba(230, 57, 70, .5);
}
.sign--marquee {
  top: var(--sign-marquee-y);
  height: var(--sign-marquee-h);
  font-size: 7.4cqw;
  text-shadow:
    0 0 6px #fff3,
    0 0 14px var(--red-glow),
    0 0 34px rgba(230, 57, 70, .9),
    0 0 70px rgba(230, 57, 70, .5);
  animation: neon 4.6s ease-in-out infinite;
  transform: translateX(-50%) translateZ(28px);
}
.stage__facade { container-type: inline-size; }

@keyframes neon {
  0%, 100% { opacity: 1; }
  46% { opacity: 1; }
  48% { opacity: .78; }
  50% { opacity: 1; }
  82% { opacity: .95; }
}

/* Calçada molhada: canvas WebGL (facade-water.js) ou, sem ele, espelho CSS estático. */
.stage__water {
  position: relative;
  width: 100%;
  aspect-ratio: 605 / calc(520 * var(--reflection));
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, transparent 100%);
}
.stage__water-static {
  width: 100%;
  transform: scaleY(-1);
  transform-origin: top;
  filter: saturate(1.1) brightness(.45) blur(1.5px);
}
.stage__water canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage__water.has-water .stage__water-static { display: none; }

/* Dica de rolagem (reservada para as próximas seções). */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  opacity: .5;
}

/* ---------- Entrada ---------- */
.hero__content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
.hero__content > :nth-child(5) { animation-delay: .4s; }
.stage { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .15s; }
@keyframes rise {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    align-content: center;
  }
  .stage { justify-self: center; max-width: 560px; order: -1; }
  .hero__content { text-align: center; }
  .hero__logo { margin-left: auto; margin-right: auto; width: 72px; height: 72px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky, .hero__content, .stage, .stage__facade { transform: none !important; }
  .sign--marquee { animation: none; }
  .hero__content > *, .stage { animation: none; }
  .hero__scene { display: none; }
  .arc__santa { opacity: .5; transform: translateX(-50%); }
}
