/* ============================================================
   Terres & Queiroz Advogados (TQA) — style.css
   Paleta fixa: #74360F · #301E10 · #12110F · #E1DBCD
   ============================================================ */

/* ── FONTE ──
   Inter auto-hospedada (fonte variável, cobre os pesos 300–700 num
   único arquivo). Evita enviar o IP de cada visitante ao Google e
   acelera o primeiro render. Arquivos em assets/fonts/. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
[hidden] { display: none !important; }

/* ── TOKENS ── */
:root {
  --rust:        #74360F;
  --rust-bright: #8a481d;
  --rust-deep:   #5b2909;
  --espresso:    #301E10;
  --ink:         #12110F;
  --cream:       #E1DBCD;

  --paper:       #F4EEE4;
  --paper-2:     #ECE3D4;
  --text:        #2b1c11;
  --text-soft:   #5c4a3a;
  --muted:       #736051;  /* escurecido p/ contraste AA em texto pequeno */

  --line:        rgba(48, 30, 16, .14);
  --line-soft:   rgba(48, 30, 16, .08);
  --line-light:  rgba(225, 219, 205, .16);

  /* Fonte da marca: Inter (usada em toda a papelaria digital da TQA) */
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --geo:   var(--sans);   /* títulos */
  --serif: var(--sans);   /* mantido por compatibilidade */

  --wrap: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* Telas muito largas: leve folga na caixa de conteúdo, mantendo a coluna
   coesa e centrada (todo o conteúdo do site vive dentro dela) */
@media (min-width: 1700px) { :root { --wrap: 1340px; } }

::selection { background: var(--rust); color: var(--cream); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--rust); border: 3px solid var(--paper-2); border-radius: 10px; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--espresso); color: var(--cream);
  padding: .6rem 1rem; border-radius: 4px;
  transform: translateY(-140%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

/* ── Fallback sem JavaScript ── */
.noscript-fallback {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  color: var(--text);
}
.noscript-fallback .ns-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.noscript-fallback h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.noscript-fallback p { margin-bottom: 1rem; color: var(--text-soft); }
.noscript-fallback ul { margin: 0 0 1rem 1.2rem; color: var(--text-soft); }
.noscript-fallback li { margin-bottom: .3rem; }
.noscript-fallback a { color: var(--rust); text-decoration: underline; }

/* ── TIPOGRAFIA ── */
h1, h2, h3 { font-family: var(--geo); font-weight: 600; line-height: 1.08; letter-spacing: -.022em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h1 em, h2 em, .hero-headline em { font-style: normal; color: var(--rust); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.7rem;
  font-family: var(--geo); font-size: .82rem; font-weight: 500;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid       { background: var(--espresso); color: var(--cream); }
.btn-solid:hover { background: var(--rust); box-shadow: 0 12px 30px -12px rgba(116, 54, 15, .6); }
.btn-solid-light       { background: var(--cream); color: var(--espresso); }
.btn-solid-light:hover  { background: #fff; box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .5); }
.btn-line       { border: 1.5px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--rust); color: var(--rust); }
.btn-ghost       { border: 1.5px solid var(--line); color: var(--text-soft); padding: .8rem 1.2rem; font-size: .78rem; }
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

/* ============================================================
   PROGRESSO
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 3px; background: var(--rust);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .1s linear;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 238, 228, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 40px -24px rgba(48, 30, 16, .5);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
  transition: height .3s var(--ease);
}
.nav.scrolled .nav-inner { height: 62px; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; transition: height .3s var(--ease); }
.nav.scrolled .nav-logo-img { height: 33px; }
.nav-logo-light { display: none; }

.nav-links {
  position: relative;
  margin-left: auto;
  display: flex; align-items: center; gap: .35rem;
}
.nav-link {
  position: relative; z-index: 1;
  padding: .6rem .95rem;
  font-family: var(--geo); font-size: .84rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color .2s;
}
.nav-link:hover  { color: var(--text); }
.nav-link.active { color: var(--rust); }
.nav-indicator {
  position: absolute; left: 0; top: 50%; z-index: 0;
  height: 34px; width: 0;
  margin-top: -17px;
  background: rgba(116, 54, 15, .10);
  border-radius: 999px;
  opacity: 0;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .3s;
}

.nav-cta {
  flex-shrink: 0;
  padding: .68rem 1.3rem;
  background: var(--espresso); color: var(--cream);
  font-family: var(--geo); font-size: .8rem; font-weight: 500;
  border-radius: 999px;
  transition: background .25s, transform .25s var(--ease);
}
.nav-cta:hover { background: var(--rust); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  margin-left: auto;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.is-x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-x span:nth-child(2) { opacity: 0; }
.nav-toggle.is-x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu aberto: navbar transparente, logo branco, X claro */
body.no-scroll .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-bottom-color: transparent; }
body.no-scroll .nav-logo-dark { display: none; }
body.no-scroll .nav-logo-light { display: block; }
body.no-scroll .nav-toggle span { background: var(--cream); }

/* ── Overlay de menu (mobile) ── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 240;
  background: radial-gradient(120% 80% at 100% 0%, #3a2415, var(--espresso) 45%, var(--ink));
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) 0 calc(1.75rem + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay-inner {
  width: 100%; max-width: 460px; margin: auto;
  padding: 0 clamp(1.5rem, 7vw, 2.5rem);
  display: flex; flex-direction: column; gap: 2.25rem;
}

.nav-overlay-links { display: flex; flex-direction: column; }
.nav-overlay-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .2rem;
  font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em;
  color: rgba(240, 237, 231, .92);
  border-bottom: 1px solid rgba(225, 219, 205, .08);
  opacity: 0; transform: translateX(-16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s, padding-left .2s;
  transition-delay: calc(var(--i) * 45ms + .08s);
}
.nav-overlay.open .nav-overlay-link { opacity: 1; transform: none; }
.nav-overlay-link .nol-arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--rust); opacity: .45;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-overlay-link:active { color: var(--cream); padding-left: .6rem; }
.nav-overlay-link.active { color: var(--rust); }
.nav-overlay-link.active .nol-arrow { opacity: 1; transform: translateX(3px); }

.nav-overlay-foot {
  display: flex; flex-direction: column; gap: 1.4rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease) .34s, transform .4s var(--ease) .34s;
}
.nav-overlay.open .nav-overlay-foot { opacity: 1; transform: none; }
.nav-overlay-foot .btn { align-self: flex-start; }
.nol-contact { display: flex; flex-direction: column; gap: .7rem; }
.nol-contact a {
  display: flex; align-items: center; gap: .7rem;
  font-size: .88rem; color: rgba(225, 219, 205, .78);
  transition: color .2s;
}
.nol-contact a:hover { color: #e7b487; }
.nol-contact a svg { width: 15px; height: 15px; color: var(--rust); flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  padding-left: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-right));
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; width: 100%;
}
.hero-text { max-width: 660px; }
/* H1 do hero — a frase de posicionamento é o título grande e o H1 */
.hero-headline {
  font-family: var(--geo); font-weight: 700;
  font-size: clamp(2.15rem, 7vw, 4.4rem);
  line-height: 1.08; letter-spacing: -.022em; color: var(--text);
  margin: 0 0 1.4rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-soft); font-weight: 300;
  max-width: 46ch; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* Monograma da marca ao fundo do hero — sangra pela borda direita (SVG inline: funciona em file://) */
.hero-mark {
  position: absolute; z-index: 0;
  right: -4%; top: 50%; transform: translateY(-50%);
  width: min(640px, 48vw); height: auto;
  fill: none; stroke: var(--rust); stroke-width: 5.5px;
  opacity: .16;
  pointer-events: none;
}
.hero-scroll {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 4rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll span {
  width: 34px; height: 1px; background: var(--muted);
  position: relative; overflow: hidden;
}
.hero-scroll span::after {
  content: ''; position: absolute; inset: 0;
  background: var(--rust);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Entrada do hero (stagger no carregamento) */
.hero-anim { opacity: 0; transform: translateY(18px); animation: heroUp .7s var(--ease) forwards; }
.hero-text .hero-anim:nth-child(1) { animation-delay: .10s; }
.hero-text .hero-anim:nth-child(2) { animation-delay: .22s; }
.hero-text .hero-anim:nth-child(3) { animation-delay: .34s; }
.hero-text .hero-anim:nth-child(4) { animation-delay: .46s; }
.hero-text .hero-anim:nth-child(5) { animation-delay: .58s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ============================================================
   MARQUEE — faixa de áreas sob o hero
   ============================================================ */
.marquee {
  background: var(--espresso);
  border-block: 1px solid rgba(225, 219, 205, .08);
  padding: .95rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
/* Pausa só onde existe cursor de verdade — no touch o :hover "gruda"
   depois de encostar o dedo e a faixa nunca voltava a rodar */
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-item {
  display: inline-flex; align-items: center;
  padding: 0 2.2rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(225, 219, 205, .55); white-space: nowrap;
}
.marquee-item::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--rust); margin-right: 2.2rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sublinhado do termo em destaque nos títulos de seção (desenha ao revelar) */
h2 em { position: relative; }
h2 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: 2px;
  background: var(--rust); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease) .15s;
}
.reveal.in h2 em::after,
.section-head.in h2 em::after,
.manifesto-inner.in h2 em::after { transform: scaleX(1); }

/* ============================================================
   O ESCRITÓRIO / SÓCIOS
   ============================================================ */
.partners {
  background: var(--paper-2);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}
.section-head { max-width: var(--wrap); margin: 0 auto 3rem; }
.section-head h2 { margin-top: .9rem; }
.section-lead {
  margin-top: 1.3rem; max-width: 62ch;
  color: var(--text-soft); font-weight: 300; font-size: 1.02rem; line-height: 1.85;
}
.section-lead strong { color: var(--text); font-weight: 500; }

/* Sócios: cabeçalho e cards compartilham a mesma coluna central (--wrap),
   ocupando toda a largura como as demais seções */
.partners-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.25rem);
}
.partner { width: 100%; }
.partner {
  display: grid; grid-template-columns: clamp(320px, 34%, 460px) minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.partner:hover {
  border-color: rgba(116, 54, 15, .38);
  box-shadow: 0 34px 70px -34px rgba(48, 30, 16, .3);
  transform: translateY(-4px);
}
/* alterna o lado da foto */
.partner:nth-child(even) { grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 460px); }
.partner:nth-child(even) .partner-photo { order: 2; }

.partner-photo {
  position: relative; align-self: stretch;
  min-height: 380px;
  background: linear-gradient(150deg, var(--espresso), var(--ink));
  overflow: hidden;
}
.partner-photo img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; z-index: 1;
  object-fit: cover; object-position: center 12%;
  transition: transform .7s var(--ease);
}
.partner:hover .partner-photo img { transform: scale(1.04); }
.partner-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(18, 17, 15, .42), transparent 26%);
}
/* Iniciais ficam atrás da foto — aparecem se a imagem faltar ou demorar */
.partner-initials {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 600; letter-spacing: .05em;
  color: rgba(225, 219, 205, .32);
}
.partner-oab {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  background: var(--rust); color: var(--cream);
  font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .9rem;
}

