/* ==========================================================================
   BF:LB — Home (apresentação)
   Base do design: artboard 1800px (Paper). Valores em px do design são
   convertidos para vw/clamp para escalar de 1024px a telas largas.
   ========================================================================== */

/* ---------- Fontes (self-hosted) ---------- */
@font-face { font-family: "Open Sauce Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("../assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-style: italic; font-display: swap; src: url("../assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* cores (extraídas do Paper) */
  --color-ink: #524C34;
  --color-cream: #EFE8DB;
  --color-white: #FFFFFF;
  --color-gold: #E29E46;
  --color-muted: #786449;
  --color-page: #F8F8F7;
  --color-sand: #F4EFE6;
  --color-heading: #2A2618;
  --color-brand: #746343;
  --color-brand-soft: #857A56;
  --color-taupe: #937A5C;
  --color-body: #5B4433;
  --color-card: #FFFDFA;
  --color-line: #EADFCE;
  --color-footer: #3D3825;
  --color-footer-text: #EFD4B1;
  --color-butter: #F0CE8E;

  /* tipografia */
  --font-display: "Open Sauce Sans", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-label: "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-text: "Open Sans", system-ui, sans-serif;

  /* layout: conteúdo até 1600px; abaixo disso, 5% de respiro em cada lateral */
  --container: min(1600px, 90%);

  /* unidade de escala: 1px no artboard de 1800px do Paper, encolhe junto com a viewport */
  --u: min(1px, calc(100vw / 1800));

  /* ícone lucide "arrow-up-right" */
  --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");

  /* movimento (curvas ao estilo Framer) — as animações de entrada rodam em js/main.js (Motion) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ==========================================================================
   Sistema de animação (entrada) — orquestrado por js/main.js com Motion
   (o motor de animação do Framer). Aqui ficam só os estados iniciais:
   - [data-reveal]        fade + subida + blur, um elemento
   - [data-reveal-group]  filhos diretos entram em cascata (stagger)
   - .line > span         linha de título revelada por máscara
   - [data-split]         título dividido em palavras, cada uma sobe da máscara
   O estado inicial só existe com JS ativo (.js). Sem JS, ou com
   prefers-reduced-motion, main.js remove .js e a página aparece pronta.
   ========================================================================== */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"],
.js [data-reveal-group="left"] > * { transform: translateX(-40px); }
.js [data-reveal="right"],
.js [data-reveal-group="right"] > * { transform: translateX(40px); }
.js [data-reveal="scale"],
.js [data-reveal-group="scale"] > * { transform: translateY(40px) scale(0.94); }

/* títulos em linhas com máscara (hero) */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(108%); }

/* títulos por palavra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; }
.js [data-split]:not(.is-split) { visibility: hidden; }
.js [data-split] .w > span { transform: translateY(112%); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(640px, 48.78vw, 980px);
  padding: 10px 0 clamp(40px, 4.94vw, 89px);
  color: var(--color-white);
  overflow: hidden;
  background-color: #674E31;
}
/* foto + overlay em camada própria para animar o zoom sem afetar o texto */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #674E31;
}
/* a foto vive numa camada própria para o parallax no scroll (js/main.js, item 8) */
.hero__photo {
  position: absolute;
  inset: 0; /* alinhada à hero; o JS desce a foto 30% do scroll (a parte da hero acima da tela nunca aparece, então não precisa de sobra) */
  background-image: url("../assets/hero-manaus.webp");
  background-size: cover;
  background-position: 50% 50%;
  will-change: transform;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #1A170C 0%, rgba(26, 23, 12, 0.35) 58%, rgba(26, 23, 12, 0.18) 100%),
    linear-gradient(to right, rgba(26, 23, 12, 0.55) 0%, rgba(26, 23, 12, 0) 62%);
}
.js .hero__bg {
  transform: scale(1.12);
  transition: transform 2.4s var(--ease-soft);
}
.js .hero.is-ready .hero__bg { transform: scale(1); }

