/* ============================================
   FORSTER FILMES — Site Institucional
   Design system: Apple-inspired, Inter font
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000;
  --white: #fff;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #1d1d1f;
  --gray-900: #111;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px — Apple default */
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Typography --- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gray-800);
  text-wrap: balance;
}

.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav--hero {
  background: transparent;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.4s ease;
}

.nav--scrolled .nav__logo {
  color: var(--gray-800);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.nav__links a:hover {
  color: var(--white);
}

.nav--scrolled .nav__links a {
  color: var(--gray-600);
}

.nav--scrolled .nav__links a:hover {
  color: var(--gray-800);
}

/* --- HERO (Typography-only version) --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero--type {
  background: var(--white);
}

.hero--video {
  background: var(--black);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
}

/* Hero tipográfico */
.hero__title-large {
  font-size: clamp(4.5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--gray-800);
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: var(--gray-400);
  margin: 2rem auto;
}

.hero__tagline {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Hero com vídeo (quando showreel estiver pronto) */
.hero--video .hero__title-large {
  color: var(--white);
}

.hero--video .hero__divider {
  background: rgba(255, 255, 255, 0.3);
}

.hero--video .hero__tagline {
  color: rgba(255, 255, 255, 0.6);
}

/* Nav branco quando hero é tipográfico */
.hero--type ~ .nav .nav__logo,
.nav--hero-light .nav__logo {
  color: var(--gray-800);
}

.nav--hero-light .nav__links a {
  color: var(--gray-600);
}

.nav--hero-light .nav__links a:hover {
  color: var(--gray-800);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gray-400);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero--video .hero__scroll-hint span {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- TRABALHOS --- */
.trabalhos {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trabalhos .section-title {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.trabalhos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trabalho-card--featured {
  grid-column: 1 / -1;
}

.trabalho-card--featured .trabalho-card__img {
  aspect-ratio: 21 / 9;
}

.trabalho-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
}

.trabalho-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trabalho-card:hover {
  transform: scale(1.02);
}

.trabalho-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.trabalho-card__img img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trabalho-card:hover .trabalho-card__img img {
  transform: scale(1.05);
}

.trabalho-card__info {
  padding: 1.25rem 1.5rem;
}

.trabalho-card__info h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-800);
}

.trabalho-card__info p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* --- SOBRE --- */
.sobre {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--gray-100);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sobre__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.sobre .section-title {
  margin-bottom: 2rem;
}

.sobre__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.sobre__body--subtle {
  font-size: 0.9375rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 1.5rem;
}

.sobre__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.sobre__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
}

.sobre__roles {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
}

.sobre__role strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.sobre__role span {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* --- CONTATO --- */
.contato {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--gray-900);
  color: var(--white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contato__inner {
  max-width: 720px;
}

.contato .section-eyebrow {
  color: rgba(255, 255, 255, 0.4);
}

.contato__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.contato__body {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contato__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contato__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.contato__link:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contato__link:hover {
  opacity: 0.7;
}

.contato__link-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contato__link-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--white);
}

/* --- FOOTER --- */
.footer {
  background: var(--black);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Animations (scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }

  .trabalhos,
  .sobre,
  .contato {
    min-height: auto;
  }

  .nav__links {
    gap: 1.25rem;
  }

  .nav__links a {
    font-size: 0.75rem;
  }

  .hero__content {
    padding-bottom: 15vh;
  }

  .hero__sub br {
    display: none;
  }

  .trabalhos__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sobre__layout {
    grid-template-columns: 1fr;
  }

  .sobre__image {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .sobre__roles {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contato__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .trabalho-card__info {
    padding: 1rem 1.25rem;
  }
}
