/* ════════════════════════════════════════════════════════════════
   components.css  —  Via Traço
   COMPONENTES DE PÁGINA: vt-hero, grid/cards de catálogo (base), catalog lightbox #cat-lb, hero de livros, seções da home, patches de layout, logos, indicadores de scroll
   (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.)
   ════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   HERO — VIA TRAÇO landing
═══════════════════════════════════════ */
.vt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
  padding: 0 24px;
}
.vt-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.vt-hero-mark svg { display: block; }
.vt-hero-title {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(64px, 10vw, 136px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
}
.vt-green  { color: var(--green); }
.vt-dark   { color: var(--ink); }
.vt-hero-sub {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: .28em;
  color: rgba(28,27,24,.38);
  text-transform: uppercase;
  margin: 0;
}
.vt-hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vt-hero-scroll span {
  font-family: "Noto Sans", sans-serif;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(28,27,24,.36);
  text-transform: uppercase;
}
.vt-hero-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(28,27,24,.28), transparent);
  animation: lineDown 1.8s ease-in-out infinite;
}
@keyframes lineDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ═══════════════════════════════════════
   CATALOG CARDS GRID
═══════════════════════════════════════ */
.sec-desc {
  font-size: 15px; color: var(--ink2); line-height: 1.7;
  max-width: 560px; margin-top: 16px;
}
.cat-grid-section { padding: 60px 44px 80px; }
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.cat-card {
  flex: 1 1 320px;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cat-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.cat-card-img {
  width: 100%; height: 280px;
  overflow: hidden;
  background: var(--bg2);
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-info { padding: 24px; }
.cat-card-year {
  font-family: "Noto Sans", sans-serif; font-size: 10px;
  letter-spacing: .2em; color: var(--green);
  text-transform: uppercase; margin-bottom: 8px;
}
.cat-card-title {
  font-family: "Noto Sans", sans-serif; font-size: 18px;
  font-weight: 200; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink);
  margin-bottom: 4px; line-height: 1.2;
}
.cat-card-sub {
  font-family: "Noto Sans", sans-serif; font-size: 10.5px;
  letter-spacing: .14em; color: var(--ink2);
  text-transform: uppercase; margin-bottom: 12px;
}
.cat-card-desc {
  font-family: var(--serif); font-size: 13px;
  font-style: italic; line-height: 1.55;
  color: rgba(28,27,24,.65); margin-bottom: 16px;
}
.cat-card-cta {
  font-family: "Noto Sans", sans-serif; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); font-weight: 300;
}

/* ══ CATALOG LIGHTBOX ══ */
#cat-lb {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
#cat-lb.open { display: flex; }
#cat-lb-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
}
#catLbClose {
  font-size: 36px; background: none; border: none;
  cursor: pointer; color: rgba(0,0,0,.3);
  transition: color .2s;
}
#catLbClose:hover { color: var(--ink); }
#catLbImg {
  max-height: calc(100vh - 130px); max-width: 88%;
  object-fit: contain;
}
#catLbCounter {
  font-family: "Noto Sans", sans-serif; font-size: 10px;
  letter-spacing: .14em; color: rgba(0,0,0,.3);
}
#catLbPrev, #catLbNext {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 32px; color: rgba(0,0,0,.25);
  padding: 0 20px; transition: color .2s;
}
#catLbPrev:hover, #catLbNext:hover { color: var(--ink); }
#catLbPrev { left: 0; }
#catLbNext { right: 0; }

/* ══ LIVROS HERO — intro screen before theater ══ */
.livros-hero {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  text-align: center;
  pointer-events: none; /* theater.js controls opacity */
}
.livros-hero-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.livros-hero-lbl {
  font-family: "Noto Sans", sans-serif; font-size: 10.5px;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(28,27,24,.35); margin: 0;
}
.livros-hero-title {
  font-family: "Noto Sans", sans-serif; font-size: clamp(52px,8vw,96px);
  font-weight: 200; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink);
  line-height: 1; margin: 0;
}
.livros-hero-sub {
  font-family: "Noto Sans", sans-serif; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(28,27,24,.32); margin: 0;
}