/* header */
.header {
  width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 33px;
}
.header__logo { display: block; width: clamp(104px, 7.83vw, 141px); height: auto; }
.header__nav {
  display: flex;
  gap: clamp(28px, 3.3vw, 59px);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.52px;
  line-height: 19.5px;
}
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.header__nav a:hover::after { transform: scaleX(1); }

/* botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 200;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, box-shadow 0.5s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 16px; font-size: 13px; letter-spacing: 0.4px; line-height: 18px; background: var(--color-white); color: var(--color-ink); }
.btn--lg { padding: 11px 22px; font-size: 13px; letter-spacing: 0.7px; line-height: 18px; text-transform: uppercase; background: var(--color-cream); color: var(--color-ink); }

/* conteúdo */
.hero__content {
  width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
}
.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2.64px;
  line-height: 18px;
  text-transform: uppercase;
  margin-bottom: 21px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.44vw, 62px);
  line-height: 1.081;
  letter-spacing: -0.0245em;
  color: var(--color-cream);
}
.hero__aside {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
}
.hero__lead { font-size: clamp(15px, 1vw, 18px); line-height: 1.75; }

/* ==========================================================================
   Peças compartilhadas
   Medidas do design em `calc(N * var(--u))` (N = px no artboard de 1800px).
   Textos têm piso em px para continuarem legíveis em telas menores.
   ========================================================================== */
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: calc(17 * var(--u));
  font-family: var(--font-label);
  font-size: max(11px, calc(12 * var(--u)));
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.eyebrow svg { width: 12px; height: 12px; flex: none; }
.eyebrow--muted { color: var(--color-muted); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: max(26px, calc(34.51 * var(--u)));
  line-height: 1.304;
  letter-spacing: -0.01em;
  color: var(--color-heading);
}

.btn--md { padding: 11px 22px; font-size: 13px; letter-spacing: 0.7px; line-height: 18px; text-transform: uppercase; }
.btn--brand { background: var(--color-brand); color: var(--color-white); }
.btn--butter { background: var(--color-butter); color: var(--color-ink); }
.btn--white { background: var(--color-white); color: var(--color-ink); }
.btn--ghost { color: var(--color-cream); border: 1px solid rgba(239, 232, 219, 0.4); }
/* botões que abrem o popup: ícone arrow-up-right (lucide) à direita; no hover a seta desliza para a direita
   (transform não altera o layout, então o botão mantém o tamanho) */
