/* ============================================================
   ECOARTT — v4.0 Ultra Clean
   Referência: Studio MK27, Isay Weinfeld, March Studio
   Princípio: espaço é conteúdo. Menos é mais.
   ============================================================ */

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

:root {
  --white:   #FFFFFF;
  --bg:      #F9F8F6;
  --line:    #E8E5E1;
  --text:    #1A1816;
  --muted:   #9A9490;
  --accent:  #8A7055;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --pad: clamp(2rem, 6vw, 7rem);
  --max: 1200px;
  --t: 0.35s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { border: none; background: none; font-family: var(--sans); cursor: pointer; }

/* ── LOADING ── */
#loading {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease;
}
#loading.out { opacity: 0; pointer-events: none; }
#loading img { height: 28px; opacity: .5; }

/* Loading brand */
.loading-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  opacity: .45;
}
.loading-icon {
  height: 32px;
  width: auto;
}
.loading-name {
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .35em;
  text-transform: lowercase;
  color: var(--text);
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--t), border-color var(--t);
}
header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Logo no header: ícone + nome */
.logo-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}
.logo-icon {
  height: 28px;
  width: auto;
  display: block;
  /* sobre hero escuro: inverte para branco */
  filter: invert(1) brightness(2);
  transition: filter var(--t);
}
.logo-text {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: lowercase;
  color: #fff;
  line-height: 1;
  padding-top: 1px;
  transition: color var(--t);
}

/* após scroll: header claro, logo escura */
header.scrolled .logo-icon {
  filter: none;
}
header.scrolled .logo-text {
  color: var(--text);
}

nav { display: flex; align-items: center; gap: 2.5rem; }
nav a {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}
nav a:hover { color: var(--text); }
nav a.nav-contact {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}
nav a.nav-contact:hover { color: var(--accent); border-color: var(--accent); }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column; gap: 6px;
  width: 22px;
}
.burger span {
  display: block; height: 1px;
  background: var(--text);
  transition: all var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.m-nav {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3rem;
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.m-nav.open { opacity: 1; pointer-events: all; }
.m-nav a {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--text);
  transition: color var(--t);
}
.m-nav a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  padding: 0 var(--pad);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  /* Foto de fundo */
  background-color: var(--text);
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

/* overlay para legibilidade */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,18,16,.82) 0%,
    rgba(20,18,16,.35) 55%,
    rgba(20,18,16,.18) 100%
  );
}

.hero-label {
  position: absolute;
  top: 50%; right: var(--pad);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  z-index: 2;
}

.hero-content {
  max-width: 820px;
  position: relative; z-index: 2;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.hero-sub {
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
  max-width: 420px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex; align-items: center; gap: 2rem;
}
.btn-primary {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: .9rem 2.2rem;
  transition: background var(--t);
}
.btn-primary:hover { background: #6d5840; }

.btn-link {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.btn-link:hover { color: var(--white); border-color: rgba(255,255,255,.7); }

/* Linha decorativa no hero */
.hero-line {
  position: absolute;
  bottom: 0; left: var(--pad);
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 1.4s ease .6s;
  z-index: 2;
}
.hero-line.in { width: 80px; }

/* ── WRAPPER GERAL ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── SEÇÕES ── */
.section {
  padding: 7rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.section-tag {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  display: block;
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: var(--text);
}

/* ── SOBRE ── */
/* Linha 1: texto + foto lado a lado */
.sobre-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto 5rem;
}

.sobre-text {}
.sobre-text p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 2;
  margin-top: 2rem;
}
.sobre-text p + p { margin-top: 1.2rem; }

/* Foto lateral */
.sobre-foto {
  position: relative;
}
.sobre-foto img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.sobre-foto::after {
  content: '';
  position: absolute;
  bottom: -1.2rem; right: -1.2rem;
  width: 60%; height: 60%;
  border: 1px solid var(--line);
  z-index: -1;
}

/* Números */
.sobre-numbers {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto 5rem;
}
.stat-item {
  padding: 2rem 0;
  border-right: 1px solid var(--line);
  padding-left: 2rem;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
  display: block;
}

/* ── PILARES EM LINHA (4 quadros) ── */
.pilares-titulo {
  max-width: var(--max);
  margin: 0 auto 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 2.2rem 2rem 2.6rem;
  display: flex;
  flex-direction: column;
  transition: background var(--t);
}
.pillar:hover { background: var(--white); }
.pillar-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: #D4C5B0;
  margin-bottom: 1.2rem;
  display: block;
  line-height: 1;
}
.pillar-body h4 {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .7rem;
  font-weight: 500;
}
.pillar-body p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── PORTFÓLIO ── */
.portfolio-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
}

