/* ============ Cofy Film — design system VornHaus (handoff seção 8) ============ */
:root {
  --bk: #1A1714;   /* fundo principal */
  --ash: #2E2B28;  /* fundo secundário, hover de card */
  --co: #8C7B6E;   /* texto terciário, bordas discretas */
  --em: #C4865A;   /* accent, usar com moderação */
  --ch: #F0EBE3;   /* texto principal */
  --ch5: rgba(240, 235, 227, .55);
  --co15: rgba(140, 123, 110, .15);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bk);
  color: var(--ch);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--em); color: var(--bk); }

/* Grain sutil sobre o site inteiro */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .035;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--em); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
nav.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.6rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26, 23, 20, .9), transparent);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 200;
  letter-spacing: .3em;
  font-size: .85rem;
  color: var(--ch);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--ch); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ch5);
  text-decoration: none;
  transition: color .3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--em); text-decoration: none; }

.nav-links a.nav-cta {
  color: var(--em);
  border: 1px solid var(--em);
  padding: .5rem 1rem;
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; z-index: 501; padding: 12px; margin: -12px; }
.nav-toggle-overlay { display: none; }
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ch);
  margin: 7px 0;
  transition: all .3s ease;
}

@media (max-width: 900px) {
  nav.site-header { padding: 1.25rem 1.5rem; }
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    background: var(--bk);
    border-bottom: 1px solid var(--co15);
    z-index: 500;
  }
  .nav-links a { font-size: .7rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav-toggle-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 499;
    cursor: default;
  }
  .nav-toggle:checked ~ .nav-toggle-overlay { display: block; }
}

/* Eyebrow genérico — .impact, .services-header, .page-intro (o hero
   da Home usa .hero-eyebrow, com layout próprio, ver abaixo) */
.eyebrow {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--em);
  margin-bottom: 1.6rem;
}

/* ---------- Hero (Home) — mecânica emprestada do vorsk-landing-v2 ---------- */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes heroFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes focusPull { from { filter: blur(3px); transform: translateY(12px) } to { filter: blur(0); transform: translateY(0) } }
@keyframes drawLine { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes drawLineFromLeft { from { width: 0 } to { width: 30px } }
@keyframes pulseLine { 0%, 100% { opacity: .15; transform: scaleX(.6) } 50% { opacity: .5; transform: scaleX(1) } }
@keyframes pulseDot { 0%, 100% { opacity: 0; transform: translateX(-50%) scale(.5) } 50% { opacity: .4; transform: translateX(-50%) scale(1) } }
@keyframes scanDown { 0% { transform: translateY(-2vh) } 100% { transform: translateY(102vh) } }
@keyframes breathe { 0%, 100% { opacity: .4 } 50% { opacity: .7 } }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 30%, var(--bk) 100%),
    linear-gradient(135deg, #2a2420 0%, var(--bk) 40%, #0f0d0b 100%);
  z-index: 0;
}

/* Moldura de viewfinder com cantos que se desenham na entrada */
.hero-vf { position: absolute; top: 5rem; left: 3rem; right: 3rem; bottom: 3rem; z-index: 1; pointer-events: none; }
.hero-vf-border { position: absolute; inset: 0; border: 1px solid rgba(240, 235, 227, .03); }

.vf-corner { position: absolute; overflow: hidden; }
.vf-corner-h, .vf-corner-v { position: absolute; background: rgba(196, 134, 90, .2); }
.vf-corner--tl { top: 0; left: 0; width: 24px; height: 24px; }
.vf-corner--tl .vf-corner-h { top: 0; left: 0; width: 24px; height: 1px; transform-origin: left; animation: drawLine 1.5s ease .5s both; }
.vf-corner--tl .vf-corner-v { top: 0; left: 0; width: 1px; height: 24px; transform-origin: top; animation: drawLine 1.5s ease .7s both; }
.vf-corner--tr { top: 0; right: 0; width: 24px; height: 24px; }
.vf-corner--tr .vf-corner-h { top: 0; right: 0; width: 24px; height: 1px; transform-origin: right; animation: drawLine 1.5s ease .6s both; }
.vf-corner--tr .vf-corner-v { top: 0; right: 0; width: 1px; height: 24px; transform-origin: top; animation: drawLine 1.5s ease .8s both; }
.vf-corner--bl { bottom: 0; left: 0; width: 24px; height: 24px; }
.vf-corner--bl .vf-corner-h { bottom: 0; left: 0; width: 24px; height: 1px; transform-origin: left; animation: drawLine 1.5s ease .7s both; }
.vf-corner--bl .vf-corner-v { bottom: 0; left: 0; width: 1px; height: 24px; transform-origin: bottom; animation: drawLine 1.5s ease .9s both; }
.vf-corner--br { bottom: 0; right: 0; width: 24px; height: 24px; }
.vf-corner--br .vf-corner-h { bottom: 0; right: 0; width: 24px; height: 1px; transform-origin: right; animation: drawLine 1.5s ease .8s both; }
.vf-corner--br .vf-corner-v { bottom: 0; right: 0; width: 1px; height: 24px; transform-origin: bottom; animation: drawLine 1.5s ease 1s both; }

