/* ==========================================================
   Massi Studios: estilo (preto & branco)
   ========================================================== */

/* Panchang (Indian Type Foundry, licença FFL em public/fonts) */
@font-face { font-family: 'Panchang'; src: url('/fonts/Panchang-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Panchang'; src: url('/fonts/Panchang-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Panchang'; src: url('/fonts/Panchang-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Panchang'; src: url('/fonts/Panchang-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Panchang'; src: url('/fonts/Panchang-Extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f4f2;
  --muted: #8c8c8c;
  --paper: #f1f0ec;
  --ink: #0a0a0a;

  --display: 'Panchang', 'Arial Black', system-ui, sans-serif;
  --accent: 'Montserrat', system-ui, -apple-system, sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--text); color: var(--ink); }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 1.2em; }

/* itálico fino (Montserrat) como contraponto à Panchang pesada dos títulos */
em {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

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

/* ---------- Tipografia utilitária ---------- */

.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.section__title,
.page-hero__title,
.hero__title,
.footer__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}
.section__title em,
.page-hero__title em,
.hero__title em,
.footer__title em { font-size: 1em; line-height: 1; }

.section__title { font-size: clamp(28px, 4.4vw, 60px); }
.section__title--handle { font-size: clamp(20px, 4.4vw, 60px); }

/* palavras longas quebram em vez de estourar a tela */
.section__title, .page-hero__title, .hero__title, .footer__title { overflow-wrap: break-word; }

.link-arrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity .3s;
}
.link-arrow:hover { opacity: .6; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  background: var(--text);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: transparent; color: var(--text); }

.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

.btn--small { padding: 10px 22px; font-size: 11px; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 10, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  --header-h: 68px;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.logo__img { height: 34px; width: auto; }
.logo__img--lg { height: 60px; }
.logo__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(56px, 9vh, 100px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }

/* Lâmpada "massi" grande atrás do título, acendendo ao carregar */
.hero__lampada {
  position: absolute; right: 6%; top: 50%;
  height: min(86%, 760px); width: auto;
  transform: translateY(-50%);
  opacity: .16;
  filter: drop-shadow(0 0 80px rgba(255, 255, 255, .18));
  animation: lampadaAcende 2.4s var(--ease) both;
}
@keyframes lampadaAcende {
  0% { opacity: 0; }
  30% { opacity: .1; }
  38% { opacity: .03; }
  60% { opacity: .16; }
  100% { opacity: .16; }
}

.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(10,10,10,0) 0%, rgba(10,10,10,.55) 70%),
    linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,.5) 80%, var(--bg) 100%);
}

.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(40px, 9.5vw, 148px); margin-bottom: 40px; }
.hero__title em { display: block; font-size: .32em; margin-top: .25em; color: rgba(244,244,242,.8); }
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__text { max-width: 460px; color: rgba(244,244,242,.75); font-size: 16px; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 1;
  width: 1px; height: 90px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--text);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Faixa rolante ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { font-size: 16px; align-self: center; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (internas) ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(60px, 10vw, 130px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { font-size: clamp(32px, 6.8vw, 104px); margin-bottom: 24px; }
.page-hero__text { max-width: 540px; color: var(--muted); font-size: 17px; margin: 0; }
.page-hero--center { text-align: center; min-height: 70vh; display: flex; align-items: center; }
.page-hero--center .eyebrow::before { display: none; }
.page-hero--center .page-hero__text { margin: 0 auto 36px; }

/* ---------- Seções ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }

/* seção clara: inverte as cores */
.section--light {
  background: var(--paper);
  color: var(--ink);
  --text: #0a0a0a;
  --muted: #5d5d5a;
  --line: rgba(10, 10, 10, 0.14);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Imagens P&B → cor no hover ---------- */

.card__media img,
.split__media img,
.service-row__media img,
.insta__item img {
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.card:hover .card__media img,
.service-row:hover .service-row__media img,
.insta__item:hover img { filter: grayscale(0); }

/* ---------- Grid de projetos ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.grid--featured .card:nth-child(3n+2) { margin-top: 80px; }

.card { display: block; min-width: 0; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media img { transform: scale(1.05); }
.card__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.card__cat {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.card__title {
  font-family: var(--display);
  font-size: 15px;
  overflow-wrap: anywhere;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ---------- Split (texto + imagem) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text .section__title { margin-bottom: 32px; }
.split__text p { color: var(--muted); font-size: 17px; }

.pillars {
  list-style: none;
  margin: 36px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pillars li:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.pillars li:nth-child(even) { padding-left: 20px; }
.pillars strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.pillars span { font-size: 14px; color: var(--muted); }

/* ---------- Serviços (home) ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
  transition: background .4s;
}
.service:not(:first-child) { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service:hover .service__title { opacity: .6; }
.service__num {
  display: block;
  font-family: var(--accent);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 48px;
}
.service__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 16px;
  transition: opacity .3s;
}
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Serviços (página) ---------- */

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-row:first-child { padding-top: 0; }
.service-row__num {
  font-family: var(--accent);
  font-style: italic;
  font-size: 28px;
  color: var(--muted);
}
.service-row__title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
  margin-bottom: 24px;
}
.service-row__body p { color: var(--muted); }
.service-row__media { aspect-ratio: 4 / 3; overflow: hidden; }
/* fotos verticais em moldura horizontal: prioriza a parte de cima, onde fica o rosto */
.service-row__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.tags { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 28px; }
.steps li::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--accent); font-style: italic;
  color: var(--muted); font-size: 22px;
  margin-bottom: 16px;
}
.steps strong {
  display: block;
  font-family: var(--display); font-size: 16px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
  margin-bottom: 10px;
}
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Valores (sobre) ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.values h3 { font-family: var(--display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; margin-bottom: 12px; }
.values p { color: var(--muted); }
.values .service__num { margin-bottom: 20px; }

/* ---------- Instagram ---------- */

.insta { padding-bottom: 0; }
.insta__strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.insta__item { aspect-ratio: 1; overflow: hidden; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; }
.insta__item:hover img { transform: scale(1.06); }

/* ---------- Filtros ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { color: var(--ink); background: var(--text); border-color: var(--text); }
.empty { color: var(--muted); padding: 60px 0; text-align: center; }

/* ---------- Projeto ---------- */

.project-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 60px;
  overflow: hidden;
}
.project-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) brightness(.55) contrast(1.1);
}
.project-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}
.project-hero__content { position: relative; z-index: 1; }
.back-link {
  display: inline-block;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color .3s;
}
.back-link:hover { color: var(--text); }

