/* ════════════════════════════════════════════════════════════════
   viewer.css  —  Via Traço
   SISTEMA DE VISUALIZAÇÃO + SEÇÕES COMPARTILHADAS: teatro/stage (scroll), lightbox, zoom, seções de página (.sec-h/.svc/.ac/.cta-band/footer), contato, cover-title
   (Fatiado do antigo style.css, carregado na MESMA ORDEM em todas as
   páginas: style → viewer → menu → components → typography → overrides
   → [css da página] → responsive. Concatenação idêntica ao original.)
   ════════════════════════════════════════════════════════════════ */

/* ═══ SCROLL WRAPPER ═══ */
#wrap { position: relative; } /* height set by JS */

/* ═══ STICKY STAGE ═══ */
#stage {
  position: sticky; top: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  background: var(--bg);
  perspective: 1400px;          /* enables 3D flip on imgZone */
  perspective-origin: 50% 50%;
}

/* ─── BACKGROUND LAYER ─── */
/* Scattered thumbnails, Getty-style */
#bg { position: absolute; inset: 0; pointer-events: none; }

.thumb {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .6s ease;
  z-index: 15;
}
.thumb img {
  display: block;
  width: auto !important;
  height: 156px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.14));
}
.thumb.hovered {
  z-index: 20;
}
.thumb.hovered img {
  transform: scale(1.9);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.22));
}
.thumb img {
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

/* ─── IMAGE ZONE: top-centered, explicit position ─── */
#imgZone {
  position: absolute;
  left: 50%;
  top: calc(50% - 3vh);     /* slight upward offset for editorial breathing room */
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 10;
  width: min(720px, 88vw);
  height: clamp(340px, 65vh, 900px);
  will-change: transform, opacity;
  overflow: visible;
}

/* ─── LEFT TEXT OVERLAY (full-bleed mode, like Getty) ─── */
#textLeft {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, 32vw);
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 26px;
  border-radius: 2px;
}
.tl-lbl {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(24px, 3vw, 50px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: lowercase;
  color: #000000; 
  margin-bottom: 10px;
}
#tlText {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 200; font-style: normal;
  line-height: 1.32; color: var(--ink);
  transform-origin: left top;
  will-change: transform;
}
#imgWrap {
  position: absolute; inset: 0;
  background: transparent;
}
#imgWrap img {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(280px, 60vh, 860px);   /* consistent visual height for all covers */
  max-height: clamp(340px, 65vh, 900px);
  width: auto;
  max-width: 100%;
  object-fit: contain;                  /* never distort, never crop */
  opacity: 0;
  /* transition removed — opacity is scroll-driven for fade crossfade */
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.22)) drop-shadow(0 2px 8px rgba(0,0,0,.12));
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}
#imgWrap img.on {
  opacity: 1;
  pointer-events: auto;   /* only the visible image is clickable */
  cursor: zoom-in;
}

/* ─── TEXT ZONE: always below image zone, explicit top ─── */
#textZone {
  position: absolute;
  left: 50%;
  top: calc(80px + 48vh + 20px);    /* image top + image height + gap */
  transform: translateX(-50%);
  z-index: 10;
  width: min(520px, 86vw);
  text-align: center;
  will-change: opacity;
}

/* Caption */
#cap {
  opacity: 0;
  transition: opacity .5s ease;
  margin-bottom: 18px;
}
#cap-title {
  font-family: "Noto Sans", sans-serif; font-size: 12px; font-weight: 200;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(28,27,24,.3);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 4px;
}
#cap-attr {
  font-family: "Noto Sans", sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: .05em; color: var(--ink2);
}

/* Narrative — large italic serif, clearly below image */
#narrative {
  font-family: var(--serif);
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.78);
  transform-origin: center top;
  /* transition only for page-change crossfade, NOT for scroll-driven scale */
  will-change: transform, opacity;
}
#narrative b { font-style: normal; font-weight: 300; }

/* ─── DOTS (bottom center) ─── */
#dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 6px; opacity: 0; transition: opacity .4s;
}
.dot { width: 14px; height: 2px; background: var(--rule); transition: all .3s; border-radius: 1px; }
.dot.on { background: var(--ink); width: 26px; }

/* ─── HERO OVERLAY ─── */
#hero {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg);
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hero-inner .hlogo { display:block; } .hero-inner .hlogo svg { height:46px; }
.hero-title {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(52px, 7.5vw, 102px);
  font-weight: 200; line-height: .95; letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-title .via { color: var(--green); font-style: normal; }
.hero-title .impressa { color: var(--ink); font-style: normal; }
.hero-sub {
  font-family: "Noto Sans", sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink3);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute; bottom: 28px;
  font-family: "Noto Sans", sans-serif; font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--ink3), transparent);
  animation: sd 2s ease-in-out infinite;
}
@keyframes sd { 0%,100%{opacity:.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.25)} }