/* Linha de precisão pulsante no rodapé do hero */
.hero-pulse-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; z-index: 2; }
.hero-pulse-line::before { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--em), transparent); animation: pulseLine 4s ease-in-out infinite; }
.hero-pulse-line::after { content: ''; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; border: 1px solid var(--em); border-radius: 50%; transform: translateX(-50%); opacity: 0; animation: pulseDot 4s ease-in-out infinite; }

/* Scan lento */
.hero-scan { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 20%, rgba(196, 134, 90, .08) 50%, transparent 80%); z-index: 2; pointer-events: none; animation: scanDown 8s linear infinite; will-change: transform; }

/* Light leak */
.hero-leak { position: absolute; top: -20%; right: -10%; width: 50vw; height: 50vh; background: radial-gradient(ellipse, rgba(196, 134, 90, .05) 0%, transparent 70%); z-index: 1; pointer-events: none; filter: blur(60px); animation: breathe 6s ease-in-out infinite; }

.hero-content { position: relative; z-index: 10; animation: focusPull 2s ease both; }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .55rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--co);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeIn 1.5s ease .3s both;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--em); animation: drawLineFromLeft 1.2s ease .6s both; }

.hero-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--ch);
  margin-bottom: 3rem;
}
.hero-title em { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--em); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0;
  animation: heroFadeUp 1.2s ease .7s both;
}

.hero-sub-group { max-width: 420px; }

.hero-cred {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--co);
  margin-top: .6rem;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--co);
  line-height: 1.7;
  max-width: 420px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 900px) {
  /* Sem min-height:100vh: a altura da hero passa a seguir o conteúdo, não
     a tela do aparelho — evita o vão vazio gigante entre a moldura e o
     título em telas mais altas (o hero antigo ficava "esticado" e o texto,
     ancorado embaixo, sobrava um buraco enorme no meio). */
  .hero { min-height: auto; justify-content: flex-start; padding: 7rem 1.5rem 3.5rem; }
  .hero-vf { top: 5rem; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3.2rem); }
  /* No mobile a lista de serviços não tem link (os links reais estão no
     menu hambúrguer) e só ocupava 3 linhas quebradas sem função — some
     aqui, fica só no desktop onde cabe numa linha só e funciona como
     contexto discreto acima do título. */
  .hero-eyebrow { display: none; }
}

/* ---------- CTA WhatsApp ---------- */
.cta-whatsapp {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bk);
  background: var(--em);
  padding: .9rem 2.2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity .3s ease;
}

.cta-whatsapp:hover { opacity: .85; text-decoration: none; color: var(--bk); }

.btn-outline {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--em);
  border: 1px solid var(--em);
  padding: .9rem 2.2rem;
  display: inline-block;
  transition: all .3s ease;
}

.btn-outline:hover { background: var(--em); color: var(--bk); text-decoration: none; }

/* ---------- Serviços (Home) ---------- */
.services { padding: 6rem 4rem; border-top: 1px solid var(--co15); }

.services-header { margin-bottom: 3.5rem; }
.services-header .eyebrow { margin-bottom: 1rem; }
.services-header h2 { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.services-header h2 em { font-style: italic; color: var(--em); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--co15);
}

.service-card {
  background: var(--bk);
  display: block;
  position: relative;
  transition: background .4s ease;
  text-decoration: none;
  color: var(--ch);
}

.service-card:hover { background: var(--ash); text-decoration: none; }

.service-capa {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.service-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35);
  transition: filter .4s ease, transform .6s ease;
}