.project-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px clamp(32px, 6vw, 100px);
}
.project-intro > p { font-family: var(--accent); font-weight: 300; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; }
.project-meta { margin: 0; }
.project-meta div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-meta dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.project-meta dd { margin: 0; }
.project-link { grid-column: 2; justify-self: start; }

.videos { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.video { position: relative; background: var(--surface); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--horizontal { width: 100%; aspect-ratio: 16 / 9; }
.video--vertical { width: min(100%, 380px); aspect-ratio: 9 / 16; }

.card__play {
  position: absolute; left: 16px; bottom: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10, 10, 10, .65);
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__play::after {
  content: ''; position: absolute; left: 19px; top: 15px;
  border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}

.gallery { columns: 3; column-gap: 16px; }
.gallery__item {
  display: block; width: 100%;
  margin: 0 0 16px;
  padding: 0; border: 0; background: var(--surface);
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
}
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 5, .97);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
}
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none; border: 0; color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 44px; line-height: 1;
  cursor: pointer; padding: 12px;
  transition: opacity .3s;
}
.lightbox button:hover { opacity: .5; }
.lightbox__close { top: 16px; right: 20px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; color: var(--muted);
}

/* ---------- Contato ---------- */

.contact { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 7vw, 120px); }
.contact__info { display: grid; gap: 32px; align-content: start; }
.contact__info h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.contact__info a { font-size: 20px; font-weight: 600; transition: opacity .3s; word-break: break-word; }
.contact__info a:hover { opacity: .6; }
.contact__info p { margin: 0; }

.form { display: grid; gap: 28px; }
.form__intro { color: var(--muted); margin-bottom: 28px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 13px; color: var(--muted); margin: 0; }
.form__error { font-size: 14px; color: #ff8a80; margin: 0; }
.form__error a { text-decoration: underline; }
.form .btn[disabled] { opacity: .5; cursor: wait; }
.form-sent { padding: 32px; border: 1px solid var(--line); margin-bottom: 40px; }
.form-sent h3 { font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: 0; margin-bottom: 8px; }
.form-sent p { color: var(--muted); }
.form-sent p strong { color: var(--text); font-weight: 600; }
.form-sent .btn { margin-top: 8px; }
.form-sent__nota { font-size: 13px; margin: 16px 0 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  padding: 12px 0;
  border-radius: 0;
  transition: border-color .3s;
  color-scheme: dark;
}
.field select option { background: var(--surface); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field small { color: #ff8a80; font-size: 13px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff8a80; }
.form .btn { justify-self: start; margin-top: 8px; }


/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-top: clamp(80px, 10vw, 140px); }
.footer__cta { padding-bottom: clamp(80px, 10vw, 130px); border-bottom: 1px solid var(--line); }
.footer__title { font-size: clamp(30px, 6vw, 92px); margin-bottom: 48px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 64px 0;
}
.footer__desc { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 24px; }
.footer h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a, .footer ul li { font-size: 15px; transition: opacity .3s; word-break: break-word; }
.footer ul a:hover { opacity: .6; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.to-top:hover { color: var(--text); }

.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Animação de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service:nth-child(3) { padding-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row__media { grid-column: 2; }
  .insta__strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav__link {
    font-family: var(--display); font-size: 24px; font-weight: 800;
    letter-spacing: 0; color: var(--text);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { opacity: .45; }
  .nav__cta { margin-top: 12px; }

  .hero__scroll { display: none; }
  .hero__lampada { right: 50%; transform: translate(50%, -60%); height: 62%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--featured .card:nth-child(3n+2) { margin-top: 0; }
  .grid--featured .card:nth-child(even) { margin-top: 48px; }
  .split, .project-intro, .contact { grid-template-columns: 1fr; }
  .project-link { grid-column: auto; }
  .values { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .grid--featured .card:nth-child(even) { margin-top: 0; }
  .services { grid-template-columns: 1fr; }
  .service, .service:not(:first-child) { padding: 32px 0; border-right: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service__num { margin-bottom: 16px; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row__media { grid-column: auto; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 0; padding-left: 16px; padding-right: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(odd) { padding-right: 0; border-right: 0; }
  .pillars li:nth-child(even) { padding-left: 0; }
  .lightbox { padding: 60px 16px; }
  .lightbox__nav { bottom: 8px; top: auto !important; transform: none !important; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .logo__text { display: none; }
}