.pf-filters {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  align-items: center;
}
.pf-btn {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: none; border: none;
  padding: 0; cursor: pointer;
  transition: color var(--t);
  font-family: var(--sans);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.pf-btn:hover { color: var(--text); }
.pf-btn.on {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── PORTFÓLIO ── */
/* Card destaque — foto grande */
.pf-featured {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
}
.pf-featured-img {
  width: 100%;
  height: clamp(380px, 52vw, 620px);
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.pf-featured:hover .pf-featured-img { transform: scale(1.02); }

.pf-featured-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto 2rem;
}
.pf-featured-info .left {}
.pf-featured-info .pf-cat { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.pf-featured-info .pf-name { font-family: var(--serif); font-size: 1.6rem; font-style: italic; font-weight: 400; color: var(--text); }
.pf-featured-info .pf-loc { font-size: .72rem; color: var(--muted); }
.pf-featured-badge {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .35rem .9rem;
}

/* Grid cronológico menor */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

.pf-card {
  background: var(--white);
  cursor: pointer;
  transition: opacity var(--t);
  display: flex; flex-direction: column;
}
.pf-card.hidden { opacity: .18; pointer-events: none; }

.pf-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.pf-img img.pf-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.pf-img img.placeholder-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 30px; opacity: .1;
  filter: grayscale(1);
}
.pf-card:hover .pf-img img.pf-photo { transform: scale(1.04); }
.pf-img.pf-img-placeholder {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-img.pf-img-placeholder::after {
  content: 'Imagens em breve';
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .5;
}

.pf-info {
  padding: 1.1rem 1.2rem 1.4rem;
  flex: 1;
  border-top: 1px solid var(--line);
}
.pf-cat {
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.pf-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .15rem;
}
.pf-loc {
  font-size: .68rem;
  color: var(--muted);
}

/* ── SERVIÇOS ── */
.servicos-intro {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.servicos-intro-left .section-h2 { margin-bottom: .6rem; }
.servicos-intro-left p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 420px;
}

/* ── SERVIÇOS: intro ── */
.servicos-intro {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.servicos-intro-left .section-h2 { margin-bottom: .8rem; }
.servicos-intro-left p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 480px;
}

/* 4 quadros em linha horizontal */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
}
.svc-item {
  background: var(--white);
  padding: 2.8rem 2.2rem 3rem;
  display: flex;
  flex-direction: column;
  transition: background var(--t);
  position: relative;
}
.svc-item:hover { background: var(--bg); }
.svc-n {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--line);
  margin-bottom: 2rem;
  display: block;
  line-height: 1;
  transition: color var(--t);
}
.svc-item:hover .svc-n { color: #D4C5B0; }
.svc-body h3 {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .9rem;
  font-weight: 500;
}
.svc-body p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.8rem;
  flex: 1;
}
.svc-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}
.svc-tag {
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .3rem .7rem;
  transition: border-color var(--t), color var(--t);
}
.svc-item:hover .svc-tag { border-color: #D4C5B0; }

/* ── CONTATO ── */
.contato-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
}

/* Lado esquerdo */
.contato-info .section-h2 { margin-bottom: 2.5rem; }

