/* Prime House — Eventos Corporativos v2 (proposta "Mosaico Editorial")
   Mesmo design system do brief: escuro cinema, Fraunces + Manrope, âmbar.
   Hero com drone em tela cheia + parede 3D de mídia + galeria horizontal. */

:root {
  --bg: #131518;
  --bg-2: #1a1d22;
  --bg-3: #22262c;
  --ink: #f7f2e9;
  --ink-dim: #cfc9bd;
  --muted: #9b968c;
  --amber: #f2a33c;
  --yellow: #ffd23f;
  --line: rgba(247, 242, 233, .1);
  --wa: #25d366;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; color: var(--amber); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.section-sub { color: var(--muted); max-width: 40rem; margin: .4rem auto 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn--gold { background: linear-gradient(135deg, var(--yellow), var(--amber)); color: #191204; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(242, 163, 60, .35); }
.btn--ghost { border-color: rgba(247, 242, 233, .35); color: var(--ink); background: rgba(19, 21, 24, .25); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--wa { background: var(--wa); color: #06130a; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, .35); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h); padding: 0 clamp(1.1rem, 4vw, 2.4rem);
  transition: background .45s, backdrop-filter .45s, border-color .45s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(19, 21, 24, .72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.header__brand img { height: 42px; width: auto; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .6)); }
.nav { display: flex; gap: 1.7rem; }
.nav a {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; transition: color .3s;
}
.nav a:hover { color: var(--amber); }
.header__cta { white-space: nowrap; padding: .7rem 1.2rem; font-size: .74rem; }
.navtoggle { display: none; }

/* ---------- Hero (drone em tela cheia) ---------- */
.hero { position: relative; height: 100svh; overflow: hidden; background: var(--bg-2); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(19, 21, 24, 0) 40%, rgba(19, 21, 24, .6) 100%),
    linear-gradient(180deg, rgba(19, 21, 24, .5) 0%, rgba(19, 21, 24, .08) 35%, rgba(19, 21, 24, .25) 70%, var(--bg) 100%);
}
.hero__content {
  position: relative; z-index: 5; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 1.2rem 12svh;
}
.hero__content h1 {
  font-size: clamp(2.6rem, 7.6vw, 5.6rem);
  max-width: 16ch; margin: 0 auto .25em;
  text-shadow: 0 8px 50px rgba(0, 0, 0, .65);
  text-wrap: balance;
}
.hero__content .sub { color: var(--ink-dim); max-width: 36rem; margin: 0 auto; text-shadow: 0 3px 20px rgba(0, 0, 0, .7); }
.hero__btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.hero__cue {
  position: absolute; left: 50%; bottom: 2.4svh; transform: translateX(-50%); z-index: 6;
  width: 24px; height: 40px; border: 1px solid rgba(247, 242, 233, .4); border-radius: 14px;
}
.hero__cue span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--amber); animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(12px); opacity: .25; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.05rem 0; background: var(--bg); white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquee 30s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.marquee__track span::after { content: "✦"; color: var(--amber); margin-left: 3rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grade editorial de mídia (bento) ---------- */
.bento { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: var(--bg); }
.bento__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.6rem, 5vw, 4rem); padding: 0 1.2rem; }
.bento__head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); text-wrap: balance; }
.bento__grid {
  display: grid; gap: clamp(.7rem, 1.2vw, 1.1rem);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(150px, 21vh));
  grid-template-areas:
    "a a b c"
    "a a b d"
    "e f g g"
    "h f g g";
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}
.bcell {
  position: relative; margin: 0; border-radius: 1rem; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: border-color .35s;
}
.bcell:hover { border-color: rgba(242, 163, 60, .45); }
.bcell video, .bcell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.bcell:hover video, .bcell:hover img { transform: scale(1.045); }
.b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; } .b-d { grid-area: d; }
.b-e { grid-area: e; } .b-f { grid-area: f; } .b-g { grid-area: g; } .b-h { grid-area: h; }
.tile__tag {
  position: absolute; left: .8rem; bottom: .8rem; z-index: 2;
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: rgba(19, 21, 24, .62); backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 242, 233, .16); padding: .38rem .7rem; border-radius: 999px;
}

