/* ═══════════════════════════════════════════════════════════════
   GALERIA WALDIR JUNIOR — Stylesheet
   Versão: 2.0 | Design: minimalista, preto & branco, galeria de arte
═══════════════════════════════════════════════════════════════ */

/* ── Variáveis globais ── */
:root {
  --black:   #000000;
  --white:   #ffffff;
  --gray:    #aaaaaa;
  --font:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --fast:    0.28s;
  --mid:     0.45s;
  --slow:    0.75s;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}
a    { text-decoration: none; color: inherit; }
img  { display: block; }
address { font-style: normal; }


/* ═══════════════════════════════════════════════════════════════
   HEADER  (fixo, transparente)
═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 46px;
  color: var(--white);
  /* Sem fundo próprio — a camada glass cuida disso */
  background: transparent;
  transition: color var(--fast) var(--ease);
  pointer-events: none;
}
.header > * { pointer-events: auto; }

/* ── Camada de vidro fosco (opacidade 0→1 pelo JS) ── */
.header__glass {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;                        /* começa invisível */
  transition: background var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
  pointer-events: none;
  z-index: 0;
}

/* Sobre seções CLARAS (SP, footer) — vidro branco */
.header.on-light { color: var(--black); }
.header.on-light .header__glass {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header.on-light .header__logo   { filter: brightness(0); }

/* Sobre seções ESCURAS (BC) — vidro escuro */
.header.on-dark { color: var(--white); }
.header.on-dark .header__glass { background: rgba(0, 0, 0, 0.10); }

/* ── Logo no header (centralizado absolutamente) ── */
.header__logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  transition: opacity var(--fast);
}
.header__logo-wrap:hover { opacity: 0.65; }

.header__logo {
  width: clamp(100px, 11vw, 150px);
  display: block;
  transition: filter var(--mid) var(--ease);
}

/* ── Hamburger ── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: opacity var(--fast);
}
.hamburger:hover { opacity: 0.55; }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  /* ── Hero/fundo escuro: BRANCO com sombra escura garantindo leitura ── */
  background: var(--white);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: background var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease),
              transform var(--mid) var(--ease),
              opacity var(--mid);
}

/* ── Seção CLARA (SP / footer): PRETO sem sombra ── */
.header.on-light .hamburger span {
  background: var(--black);
  box-shadow: none;
}

/* ── Seção ESCURA (BC): BRANCO com sombra leve ── */
.header.on-dark .hamburger span {
  background: var(--white);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Hambúrger → X quando aberto (translateY para height:2px + gap:5px) */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── ONDE ENCONTRAR ── */
.onde-btn {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: inherit;
  transition: opacity var(--fast);
}
.onde-btn:hover { opacity: 0.55; }

.onde-btn__text {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  padding-top: 2px;
}
.onde-btn__bar {
  display: block;
  width: 1px;
  height: 52px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   MENU LATERAL (DRAWER)
═══════════════════════════════════════════════════════════════ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mid) var(--ease),
              visibility var(--mid) var(--ease);
}
.backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 82vw);
  z-index: 1000;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 44px 44px 56px;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.drawer.is-open { transform: translateX(0); }

/* Cabeçalho do drawer */
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.drawer__logo {
  width: 140px;
  /* Logo é branco → invertemos para aparecer no fundo branco */
  filter: brightness(0);
}

.drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
  line-height: 1;
  padding: 4px;
  transition: opacity var(--fast);
}
.drawer__close:hover { opacity: 0.4; }

/* Links de navegação */
.drawer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.drawer__nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--black);
  display: inline-block;
  position: relative;
  transition: opacity var(--fast);
}
.drawer__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width var(--mid) var(--ease);
}
.drawer__nav a:hover { opacity: 1; }
.drawer__nav a:hover::after { width: 100%; }


/* ═══════════════════════════════════════════════════════════════
   HERO  (blur gaussiano + typewriter)
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 82svh;
  min-height: 460px;
  max-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

/* Fundo com parallax — extra-alto para cobrir o movimento */
.hero__bg {
  position: absolute;
  top: -20%;
  left: 0; right: 0;
  height: 140%;
  background-color: #111;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

/* Vídeo com blur gaussiano */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  /* ── BLUR GAUSSIANO ── */
  filter: blur(4px) brightness(0.62);
  transform: scale(1.02); /* compensação mínima para blur de 2px */
}

