/* Target Filmes — Cinematic Dark Theme */
:root {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --accent: #95d251;
  --accent-hover: #a8e063;
  --overlay: rgba(0, 0, 0, 0.72);
  --border: rgba(245, 245, 247, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 300ms var(--ease); }
a:hover { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-list {
  display: flex;
  gap: 14px;
  list-style: none;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  color: #ffffff;
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background 300ms var(--ease);
}
.social-list a:hover,
.social-list a:active,
.social-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(149, 210, 81, 0.08);
}
.social-list svg { width: 16px; height: 16px; }

.header-email {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding-left: 20px;
  border-left: 1px solid var(--text-dim);
}
.header-email:hover { color: var(--accent); }

/* ===== HERO / INTRO ===== */
.intro {
  padding: 80px 0 48px;
  text-align: center;
}
.intro-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.intro-title em {
  font-style: italic;
  color: var(--accent);
}
.intro-sub {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio {
  padding: 24px 0 96px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 2px; }
  .container { padding: 0 24px; }
}

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev);
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 700ms var(--ease) forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.card-thumb {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  transition: transform 600ms var(--ease);
}
.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
}
.card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
}

.card-play {
  align-self: center;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.card-play svg { width: 24px; height: 24px; margin-left: 3px; }

.card-info {
  color: var(--text);
}
.card-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-meta .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 8px;
  vertical-align: middle;
}

/* Hover (desktop) */
@media (hover: hover) {
  .card:hover .card-thumb { transform: scale(1.04); }
  .card:hover .card-overlay { opacity: 1; }
  .card:hover .card-play { background: var(--accent); color: #0a0a0a; transform: scale(1.05); }
}

/* Revealed state (touch first-tap OR mouse hover via JS) */
.card.is-revealed .card-overlay { opacity: 1; }
.card.is-revealed .card-thumb { transform: scale(1.04); }
.card.is-revealed .card-play { background: var(--accent); color: #0a0a0a; transform: scale(1.05); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  animation: lbFade 240ms var(--ease) forwards;
}
.lightbox[hidden] { display: none; }

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  transform: scale(0.95);
  opacity: 0;
  animation: lbScale 260ms var(--ease) 40ms forwards;
}

@keyframes lbScale {
  to { transform: scale(1); opacity: 1; }
}

.lightbox-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 300ms var(--ease);
}
.lightbox-close:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.lightbox-close svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .lightbox-close { top: -44px; }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Email icon only on mobile */
.social-email-mobile { display: none; }

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 720px) {
  .header-inner { gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .header-email { display: none; }
  .header-right { gap: 12px; margin-left: auto; justify-content: flex-end; }
  .social-list { gap: 8px; }
  .social-list a { width: 32px; height: 32px; }
  .social-email-mobile { display: list-item; }
}

.lightbox-caption {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 8px;
  color: var(--text-dim);
  text-align: center;
}
.lightbox-caption h3 {
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.lightbox-caption .lb-category {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lightbox-caption .lb-details {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.lightbox-caption .lb-details .lb-seg {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lightbox-caption .lb-details { display: flex; flex-direction: column; gap: 4px; align-items: center; }
  .lightbox-caption .lb-details .lb-sep { display: none; }
}

/* ===== CONTACT BUTTON + MODAL ===== */
.btn-contato {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn-contato:hover,
.btn-contato:active,
.btn-contato:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(149, 210, 81, 0.08);
  outline: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: lbFade 200ms var(--ease);
}
.contact-modal[hidden] { display: none; }

.contact-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px 32px;
  color: var(--text);
  transform: scale(0.96);
  opacity: 0;
  animation: lbScale 240ms var(--ease) 40ms forwards;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 300ms var(--ease);
}
.contact-close:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.contact-close svg { width: 14px; height: 14px; }

.contact-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-person {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.contact-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.contact-row {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.contact-link { color: var(--text); border-bottom: 1px solid transparent; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.contact-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