.partner-body { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 2.6vw, 2.2rem); min-width: 0; align-self: center; }
.partner-role { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); }
.partner-name { font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin: .3rem 0 1rem; }
.partner-bio { font-size: .9rem; color: var(--text-soft); font-weight: 300; line-height: 1.85; max-width: 60ch; }
.partner-bio strong { color: var(--text); font-weight: 500; }
.partner-focus {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: 1.3rem;
}
.partner-focus li {
  font-size: .68rem; color: var(--text-soft); white-space: nowrap;
  padding: .32rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.partner:hover .partner-focus li { border-color: rgba(116, 54, 15, .25); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  background: linear-gradient(155deg, var(--espresso) 0%, var(--ink) 100%);
  color: var(--cream);
  padding: clamp(4.5rem, 11vw, 9rem) clamp(1.25rem, 5vw, 3rem);
  overflow: hidden;
}
.manifesto-watermark {
  position: absolute; bottom: -18%; left: -10%;
  width: min(620px, 70vw); height: auto;
  fill: none; stroke: var(--cream); stroke-width: 5.5px;
  opacity: .09;
  pointer-events: none;
}
.manifesto-inner { position: relative; max-width: 900px; margin: 0 auto; }
.manifesto .eyebrow { color: #d59a63; }
.manifesto h2 { color: var(--cream); margin: 1.1rem 0 2rem; }
.manifesto h2 em { color: #d59a63; }
.manifesto-lead {
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.45; letter-spacing: -.01em;
  color: var(--cream);
}
.manifesto-lead strong { font-weight: 600; color: #e7b487; }
.manifesto-text {
  margin: 1.8rem 0 2.6rem; max-width: 60ch;
  color: rgba(225, 219, 205, .7); font-weight: 300; font-size: 1.05rem; line-height: 1.8;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem); }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.section-desc { max-width: 30ch; text-align: right; color: var(--text-soft); font-size: .92rem; font-weight: 300; }

.services-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.service {
  position: relative;
  padding: 2rem 1.9rem 2.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.service:nth-child(3n) { border-right: none; }
.service:nth-last-child(-n+3) { border-bottom: none; }
.service::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--rust), var(--rust-deep));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.service:hover::before { transform: translateY(0); }
.service-n { font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--rust); transition: color .35s; }
.service-t { font-size: 1.12rem; margin: .5rem 0 .6rem; transition: color .35s; }
.service-d { font-size: .85rem; color: var(--text-soft); font-weight: 300; line-height: 1.7; transition: color .35s; }
.service:hover .service-n { color: rgba(225, 219, 205, .6); }
.service:hover .service-t,
.service:hover .service-d { color: var(--cream); }

/* ============================================================
   COMO TRABALHAMOS
   ============================================================ */
.process {
  background: var(--paper-2);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}
.process-inner { max-width: var(--wrap); margin: 0 auto; }
.process-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.process-head h2 { margin: .9rem 0 1rem; max-width: 24ch; }
.process-lead { max-width: 62ch; color: var(--text-soft); font-weight: 300; font-size: 1rem; line-height: 1.8; }

.process-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.pstep {
  background: var(--paper-2);
  padding: 1.8rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.pstep-n {
  position: relative;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--rust);
  padding-bottom: .7rem;
  width: fit-content;
}
.pstep-n::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(116, 54, 15, .28);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease) .2s;
}
.pstep.in .pstep-n::after { transform: scaleX(1); }
.pstep-body h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.pstep-body p { font-size: .85rem; color: var(--text-soft); font-weight: 300; line-height: 1.7; }