/* Links de contato como linhas limpas */
.c-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.c-link-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity var(--t);
  text-decoration: none;
}
.c-link-item:first-child { border-top: 1px solid var(--line); }
.c-link-item:hover { opacity: .55; }
.c-link-label {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-link-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

/* Localização */
.c-location {
  margin-top: 2rem;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.85;
  letter-spacing: .02em;
}

/* ── FORMULÁRIO ── */
.contato-form-side {
  padding-top: .5rem;
}

/* Subtítulo do form */
.form-title {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: block;
}

.f-group {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  transition: border-color var(--t);
}
.f-group:focus-within { border-bottom-color: var(--text); }

.f-group label {
  display: block;
  font-size: .54rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
  line-height: 1.5;
}
.f-group select { cursor: pointer; }
.f-group textarea {
  resize: none;
  min-height: 80px;
  padding-top: .2rem;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: -1px;
}
.f-row:focus-within { border-bottom-color: var(--text); }
.f-row .f-group {
  border: none;
  padding: 0;
}
.f-row + .f-group { border-top: none; }

.btn-submit {
  margin-top: 2.5rem;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  padding: 1rem 2.6rem;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  transition: background var(--t), opacity var(--t);
  display: inline-block;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:active { opacity: .7; }

/* ── FOOTER ── */
footer {
  padding: 4rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
/* Logo no footer */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.footer-icon {
  height: 26px;
  width: auto;
  display: block;
}
.footer-brand-name {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1;
}
.f-brand p {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 240px;
}
.f-legal {
  margin-top: 1.5rem;
}
.f-legal p {
  font-size: .62rem;
  color: var(--muted);
  line-height: 1.7;
  opacity: .65;
}
.f-col h5 {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.f-col ul li { margin-bottom: .5rem; }
.f-col ul li a {
  font-size: .76rem;
  color: var(--muted);
  transition: color var(--t);
}
.f-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .62rem;
  color: var(--muted);
  opacity: .6;
}

/* ── MODAL ── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(26,24,22,.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-bg.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  width: 100%; max-width: 1200px;
  max-height: 92vh;
  transform: translateY(24px);
  transition: transform .4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.modal-bg.open .modal-box { transform: none; }

/* Botão fechar flutuante */
.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  z-index: 10;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
  padding: .35rem .8rem;
}
.modal-close:hover { color: var(--text); border-color: var(--text); }

/* Layout lado a lado */
.modal-inner {
  display: flex;
  height: 92vh;
  max-height: 92vh;
  overflow: hidden;
}

/* Coluna esquerda — foto */
.modal-left {
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  background: #111;
  overflow: hidden;
}

/* Coluna direita — texto */
.modal-right {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ── GALERIA ── */
.modal-gallery {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
  flex: 1 1 auto;
}
.mg-slide {
  display: none;
  width: 100%; height: 100%;
}
.mg-slide.active { display: flex; align-items: center; justify-content: center; }
.mg-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.mg-slide video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}

/* Setas de navegação */
.mg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  background: #1a1a1a;
}
.mg-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.mg-arrow:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

/* Miniaturas */
.modal-thumbs {
  display: flex;
  gap: 4px;
  padding: .5rem .8rem;
  overflow-x: auto;
  background: #1a1a1a;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.modal-thumbs::-webkit-scrollbar { height: 4px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: var(--line); }

.mg-thumb {
  flex-shrink: 0;
  width: 64px; height: 48px;
  border: 2px solid transparent;
  background: #333;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color var(--t), opacity var(--t);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-thumb.active { border-color: rgba(255,255,255,.8); }
.mg-thumb:not(.active) { opacity: .45; }
.mg-thumb:hover:not(.active) { opacity: .8; }
.mg-play-icon {
  font-size: 1.2rem;
  color: var(--white);
  position: absolute;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.mg-vid-label {
  display: none;
}

/* Conteúdo textual */
.modal-content {
  padding: 3.5rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}
.modal-divider {
  width: 32px;
  height: 1px;
  background: var(--line);
  margin: 1.2rem 0 1.4rem;
}
.modal-cat {
  font-size: .52rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .5rem;
}
.modal-title {
  font-family: var(--serif);
  font-size: 1.6rem; font-style: italic; font-weight: 400;
  color: var(--text); margin-bottom: .3rem;
  line-height: 1.2;
}
.modal-loc { font-size: .7rem; color: var(--muted); }
.modal-desc {
  font-size: .81rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.4rem;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.modal-tag {
  font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--bg); padding: .25rem .65rem;
  border: 1px solid var(--line);
}
.modal-cta { display: none; }

/* Lightbox fullscreen */
.mg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFade .2s ease;
}
@keyframes lbFade { from { opacity:0 } to { opacity:1 } }
.mg-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  pointer-events: none;
}
.mg-lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  background: none; border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.mg-lightbox-close:hover { color: #fff; }

/* Responsivo modal */
@media (max-width: 768px) {
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal-box { max-width: 100%; max-height: 96vh; border-radius: 0; }
  .modal-inner { flex-direction: column; height: 96vh; overflow-y: auto; }
  .modal-left { flex: none; }
  .modal-right { flex: none; border-left: none; border-top: 1px solid var(--line); }
  .modal-gallery { aspect-ratio: 4/3; flex: none; }
  .modal-content { padding: 1.5rem 1.2rem 2rem; }
  .modal-title { font-size: 1.3rem; }
  .modal-tags { margin-top: 1.2rem; }
}

/* ── WA FLOAT ── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 80;
  width: 46px; height: 46px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 16px rgba(37,211,102,.35);
  transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 20px; height: 20px; fill: #fff; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .sobre-top { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-foto { max-width: 480px; }
  .sobre-numbers { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .contato-inner { grid-template-columns: 1fr; gap: 4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }
  .hero-label { display: none; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .servicos-intro { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pilares-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-numbers { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