/* ═══ ID ALIASES — CSS usava #wrap e #bg, JS foi atualizado para #theaterWrap e #bgThumb ═══ */
#theaterWrap { position: relative; } /* same role as #wrap */
#bgThumb { position: absolute; inset: 0; pointer-events: none; } /* same as #bg */

/* ═══ HOME SECTIONS ═══ */
.vt-hero-tagline {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-style: italic;
  font-weight: 200;
  color: var(--ink);
  margin: 0;
  letter-spacing: .01em;
}
.vt-hero-sub {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(28,27,24,.45);
  text-transform: uppercase;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

.home-section { padding: 80px 44px; }
.home-section--alt { background: var(--bg2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Services with number */
.svcs--home { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; max-width: 1320px; margin: 0 auto; }
.svcs--home .svc { padding: 36px 40px; border-right: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.svcs--home .svc:last-child { border-right: none; }
.svc-num { font-family: "Noto Sans", sans-serif; font-size: 10.5px; letter-spacing: .2em; color: rgba(28,27,24,.3); display: block; margin-bottom: 12px; }
.svc-link { display: inline-block; margin-top: 16px; font-family: "Noto Sans", sans-serif; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); text-decoration: none; font-weight: 300; transition: opacity .2s; }
.svc-link:hover { opacity: .7; }

/* Clients list */
.clientes-lista { display: flex; flex-wrap: wrap; gap: 0; max-width: 1320px; margin: 40px auto 0; border-top: 1px solid var(--rule); }
.home-section--alt,
.clientes-lista,
.clientes-lista span { flex: 1 1 200px; padding: 24px 40px; font-family: "Noto Sans", sans-serif; font-size: clamp(14px, 1.4vw, 18px); font-style: italic; color: var(--ink2); border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); transition: color .2s, background .2s; }
.clientes-lista span:hover { color: var(--ink); background: rgba(46,181,78,.04); }


/* Ajuste global: remover linhas divisórias entre containers/blocos */
.h-hero__left,
.h-section,
.h-section__text,
.h-section__text--left,
.h-section__text--right,
.h-scrub-sticky,
.svc,
.svcs--home .svc,
.ac,
.home-section--alt,
.clientes-lista,
.clientes-lista span {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Ajuste: viewer/livros sem halo, mantendo a cor original da aba Livros */
body:not(.home),
body:not(.home) #lb,
body:not(.home) #lb-center,
body:not(.home) #stage,
body:not(.home) #zoom-overlay,
body:not(.home) #zoom-body,
body:not(.home) #zoom-canvas,
body:not(.home) #zoom-img-wrap {
  background-color: var(--bg) !important;
  background-image: none !important;
}

body:not(.home) #lb-center img,
body:not(.home) #imgWrap img,
body:not(.home) #imgWrap img.on:hover,
body:not(.home) #zoom-img {
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE PATCH — navegação mobile real
   Corrige hamburger sem classes nos spans e links do menu sem classe.
═══════════════════════════════════════ */
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.23, 1, .32, 1), opacity .2s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu a {
  display: block;
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  background: #fff;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--green); }

@media (max-width: 900px) {
  nav,
  nav.nav-scrolled {
    top: 12px;
    width: calc(100% - 24px);
    height: 56px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 4px 26px rgba(0,0,0,.07);
  }
  .mobile-menu {
    top: 76px;
    right: 12px;
    width: min(310px, calc(100vw - 24px));
  }
}

@media (max-width: 420px) {
  .nlogo-txt { font-size: 10.5px; letter-spacing: .1em; }
  .nlogo-mark svg { height: 19px; }
  .nav-hamburger { width: 38px; height: 38px; }
}


/* PATCH: mantém o menu sempre arredondado até o fim da página */
nav,
nav.nav-scrolled {
  border-radius: 18px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

@media (max-width: 900px) {
  nav,
  nav.nav-scrolled {
    border-radius: 16px !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
  }
}

/* ─── New Via Traço logo (PNG) ─────────────────────────────────── */
.nlogo-img {
  height: 43.2px; /* 32px + 35% */
  width: auto;
  display: block;
  /* PNG is RGBA transparent — no mix-blend needed */
}
/* Mobile menu logo */
.mobile-menu .nlogo-img {
  height: 37.8px; /* 28px + 35% */
}

/* ─── Scroll indicator GIF ─────────────────────────────────────── */
.scroll-indicator-gif {
  display: block;
  width: 32px;
  height: auto;
  margin: 0 auto;
  opacity: 0.5;
}
/* Inside h-hero__scroll (home hero) */
.h-hero__scroll .scroll-indicator-gif {
  margin: 0;
  opacity: 0.5;
}
/* Inside lsi__text-cta (livros spiral) */
.lsi__text-cta .scroll-indicator-gif {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  margin-right: 6px;
  opacity: 0.7;
}
/* Remove the old animated line when gif is present */
.h-hero__scroll .vt-hero-line,
.livros-hero-sub + .scroll-indicator-gif { display: block; }

/* ─── Footer logo ──────────────────────────────────────────────── */
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  /* PNG is RGBA transparent — no blend needed */
  /* Footer is dark background — invert to show white version */
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

/* ─── Scroll indicator GIF — sem fundo ────────────────────────── */
.scroll-indicator-gif { /* remove white background of GIF */
  background: transparent;
}

/* Títulos com CS Clingan */
h1, h2, h3, h4,
.sec-h, .hero-title, .cta-band h2,
.cover-title, #coverTitle,
.lb-lbl, #lbLbl,
.ac-lead, .h-headline, .h-hero__headline,
.livros-hero-title, .lsi__text-headline, .cat-card-title,
.vt-hero-title {
  font-family: "Noto Sans", sans-serif;
}

h1 em, h2 em, h3 em, h4 em,
.sec-h em, .hero-title em, .h-headline em, .h-hero__headline em,
.cta-band h2 em, .livros-hero-title em, .lsi__text-headline em, .vt-hero-title em {
  font-family: "Noto Sans", sans-serif;
  font-style: italic;
}

/* ============================================================
   BLOCO FINAL — contatos (esquerda) + formulário (direita)
   Reaproveita .cta-band (viewer.css). Estética preservada.
   Especificidade .cta-band ... para vencer viewer.css (p nowrap/30px).
   ============================================================ */
.cta-band-inner { width: min(100%, 1440px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 96px); align-items: center; text-align: left; }
.cta-band-inner .cta-copy, .cta-band-inner .cta-form, .cta-band-inner .contact-form { min-width: 0; }
.cta-band-inner .cta-copy { text-align: left; }
.cta-band .cta-band-inner .cta-copy h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.18; }
.cta-band .cta-band-inner .cta-copy > p { font-size: clamp(16px, 1.4vw, 20px); white-space: normal; margin: 0 0 26px; }
.cta-band-inner .contact-stack { align-items: flex-start; }


.cta-band .cta-form p { white-space: normal; margin: 0; }
.cta-band .cta-form__intro { font-family: "Noto Sans", sans-serif; font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--ink); margin: 0 0 8px; }
.cta-band .cta-form__support { font-family: "Noto Sans", sans-serif; font-weight: 300; font-size: 13px; line-height: 1.55; color: var(--ink2); max-width: 560px; margin: 0 0 18px; }

.cta-form .contact-form {
  margin-top: 18px;
}

.contact-form, .contact-form * { box-sizing: border-box; }
.contact-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.contact-form .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; }
.contact-form .form-field.form-message { margin-bottom: 4px; }
.contact-form label { font-family: "Noto Sans", sans-serif; font-size: 10.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 3px; padding: 9px 12px; font-family: "Noto Sans", sans-serif; font-weight: 300; font-size: 14px; color: var(--ink); transition: border-color .2s; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.contact-form .form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6860' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { order: 20; align-self: flex-start; margin-top: 4px; background: transparent; border: 1px solid var(--green); color: var(--ink); padding: 10px 28px; border-radius: 999px; font-family: "Noto Sans", sans-serif; font-weight: 400; font-size: 13px; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
.form-submit:hover { background: var(--green); color: #fff; }
.form-submit:disabled { opacity: .55; cursor: default; }
.cta-band .contact-form .form-status { order: 19; margin: 2px 0 14px; font-family: "Noto Sans", sans-serif; font-weight: 300; font-size: 12px; line-height: 1.45; min-height: 1em; color: var(--ink2); white-space: normal; }
.contact-form .form-status.is-ok { color: var(--green); }
.contact-form .form-status.is-err { color: #b85a63; }

@media (max-width: 900px) {
  .cta-band-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .cta-band .cta-band-inner .cta-copy > p { white-space: normal; }
}

/* Validação: campo obrigatório não preenchido */
.contact-form .is-invalid { border-color: #b85a63 !important; }
.contact-form .is-invalid:focus { border-color: #b85a63 !important; box-shadow: 0 0 0 2px rgba(184, 90, 99, .10); }
/* Placeholders na mesma tipografia do site */
.contact-form input::placeholder,
.contact-form textarea::placeholder { font-family: "Noto Sans", sans-serif; font-weight: 300; font-size: 14px; color: #9a978f; opacity: 1; }

/* Formulário de contato — validação discreta por campo */
.contact-form .field-error {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-family: "Noto Sans", sans-serif;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 300;
  color: #b85a63;
  letter-spacing: .02em;
}
.contact-form .is-invalid {
  border-color: #b85a63 !important;
}
.contact-form .is-invalid:focus {
  border-color: #b85a63 !important;
  box-shadow: 0 0 0 2px rgba(184, 90, 99, .10);
}

/* Telefone do formulário: apenas o ícone fica verde; os números mantêm a cor padrão do placeholder */
.contact-form input[name="telefone"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb34c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.4 4.7c.7-.7 1.8-.7 2.5 0l2 2c.6.6.7 1.5.2 2.2l-.9 1.2c.9 1.9 2.4 3.4 4.3 4.3l1.2-.9c.7-.5 1.6-.4 2.2.2l2 2c.7.7.7 1.8 0 2.5l-.8.8c-.9.9-2.2 1.2-3.4.8-5.2-1.5-9.3-5.6-10.8-10.8-.4-1.2-.1-2.5.8-3.4l.7-.9z'/%3E%3Cpath d='M14.2 5.2c2.2.5 4 2.3 4.6 4.6'/%3E%3Cpath d='M14.8 1.9c3.8.8 6.7 3.8 7.5 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
  padding-left: 40px;
}
.contact-form input[name="telefone"]::placeholder {
  color: #9a978f;
  opacity: 1;
}

/* expografia na home: imagem única, sem caixa, com fade-in/fade-out no scroll */
/* a coluna tinha 10% de padding lateral (72px em 720px); com 4% à esquerda e 0 à
   direita a imagem passa a ocupar 96% da coluna em vez de 80% — +20% em qualquer
   largura, com a folga concentrada do lado de fora e não junto ao texto */
#expografia .h-section__art{padding-left:4%;padding-right:0}
@media (max-width: 900px){
  #expografia .h-section__art{padding-left:24px;padding-right:24px}
}
.h-expo-solo{width:100%;max-width:900px;display:block;margin:0 auto;
  opacity:0;transform:translateY(64px) scale(.92);
  will-change:opacity,transform;
  transition:opacity 1.15s cubic-bezier(.16,1,.3,1), transform 1.15s cubic-bezier(.16,1,.3,1)}
.h-expo-solo.apareceu{opacity:1;transform:translateY(0) scale(1)}
@media (prefers-reduced-motion: reduce){
  .h-expo-solo{opacity:1;transform:none;transition:none}
}
