/* =========================================================
   STUDIO TUTS — estilos
   Layout: topo escuro com foto sangrando à direita, faixas
   alternando claro/escuro, rodapé em uma linha só.
   ========================================================= */
:root {
  --branco: #faf9f6;          /* cor oficial */
  --preto: #353535;           /* cor oficial (texto) */
  --noite: #151515;           /* fundo das faixas escuras */
  --tinta: #1a1a1a;           /* títulos sobre fundo claro */
  --suave: #5f5e5a;           /* texto secundário no claro */
  --suave-claro: rgba(250, 249, 246, .78);
  --tile: #efede8;            /* quadradinho dos ícones */
  --linha-clara: rgba(250, 249, 246, .22);
  --verde-whats: #25d366;

  --header-h: 88px;
  --raio: 12px;
  --fonte: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }

body {
  font-family: var(--fonte);
  color: var(--preto);
  background: var(--branco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Botões (pílula, ícone do Whats + seta) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 .92rem/1 var(--fonte);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { font-size: 1.15rem; }
.btn .icon--seta { margin-left: 4px; transition: transform .2s; }
.btn:hover .icon--seta { transform: translateX(3px); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .86rem; }

.btn--claro { background: var(--branco); color: var(--noite); }
.btn--claro:hover { background: #fff; }

.btn--contorno-claro { border-color: rgba(250, 249, 246, .85); color: var(--branco); }
.btn--contorno-claro:hover { background: var(--branco); color: var(--noite); }

.btn--escuro { background: var(--noite); color: var(--branco); }
.btn--escuro:hover { background: #000; transform: translateY(-2px); }

/* ---------- Textos ---------- */
.eyebrow {
  font-size: .76rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--suave-claro);
  margin-bottom: 14px;
}
.eyebrow--escuro { color: var(--preto); }
.titulo {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  color: var(--tinta);
  text-wrap: balance;
}
.section { padding: 92px 0; }

/* =========================================================
   MENU
   ========================================================= */
.header {
  position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px);
  height: var(--header-h);
  z-index: 100;
  color: var(--branco);
  transition: background-color .3s, height .3s, box-shadow .3s;
}
.header.is-scrolled {
  height: 72px;
  background: rgba(21, 21, 21, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(250, 249, 246, .06);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__link {
  position: relative; padding: 6px 0;
  font-size: .95rem; font-weight: 500;
  color: rgba(250, 249, 246, .85);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--branco); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.menu-toggle {
  display: none; width: 44px; height: 44px;
  border: 1.5px solid var(--linha-clara); border-radius: 50%;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--branco); transition: transform .25s, opacity .25s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noite); color: var(--branco);
  padding: calc(var(--header-h) + 78px) 0 70px;
  min-height: 640px;
  display: flex; align-items: center;
}
.hero__foto {
  position: absolute; z-index: -2;
  top: 12%; right: 0; bottom: 0; width: 62%;
  background: url("../assets/img/hero.jpg") right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, transparent 0%, #000 22%);
          mask-composite: intersect;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--noite) 30%, rgba(21,21,21,.82) 42%, rgba(21,21,21,.25) 62%, rgba(21,21,21,0) 80%),
    linear-gradient(180deg, rgba(21,21,21,.55) 0%, rgba(21,21,21,0) 22%, rgba(21,21,21,0) 80%, rgba(21,21,21,.5) 100%);
}
.hero__content { position: relative; }
.hero__title {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.025em;
}
.hero__text { margin: 18px 0 30px; max-width: 470px; font-size: 1.15rem; color: rgba(250, 249, 246, .9); }
.hero__tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0;
  margin-top: 56px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250, 249, 246, .85);
}
.hero__tags i { font-style: normal; margin: 0 12px; opacity: .7; }
.hero__linha { width: 54px; height: 1px; background: rgba(250, 249, 246, .7); margin-right: 22px; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.servicos { background: var(--branco); }
.servicos__head { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.servicos__lead { max-width: 340px; color: var(--preto); font-size: 1rem; line-height: 1.55; }

.servicos__grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px 24px;
  margin-top: 54px;
}
.servico { flex: 1 1 0; min-width: 0; text-align: center; }
.servico__icone {
  height: 100px; border-radius: var(--raio);
  background: var(--tile); color: var(--tinta);
  display: grid; place-items: center;
  font-size: 2.6rem;
  transition: background-color .25s;
}
.servico__icone .icon { stroke-width: 1.5; }
.servico:hover .servico__icone { background: #e7e4dd; }
.servico h3 { margin: 18px 0 6px; font-size: 1.04rem; font-weight: 700; color: var(--tinta); }
.servico p { font-size: .9rem; color: var(--suave); max-width: 210px; margin-inline: auto; }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.portfolio { background: var(--noite); color: var(--branco); padding-bottom: 96px; }
.portfolio .titulo { color: var(--branco); }
.portfolio__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.projetos {
  width: min(1320px, 100% - 40px); margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.projeto {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1.13 / 1; max-width: 100%;
  border-radius: var(--raio);
  background: #222;
  cursor: zoom-in;
}
.projeto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.projeto:hover img { transform: scale(1.05); }
.projeto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 38%);
}
.projeto__legenda {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 500;
}
.projeto__legenda .icon { font-size: 1.2rem; }

/* =========================================================
   CTA (Contato)
   ========================================================= */
.cta {
  padding: 0;
  background: linear-gradient(90deg, var(--branco) 0%, #f7f4ef 50%, #f1ece6 100%);
  overflow: hidden;
}
.cta__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; }
.cta__grid > * { min-width: 0; }
.cta__texto { padding: 64px 0; }
.cta__lead { margin: 12px 0 30px; max-width: 440px; font-size: 1.12rem; color: var(--preto); }
.cta__mockup {
  width: 100%; height: auto;
  /* esfuma as bordas para a foto se misturar ao fundo */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
          mask-composite: intersect;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { background: var(--noite); color: var(--suave-claro); }
.footer__linha {
  display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap;
  padding: 40px 0;
}
.footer__marca, .footer__acoes { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__marca img { height: 40px; width: auto; }
.footer__marca p { font-size: .86rem; line-height: 1.5; }
.footer__divisor { width: 1px; height: 52px; background: var(--linha-clara); }
.footer__sociais { display: flex; gap: 18px; }
.footer__sociais a { color: var(--branco); font-size: 1.3rem; opacity: .9; transition: opacity .2s; }
.footer__sociais a:hover { opacity: 1; }
.footer__local { display: flex; align-items: center; gap: 8px; font-size: .86rem; white-space: nowrap; }
.footer__local .icon { font-size: 1.1rem; color: var(--branco); }
.footer__base { border-top: 1px solid rgba(250, 249, 246, .08); padding: 16px 0; font-size: .78rem; color: rgba(250, 249, 246, .5); }
.footer__base-linha { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.footer__email { user-select: all; }
.footer__credito a { color: var(--branco); font-weight: 600; }

/* WhatsApp flutuante (só no celular, onde o botão do menu some) */
.whats-float {
  display: none;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--verde-whats); color: #fff;
  place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
}

/* =========================================================
   GALERIA (lightbox)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
  opacity: 0; transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figura { margin: 0; text-align: center; }
.lightbox__figura img { max-width: min(1100px, 100%); max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--raio); }
.lightbox__figura figcaption { margin-top: 16px; color: var(--branco); font-weight: 600; font-size: 1rem; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(250, 249, 246, .1); border: 1px solid rgba(250, 249, 246, .25);
  color: var(--branco); font-size: 1.25rem; cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(250, 249, 246, .22); }
.lightbox__fechar { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--esq { left: 20px; }
.lightbox__nav--dir { right: 20px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 28px; }
  .servicos__grid { justify-content: center; }
  .servico { flex: 0 1 calc(33.333% - 16px); }
  .projetos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header__cta { display: none; }
  .menu-toggle { display: flex; }
  .header.is-scrolled { height: 64px; }
  .header__logo img { height: 32px; }

  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: rgba(21, 21, 21, .97);
    border-top: 1px solid rgba(250, 249, 246, .08);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .header.is-scrolled .nav { top: calc(64px + env(safe-area-inset-top, 0px)); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 15px 2px; border-bottom: 1px solid rgba(250, 249, 246, .08); font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }

  .hero { min-height: 560px; padding: calc(var(--header-h) + 50px) 0 56px; align-items: flex-end; }
  .hero__foto { top: 0; width: 100%; opacity: .7; background-position: 70% top; -webkit-mask-image: none; mask-image: none; }
  .hero::before {
    background: linear-gradient(180deg, rgba(21,21,21,.55) 0%, rgba(21,21,21,.35) 30%, rgba(21,21,21,.9) 70%, var(--noite) 100%);
  }
  .hero__tags { margin-top: 40px; }

  .section { padding: 72px 0; }
  .servicos__head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .projetos {
    width: 100%; padding: 0 20px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .projetos::-webkit-scrollbar { display: none; }
  .projeto { scroll-snap-align: start; }

  .cta__grid { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .cta__lead { margin-inline: auto; }
  .cta__texto { padding: 64px 0 20px; }
  .cta__mockup { max-width: 520px; margin: 0 auto 30px; }

  .footer__linha { flex-direction: column; text-align: center; }
  .footer__marca, .footer__acoes { justify-content: center; }
  .footer__base-linha { justify-content: center; text-align: center; }
  .whats-float { display: grid; }
}

@media (max-width: 600px) {
  .servico { flex: 0 1 calc(50% - 12px); }
  .servico__icone { height: 88px; }
  .hero__tags i { margin: 0 8px; }
  .hero__linha { display: none; }
  .projetos { grid-auto-columns: 82%; }
  .footer__divisor { display: none; }
  .footer__marca { flex-direction: column; gap: 14px; }
  .lightbox { padding: 70px 14px; }
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .lightbox__nav--esq { left: calc(50% - 60px); }
  .lightbox__nav--dir { right: calc(50% - 60px); }
}

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