/* ---------- Galeria horizontal "Ambientes" ---------- */
.amb { position: relative; background: var(--bg-2); overflow: hidden; }
.amb__inner { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.amb__head { max-width: 1180px; margin: 0 auto clamp(2rem, 4.5vw, 3.4rem); padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.amb__head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; text-wrap: balance; }
.amb__track {
  display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); align-items: flex-end;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem); width: max-content; will-change: transform;
}
.amb-card { flex: 0 0 auto; }
.amb-card__media {
  border-radius: 1.2rem; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -32px rgba(0, 0, 0, .9);
  height: min(62svh, 560px);
  transition: transform .35s, border-color .35s;
}
.amb-card:hover .amb-card__media { transform: translateY(-6px); border-color: rgba(242, 163, 60, .45); }
.amb-card--v .amb-card__media { aspect-ratio: 9 / 16; }
.amb-card--h .amb-card__media { aspect-ratio: 16 / 9; }
.amb-card__media video, .amb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.amb-card__txt { padding: 1rem .3rem 0; max-width: 30ch; }
.amb-card__txt .num { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1rem; letter-spacing: .1em; }
.amb-card__txt h3 { font-size: 1.3rem; margin: .15em 0 .2em; }
.amb-card__txt p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Seções regulares (mesmo vocabulário da v1) ---------- */
.section { position: relative; padding: clamp(4.2rem, 9vw, 7.5rem) 0; background: var(--bg); }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.4rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); text-wrap: balance; }

/* Números: seção curta pede respiro menor para manter o ritmo vertical */
#numeros.section { padding: clamp(3rem, 6vw, 5rem) 0; }

/* Números */
.numeros { display: flex; justify-content: center; gap: clamp(2rem, 7vw, 5.5rem); flex-wrap: wrap; text-align: center; }
.numeros strong {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: clamp(2.3rem, 6vw, 3.8rem); color: var(--amber); line-height: 1;
}
.numeros span { display: block; margin-top: .45rem; color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* Pacotes */
.grid-pacotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.pacote {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: 1.1rem; padding: 1.8rem 1.6rem; transition: border-color .3s, transform .3s;
}
.pacote:hover { border-color: rgba(242, 163, 60, .55); transform: translateY(-6px); }
.pacote--destaque { border-color: var(--amber); background: linear-gradient(180deg, rgba(242, 163, 60, .08), rgba(19, 21, 24, 0) 45%); }
.pacote h3 { font-size: 1.5rem; margin-bottom: .1em; }
.pacote .cap { color: var(--amber); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.pacote .tagline { color: var(--muted); font-size: .9rem; margin: .7rem 0 1rem; }
.pacote ul { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1; }
.pacote li { padding: .42rem 0 .42rem 1.4rem; position: relative; font-size: .9rem; color: var(--ink-dim); border-bottom: 1px dashed rgba(247, 242, 233, .07); }
.pacote li::before { content: "✦"; position: absolute; left: 0; color: var(--amber); font-size: .7rem; top: .55rem; }
.pacote .btn { justify-content: center; }

/* Jornada */
.jornada { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.passo { position: relative; padding: 1.4rem 1.2rem 1.2rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 1rem; transition: border-color .3s, transform .3s; }
.passo:hover { border-color: rgba(242, 163, 60, .45); transform: translateY(-4px); }
.passo span { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1.5rem; }
.passo h3 { font-size: 1.05rem; margin: .3em 0 .3em; }
.passo p { color: var(--muted); font-size: .84rem; margin: 0; }

/* Depoimentos */
.depo { max-width: 780px; margin: 0 auto; text-align: center; }
.depo blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.5; color: var(--ink);
}
.depo blockquote::before { content: "“"; color: var(--amber); font-size: 2.2em; display: block; line-height: .6; margin-bottom: .3rem; }
.depo figcaption { margin-top: 1.4rem; color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: .9rem; margin-bottom: .8rem; background: var(--bg); overflow: hidden; transition: border-color .3s; }
.faq__item:hover { border-color: rgba(242, 163, 60, .35); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; font-size: .98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-display); color: var(--amber); font-size: 1.4rem; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item div { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* ---------- CTA final (drone 2) ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(6rem, 14vw, 10rem) 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg video, .cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 90% at 50% 45%, rgba(19, 21, 24, .1) 30%, rgba(19, 21, 24, .78) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(19, 21, 24, .2) 28%, rgba(19, 21, 24, .3) 70%, var(--bg) 100%);
}
.cta .wrap { position: relative; z-index: 2; text-align: center; }
.cta h2 { font-size: clamp(2rem, 5.2vw, 3.8rem); max-width: 20ch; margin: 0 auto .3em; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
/* Cursor do efeito de digitação (classe aplicada pelo mosaic.js durante o typing) */
.cta h2.is-typing::after {
  content: "|"; font-style: normal; color: var(--amber); margin-left: .06em;
  animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.cta .sub { color: var(--ink-dim); margin: 0 auto 1.5rem; max-width: 34rem; }
.cta .btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* Contato / formulário */
.contato__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contato__info h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.contato__info p { color: var(--muted); max-width: 30rem; }
.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.8rem; }
.form .campo { margin-bottom: 1rem; }
.form label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); border: 1px solid rgba(247, 242, 233, .18); border-radius: .55rem;
  color: var(--ink); font: inherit; font-size: .95rem; padding: .75rem .9rem;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--amber); outline: none; }
