/* Elementar Escape Room — identidade: preto + laranja #F37421, fontes Vipnagorgialla e Pier Sans */
@font-face { font-family: 'Vipnagorgialla'; src: url('../fonts/vipnagorgialla.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Piersans'; src: url('../fonts/piersans-medium.otf') format('opentype'); font-weight: 400 700; font-display: swap; }

:root {
  --orange: #f37421;
  --orange-hi: #ff8a42;
  --orange-lo: #c95a12;
  --orange-glow: rgba(243, 116, 33, .35);
  --bg: #080808;
  --bg-2: #0f0f0f;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f3efe9;
  --muted: #a8a199;
  --dim: #6f6a64;
  --ok: #35e27a;
  --danger: #ff5a5f;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Vipnagorgialla', 'Segoe UI', sans-serif;
  --font-body: 'Piersans', 'Segoe UI', system-ui, sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #000; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.nw { white-space: nowrap; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.accent { color: var(--orange); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); letter-spacing: .02em; white-space: nowrap;
  transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: #120700; box-shadow: 0 8px 28px -8px var(--orange-glow); }
.btn-primary:hover { background: var(--orange-hi); transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(243, 116, 33, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }

/* Aviso no topo */
.announce {
  display: block; background: var(--orange); color: #120700; text-align: center;
  font: 600 .9rem/1.3 var(--font-body); padding: 9px 16px;
}
.announce:hover { background: var(--orange-hi); }
.announce span { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 8, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(8, 8, 8, .92); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .98rem;
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-right: -10px; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .25s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 8, 8, .98); border-bottom: 1px solid var(--line); padding: 10px 20px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; background: none !important; }
  .nav .btn { margin: 18px 0 0; }
}

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-h)); display: flex; align-items: center;
  padding: 80px 0 64px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 85% 50%, transparent, rgba(8, 8, 8, .55) 60%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 8, .92) 35%, rgba(8, 8, 8, .35) 75%, rgba(8, 8, 8, .6) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-mark {
  position: absolute; right: -6vw; top: 50%; width: min(52vw, 640px); transform: translateY(-50%) rotate(0deg);
  opacity: .07; z-index: -1; pointer-events: none;
}
.hero-content { max-width: 680px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #d8d2ca; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .98rem; }
.facts svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.facts strong { color: var(--text); font-weight: 600; }

/* Ícones genéricos */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Salas */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.room {
  --room: var(--orange);
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow: hidden; transition: border-color .3s, transform .3s;
}
.room:hover { border-color: color-mix(in srgb, var(--room) 55%, var(--line)); transform: translateY(-3px); }
.room-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #000; }
.room-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s ease; transform-origin: center top; }
.room:hover .room-media img { transform: scale(1.04); }
.room-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, transparent 45%); }
.room-tag {
  position: absolute; bottom: 14px; left: 28px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .7); border: 1px solid color-mix(in srgb, var(--room) 60%, transparent); color: var(--room);
  font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.room-body { padding: 4px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.room h3 { font-size: 1.8rem; margin-bottom: 14px; }
.room p { color: var(--muted); font-size: 1rem; }
.room-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 24px; }
.meta { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.meta small { display: block; color: var(--dim); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.meta strong { font-weight: 600; font-size: 1.02rem; }
.difficulty { display: inline-flex; gap: 4px; vertical-align: middle; }
.difficulty i { width: 8px; height: 14px; border-radius: 2px; background: var(--line-2); transform: skewX(-12deg); }
.difficulty i.on { background: var(--room); }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.price small { display: block; color: var(--dim); font-size: .8rem; }
.price strong { font-weight: 600; font-size: 1.75rem; color: var(--text); }
.price span { color: var(--muted); font-size: .9rem; }

/* Como funciona */
.bg-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin-top: 64px; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 20px; right: 22px;
  font-family: var(--font-display); font-size: 1.9rem; color: var(--line-2);
}
.step .ico { width: 34px; height: 34px; color: var(--orange); margin-bottom: 22px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.puzzles { display: grid; gap: 14px; }
.puzzle { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.puzzle .ico-box { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 116, 33, .1); color: var(--orange); }
.puzzle h3 { font-size: 1.02rem; margin-bottom: 4px; }
.puzzle p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Eventos (aniversário / empresa) */
.event { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.feature-list .ico { width: 24px; height: 24px; color: var(--orange); margin-top: 2px; }
.feature-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: .98rem; }
.party-card {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 44px); overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(243, 116, 33, .28), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.party-card img { position: absolute; right: -60px; bottom: -60px; width: 260px; opacity: .08; }
.party-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.party-card p { color: #d6d0c8; }
.party-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 28px; }
.party-stats div { padding: 16px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.party-stats strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--orange); }
.party-stats span { color: var(--muted); font-size: .9rem; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.format { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.format .ico { width: 32px; height: 32px; color: var(--orange); margin-bottom: 18px; }
.format h3 { font-size: 1.1rem; margin-bottom: 10px; }
.format p { color: var(--muted); font-size: .97rem; margin: 0; }
.format.wide { grid-column: span 2; background: radial-gradient(circle at 0% 100%, rgba(243, 116, 33, .16), transparent 60%), var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0; padding: 0; list-style: none; }
.chips li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: #d8d2ca; font-size: .95rem; }
.chips li::before { content: '✓'; color: var(--orange); margin-right: 8px; font-weight: 700; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { margin: 0; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); position: relative; }
.quote::before { content: '“'; position: absolute; top: 4px; right: 24px; font: 5rem/1 Georgia, serif; color: var(--orange); opacity: .35; }
.quote p { font-size: 1.06rem; color: #e2dcd4; }
.quote footer { display: flex; flex-direction: column; }
.quote cite { font-style: normal; font-weight: 600; }
.quote small { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Sobre */
.story p { color: #d6d0c8; font-size: 1.06rem; }
.founded { display: flex; gap: 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.founded div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--orange); }
.founded div span { color: var(--muted); font-size: .9rem; }
.mvv { display: grid; gap: 14px; }
.mvv details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mvv summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.1rem;
}
.mvv summary::-webkit-details-marker { display: none; }
.mvv summary::after { content: '+'; color: var(--orange); font-size: 1.5rem; transition: transform .2s; }
.mvv details[open] summary::after { transform: rotate(45deg); }
.mvv .body { padding: 0 24px 22px; color: var(--muted); }
.mvv .body ul { margin: 0; padding-left: 18px; }
.mvv .body li { margin-bottom: 8px; }
.mvv .body strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--orange); }
.contact-card .ico-box { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 116, 33, .1); color: var(--orange); }
.contact-card small { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.contact-card strong { font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* CTA final */
.final-cta { text-align: center; padding: clamp(64px, 9vw, 110px) 20px; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(243, 116, 33, .25), transparent 70%); border-top: 1px solid var(--line); }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { color: var(--muted); margin-bottom: 30px; font-size: 1.1rem; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer img { height: 34px; width: auto; margin-bottom: 16px; }
.footer h4, .footer .footer-title { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin: 6px 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--orange); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--dim); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Responsivo */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .format.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .rooms, .split, .event, .contact, .quotes { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
  .hero-bg img { object-position: 60% 30%; opacity: .45; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 8%, rgba(8, 8, 8, .82) 55%, rgba(8, 8, 8, .45) 100%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .formats { grid-template-columns: 1fr; }
  .format.wide { grid-column: auto; }
  .room-body { padding: 4px 20px 22px; }
  .room-meta { grid-template-columns: 1fr 1fr; }
  .room-meta .meta:last-child { grid-column: span 2; }
  .room-foot { flex-direction: column; align-items: stretch; }
  .room-foot .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .party-stats { grid-template-columns: 1fr 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
