/* ===================================================================
   TNB FILMES — section & component styles
   =================================================================== */

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 13px var(--pad);
  background: rgba(11,10,9,0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { height: 30px; width: auto; display: block; }
.brand-lockup { height: 44px; width: auto; display: block; }
.brand .mark { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.16em; }
.brand .sub { font-family: var(--display); font-weight: 300; font-size: 1.25rem; letter-spacing: 0.16em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.96rem;
  padding: 9px 16px; border-radius: 999px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    background: rgba(13,11,9,0.96); backdrop-filter: blur(20px);
    padding: 40px 26px; transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; padding: 14px 18px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: block; z-index: 1100; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* slider of background videos */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide .hs-thumb {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: #14110d;
}
.hero-slide::before { /* cinematic gradient wash so it never looks empty */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 70% at 28% 22%, var(--p1), transparent 60%),
    radial-gradient(70% 80% at 80% 78%, var(--p2), transparent 60%);
  mix-blend-mode: screen; opacity: .9;
}
.hero-slide .hs-video { position: absolute; inset: 0; z-index: 2; }
.hero-slide .hs-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%;
  border: 0; pointer-events: none;
}
.hero-bg .scan { /* faint anamorphic streaks + vignette */
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px),
    radial-gradient(120% 100% at 50% 42%, transparent 46%, rgba(0,0,0,0.78));
}
.hero-bg .bars { position: absolute; inset: 0; z-index: 3; }
.hero-bg .bars::before, .hero-bg .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7vh; background: #000;
}
.hero-bg .bars::before { top: 0; } .hero-bg .bars::after { bottom: 0; }

.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--pad) 60px; }
.hero .display { max-width: 16ch; margin: 0 auto; }
.hero-sub { max-width: 56ch; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: nowrap; justify-content: center; }
@media (max-width: 540px) { .hero-ctas { flex-wrap: wrap; } }
.hero-logo-img { height: clamp(62px, 10vw, 116px); width: auto; margin-bottom: 28px; filter: drop-shadow(0 6px 28px rgba(0,0,0,.5)); }
.hero-logo { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 30px; }
.hero-logo .mark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.2em; }
.hero-logo .sub { font-family: var(--display); font-weight: 300; font-size: 1.4rem; letter-spacing: 0.2em; color: var(--muted); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--faint); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero-reel { display: inline-flex; align-items: center; gap: 11px; margin-top: 26px; padding: 9px 9px 9px 9px; background: none; border: 0; cursor: pointer; color: var(--muted); font-family: var(--body); font-weight: 500; font-size: 0.98rem; transition: color .3s; }
.hero-reel:hover { color: var(--text); }
.hero-reel .rp { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.hero-reel:hover .rp { background: var(--gold); color: #1a1510; transform: scale(1.08); }
.hero-scroll .mouse { width: 22px; height: 34px; border: 1.5px solid var(--faint); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, 9px); } }

/* hero slider UI */
.hero-slider-ui {
  position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
}
.hsbtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 999px; padding: 8px; line-height: 0; transition: background .25s, border-color .25s, color .25s, transform .25s;
  font-family: var(--body); font-size: 0.82rem; font-weight: 600;
}
.hsbtn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.hs-add { padding: 8px 15px; color: var(--gold); border-color: rgba(217,179,101,0.4); }
.hs-add:hover { background: var(--gold-soft); }
.hs-reset { color: var(--muted); }
.hsbar { width: 1px; height: 20px; background: var(--line-2); }
.hero-dots { display: flex; align-items: center; gap: 11px; padding: 0 2px; }
.hero-dot { width: 30px; height: 4px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(245,240,230,0.28); overflow: hidden; position: relative; transition: background .25s; }
.hero-dot .hd-fill { position: absolute; inset: 0; width: 0; background: var(--gold); border-radius: 999px; }
.hero-dot.active { background: rgba(245,240,230,0.3); }
.hero-dot.active .hd-fill { width: 100%; transition: width 11s linear; }
@media (max-width: 560px) {
  .hero-slider-ui { bottom: 64px; gap: 8px; }
  .hs-add { font-size: 0.76rem; }
}

/* trust strip */
.trust { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 22px var(--pad); display: flex; align-items: center; gap: clamp(20px,4vw,52px); justify-content: center; flex-wrap: wrap; background: rgba(8,7,6,0.4); }
.trust .lbl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.trust .logo { height: 16px; width: 84px; border-radius: 4px; background: rgba(245,240,230,0.16); }

