/* =========================================================
   IG Produtora — Landing Page
   Mobile-first. Cores oficiais: marinho #022A45 · dourado #D7A448
   ========================================================= */

:root {
  --navy: #022A45;
  --navy-deep: #011C2F;
  --navy-soft: #0A3657;
  --gold: #D7A448;
  --gold-light: #E6BF73;
  --cream: #F6F2EA;
  --paper: #FBF9F5;
  --ink: #0E1E2B;
  --muted: #56636E;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(2, 42, 69, .12);

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --gutter: 20px;
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Tipografia base ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-dark { color: #9A7426; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 20ch;
}
.lead { font-size: 18px; line-height: 1.6; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(1, 28, 47, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand img { width: 46px; height: auto; }
.header-inner .btn { margin-left: auto; }
.main-nav {
  position: fixed; inset: 72px 0 auto; background: var(--navy-deep);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav a { color: #fff; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.nav-toggle {
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 8px;
}
.nav-toggle span { height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy);
  color: #fff; overflow: hidden; padding: 120px 0 96px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-frame i { position: absolute; width: 22px; height: 22px; border-color: rgba(215, 164, 72, .55); border-style: solid; border-width: 0; }
.hero-frame i:nth-child(1) { top: 92px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: 92px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: 24px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: 24px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 7.4vw, 60px); line-height: 1.08; letter-spacing: -.025em;
  max-width: 14ch; margin-bottom: 28px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 46ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 48px; background: rgba(255, 255, 255, .2); overflow: hidden;
}
.scroll-cue span { position: absolute; inset: 0; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
main section[id] { scroll-margin-top: 48px; }
.section-tight-top { padding-top: 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--navy-deep); color: #fff; }
.section-head { margin-bottom: 48px; }

/* Quem somos */
.about { display: grid; gap: 40px; }
.about-text p:not(.lead):not(.eyebrow) { color: var(--muted); }
.about-text .section-title { margin-bottom: 24px; }

/* Espaços reservados para fotos/vídeos ainda não enviados */
.about-media { margin: 0; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.media-slot {
  position: relative; aspect-ratio: 4 / 5; background: var(--navy);
  display: grid; place-items: center; overflow: hidden; border-radius: var(--radius);
}
.media-slot[data-pending]::after {
  content: "Reservado · " attr(data-pending);
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font: 600 10px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); border-top: 1px dashed rgba(215, 164, 72, .45); padding-top: 10px;
}
.media-slot img.is-photo, .media-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* Serviços */
.pillar { border-top: 1px solid var(--line-light); padding: 32px 0 40px; }
.pillar-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.pillar-num { font: 700 14px var(--font-display); color: #9A7426; }
.pillar-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.cards { display: grid; gap: 16px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold);
  transition: width .5s var(--ease);
}
.card:hover { border-color: rgba(215, 164, 72, .5); box-shadow: 0 18px 40px -24px rgba(2, 42, 69, .35); transform: translateY(-3px); }
.card:hover::before { width: 100%; }
.card-icon { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--muted); font-size: 15px; }
.card .card-benefit { color: var(--navy); font-weight: 600; font-size: 14px; padding-left: 14px; border-left: 2px solid var(--gold); }
.card-link {
  margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.card-link span { display: inline-block; transition: transform .3s var(--ease); color: #9A7426; }
.card-link:hover span { transform: translateX(4px); }

/* Trabalhos */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-dark); margin-bottom: 32px; }
.tabs button {
  background: none; border: 0; color: rgba(255, 255, 255, .55); cursor: pointer;
  font: 600 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  padding: 0 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: #fff; border-color: var(--gold); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
.gallery-item {
  position: relative; margin: 0; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--navy); color: #fff; font: inherit;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption, .gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(1, 28, 47, .88));
  font: 600 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.gallery-wide { grid-column: span 2; }
button.gallery-item { cursor: pointer; }
.play {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(215, 164, 72, .94); display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .35s var(--ease);
}
.play::before {
  content: ""; margin-left: 4px;
  border-left: 15px solid var(--navy-deep); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
button:hover .play { transform: scale(1.1); }
.works { display: grid; gap: 16px; }
.work { position: relative; border: 0; padding: 0; background: var(--navy); cursor: pointer; text-align: left; color: #fff; overflow: hidden; border-radius: var(--radius); }
.work img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .85; }
.work:hover img { transform: scale(1.04); opacity: 1; }
.work-meta { position: absolute; inset: auto 0 0; padding: 48px 18px 18px; background: linear-gradient(transparent, rgba(1, 28, 47, .9)); }
.works-note { grid-column: 1 / -1; margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.works-note a { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(215, 164, 72, .4); }
.works-note a:hover { border-color: var(--gold); }
.work-meta strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.work-meta small { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 600; }

/* Diferenciais */
.features { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.feature { padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Como funciona */
#como-funciona { padding-top: 88px; background: var(--cream); }
.steps { display: grid; gap: 32px; margin-bottom: 48px; counter-reset: s; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: -4px; font: 800 30px/1 var(--font-display); color: var(--gold);
}
.step h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Depoimentos */
.testimonials { display: grid; gap: 20px; }
.testimonial { margin: 0; border-top: 1px solid var(--gold); padding-top: 24px; }
.testimonial p { font: 600 20px/1.45 var(--font-display); }
.testimonial footer strong { display: block; }
.testimonial footer span { color: rgba(255, 255, 255, .6); font-size: 14px; }

/* Formulário */
.lead-grid { display: grid; gap: 40px; }
.lead-intro .section-title { margin-bottom: 20px; }
.lead-intro .lead { color: var(--muted); }
.lead-alt { font-weight: 600; color: var(--navy); }
.lead-alt a { color: #9A7426; }
.lead-form {
  display: grid; gap: 18px; background: #fff; border: 1px solid var(--line-light);
  padding: 28px 20px; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(2, 42, 69, .4);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 500 16px var(--font-body); color: var(--ink);
  border: 1px solid #CBD2D8; border-radius: var(--radius); background: var(--paper);
  padding: 13px 14px; width: 100%; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(215, 164, 72, .22);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.field-check label { font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.5; }
.field-check a { color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.form-success {
  background: var(--navy); color: #fff; padding: 40px 28px; border-radius: var(--radius); text-align: left;
}
.form-success img { margin-bottom: 24px; }
.form-success h3 { font: 800 26px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 12px; }
.form-success p { color: rgba(255, 255, 255, .75); margin-bottom: 28px; }

/* CTA final */
.final-cta {
  background: var(--navy);
  color: #fff; padding: 104px 0; text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.final-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 5vw, 46px); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.final-cta em { font-style: normal; color: var(--gold); }

/* Rodapé */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 150px; height: auto; }
.footer-col h2 { font: 600 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 13px; }
.footer-bottom p { margin: 0; }

/* WhatsApp fixo */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 12px 30px -10px rgba(1, 28, 47, .6);
  transition: transform .3s var(--ease), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }

/* Aviso de cookies */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 60;
  background: var(--navy-deep); color: rgba(255, 255, 255, .85); border: 1px solid var(--line-dark);
  padding: 18px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.consent p { margin-bottom: 14px; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 480px); width: 100%; }
.lightbox::backdrop { background: rgba(1, 16, 28, .92); }
.lightbox video { width: 100%; max-height: 86vh; background: #000; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(1, 28, 47, .7); color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-actions { flex-direction: row; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lead-form { grid-template-columns: 1fr 1fr; padding: 36px; }
  .field-full { grid-column: 1 / -1; }
  .btn-block { width: auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .consent { left: auto; right: 88px; bottom: 16px; max-width: 420px; }
  .hero-frame i:nth-child(1), .hero-frame i:nth-child(3) { left: 32px; }
  .hero-frame i:nth-child(2), .hero-frame i:nth-child(4) { right: 32px; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  .section { padding: 128px 0; }
  .section-tight-top { padding-top: 0; }
  #como-funciona { padding-top: 128px; }

  .nav-toggle { display: none; }
  .main-nav {
    position: static; flex-direction: row; gap: 36px; padding: 0; background: none;
    opacity: 1; visibility: visible; transform: none; margin-left: auto;
  }
  .main-nav a { border: 0; padding: 6px 0; font-size: 14px; color: rgba(255, 255, 255, .8); position: relative; }
  .main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .main-nav a:hover { color: #fff; }
  .main-nav a:hover::after { transform: scaleX(1); }
  .header-inner { height: 88px; }
  .header-inner .btn { margin-left: 20px; }
  .brand img { width: 52px; }

  .hero { padding: 140px 0 120px; }
  .hero-sub { font-size: 19px; }
  .hero-frame i:nth-child(1), .hero-frame i:nth-child(2) { top: 112px; }
  .hero-frame i:nth-child(1), .hero-frame i:nth-child(3) { left: 40px; }
  .hero-frame i:nth-child(2), .hero-frame i:nth-child(4) { right: 40px; }
  .hero-frame i:nth-child(3), .hero-frame i:nth-child(4) { bottom: 40px; }

  .about { grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; }
  .lead { font-size: 20px; }

  .pillar { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 0 56px; }
  .pillar-head { flex-direction: column; gap: 10px; margin: 0; position: sticky; top: 120px; align-self: start; }
  .pillar-head h3 { font-size: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card { padding: 32px 28px; }

  .gallery { grid-auto-rows: 320px; gap: 16px; }
  .works { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .features { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 32px; }
  .feature { border: 0; border-top: 1px solid var(--gold); padding: 28px 0 0; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
  .steps::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--line-light); }
  .step { padding: 64px 0 0; }
  .step-num { top: 0; background: var(--cream); padding-right: 16px; }

  .testimonials { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .lead-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .lead-form { padding: 44px; }
  .lead-grid .form-success { grid-column: 2; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}