/* ============================================================
   PERGUNTAS FREQUENTES
   ============================================================ */
.faq { background: var(--paper); padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem); }
.faq-inner { max-width: var(--wrap); margin: 0 auto; }
.faq .section-head { margin-bottom: 2.4rem; }

.faq-list {
  display: flex; flex-direction: column; border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.4rem;
  padding: 1.35rem 0;
  font-family: var(--geo); font-weight: 500; font-size: 1.02rem; color: var(--text);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { color: var(--rust); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem;
  color: var(--rust); transition: transform .3s var(--ease);
}
.faq-item[open] summary { color: var(--rust); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.5rem; max-width: 70ch; }
.faq-answer p { font-size: .92rem; color: var(--text-soft); font-weight: 300; line-height: 1.85; }
.faq-item[open] .faq-answer { animation: faqReveal .28s var(--ease); }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials {
  background: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}
.testimonials-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.testi:only-child { max-width: 640px; }
.testi {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.9rem;
  display: flex; flex-direction: column;
}
.testi-stars { color: var(--rust); letter-spacing: 3px; font-size: .8rem; margin-bottom: .9rem; }
.testi-text {
  font-weight: 400;
  font-size: 1.02rem; line-height: 1.7; color: var(--text-soft);
  margin-bottom: 1.6rem;
}
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi-av {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(116, 54, 15, .12); border: 1px solid rgba(116, 54, 15, .28);
  font-size: .8rem; font-weight: 600; color: var(--rust);
}
.testi-name { display: block; font-family: var(--geo); font-weight: 500; font-size: .9rem; color: var(--text); }
.testi-role { display: block; font-size: .74rem; color: var(--muted); margin-top: .1rem; }

/* Pílula de rede social (contato + rodapé) */
.social-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line-light); border-radius: 999px;
  font-size: .82rem; color: rgba(225, 219, 205, .8);
  transition: border-color .2s, color .2s;
}
.social-pill:hover { border-color: #d59a63; color: #e7b487; }
.social-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-social { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact {
  background: linear-gradient(160deg, var(--espresso), var(--ink));
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.contact-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact .eyebrow { color: #d59a63; }
.contact h2 { color: var(--cream); margin: 1rem 0 1.2rem; }
.contact h2 em { color: #d59a63; }
.contact-lead { color: rgba(225, 219, 205, .72); font-weight: 300; max-width: 42ch; }
.contact-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.cp { border: 1px solid var(--line-light); border-radius: 4px; padding: 1.1rem 1.2rem; }
.cp-name { font-family: var(--geo); font-weight: 500; font-size: .98rem; color: var(--cream); }
.cp-role { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(225, 219, 205, .62); margin-bottom: .7rem; }
.cp a { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(225, 219, 205, .78); padding: .18rem 0; transition: color .2s; }
.cp a:hover { color: #e7b487; }
.cp svg { width: 14px; height: 14px; color: #d59a63; flex-shrink: 0; }
.contact-note {
  font-size: .76rem; color: rgba(225, 219, 205, .64); line-height: 1.65;
  border-left: 2px solid rgba(213, 154, 99, .5); padding-left: .9rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(225, 219, 205, .55); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; font-weight: 300;  /* 16px: evita zoom automático no iOS */
  padding: .9rem 1rem;
  background: rgba(225, 219, 205, .05);
  border: 1px solid var(--line-light);
  color: var(--cream);
  border-radius: 4px; outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #d59a63; background: rgba(225, 219, 205, .08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(225, 219, 205, .3); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23d59a63' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field select option { background: var(--espresso); color: var(--cream); }

.form-send { margin-top: .5rem; }
.form-send-label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(225, 219, 205, .62); margin-bottom: .6rem; }
.form-send-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact .btn-solid { background: var(--cream); color: var(--espresso); }
.contact .btn-solid:hover { background: #fff; }
.contact .btn-ghost { border-color: var(--line-light); color: rgba(225, 219, 205, .8); }
.contact .btn-ghost:hover { border-color: #d59a63; color: #e7b487; }
.form-feedback { font-size: .82rem; min-height: 1.2em; opacity: 0; transition: opacity .2s; }
.form-feedback.show { opacity: 1; }
.form-feedback.ok  { color: #9fd8a6; }
.form-feedback.err { color: #e79b8c; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: rgba(225, 219, 205, .7);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) 2rem;
  border-top: 1px solid rgba(225, 219, 205, .07);
}
.footer-top {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light);
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.1rem; display: block; }
.footer-brand p { font-size: .82rem; color: rgba(225, 219, 205, .62); max-width: 30ch; }
.footer-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fp-name { font-family: var(--geo); font-weight: 500; color: var(--cream); font-size: .95rem; }
.fp-role { font-size: .72rem; color: rgba(225, 219, 205, .62); margin-bottom: .6rem; }
.fp a { display: block; font-size: .8rem; color: rgba(225, 219, 205, .72); padding: .16rem 0; transition: color .2s; }
.fp a:hover { color: #e7b487; }
.footer-bottom {
  max-width: var(--wrap); margin: 2rem auto 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.footer-note { font-size: .72rem; color: rgba(225, 219, 205, .6); line-height: 1.6; max-width: 80ch; }
.footer-copy { font-size: .72rem; color: rgba(225, 219, 205, .62); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; z-index: 200;
  right: max(clamp(1rem, 3vw, 1.75rem), env(safe-area-inset-right));
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0;
  height: 52px; padding: 0;
  background: var(--espresso); color: var(--cream);
  border: 1px solid rgba(225, 219, 205, .14);
  border-radius: 999px;
  box-shadow: 0 12px 28px -12px rgba(18, 17, 15, .5);
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, opacity .3s;
  touch-action: manipulation;
}
.wa-float-ico {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #dcae86;
  transition: color .3s;
}
.wa-float-label {
  max-width: 0; opacity: 0;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  transition: max-width .35s var(--ease), opacity .25s, padding .35s var(--ease);
}
.wa-float:hover {
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(116, 54, 15, .55);
}
.wa-float:hover .wa-float-ico { color: var(--cream); }
.wa-float:hover .wa-float-label { max-width: 200px; opacity: 1; padding-right: 1.25rem; }
.wa-float.hide { opacity: 0; pointer-events: none; transform: translateY(20px) scale(.85); }

/* ── Toast (feedback rápido) ── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 300;
  transform: translate(-50%, 1.5rem);
  background: var(--espresso); color: var(--cream);
  font-size: .85rem; font-weight: 500;
  padding: .8rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(225, 219, 205, .16);
  box-shadow: 0 16px 34px -14px rgba(18, 17, 15, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Toque: no mobile o hover não existe — mantém só o ícone, círculo */
@media (hover: none) {
  .wa-float-label { display: none; }
  .wa-float { border-radius: 50%; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO  (mobile-first na prática: a maioria acessa pelo celular)
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: none; }
  .service:nth-last-child(-n+3):not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--line); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) {
  .partner,
  .partner:nth-child(even) { grid-template-columns: 1fr; }
  .partner:nth-child(even) .partner-photo { order: 0; }
  /* altura por vw + min-height como base — não depende de aspect-ratio (Safari antigo) */
  .partner-photo {
    align-self: auto;
    aspect-ratio: 16 / 11;
    min-height: 300px;
  }
  .partner-body { align-self: auto; }
}

@media (max-width: 680px) {
  :root { --nav-h: 64px; }

  section, .partners, .manifesto, .services, .process, .faq, .testimonials, .contact {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-top: clamp(3.25rem, 12vw, 4.5rem);
    padding-bottom: clamp(3.25rem, 12vw, 4.5rem);
  }

  .section-head { margin-bottom: 2rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .section-desc { text-align: left; max-width: none; font-size: .9rem; }

  .hero { min-height: 92svh; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .hero-headline { margin: 0 0 1.1rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { margin-top: 1.8rem; gap: .7rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; padding: 1rem 1.4rem; }
  .hero-scroll { margin-top: 2.4rem; }
  /* Monograma da marca preenchido, grande, sangrando pela direita —
     ancora a composição e ocupa o vazio ao lado do título */
  .hero-mark {
    width: 132vw; height: auto;
    right: -56%; left: auto; top: 50%; bottom: auto;
    transform: translateY(-50%);
    fill: var(--rust); stroke: none; opacity: .09;
  }

  .partner-photo { aspect-ratio: 4 / 5; min-height: 400px; }
  .partner-body { padding: 1.5rem 1.4rem; }

  .marquee-item { padding: 0 1.4rem; font-size: .66rem; }
  .marquee-item::before { margin-right: 1.4rem; }

  .manifesto-lead { font-size: 1.3rem; }
  .manifesto-text { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: none !important; border-bottom: 1px solid var(--line) !important; padding: 1.6rem 1.4rem 1.8rem; }
  .service:last-child { border-bottom: none !important; }

  .process-steps { grid-template-columns: 1fr; }
  .pstep { padding: 1.5rem 1.4rem 1.7rem; }

  .testi { padding: 1.6rem 1.4rem; }
  .testi-text { font-size: 1rem; }

  .contact-grid { gap: 2.5rem; }
  .contact-partners { grid-template-columns: 1fr; gap: 1rem; }
  .contact-form { padding-bottom: 1rem; }
  .form-send-btns { flex-direction: column; }
  .form-send-btns .btn { width: 100%; justify-content: center; }

  .footer { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
  .footer-partners { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { margin-top: 1.5rem; }

}

@media (max-width: 360px) {
  .hero-headline { font-size: 1.95rem; }
  .btn { padding: .9rem 1.2rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .hero-scroll span::after { display: none; }
}