/* ── Sobre ────────────────────────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.sobre-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sobre-media { position: relative; }
.sobre-media .poster { aspect-ratio: 4/5; }
.sobre-media image-slot { width: 100%; height: 100%; }
.float-badge { position: absolute; bottom: -22px; left: -22px; padding: 18px 22px; }
.float-badge .n { font-family: var(--display); font-weight: 600; font-size: 2rem; color: var(--gold); line-height: 1; }
.float-badge .t { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 86px); }
.metric { padding: 30px 26px; }
.metric .num { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -0.03em; }
.metric .num .suf { color: var(--gold); }
.metric .lbl { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }
.metric .hr { height: 1px; background: var(--line); margin: 18px 0 0; }
@media (max-width: 860px) { .sobre-grid { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2,1fr); } }

/* ── Portfólio ────────────────────────────────────────────────── */
.port-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.port-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--line); aspect-ratio: 16 / 9;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.case::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(7,6,5,0.9) 0%, rgba(7,6,5,0.55) 24%, rgba(7,6,5,0.05) 48%, transparent 66%); opacity: .9; transition: opacity .5s; }
.case:hover::after { opacity: 1; }
.case:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -28px rgba(0,0,0,0.8); }
.case .poster { position: absolute; inset: 0; border-radius: 0; }
.case .poster image-slot { width: 100%; height: 100%; }
.case-body { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.case-cat { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.case-title { font-family: var(--display); font-weight: 500; font-size: 1.42rem; margin-top: 7px; letter-spacing: -0.02em; line-height: 1.12; }
.case-reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease); margin-top: 0; }
.case:hover .case-reveal { max-height: 170px; opacity: 1; margin-top: 11px; }
.case-reveal .desc { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.case-watch { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-weight: 600; color: var(--text); font-size: 0.92rem; }
.case-watch .play { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.case-idx { position: absolute; top: 16px; right: 18px; z-index: 4; font-family: var(--mono); font-size: 0.7rem; color: rgba(243,239,231,0.6); }

@media (max-width: 920px) { .port-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .case-reveal { max-height: 170px; opacity: 1; margin-top: 11px; }
}
@media (max-width: 540px) { .port-grid { grid-template-columns: 1fr; } }

/* ── Notícias ─────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 52px); }
.news-feat .poster { aspect-ratio: 16/10; margin-bottom: 22px; }
.news-feat image-slot { width: 100%; height: 100%; }
.news-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.news-feat .news-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 14px; letter-spacing: -0.02em; }
.news-feat .news-excerpt { color: var(--muted); margin-top: 14px; max-width: 52ch; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); cursor: pointer; transition: opacity .3s; align-items: center; }
.news-item:first-child { border-top: 0; }
.news-item:hover { opacity: 1; }
.news-item:hover .news-title-sm { color: var(--gold); }
.news-item .thumb { aspect-ratio: 3/2; border-radius: var(--r-sm); }
.news-item image-slot { width: 100%; height: 100%; }
.news-title-sm { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.2; margin-top: 8px; transition: color .3s; letter-spacing: -0.01em; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ── Contato ──────────────────────────────────────────────────── */
.contato { background: linear-gradient(180deg, var(--bg), #0d0b09); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contato-info { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.info-row { display: flex; align-items: center; gap: 14px; }
.info-row .ic { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); flex: 0 0 auto; }
.info-row .ic svg { width: 18px; height: 18px; }
.info-row .v { font-weight: 500; color: var(--text); text-decoration: none; transition: color .25s; }
a.info-row .v, .info-row a.v { cursor: pointer; }
.info-row a.v:hover { color: var(--gold); }
.info-row .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.form { padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: rgba(0,0,0,0.25); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text); font-family: var(--body); font-size: 1rem; padding: 14px 16px; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: rgba(0,0,0,0.35); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form .btn-primary { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--faint); }
@media (max-width: 860px) { .contato-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: #080706; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: clamp(54px,7vw,80px) 0 50px; }
.footer .brand .mark { font-size: 1.4rem; }
.footer-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 400; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-blurb { color: var(--muted); max-width: 32ch; margin-top: 18px; font-size: 0.96rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ── Case modal ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: var(--pad); }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,5,4,0.8); backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; z-index: 2; width: min(940px, 100%); max-height: 88vh; overflow: hidden; border-radius: var(--r-lg); background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9); transform: translateY(20px) scale(.98); opacity: 0; transition: transform .5s var(--ease), opacity .4s; display: flex; flex-direction: column; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-media { position: relative; aspect-ratio: 16/9; }
.modal-media .poster { position: absolute; inset: 0; border-radius: 0; }
.modal-media image-slot { width: 100%; height: 100%; }
.modal-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; cursor: pointer; }
.modal-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
.modal-media.playing .modal-play { opacity: 0; pointer-events: none; }
.modal-play .pbtn { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); background: rgba(20,16,12,0.4); display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); transition: transform .3s, background .3s; }
.modal-play:hover .pbtn { transform: scale(1.07); background: rgba(217,179,101,0.35); }
.modal-body { padding: clamp(24px, 3vw, 38px); overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,9,8,0.6); color: var(--text); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .25s, transform .25s; }
.modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.modal-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modal-stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.modal-stats .s .n { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--gold); }
.modal-stats .s .l { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