/* ═══ POST-THEATER SECTIONS ═══ */
.sec { padding: 64px 44px; border-top: 1px solid var(--rule); }
.sec-lbl { font-family: "Noto Sans", sans-serif; font-size: 10px; font-weight: 300; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.sec-h { font-family: "Noto Sans", sans-serif; font-size: clamp(26px,3.5vw,44px); font-weight: 200;
  letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }

.svcs { display: grid; grid-template-columns: repeat(3,1fr); }
.svc { padding: 36px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .3s; }
.svc:hover { background: var(--bg2); }
.svc:nth-child(3n) { border-right: none; }
.svc-bar { width: 18px; height: 1px; background: var(--green); margin-bottom: 14px; }
.svc h3 { font-family: "Noto Sans", sans-serif; font-size: 15px; font-weight: 200; color: var(--ink); margin-bottom: 7px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; }
.svc p { font-size: 12px; font-weight: 300; line-height: 1.8; color: var(--ink2); }

.about { display: grid; grid-template-columns: 1fr 1fr; }
.ac { padding: 52px 44px; border-right: 1px solid var(--rule); }
.ac:last-child { border-right: none; }
/* Tamanho original restaurado a pedido; demais ajustes mantidos */
.ac-lead { font-family: "Noto Sans", sans-serif; font-size: clamp(16px, 1.8vw, 22px); font-weight: 200;
  font-style: normal; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); margin-bottom: 18px; }
/* Mesmo padrão de .h-hero__body (home) */
.ac-body { font-family: "Noto Sans", sans-serif; font-size: clamp(14px, 1.85vw, 21px); font-weight: 300;
  line-height: 1.35; color: var(--ink2); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); margin-top: 32px; }
.stat { background: var(--bg); padding: 22px 0; }
.stat-n { font-family: "Noto Sans", sans-serif; font-size: 38px; font-weight: 200; color: var(--ink); line-height: 1; }
.stat-l { font-family: "Noto Sans", sans-serif; font-size: 9px; font-weight: 300; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink3); margin-top: 5px; }

.cta-band { padding: 88px 44px; text-align: center; background: var(--bg2); border-top: 1px solid var(--rule); }
.cta-band h2 { font-family: "Noto Sans", sans-serif; font-size: clamp(28px,4.5vw,58px); font-weight: 200;
  letter-spacing: .04em; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; }
.cta-band h2 b { font-style: normal; color: var(--green); font-weight: 300; }
.cta-band p {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink2);
  max-width: none;
  margin: 0 auto 32px;
  white-space: nowrap;
}

/* Contact stack — left-aligned column */
.contact-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.cta-band .contact-link {
  justify-content: flex-start;
  margin-top: 0;
}
.cta-band a { font-family: "Noto Sans", sans-serif; font-size: 18px; font-style: italic; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--ink2); padding-bottom: 2px;
  transition: color .2s, border-color .2s; }
.cta-band a:hover { color: var(--green); border-color: var(--green); }

footer { background: var(--ink); padding: 28px 44px; display: flex;
  justify-content: space-between; align-items: center; }
footer .fl { font-family: "Noto Sans", sans-serif; font-size: 14px; font-style: italic; color: #fff; }
footer .fc { font-family: "Noto Sans", sans-serif; font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.3); }
footer ul { display: flex; gap: 20px; list-style: none; }
footer ul a { font-family: "Noto Sans", sans-serif; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
footer ul a:hover { color: #fff; }

/* LIGHTBOX */
/* ── NAV INTERNO DO LIGHTBOX ── */
#lb-nav {
  position: absolute; top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: transparent;
  z-index: 20;
}
#lb-nav .nlogo-txt {
  font-family: "Noto Sans", sans-serif; font-size: 13px; font-weight: 300;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}

#lb {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 64px 0 40px;
  gap: 0;
}
#lb.open { display: flex; }

/* Close × — inside #lb-nav */
#lb-close {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Sans", sans-serif; font-size: 36px; line-height: 1;
  color: rgba(0,0,0,.28);
  background: none; border: none; cursor: pointer;
  transition: color .2s;
  flex-shrink: 0;
}
#lb-close:hover { color: rgba(0,0,0,.8); }

/* Navigation arrows */
#lb-prev, #lb-next {
  flex: 0 0 60px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: default;
  padding: 0; pointer-events: none;
}
#lb-prev .arr-btn, #lb-next .arr-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(0,0,0,.22);
  transition: color .2s;
  pointer-events: auto;
}
#lb-prev .arr-btn:hover, #lb-next .arr-btn:hover {
  color: rgba(0,0,0,.75);
}