.service-card:hover .service-capa img { filter: grayscale(0); transform: scale(1.03); }

.service-body { padding: 1.8rem 1.6rem 2.4rem; }

.service-num {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--em);
  margin-bottom: 1.2rem;
}

.service-card h3 { font-weight: 400; font-size: 1.35rem; margin-bottom: .8rem; }
.service-card .service-desc { color: var(--ch5); font-size: .95rem; line-height: 1.5; }

.services-grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1300px) { .services-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } .services { padding: 4rem 1.5rem; } }

/* ---------- Prova social ---------- */
.proof { padding: 6rem 4rem; border-top: 1px solid var(--co15); text-align: center; }

.proof h2 { font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 3rem; }

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.logos img {
  max-height: 48px;
  width: auto;
  filter: grayscale(1) brightness(1.5);
  opacity: .55;
  transition: filter .3s ease, opacity .3s ease;
}

.logos img:hover { filter: grayscale(0) brightness(1); opacity: 1; }

@media (max-width: 560px) { .proof { padding: 4rem 1.5rem; } .logos { gap: 1.8rem 2rem; } .logos img { max-height: 36px; } }

/* ---------- CTA final ---------- */
.final-cta { padding: 7rem 2rem; text-align: center; border-top: 1px solid var(--co15); }
.final-cta h2 { font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.final-cta p { color: var(--ch5); margin-bottom: 2.2rem; }

/* ---------- Páginas internas ---------- */
.page-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 10rem 1.5rem 1rem;
  text-align: center;
}

.page-intro .eyebrow { margin-bottom: 1.4rem; }

.page-intro h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
}

.page-intro .subheadline {
  color: var(--ch5);
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 1.2rem;
}

.page-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
}

.page-body p { margin-bottom: 1.2rem; }

.page-body h2 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ch);
  margin: 2.5rem 0 .5rem;
}

.cross-sell {
  border-left: 1px solid var(--em);
  padding: .4rem 0 .4rem 1.5rem;
  margin: 2rem 0;
  color: var(--ch5);
  font-style: italic;
}

.cta-block { text-align: center; padding: 3rem 1.5rem 6rem; }

/* ---------- Foto de capa (case) ---------- */
.case-capa {
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.case-capa img { width: 100%; height: auto; }

.case-capa figcaption {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--co);
  margin-top: .8rem;
}

/* ---------- Galeria masonry (sem crop, proporção original) ---------- */
.gallery {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  column-count: 3;
  column-gap: .9rem;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: .9rem;
}

.gallery-item img {
  width: 100%;
  height: auto; /* proporção original preservada, nada de crop */
  display: block;
  transition: opacity .3s ease;
}

.gallery-item:hover img { opacity: .85; }

@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 23, 20, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--ch);
  font-size: 2.2rem;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Vídeo (institucional) — formato horizontal 16:9 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1160px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--ash);
  border: 1px solid var(--co15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--ch5);
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}

.video-placeholder strong {
  font-family: var(--sans);
  font-weight: 200;
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ch);
}

.video-card { display: flex; flex-direction: column; gap: .7rem; }
.video-embed { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bk); }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; object-fit: cover; }

.video-caption {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--co);
  text-align: center;
}

/* ---------- Sobre ---------- */
.sobre-foto { max-width: 900px; margin: 1.5rem auto; padding: 0 1.5rem; }

.sobre-foto figcaption {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--co);
  margin-top: .8rem;
  text-align: center;
}

/* ---------- Contato ---------- */
.contato-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 1.5rem 3rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 4rem 4rem 2.5rem;
  border-top: 1px solid var(--co15);
  text-align: center;
}

.footer-wordmark {
  font-family: var(--sans);
  font-weight: 200;
  letter-spacing: .3em;
  font-size: .85rem;
  color: var(--ch);
  display: inline-block;
  margin-bottom: 1.6rem;
}
.footer-wordmark:hover { text-decoration: none; color: var(--ch); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin-bottom: 1.6rem;
}

.footer-nav a {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ch5);
}
.footer-nav a:hover { color: var(--em); text-decoration: none; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin-bottom: 2.5rem;
}
.footer-contact a {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--co);
}
.footer-contact a:hover { color: var(--em); text-decoration: none; }

.copyright {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--co);
}

@media (max-width: 560px) {
  footer.site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-nav a, .footer-contact a, .copyright { font-size: .7rem; }
}
