/* ==========================================================
   Intervalo Estúdio — sistema visual do site
   Base: identidade 2026 (pausa ‖, Azul Intervalo, Switzer)
   ========================================================== */

@font-face { font-family: "Switzer"; src: url("../assets/fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../assets/fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../assets/fonts/Switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../assets/fonts/Switzer-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Cores da marca */
  --blue: #2563ff;
  --blue-hover: #1a52e6;
  --white: #ffffff;
  --gray: #f2f2f2;
  --black: #0d0d0d;

  /* Texto */
  --ink: #0d0d0d;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(13, 13, 13, 0.1);

  /* Escala */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 14vw, 168px);
  --radius: 28px;
  --radius-sm: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Switzer", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.display {
  margin: 0;
  font-size: clamp(44px, 8.4vw, 104px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  text-wrap: balance;
}
.headline {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.04em;
  text-wrap: balance;
}
.title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
}
.lead {
  margin: 22px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500; line-height: 1.38; letter-spacing: -0.015em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.center .lead { margin-left: auto; margin-right: auto; max-width: 30em; }
.muted { color: var(--ink-3); }
.accent { color: var(--blue); }
.dim { color: var(--ink-3); }

.timecode {
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.timecode b { color: var(--blue); font-weight: 700; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 16px; height: 24px; flex: none; }
.logo__word { font-size: 21px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.logo__sub {
  display: block; margin-top: 4px;
  font-size: 8.5px; font-weight: 500; letter-spacing: 0.62em; color: var(--blue);
}

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links .is-special { color: var(--blue); }
.nav__links .btn, .nav__links .btn:hover { color: #fff; }
.nav--dark { background: rgba(13, 13, 13, 0.72); }
.nav--dark .logo__word, .nav--dark .nav__links a:hover { color: #fff; }
.nav--dark .nav__links a { color: rgba(255,255,255,0.7); }
.nav--dark.is-scrolled { border-bottom-color: rgba(255,255,255,0.1); }

@media (max-width: 760px) {
  .nav__links li:not(.keep) { display: none; }
  .nav__links { gap: 16px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 980px;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ed; }
.btn svg { width: 20px; height: 20px; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 19px; font-weight: 500; color: var(--blue);
}
.link::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-1px); transition: transform 0.25s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover::after { transform: translate(3px, -1px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.center .actions, .actions.center { justify-content: center; }
.devices + .actions { margin-top: clamp(56px, 8vw, 88px); }

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section--dark .lead, .section--dark .muted { color: #a1a1a6; }
.section--dark .timecode { color: #6e6e73; }
.section--blue { background: var(--blue); color: #fff; }
.section--blue .lead { color: rgba(255,255,255,0.82); }
.section--blue .eyebrow { color: rgba(255,255,255,0.9); }

.section__head { max-width: 820px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 140px) 0 0; overflow: hidden; }
.hero__media { margin-top: clamp(56px, 8vw, 96px); padding-bottom: 48px; }

/* ---------- Mídia: telas verticais ---------- */
.phones {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(12px, 2.4vw, 28px);
}
.phone {
  position: relative; flex: 0 1 300px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d1d1f;
  box-shadow: 0 30px 60px -30px rgba(13,13,13,0.35);
  isolation: isolate;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--sm { flex-basis: 240px; }
.phones .phone:nth-child(2) { flex-basis: 340px; }
@media (max-width: 640px) {
  .phones { gap: 10px; }
  .phone { border-radius: 18px; }
}

/* Botão de play sobre o vídeo */
.play {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 12px;
  border-radius: 980px;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink); font-size: 14px; font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.play:hover { background: #fff; transform: scale(1.04); }
.play svg { width: 18px; height: 18px; }

/* Cantos de enquadramento (elemento gráfico da marca) */
.frame-corners { position: relative; }
.frame-corners::before, .frame-corners::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3;
  border-color: var(--blue); border-style: solid;
}
.frame-corners::before { top: -14px; left: -14px; border-width: 2px 0 0 2px; }
.frame-corners::after { bottom: -14px; right: -14px; border-width: 0 2px 2px 0; }

/* ---------- Split: texto + mídia ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(48px, 8vw, 120px);
}
.split--reverse .split__media { order: -1; }
.split__media { display: flex; justify-content: center; }
.split__media .phone { flex: 0 1 360px; width: 100%; max-width: 360px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Lista de pontos */
.points { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.points li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500;
}
.points li span { color: var(--ink-2); font-weight: 400; display: block; margin-top: 2px; }
.points .n { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; padding-top: 3px; }
.section--dark .points, .section--dark .points li { border-color: rgba(255,255,255,0.12); }
.section--dark .points li span { color: #a1a1a6; }

/* ---------- Janela de navegador (mockup de site) ---------- */
.browser {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(13,13,13,0.06), 0 40px 80px -40px rgba(13,13,13,0.35);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  background: #f5f5f7; border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d2d2d7; }
.browser__url {
  margin: 0 auto; padding: 3px 14px; border-radius: 7px;
  background: #fff; font-size: 12px; color: var(--ink-2); font-style: normal;
}
.browser img { width: 100%; }

.devices { position: relative; }
.devices .browser { width: 88%; }
.devices .phone {
  position: absolute; right: 0; bottom: -6%;
  width: 24%; flex: none;
  border: 6px solid #0d0d0d; border-radius: 26px;
}
@media (max-width: 640px) { .devices .phone { border-width: 3px; border-radius: 14px; } }

/* ---------- Cards / tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px; border-radius: var(--radius);
  background: var(--gray); overflow: hidden;
}
.section--gray .tile { background: #fff; }
.section--dark .tile { background: #1d1d1f; }
.tile__icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 28px; }
.tile p { margin: 12px 0 0; color: var(--ink-2); }
.section--dark .tile p { color: #a1a1a6; }
.tile .link { margin-top: auto; padding-top: 28px; font-size: 17px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .tiles--2 { grid-template-columns: 1fr; } }

/* Galeria de trabalhos */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) and (min-width: 761px) { .work--4 { grid-template-columns: repeat(2, 1fr); } }
.work__item { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.work__item .phone { flex: none; width: 100%; box-shadow: none; }
.work__item .phone img { transition: transform 0.8s var(--ease); }
.work__item:hover .phone img { transform: scale(1.03); }
.work__meta strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.work__meta span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) {
  .work { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .work__item { scroll-snap-align: start; }
}

/* Galeria de fotos */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.gallery .g-tall { grid-column: span 4; aspect-ratio: auto; }
.gallery .g-third { grid-column: span 4; aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall, .gallery .g-third { grid-column: span 1; aspect-ratio: 4 / 5; }
}

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--blue);
}
.step p { margin: 10px 0 0; color: var(--ink-2); }
.section--dark .step { border-color: #f5f5f7; }
.section--dark .step p { color: #a1a1a6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Faixa de destaque (link para o imobiliário) ---------- */
.promo {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 40px; padding: clamp(40px, 6vw, 72px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--black); color: #f5f5f7; overflow: hidden;
}
.promo .lead { color: #a1a1a6; }
.promo__media { display: flex; justify-content: center; gap: 14px; align-items: flex-end; }
.promo__media .phone { flex: 0 1 200px; box-shadow: none; }
.promo__media .phone:first-child { transform: translateY(-24px); }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } }

/* ---------- Chamada final ---------- */
.cta { text-align: center; }
.cta .display { font-size: clamp(44px, 7vw, 88px); }
.cta .actions { justify-content: center; }
.cta__phone { margin-top: 22px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.section--dark .cta__phone { color: #6e6e73; }
.section--blue .cta__phone { color: rgba(255,255,255,0.7); }

/* ---------- Rodapé ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--ink); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--blue); color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 12px 30px -10px rgba(13,13,13,0.45);
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.2s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--blue-hover); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Filme 16:9 ---------- */
.film-section { padding-top: clamp(24px, 4vw, 48px); }
.film {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--black);
  box-shadow: 0 0 0 1px rgba(13,13,13,0.06);
}
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .play { left: 20px; bottom: 20px; }
@media (max-width: 640px) { .film { border-radius: 18px; } .film .play { left: 12px; bottom: 12px; } }

/* ---------- Lightbox de vídeo ---------- */
.lightbox--wide { width: min(94vw, 1200px); }
.lightbox--wide video { border-radius: 14px; }
.lightbox {
  width: min(92vw, 440px); max-height: 92vh; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(0,0,0,0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox video { width: 100%; max-height: 86vh; border-radius: 20px; background: #000; }
.lightbox__close {
  position: absolute; top: -48px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 20px; line-height: 36px;
}
.lightbox__close:hover { background: rgba(255,255,255,0.28); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Pausa: as duas barras entram separadas */
.pause-in rect { transform-box: fill-box; transform-origin: bottom; animation: bar-in 0.9s var(--ease) both; }
.pause-in rect:nth-child(2) { animation-delay: 0.12s; }
@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pause-in rect { animation: none; }
  .work__item .phone img, .link::after { transition: none; }
}