/* Center content */
#lb-center {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  min-width: 0;
  /* exact available height = viewport minus lb top/bottom padding */
  max-height: calc(100vh - 92px);
  overflow: hidden;
}
#lb-center img {
  cursor: zoom-in;
  /* flex-shrink allows image to give space to caption */
  flex: 0 1 auto;
  min-height: 0;
  max-width: 88%;
  /* calc: viewport - lb padding(92px) - gap(20px) - caption(130px) - buffer(16px) */
  max-height: calc(100vh - 258px);
  object-fit: contain;
  width: auto;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.12));
  transition: opacity .2s ease;
  cursor: zoom-in;
}
#lb.quenum #lb-center img {
  cursor: zoom-in;
  max-width: 60%;
}
#lb-caption {
  flex: 0 0 auto;
  text-align: center;
  max-width: 980px;
  width: 100%;
  padding: 0 24px;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}
#lb-caption .lb-lbl {
  font-family: "Noto Sans", sans-serif;
  font-size: 44px;
  font-weight: 200;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: 8px;
  white-space: normal;
  overflow-wrap: normal;
} 
#lb-caption .lb-counter {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  letter-spacing: .10em;
  color: var(--ink);
  margin-bottom: 10px;
}
#lb-caption .lb-text {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: normal;
}

/* Image hover — drop-shadow follows PNG alpha silhouette */
#imgWrap img.on:hover {
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.32)) drop-shadow(0 4px 12px rgba(0,0,0,.18));
  cursor: zoom-in;
}


/* Remove focus ring from lightbox buttons — keyboard nav handled via JS */
#lb-close:focus, #lb-close:focus-visible,
#lb-prev .arr-btn:focus, #lb-prev .arr-btn:focus-visible,
#lb-next .arr-btn:focus, #lb-next .arr-btn:focus-visible {
  outline: none;
  box-shadow: none;
  background: none;
}


/* ══ ZOOM VIEWER ══ */
#zoom-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 3000; /* above lb */
  background: var(--bg);
  flex-direction: column;
}
#zoom-overlay.open { display: flex; }

/* Top bar */
#zoom-topbar {
  flex: 0 0 48px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  gap: 12px;
}
#zoom-close-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  background: none; border: none; cursor: pointer;
  color: rgba(0,0,0,.4); transition: color .2s;
}
#zoom-close-btn:hover { color: rgba(0,0,0,.85); }
#zoom-scale-label {
  font-family: "Noto Sans", sans-serif; font-size: 11px; letter-spacing: .12em;
  color: rgba(0,0,0,.35); min-width: 40px; text-align: right;
}

/* Canvas area + scrollbars */
#zoom-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}
#zoom-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.25) transparent;
  cursor: grab;
}
#zoom-canvas:active { cursor: grabbing; }
#zoom-canvas::-webkit-scrollbar { width: 10px; height: 10px; }
#zoom-canvas::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.22); border-radius: 5px;
  border: 2px solid transparent; background-clip: content-box;
}
#zoom-canvas::-webkit-scrollbar-track { background: transparent; }
#zoom-canvas::-webkit-scrollbar-corner { background: transparent; }

#zoom-img-wrap {
  display: inline-block;
  padding: 40px;
  min-width: 100%; min-height: 100%;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
#zoom-img {
  display: block;
  transform-origin: center center;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.18));
  pointer-events: none;
  user-select: none;
  max-width: none;
}

/* ══ CONTACT LINKS ══ */
.contact-link {
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  text-decoration: none !important;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  transition: color .2s;
}
.contact-link:hover,
.contact-link:focus {
  text-decoration: none !important;
}
.contact-link svg {
  flex-shrink: 0;
  fill: currentColor;
  transition: color .2s;
}


/* ══ CONTACT SECTION LINKS — high specificity via #contato ══ */
#contato .contact-link {
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  text-decoration: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0px;
  transition: color .2s;
}
#contato .contact-link:hover,
#contato .contact-link:focus,
#contato .contact-link:active,
#contato .contact-link:visited {
  text-decoration: none !important;
  border-bottom: none !important;
}
#contato .contact-link svg {
  flex-shrink: 0;
  fill: currentColor;
  transition: fill .2s;
}

/* Individual hover colours — #contato + class beats .cta-band a:hover */
#contato .contact-email:hover,
#contato .contact-email:focus {
  color: #0078D4 !important;
}
#contato .contact-whatsapp:hover,
#contato .contact-whatsapp:focus {
  color: #25D366 !important;
}
#contato .contact-instagram:hover,
#contato .contact-instagram:focus {
  color: #E1306C !important;
}
#contato .contact-fixo:hover,
#contato .contact-fixo:focus {
  color: var(--green) !important;
}

/* ══ COVER TITLE — large editorial title shown only on book covers ══ */
#coverTitle {
  position: absolute;
  left: 50%;
  top: calc(50% - 3vh + clamp(170px, 33vh, 445px) + 10px);
  transform: translateX(-50%) translateY(0px) scale(0.78);
  z-index: 12;
  width: min(1280px, 94vw);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;

  font-family: "Noto Sans", sans-serif;
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 200;
  font-style: normal;
  color: var(--ink);
  text-align: center;
  line-height: 1.08;
  letter-spacing: .04em;
  text-transform: lowercase;

  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