.form .duo { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .lgpd { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.form .lgpd input { width: auto; margin-top: .2rem; }
.form .status { min-height: 1.3rem; font-size: .86rem; margin: .6rem 0 0; }
.form .status.ok { color: #6fcf97; }
.form .status.err { color: #ff8a80; }
.form .hpot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form .acoes { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.6rem 0 2rem; }
.footer__grid { display: flex; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer img { height: 44px; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer nav a { color: var(--ink-dim); text-decoration: none; font-size: .84rem; }
.footer nav a:hover { color: var(--amber); }
.footer__legal { color: var(--muted); font-size: .74rem; margin: 1.6rem 0 0; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center; color: #06130a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }

/* Reveal (estado inicial vem do GSAP; sem JS os elementos ficam visíveis) */
html.reduced .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-pacotes { grid-template-columns: 1fr 1fr; }
  .jornada { grid-template-columns: repeat(2, 1fr); }
  .contato__grid { grid-template-columns: 1fr; }
  .bento__grid { grid-template-rows: repeat(4, minmax(130px, 17vh)); }
}
@media (max-width: 768px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; gap: 0; background: rgba(19, 21, 24, .97);
    border-bottom: 1px solid var(--line); display: none; padding: .6rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1.6rem; }
  .navtoggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: .5rem;
    color: var(--ink); font-size: 1.15rem; padding: .35rem .65rem; cursor: pointer;
  }
  .grid-pacotes { grid-template-columns: 1fr; }
  .jornada { grid-template-columns: 1fr; }
  .form .duo { grid-template-columns: 1fr; }
  /* Bento no mobile: 2 colunas, blocos grandes em largura cheia, tudo inteiro */
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, minmax(140px, 22vh));
    grid-template-areas:
      "a a"
      "a a"
      "b f"
      "b f"
      "g g"
      "d h";
  }
  .b-c, .b-e { display: none; }
  .tile__tag { font-size: .58rem; padding: .3rem .55rem; left: .6rem; bottom: .6rem; }
  /* Header: CTA compacto para não competir com o hambúrguer */
  .header__cta { padding: .55rem .95rem; font-size: .64rem; letter-spacing: .05em; }
  /* Galeria vira rolagem nativa com snap */
  .amb__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .8rem; }
  .amb-card { scroll-snap-align: center; }
  .amb-card__media { height: min(58svh, 480px); }
  /* CTA final: botões em coluna estreita para o wa-float não cobrir */
  .cta .btns { flex-direction: column; align-items: center; }
  .cta .btns .btn { width: min(100%, 280px); justify-content: center; }
  .cta { padding-bottom: clamp(7rem, 18vw, 9rem); }
  .wa-float { width: 48px; height: 48px; right: .9rem; bottom: .9rem; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* Reduced motion: tudo estático e navegável (typing nunca roda; texto já
   está completo no HTML e o mosaic.js não o divide nesse modo) */
@media (prefers-reduced-motion: reduce) {
  .hero__cue { display: none; }
  .marquee__track { animation: none; }
  .amb__track { width: auto; overflow-x: auto; }
  .cta h2.is-typing::after { display: none; }
  .bcell, .bcell video, .bcell img, .pacote, .passo, .amb-card__media, .btn, .faq__item { transition: none; }
}