.btn[data-lead] { gap: 8px; }
.btn[data-lead]::after {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
  mask: var(--icon-arrow-up-right) center / contain no-repeat;
  transition: transform 0.45s var(--ease-out);
}
.btn[data-lead]:hover::after { transform: translateX(4px); }
.btn--ghost:hover { border-color: rgba(239, 232, 219, 0.75); background-color: rgba(239, 232, 219, 0.08); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* cabeçalho de seção: rótulo + título à esquerda, ação à direita */
.head-row {
  width: min(calc(1324 * var(--u)), 90%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.head-row__text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: calc(753 * var(--u)); min-width: min(100%, 420px); }

/* cabeçalho centralizado */
.head-center { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.head-center .h2 { max-width: calc(753 * var(--u)); min-width: min(100%, 320px); }
.lead { font-size: max(15px, calc(16 * var(--u))); line-height: 1.75; color: var(--color-body); }

/* ==========================================================================
   Quem somos
   ========================================================================== */
.about { background: var(--color-page); padding: calc(96 * var(--u)) 0 calc(152 * var(--u)); }
.about__inner { width: var(--container); margin-inline: auto; }
.about .eyebrow { margin-bottom: calc(42 * var(--u)); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(558 * var(--u)) calc(385 * var(--u));
  grid-template-rows: auto auto;
  grid-template-areas: "head text photo" "clients clients photo";
  column-gap: calc(67 * var(--u));
}
.about__head { grid-area: head; padding-top: calc(39 * var(--u)); }
.about__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: max(28px, calc(38 * var(--u)));
  line-height: 1.184;
  letter-spacing: -0.009em;
  color: var(--color-ink);
}
.about__text { grid-area: text; padding-top: calc(29 * var(--u)); display: flex; flex-direction: column; gap: 1.75em; font-size: max(15px, calc(16 * var(--u))); line-height: 1.75; color: var(--color-body); }
.about__stat { display: flex; align-items: center; gap: calc(17 * var(--u)); margin-top: calc(24 * var(--u)); }
.about__stat img { width: calc(190.94 * var(--u)); min-width: 120px; height: auto; flex: none; }
.about__stat p { width: calc(181 * var(--u)); min-width: 128px; font-size: max(12px, calc(15 * var(--u))); line-height: 1.2; letter-spacing: 0.176em; text-transform: uppercase; color: var(--color-body); }
.about__photo { grid-area: photo; margin: 0; align-self: start; aspect-ratio: 385 / 532; border-radius: 20px; overflow: hidden; background: var(--color-brand); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* carrossel contínuo de marcas: duas cópias da lista em uma trilha que desliza -50% em loop */
.clients {
  grid-area: clients;
  align-self: end;
  margin-top: calc(48 * var(--u));
  width: calc(1104 * var(--u));
  max-width: 100%;
  margin-left: calc(5 * var(--u));
  padding-bottom: calc(18 * var(--u));
  overflow: hidden;
  container-type: inline-size;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.clients__track { display: flex; width: max-content; animation: clients-scroll 34s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; }
.clients__list li { flex: none; display: flex; align-items: center; justify-content: center; padding-inline: calc(48 * var(--u)); }
.clients__list img { width: calc(var(--w) * var(--u)); min-width: 48px; max-width: none; height: auto; }
@keyframes clients-scroll { to { transform: translateX(-50%); } }

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { background: var(--color-sand); padding: calc(118 * var(--u)) 0 calc(119 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(81 * var(--u)); }

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: calc(379 * var(--u));
  padding: calc(28 * var(--u));
  border: 1px solid transparent;
  border-radius: 12px;
  background: #FFFFFE;
  box-shadow: 0 4px 12px rgba(45, 41, 33, 0.07);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card:hover { border-color: #D1BBA1; box-shadow: 0 18px 36px -14px rgba(45, 41, 33, 0.22); }
/* card de serviço inteiro clicável: o link "Ver mais" é esticado sobre o card (::after) */
.card:has(.card__more) { position: relative; cursor: pointer; }
.card:has(.card__more:focus-visible) { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.card:has(.card__more) { justify-content: flex-start; }
.card:has(.card__more) .card__body { margin-top: auto; }
.card__foot { padding-top: 4px; }
.card__more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 4px; background: var(--color-sand);
  font-family: var(--font-display); font-size: 13px; font-weight: 200; letter-spacing: 0.7px; text-transform: uppercase; line-height: 18px;
  color: var(--color-brand);
  transition: background-color 0.3s, color 0.3s;
}
.card__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__more:focus-visible { outline: none; }
.card__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.card:hover .card__more { background: var(--color-brand); color: var(--color-white); }
.card:hover .card__more svg { transform: translateX(4px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card__icon { display: grid; place-items: center; width: max(44px, calc(52 * var(--u))); aspect-ratio: 1; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-cream); margin-bottom: 12px; }
.card__title { font-family: var(--font-display); font-weight: 300; font-size: max(20px, calc(24 * var(--u))); line-height: 1.25; color: var(--color-ink); }
.card__body { font-family: var(--font-body); font-size: max(14px, calc(15 * var(--u))); line-height: 1.733; color: var(--color-ink); }

.cards4 {
  width: min(calc(1338 * var(--u)), 90%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(12.7 * var(--u));
}

/* ==========================================================================
   Por que a BF:LB (diferenciais)
   ========================================================================== */
.why { background: var(--color-page); padding: calc(103 * var(--u)) 0 calc(98 * var(--u)); display: flex; flex-direction: column; align-items: center; }
.bento {
  width: min(calc(1335 * var(--u)), 90%);
  margin-top: calc(52 * var(--u));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "a c" "b d";
  gap: calc(13 * var(--u) * 1.237);
}
.bento .card { min-height: 0; justify-content: space-between; }
.bento .card__icon { background: var(--color-cream); color: var(--color-ink); }
.bento .card__body { font-family: var(--font-text); font-size: max(14px, calc(14 * var(--u))); line-height: 1.857; }
.bento__a { grid-area: a; }
.bento__b { grid-area: b; }
.bento__c { grid-area: c; }
.bento__d { grid-area: d; }
.why .btn { margin-top: calc(66 * var(--u)); }

/* ==========================================================================
   Time
   ========================================================================== */
.team { --notch: var(--color-sand); background: var(--color-sand); padding: calc(120 * var(--u)) 0; display: flex; flex-direction: column; align-items: center; }
.team .lead { max-width: calc(608 * var(--u)); min-width: min(100%, 320px); }
.members { width: var(--container); margin-top: calc(56 * var(--u)); display: flex; justify-content: space-between; gap: clamp(20px, 3vw, 56px); list-style: none; padding: 0; }
/* cada membro é um container: tudo no card (recorte, botão, monograma) escala com a largura da foto (base 323px) */
.member { flex: 1 1 0; min-width: 220px; container-type: inline-size; display: flex; flex-direction: column; gap: clamp(12px, 5cqw, 20px); }
.member__photo {
  position: relative;
  aspect-ratio: 323 / 362;
  overflow: hidden;
  border-radius: 8.67cqw 8.67cqw 0 8.67cqw;
  background: var(--tone, var(--color-brand));
  display: grid;
  place-items: center;
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member__mono { font-family: var(--font-serif); font-weight: 700; font-size: 29.7cqw; line-height: 1.25; color: var(--color-cream); }
/* recorte no canto: quadrado da cor do fundo + duas curvas invertidas + botão */
.member__notch { position: absolute; right: -1px; bottom: -1px; width: calc(18.9cqw + 1px); aspect-ratio: 1; border-top-left-radius: 7.43cqw; background: var(--notch); }
.member__curve { position: absolute; width: 6.19cqw; aspect-ratio: 1; fill: var(--notch); stroke: var(--notch); stroke-width: 0.6; }
.member__curve--top { right: -1px; bottom: 18.6cqw; }
.member__curve--side { right: 18.6cqw; bottom: -1px; }
.member__go {
  position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center;
  width: 13.6cqw; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-cream);
  transition: background-color 0.4s, transform 0.5s var(--ease-out);
}
.member__go svg { width: 36%; height: 36%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.member__go:hover { background: var(--color-gold); transform: scale(1.08); }
.member__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.member__name strong { font-family: var(--font-serif); font-weight: 700; font-size: clamp(18px, 6.2cqw, 24px); line-height: 1.4; letter-spacing: -0.01em; color: var(--color-ink); }
.member__name span { font-size: max(12px, calc(13 * var(--u))); line-height: 1.54; color: var(--color-taupe); }

.certs { width: min(calc(1216 * var(--u)), 90%); margin-top: calc(80 * var(--u)); padding-top: calc(48 * var(--u)); border-top: 1px solid #DDD0C1; display: flex; flex-direction: column; align-items: center; }
.certs__label { font-family: var(--font-label); font-weight: 600; font-size: max(11px, calc(12 * var(--u))); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; color: #AD977B; }
.certs__row { width: calc(1042 * var(--u)); max-width: 100%; margin-top: calc(24 * var(--u)); padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: calc(24 * var(--u)); list-style: none; }
.certs__row img { height: max(60px, calc(90 * var(--u))); width: auto; }

/* ==========================================================================
   Metodologia
   ========================================================================== */
.method { background: var(--color-page); padding: calc(130 * var(--u)) 0; display: flex; flex-direction: column; align-items: center; gap: calc(64 * var(--u)); }
.method .head-center .h2 { max-width: calc(900 * var(--u)); }
.method__body { width: min(calc(1335 * var(--u)), 90%); display: grid; grid-template-columns: calc(760 * var(--u)) 1fr; column-gap: calc(51 * var(--u)); min-height: calc(660 * var(--u)); }
.method__photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; min-height: 320px; }
.method__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.accordion { display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.acc { padding: 0 calc(32 * var(--u)); border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); transition: box-shadow 0.5s var(--ease-out), border-color 0.4s; }
.acc:hover { border-color: #DCCBB3; }
.acc.is-open { box-shadow: 0 14px 30px -18px rgba(45, 41, 33, 0.25); }
.acc__head { display: flex; align-items: flex-start; gap: calc(28 * var(--u)); width: 100%; padding: calc(49 * var(--u)) 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: padding-bottom 0.5s var(--ease-out); }
.acc.is-open .acc__head { padding-bottom: calc(14 * var(--u)); }
.acc__num { flex: none; width: max(28px, calc(40 * var(--u))); font-size: max(15px, calc(18 * var(--u))); line-height: 1.78; color: var(--color-taupe); }
.acc__title { flex: 1; font-family: var(--font-display); font-weight: 300; font-size: max(20px, calc(26 * var(--u))); line-height: 1.23; letter-spacing: -0.01em; color: var(--color-ink); }
.acc__chev { flex: none; align-self: center; width: 16px; height: 16px; fill: none; stroke: var(--color-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-inline: 4px; }
:root:not(.js) .acc.is-open .acc__chev { transform: rotate(180deg); }
.acc__panel { height: 0; overflow: hidden; }
.acc.is-open .acc__panel { height: auto; }
.acc__panel p { max-width: calc(520 * var(--u)); min-width: 0; margin-left: calc(68 * var(--u)); padding-bottom: calc(42 * var(--u)); font-family: var(--font-text); font-size: max(14px, calc(15 * var(--u))); line-height: 1.733; color: var(--color-ink); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { background: var(--color-white); padding: calc(118 * var(--u)) 0; display: flex; flex-direction: column; align-items: center; gap: calc(56 * var(--u)); }
.posts { width: min(calc(1324 * var(--u)), 90%); display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(32 * var(--u)); list-style: none; padding: 0; }
.post { display: flex; flex-direction: column; height: 100%; }
.post__thumb { position: relative; aspect-ratio: 420 / 280; overflow: hidden; border-radius: 12px; background: var(--tone); }
.post__thumb::before, .post__thumb::after { content: ""; position: absolute; left: 50%; width: 13.33%; aspect-ratio: 1; margin-left: -6.665%; border-radius: 50%; background: var(--color-cream); opacity: 0.18; transition: transform 0.9s var(--ease-out); }
.post__thumb::before { top: 26.43%; }
.post__thumb::after { top: 53.57%; }
.post:hover .post__thumb::before { transform: translateY(-14px); }
.post:hover .post__thumb::after { transform: translateY(14px); }
.post__text { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-block: calc(24 * var(--u)); }
.post__cat { font-family: "Inter Tight", var(--font-label); font-size: max(11px, calc(12 * var(--u))); line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-taupe); }
.post__title { font-family: var(--font-display); font-weight: 300; font-size: max(20px, calc(24 * var(--u))); line-height: 1.333; color: var(--color-heading); }
.post__meta { display: flex; align-items: center; gap: 12px; padding: 16px clamp(14px, calc(20 * var(--u)), 20px); border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); }
.post__avatar { flex: none; display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 50%; background: var(--tone); font-size: 14px; font-weight: 600; line-height: 1.43; color: var(--color-cream); }
.post__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post__who strong { white-space: nowrap; font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: 1.43; color: var(--color-ink); }
.post__who span { font-size: 12px; line-height: 1.5; color: var(--color-taupe); }
.post__read { flex: none; margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--color-taupe); white-space: nowrap; }
.post__read svg { width: 14px; height: 14px; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; padding: calc(150 * var(--u)) 5%; color: var(--color-white); text-align: center; background: #1a1611; }
.cta__bg {
  position: absolute; inset: -8% 0; z-index: -2;
  background: linear-gradient(rgba(6, 5, 2, 0.5), rgba(6, 5, 2, 0.5)), url("../assets/cta-fundo.webp") center / cover no-repeat;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(86.02% 86.02% at 70% 50%, rgba(178, 154, 121, 0.08) 0%, rgba(178, 154, 121, 0) 70%);
  background: radial-gradient(86.02% 86.02% at 70% 50%, oklab(0.689 0.013 0.045 / 0.08) 0%, oklab(0.689 0.013 0.045 / 0) 70%);
}
.cta__inner { width: min(calc(736 * var(--u)), 100%); min-width: min(100%, 320px); display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { font-weight: 600; letter-spacing: 0.22em; color: #AD977B; }
.cta .h2 { margin-top: 10px; max-width: calc(640 * var(--u)); min-width: min(100%, 300px); color: var(--color-white); }
.cta__lead { margin-top: calc(32 * var(--u)); font-size: max(15px, calc(16 * var(--u))); line-height: 1.75; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: calc(48 * var(--u)); }
.cta__note { margin-top: 16px; font-size: 12px; line-height: 1.5; letter-spacing: 0.06em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--color-footer); padding: calc(64 * var(--u)) 0 40px; }
.footer__inner { width: var(--container); margin-inline: auto; }
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer__col { width: calc(307.65 * var(--u)); min-width: 220px; }
.footer__brand { position: relative; display: inline-block; font-family: var(--font-serif); font-weight: 700; font-size: 24px; line-height: 36px; letter-spacing: -0.01em; color: var(--color-white); }
.footer__brand small { position: absolute; left: 74.82px; top: 16.5px; font-family: var(--font-body); font-size: 9.6px; font-weight: 600; line-height: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: #EFD4B1; }
.footer p, .footer li, .footer a { font-size: 15px; line-height: 1.733; color: var(--color-footer-text); }
.footer__col p { margin-top: 16px; }
.footer__title { font-family: var(--font-label); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-footer-text); }
.footer ul { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.footer li { line-height: 23px; }
.footer li a { line-height: inherit; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--color-white); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(133, 122, 86, 0.2); }
.footer__bar p { font-size: 12px; line-height: 1.5; color: #FFFAE6; }

/* ---------- Responsivo básico (o mobile ainda não foi desenhado) ---------- */
@media (max-width: 1100px) {
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__aside { width: 100%; align-items: flex-start; }
}
@media (max-width: 900px) {
  :root { --u: max(0.55px, calc(100vw / 1000)); }
  .head-row { flex-direction: column; align-items: flex-start; }
  .about__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "text" "photo" "clients"; row-gap: 32px; }
  .about__head, .about__text, .about__stat { min-width: 0; }
  .about__head { padding-top: 0; }
  .about__text { padding-top: 0; }
  .about__stat { margin-top: 20px; }
  .about__stat p { width: auto; min-width: 0; flex: 1 1 0; font-size: 12px; letter-spacing: 0.14em; }
  .about__photo { width: min(100%, 385px); }
  .clients { width: 100%; margin-left: 0; padding-bottom: 0; }
  .clients__list li { width: 50cqw; padding-inline: 0; }
  .clients__list img { max-width: 82%; }
  .cards4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "c" "b" "d"; gap: 16px; }
  .bento .card { min-height: 220px; }
  .members { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .method__body { grid-template-columns: 1fr; row-gap: 24px; min-height: 0; }
  .method__photo { min-height: 260px; }
  .posts { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .cards4 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer__col { width: 100%; }
}


/* ---------- Submenu de serviços (desktop) ---------- */
.nav-sub { position: relative; }
.nav-sub__link { display: inline-flex; align-items: center; gap: 6px; }
.nav-sub__chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.nav-sub:hover .nav-sub__chev, .nav-sub:focus-within .nav-sub__chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: -18px; z-index: 20;
  min-width: 270px; margin: 0; padding: 10px; list-style: none;
  border-radius: 8px; background: #FFFFFF; box-shadow: 0 24px 48px -16px rgba(26, 22, 17, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.3s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* ponte para o mouse não "soltar" o menu */
.nav-sub:hover .submenu, .nav-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.header__nav .submenu a { display: block; padding: 11px 14px; border-radius: 5px; font-size: 14px; font-weight: 500; letter-spacing: 0.2px; line-height: 1.3; color: #524C34; transition: background-color 0.25s, color 0.25s; }
.header__nav .submenu a::after { display: none; }
.header__nav .submenu a:hover, .header__nav .submenu a:focus-visible, .header__nav .submenu a[aria-current="page"] { background: #EFE8DB; color: #3B3723; }

/* ---------- Menu móvel: off-canvas ---------- */
.header__logo-link { display: block; flex: none; }
.header__toggle { display: none; }
.header__nav a[aria-current="page"], .header__nav a:hover { color: #EFD4B1; }
.header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta-mobile { display: none; }

.oc { position: fixed; inset: 0; z-index: 200; overflow: hidden; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.5s; }
.oc.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.oc__overlay { position: absolute; inset: 0; background: rgba(26, 22, 17, 0.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.oc.is-open .oc__overlay { opacity: 1; }
.oc__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  display: flex; flex-direction: column;
  padding: 22px 28px 28px;
  background: #3D3825; color: var(--color-white);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.oc.is-open .oc__panel { transform: none; }
.oc__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 28px; }
.oc__top img { width: 105px; height: auto; }
.oc__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--color-white); cursor: pointer; transition: background-color 0.3s; }
.oc__close:hover { background: rgba(239, 212, 177, 0.12); }
.oc__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.oc__nav { display: flex; flex-direction: column; }
.oc__nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid rgba(239, 212, 177, 0.14);
  font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--color-white);
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.oc.is-open .oc__nav a { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.06s); }
.oc__nav a:hover, .oc__nav a[aria-current="page"] { color: #EFD4B1; }
.oc__sub { display: flex; flex-direction: column; margin: 0; padding: 4px 0 8px 14px; list-style: none; border-bottom: 1px solid rgba(239, 212, 177, 0.14); }
.oc__nav .oc__sub a { padding: 11px 0; border-bottom: 0; font-size: 17px; color: #E6E0C3; }
.oc__nav .oc__sub a::before { content: "—"; margin-right: 10px; color: #AD977B; }
.oc__nav a.has-sub { border-bottom: 0; padding-bottom: 8px; }
.oc__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 18px; opacity: 0; transition: opacity 0.5s var(--ease-out) 0.35s; }
.oc.is-open .oc__foot { opacity: 1; }
.oc__foot .btn { width: 100%; }
.oc__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--color-footer-text); }
.oc__contact a:hover { color: var(--color-white); }
body.oc-lock { overflow: hidden; }

@media (max-width: 760px) {
  .header { position: relative; z-index: 5; }
  .header__nav, .header__cta { display: none; }
  .header__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; padding: 0 11px; border: 0; background: transparent; cursor: pointer; }
  .header__toggle span { display: block; height: 2px; border-radius: 1px; background: var(--color-white); }
}
@media (min-width: 761px) { .oc { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .oc, .oc__overlay, .oc__panel, .oc__nav a, .oc__foot { transition: none; }
}

/* ---------- Acessibilidade: sem movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__bg { transform: none; transition: none; }
  .post__thumb::before, .post__thumb::after, .btn, .card, .member__go { transition: none; }
  .clients { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .clients__track { animation: none; }
  .clients__list[aria-hidden="true"] { display: none; }
}

/* selo "Avaliações no Google" (hero da home) */
.gbadge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border: 1px solid rgba(239, 232, 219, 0.32); border-radius: 999px;
  background: rgba(26, 22, 17, 0.38); backdrop-filter: blur(6px);
  font-size: 13px; line-height: 1; letter-spacing: 0.2px; color: var(--color-cream);
  transition: background-color 0.3s, border-color 0.3s;
}
.gbadge:hover { background: rgba(26, 22, 17, 0.6); border-color: rgba(239, 232, 219, 0.6); }
.gbadge__g { width: 18px; height: 18px; flex: none; }
.gbadge__go { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease-out); }
.gbadge:hover .gbadge__go { transform: translateX(3px); }
@media (max-width: 1100px) { .hero__aside .gbadge { align-self: flex-start; } }

/* logo e redes no rodapé */
.footer__logo { display: inline-block; }
.footer__logo img { display: block; width: 141px; height: auto; }
.footer .footer__social { flex-direction: row; align-items: center; gap: 10px; margin: 20px 0 0 !important; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(239, 212, 177, 0.35); border-radius: 50%; color: var(--color-footer-text); transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); }
.footer__social a:hover { background: var(--color-footer-text); border-color: var(--color-footer-text); color: #3B3723; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Avaliações do Google
   ========================================================================== */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars__bg, .stars__fg { display: flex; gap: 2px; }
.stars__fg { position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); overflow: hidden; }
.stars svg { flex: none; width: 16px; height: 16px; }
.stars__bg svg { fill: #D9D2C3; }
.stars__fg svg { fill: #FBBC05; }

/* hero: selo com nota */
.gbadge--rated { gap: 8px; }
.gbadge--rated .gbadge__score { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--color-white); }
.gbadge--rated .stars svg { width: 14px; height: 14px; }
.gbadge--rated .stars__bg svg { fill: rgba(239, 232, 219, 0.35); }
.gbadge__count { font-size: 12px; opacity: 0.85; }

.reviews { background: #F5F2EC; padding: calc(91 * var(--u)) 0 calc(65 * var(--u)); overflow: hidden; }
.reviews__head { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-inline: 5%; text-align: center; }
.reviews__title { max-width: 18em; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -0.015em; color: var(--color-ink); }
.reviews__sum { display: inline-flex; align-items: center; gap: 12px; color: var(--color-ink); }
.reviews__sum:hover .reviews__score { text-decoration: underline; text-underline-offset: 4px; }
.reviews__wordmark { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.reviews__score { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.reviews .stars svg { width: 20px; height: 20px; }
.reviews .stars__bg svg { fill: #D9D2C3; }
.reviews .stars__fg svg { fill: #E29E46; }
.reviews__count { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-ink); }
.reviews__rows { display: flex; flex-direction: column; gap: 24px; margin-top: calc(36 * var(--u) + 12px); }
.rrow { overflow: hidden; }
.rrow__track { display: flex; gap: 24px; width: max-content; animation: rmarq 70s linear infinite; }
.rrow--rev .rrow__track { animation-direction: reverse; animation-duration: 85s; }
.rrow:hover .rrow__track { animation-play-state: paused; }
@keyframes rmarq { to { transform: translateX(calc(-50% - 12px)); } }
.rrow--static { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; padding-inline: 5%; }
.rcard {
  flex: none; width: min(440px, 86vw); min-height: 170px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 20px; padding: 32px;
  background: #FFFFFF; border-radius: 10px; color: var(--color-ink);
}
.rcard__stars { margin: 0; line-height: 0; }
.rcard__stars .stars svg { width: 28px; height: 28px; }
.rcard__stars .stars__bg svg { fill: #E6DFD0; }
.rcard__stars .stars__fg svg { fill: #E29E46; }
.rcard__who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.rcard__avatar { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--tone, #524C34); color: #FFFFFF; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.rcard__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rcard__name { display: flex; flex-direction: column; min-width: 0; }
.rcard__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--color-ink); }
.rcard__name small { font-size: 13px; line-height: 1.5; color: #786449; }
@media (prefers-reduced-motion: reduce) { .rrow__track { animation: none; } .rrow:not(.rrow--static) { overflow-x: auto; } }
@media (max-width: 760px) { .rcard { padding: 24px; min-height: 150px; } .reviews__rows { margin-top: 28px; } }

/* ---------- Header sticky ao subir (js/sticky.js) ---------- */
html { scroll-padding-top: 84px; }
.hero > .header.is-stuck, .ihero > .header.is-stuck {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  margin-inline: auto;
  padding-top: 14px; padding-bottom: 14px;
  transition: transform 0.45s var(--ease-out);
}
.hero > .header.is-stuck::before, .ihero > .header.is-stuck::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: rgba(59, 55, 35, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(239, 212, 177, 0.14);
}
.hero > .header.is-stuck.is-hidden, .ihero > .header.is-stuck.is-hidden { transform: translateY(-110%); }
.header.is-stuck.no-motion { transition: none; }
.header.is-stuck .header__logo { width: clamp(88px, 6.2vw, 112px); transition: width 0.3s; }
/* o header fixo vive dentro do hero (isolation:isolate): o hero precisa ficar acima das seções seguintes para o submenu não ser coberto */
.hero, .ihero { z-index: 20; }