/* Overlay escuro para contraste do texto */
.hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  pointer-events: none;
}

/* ── Conteúdo central — só a frase ── */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
}

/* Área do texto typewriter */
.hero__type {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2em;
}

.hero__phrase {
  font-family: var(--font);
  font-size: clamp(10px, 1.3vw, 16px);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Cursor piscante */
.hero__cursor {
  font-family: var(--font);
  font-size: clamp(10px, 1.3vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Ícone de scroll (mouse) ── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Corpo do mouse */
.mouse-icon {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
  animation: mouseFade 3s ease-in-out infinite;
}

/* Scroll wheel (bolinha que desce) */
.mouse-wheel {
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: mouseScroll 1.6s ease-in-out infinite;
}

@keyframes mouseScroll {
  0%   { transform: translateY(0);   opacity: 0.9; }
  60%  { transform: translateY(8px); opacity: 0;   }
  100% { transform: translateY(0);   opacity: 0;   }
}

@keyframes mouseFade {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.75; }
}


/* ═══════════════════════════════════════════════════════════════
   SEÇÕES DE LOCALIZAÇÃO
═══════════════════════════════════════════════════════════════ */
.unit { width: 100%; }
.unit--white { background: var(--white); color: var(--black); }
.unit--black { background: var(--black); color: var(--white); }

.unit__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 64px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 80px;
}

/* ── Bloco de informações ── */
.unit__city {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

/* "GALERIA SÃO PAULO" — maiúsculo, negrito */
.unit__city-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* "Vila Olímpia" — minúsculo, leve, discreto */
.unit__city-loc {
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.14em;
  opacity: 0.55;
  text-transform: none;
}
.unit__brand {
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  margin-bottom: 28px;
  opacity: 0.6;
}
.unit__addr {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 42px;
  opacity: 0.9;
}

/* ── Botão CTA ── */
.cta {
  display: inline-block;
  padding: 13px 24px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: background var(--mid) var(--ease),
              color var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
}

/* Seção branca: botão branco com borda preta fina */
.unit--white .cta {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}
.unit--white .cta:hover {
  background: var(--black);
  color: var(--white);
}

/* Seção preta: botão da cor do fundo (preto) com borda branca fina */
.unit--black .cta {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--white);
}
.unit--black .cta:hover {
  background: var(--white);
  color: var(--black);
}

/* ── Galeria / Slideshow ── */
.unit__gallery {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slideshow {
  flex: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  background: transparent;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide iframe,
.slide img {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  object-fit: cover;
  display: block;
}

/* ── Botão "Ver no Maps" ── */
.map-open {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--fast);
}
.map-open:hover { background: rgba(0, 0, 0, 0.85); }
.map-open svg   { width: 13px; height: 13px; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA  (scroll reveal)
═══════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--slow) var(--ease),
              transform var(--slow) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--white);
  padding: 72px 64px 64px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__nav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #888;
  display: inline-block;
  transition: color var(--fast);
}
.footer__nav a:hover { color: var(--black); }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 960px) {
  .header { padding: 20px 28px; }
  .header__logo { width: clamp(90px, 14vw, 130px); }
  .scroll-hint { display: none; }

  .unit__wrap {
    grid-template-columns: 1fr;
    padding: 80px 44px;
    gap: 48px;
  }
  /* Permite quebra de linha em tablet */
  .unit__city { white-space: normal; font-size: 18px; }
}

/* ── Mobile ── */
@media (max-width: 620px) {
  .header { padding: 20px 22px; }
  .onde-btn__text { display: none; }
  .onde-btn__bar  { height: 36px; }

  .header { padding: 18px 20px; }
  .header__logo { width: 90px; }
  .hero__center { padding: 0 24px; }

  .unit__wrap  { padding: 64px 24px; gap: 36px; }
  .unit__city  { font-size: 16px; }
  .unit__addr  { font-size: 12.5px; }

  .slide-arrow { font-size: 38px; padding: 6px 4px; }

  .footer { padding: 56px 28px; }
  .footer__nav a { font-size: 10.5px; }
}
