/* ==========================================================================
   Fontes — servidas do próprio domínio.
   Antes vinham do Google Fonts: uma folha de estilo bloqueante de 14KB, dois
   handshakes externos (googleapis + gstatic) e 37 declarações @font-face, das
   quais o navegador usava 5. Inter e Playfair Display são fontes variáveis, então
   um arquivo por família cobre toda a faixa de peso que o site usa.
   Subset latin: cobre o português do Brasil. Licenças em assets/fonts/LICENSE.txt.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-variable.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: 'Playfair Display';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.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;
}

/* ==========================================================================
   Fernando Martin — Estrategista de Autoridade Digital
   Direção editorial: fotografia real, tipografia com hierarquia, linhas finas.
   Hero com luz quente e retratos sobrepostos, conforme a referência do cliente.
   ========================================================================== */

:root {
  --bg: #f5f0e9;
  --bg-soft: #ece4db;
  --paper: #fbf8f4;
  --ink: #2d211e;
  --ink-2: #56443d;
  --muted: #6f615a;
  --line: rgba(45, 33, 30, .16);
  --line-forte: rgba(45, 33, 30, .3);
  --line-dark: rgba(245, 240, 233, .18);
  --blue: #b8d7e9;
  --blue-deep: #7fb3d8;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(45, 33, 30, .10);
  --container: 1360px;
  --header-h: clamp(92px, 9vw, 144px);
  --hero-bg: #2b190f;
  --hero-text: #fbf5ed;
  --hero-accent: #e9b58a;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Desliga o zoom por duplo-toque e o atraso de 300ms que vem junto.
     A pinça continua funcionando — o viewport não bloqueia escala, então
     quem precisa ampliar continua conseguindo. Bloquear o zoom por inteiro,
     como fazia o site v1 com user-scalable=no, é falha de acessibilidade. */
  touch-action: manipulation;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* rede de segurança: nenhuma seção deve estourar por conta própria */
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blue); color: var(--ink); }

/* Âncoras não podem parar embaixo do header fixo */
[id] { scroll-margin-top: 108px; }

.container { width: min(88%, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 8vw, 132px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--bg); }
.section-label { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--muted); }
.section-dark .section-label, .light .section-label { color: #c9bab2; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(36px, 4.4vw, 62px); max-width: 16ch; }
h1 em { font-weight: 500; font-style: italic; color: var(--ink-2); }
h2 { font-size: clamp(30px, 3.5vw, 52px); max-width: 22ch; font-weight: 400; }
h3 { font-size: 19px; line-height: 1.3; }
p { color: var(--ink-2); }
.section-dark p { color: #d9cec7; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
main:focus { outline: none; }

/* ---------- cabeçalho ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--hero-text); background: transparent; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled, .site-header:has(.nav.is-open) { background: var(--hero-bg); border-bottom-color: rgba(233, 181, 138, .2); }
.header-inner { min-height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 32px; transition: min-height .3s ease; }
.site-header.is-scrolled .header-inner { min-height: 88px; }
.site-header.is-scrolled .brand-mark { transform: scale(.78); }
.site-header .container, .hero .container { width: min(88%, 1480px); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; width: max-content; }
.brand-mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--bg); font-family: "Playfair Display", Georgia, serif; font-size: 16px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; font-weight: 600; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.site-header .brand { gap: clamp(20px, 2.2vw, 36px); }
.brand .brand-monogram { position: relative; display: block; width: 66px; height: 70px; border-radius: 0; background: transparent; color: inherit; font-size: 60px; font-weight: 400; line-height: 1; transition: transform .3s ease; transform-origin: left center; }
.brand-monogram span:first-child { position: absolute; top: 0; left: 0; }
.brand-monogram span:last-child { position: absolute; top: 19px; left: 22px; font-size: .8em; }
.site-header .brand-copy { min-height: 58px; align-content: center; border-left: 1px solid rgba(251, 245, 237, .55); padding-left: clamp(20px, 1.8vw, 30px); }
.site-header .brand-copy strong { font-size: clamp(12px, 1vw, 17px); text-transform: uppercase; font-weight: 400; letter-spacing: .32em; }
.site-header .brand-copy small { margin-top: 8px; color: #d8b99f; font-size: clamp(8px, .65vw, 11px); letter-spacing: .29em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 36px); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; color: var(--hero-text); font-size: clamp(14px, 1.1vw, 18px); font-weight: 400; transition: color .2s ease; }
.nav a::after { content: ''; position: absolute; bottom: 3px; left: 8px; right: 8px; height: 1px; background: var(--hero-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover, .nav a[aria-current="location"] { color: var(--hero-accent); }
.nav a:hover::after, .nav a[aria-current="location"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 13px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #1f1715; }
.button-small { min-height: 44px; padding: 0 20px; font-size: 12px; }
.button-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.button-light:hover { background: #fffaf5; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-underline-offset: 5px; font-size: 13px; font-weight: 600; }

/* ---------- hero: camada gráfica ----------
   Inspirado nos padrões de Spotlight e de grade do 21st.dev, implementado em CSS
   puro — nada de React, Motion ou biblioteca. O site tem orçamento de performance
   (docs/PERFORMANCE_BUDGET.md) e zero dependência externa; isso não muda por
   causa de enfeite.

   A grade ecoa a coluna editorial do resto da página. O foco de luz acompanha o
   ponteiro e conversa com a iluminação de estúdio que já existe no fundo.
   Some no mobile, em telas sem ponteiro fino e para quem pediu menos movimento.
   ---------------------------------------------------------------------------- */

.hero-grafico { display: none; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hero-grafico {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  /* Cinco filetes marcando a mesma grade que organiza o conteúdo. */
  .hero-colunas {
    position: absolute;
    inset: 0;
    width: min(88%, 1480px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .hero-colunas i {
    border-left: 1px solid rgba(233, 181, 138, .07);
  }
  .hero-colunas i:first-child { border-left: 0; }

  /* Foco quente que segue o ponteiro. Opacidade baixa de propósito: deve ser
     percebido como luz do estúdio, não como efeito. */
  .hero-luz {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    background: radial-gradient(
      460px circle at var(--luz-x, 50%) var(--luz-y, 40%),
      rgba(233, 181, 138, .13),
      transparent 68%
    );
  }
  .hero-luz.is-ativa { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grafico { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: var(--header-h) 0 76px;
  color: var(--hero-text);
  background:
    radial-gradient(ellipse at 62% 4%, rgba(164, 112, 75, .43), transparent 48%),
    radial-gradient(ellipse at 14% 94%, rgba(129, 76, 42, .27), transparent 43%),
    radial-gradient(ellipse at 97% 68%, rgba(117, 69, 39, .22), transparent 42%),
    var(--hero-bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .48fr) minmax(0, .52fr); align-items: center; min-height: calc(100svh - var(--header-h) - 76px); }
.hero-copy { position: relative; z-index: 2; padding-bottom: 8px; }
.hero h1 { display: flex; flex-direction: column; margin-bottom: clamp(28px, 2.4vw, 40px); max-width: none; font-size: clamp(48px, 6.25vw, 106px); line-height: .99; letter-spacing: -.055em; font-weight: 400; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--hero-accent); font-style: normal; font-weight: 400; }
.hero-line { overflow: hidden; padding-block: .16em; margin-block: -.16em; }
.hero-line-inner { transform-origin: left bottom; }
.hero-lead { max-width: 47ch; padding-right: 22px; color: #eee1d6; font-size: clamp(16px, 1.35vw, 23px); line-height: 1.55; margin-bottom: 0; font-weight: 400; }
.hero-actions { display: flex; margin-top: clamp(26px, 2.4vw, 40px); }
.hero-button { min-height: clamp(60px, 4.5vw, 76px); gap: 18px; padding: 12px clamp(22px, 2.2vw, 38px); border: 1px solid #d79e6c; border-radius: 13px; background: rgba(35, 16, 7, .28); color: var(--hero-text); font-size: clamp(16px, 1.35vw, 23px); font-weight: 400; box-shadow: inset 0 0 0 3px rgba(233, 181, 138, .035); }
.hero-button:hover { background: #59361f; transform: none; }
.hero-button-content { display: inline-flex; align-items: center; justify-content: center; gap: 18px; width: 100%; transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0); }
.hero-whatsapp { width: 34px; height: 34px; flex: none; }
.hero-arrow { width: 28px; height: 24px; margin-left: 6px; flex: none; transition: transform .2s ease; }
.hero-button:hover .hero-arrow { transform: translateX(4px); }
.hero-note { display: flex; align-items: center; gap: 22px; margin: clamp(30px, 3vw, 50px) 0 0; color: #d8c0ad; font-size: clamp(11px, .94vw, 16px); line-height: 1.6; letter-spacing: .07em; }
.hero-note svg { width: 26px; height: 32px; color: var(--hero-accent); flex: none; }
.hero-media { position: relative; width: 100%; aspect-ratio: 1.02; margin: -18px 0 0; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; background: #523c2c; border: 1px solid rgba(233, 181, 138, .5); border-radius: clamp(18px, 2vw, 34px); box-shadow: 0 24px 64px rgba(12, 6, 2, .24); transform: translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0) rotate(var(--photo-angle)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { --photo-angle: 2.5deg; width: 72%; height: 96%; top: 0; left: 8%; }
.hero-photo-main img { object-position: 50% 38%; }
.hero-photo-secondary { --photo-angle: 1.5deg; z-index: 2; left: -1%; bottom: -1%; width: 37%; height: 47%; }
.hero-photo-secondary img { object-position: 50% 30%; }
.hero-photo-detail { --photo-angle: 3.5deg; z-index: 3; top: 30%; right: -6%; width: 44%; height: 52%; }
.hero-photo-detail img { object-position: 50% 35%; }
.hero-scroll { position: absolute; bottom: 16px; left: max(6%, calc((100% - 1480px) / 2)); display: inline-flex; align-items: center; min-height: 44px; gap: 14px; color: #d8b99f; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }
.hero-scroll-line { width: 38px; height: 1px; background: currentColor; transition: width .25s ease; }
.hero-scroll:hover .hero-scroll-line { width: 52px; }
/* No mobile o .hero-scroll some; este link assume o caminho de quem quer avaliar antes de chamar. */
.hero-trabalhos { display: none; }

/* ---------- credenciais ---------- */

.credibility { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.credibility-grid { min-height: 126px; display: grid; grid-template-columns: repeat(4, 1fr); }
.credibility-grid > div { display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-right: 1px solid var(--line); }
.credibility-grid > div:first-child { padding-left: 0; }
.credibility-grid > div:last-child { border-right: 0; }
.credibility strong { font-family: "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 500; }
.credibility span { margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- blocos editoriais ---------- */

.manifesto-grid, .audience-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 76px); }
.manifesto h2 { max-width: 29ch; margin-bottom: 28px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.18; }
.manifesto div > p { max-width: 68ch; font-size: 17px; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 7vw, 96px); align-items: center; }
.about-media { margin: 0; }
.about-media img { aspect-ratio: .84; object-fit: cover; object-position: 50% 42%; border-radius: 3px; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy > p { font-size: 16px; max-width: 60ch; }
.about-copy .about-signature { margin: 32px 0 0; padding-top: 26px; border-top: 1px solid var(--line); font-family: "Playfair Display", Georgia, serif; font-size: 26px; color: var(--ink); }
.about-signature span { display: block; margin-top: 5px; font-family: Inter, sans-serif; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: clamp(28px, 5vw, 76px); align-items: end; margin-bottom: clamp(40px, 5vw, 60px); }
.section-heading h2 { max-width: 24ch; margin-bottom: 0; }
.section-heading > p { max-width: 42ch; margin: 0; }

.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.process .section-heading { display: block; position: sticky; top: 120px; margin: 0; }
.process .section-heading h2 { margin-bottom: 26px; }
.process .section-heading > p { max-width: 36ch; }
.process-media { max-width: 440px; margin: 36px 0 0; }
.process-media img { aspect-ratio: 1.45; object-fit: cover; object-position: 50% 42%; border-radius: 3px; }
.process-media figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; }
.process-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.process-list h3 { margin: 0 0 6px; font-weight: 600; }
.process-list p { max-width: 56ch; margin: 0; font-size: 15px; }

.services { background: #30221b; }
.services-grid { border-top: 1px solid var(--line-dark); }
.services-grid article { min-height: 120px; display: grid; grid-template-columns: 48px minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 18px 28px 0; border-bottom: 1px solid var(--line-dark); transition: background .25s ease; }
.services-grid article > span { color: #c3a58e; font-size: 11px; letter-spacing: .12em; }
.services-grid h3 { color: var(--bg); font-family: "Playfair Display", Georgia, serif; font-size: clamp(23px, 2.15vw, 32px); font-weight: 400; margin: 0; transition: color .25s ease; }
.services-grid p { margin: 0; max-width: 48ch; font-size: 14px; line-height: 1.7; }

/* ---------- portfólio: índice editorial, não vitrine de cards vazios ---------- */

.reels-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reels-index li { border-bottom: 1px solid var(--line); }
.reels-index a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 44px;
  align-items: baseline;
  gap: 0 24px;
  min-height: 84px;
  padding: 24px 12px 24px 0;
  text-decoration: none;
  transition: background .2s ease, padding-left .2s ease;
}
.reels-index a:hover { background: var(--bg-soft); padding-left: 12px; }
.reel-n { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.reel-t { font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; }
.reel-d { color: var(--ink-2); font-size: 14px; }
.reel-a { justify-self: end; align-self: center; font-size: 20px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.reels-index a:hover .reel-a { transform: translate(3px, -3px); color: var(--ink); }
.portfolio-mais { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 24px 0 0; font-size: 14px; }
.portfolio-mais .text-link { font-size: 14px; color: var(--ink); }

/* ---------- case ---------- */

.case-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 92px); }
.case-kicker { color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.case-intro h2 { max-width: 18ch; }
.case-lead { font-size: 17px; max-width: 60ch; }
.case-body dl { margin: 38px 0 24px; border-top: 1px solid var(--line); }
.case-body dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.case-body dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.case-body dd { margin: 0; color: var(--ink-2); }

/* ---------- bastidores ---------- */

.photo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.photo-grid figure { margin: 0; min-width: 0; }
.photo-grid figure + figure { margin-top: 100px; }
.photo-grid img { aspect-ratio: .92; object-fit: cover; border-radius: 3px; }
.photo-grid .photo-tall img { object-position: center 34%; }
.photo-grid figcaption { display: flex; gap: 22px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.photo-grid figcaption span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }

/* ---------- para quem é ---------- */

.audience h2 { margin-bottom: 34px; max-width: 26ch; }
.audience-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.audience-list li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }

/* ---------- CTA e rodapé ---------- */

.cta { background: var(--hero-bg); color: var(--hero-text); }
.cta-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.cta-card h2 { max-width: 20ch; margin-bottom: 0; font-size: clamp(40px, 5.2vw, 76px); }
.cta-card h2 em { color: var(--hero-accent); font-style: normal; }
.cta-card .section-label { color: #baaaa1; }
.cta-side p { color: #d7ccc5; margin-bottom: 26px; }
.cta-side .button { min-height: 62px; border-radius: 8px; gap: 40px; padding-inline: 28px; font-size: 15px; font-weight: 500; }
.cta-side .button span { font-size: 22px; }
.cta-side .cta-note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 11px; color: #c5ad9a; }

.footer { padding: clamp(56px, 6vw, 72px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.footer-brand { margin-bottom: 24px; gap: 24px; }
.footer-brand .brand-copy { min-height: 52px; border-left: 1px solid var(--line-forte); padding-left: 24px; }
.footer-brand .brand-copy strong { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.footer-brand .brand-copy small { margin-top: 8px; font-size: 8px; letter-spacing: .14em; }
.footer-grid > div > p { margin: 0; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13px; text-underline-offset: 4px; }
/* Perfis numa linha, contato na outra — em vez de o WhatsApp sobrar sozinho na quebra. */
.footer-quebra { flex-basis: 100%; height: 0; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin: 0; font-size: 11px; color: var(--muted); }

/* Acesso ao WhatsApp durante a leitura, depois da primeira dobra. */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; width: 54px; height: 54px; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 26px rgba(45, 33, 30, .28);
  opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .services-grid article:hover { background: rgba(233, 181, 138, .035); }
  .services-grid article:hover h3 { color: var(--hero-accent); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1050px) {
  .nav { gap: 10px; }
  .nav a { padding: 0 6px; font-size: 13px; }
  .site-header .brand { gap: 18px; }
  .site-header .brand-copy { padding-left: 18px; }
  .site-header .brand-copy strong { letter-spacing: .22em; }
  .site-header .brand-copy small { letter-spacing: .12em; }
  .hero-note { gap: 12px; padding-right: 16px; }
  .services-grid article { grid-template-columns: 32px minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
  .audience-list { grid-template-columns: repeat(3, 1fr); }
  .reels-index a { grid-template-columns: 52px minmax(0, 1fr) 40px; row-gap: 6px; }
  .reel-d { grid-column: 2 / 3; }
}

@media (min-width: 821px) and (max-height: 760px) {
  .process .section-heading { position: static; }
}

@media (max-width: 820px) {
  :root { --header-h: 88px; }
  .container { width: calc(100% - 48px); }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-copy small { display: none; }
  .site-header .container, .hero .container { width: calc(100% - 48px); }
  .site-header .brand { gap: 16px; }
  .site-header .brand-mark { width: 42px; height: 48px; font-size: 42px; }
  .site-header.is-scrolled .brand-mark { transform: none; }
  .site-header .brand-mark span:last-child { top: 14px; left: 15px; }
  .site-header .brand-copy { min-height: 40px; padding-left: 16px; }
  .site-header .brand-copy strong { font-size: 11px; letter-spacing: .2em; }
  .site-header .brand-copy small { display: block; max-width: 22ch; margin-top: 6px; font-size: 7px; letter-spacing: .13em; line-height: 1.5; }

  .menu-toggle { display: grid; width: 46px; height: 46px; place-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle { flex: none; }
  .menu-toggle span[aria-hidden] { display: block; width: 22px; height: 1.5px; background: var(--hero-text); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    display: grid; gap: 0; padding: 4px 24px 20px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    background: var(--hero-bg); border-bottom: 1px solid rgba(233, 181, 138, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { min-height: 52px; padding: 0 4px; border-bottom: 1px solid rgba(233, 181, 138, .15); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }

  /* Título e rosto aparecem primeiro; texto e CTA continuam no fluxo da leitura.
     Medidas apertadas para o WhatsApp caber na primeira tela do navegador interno
     do Instagram (~664px úteis num iPhone de 844, ~760 num Android de 412). */
  .hero { min-height: 0; padding: calc(var(--header-h) + 16px) 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .hero-scroll { display: none; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; margin-bottom: 0; font-size: clamp(40px, 10.7vw, 78px); line-height: 1.02; letter-spacing: -.05em; }
  .hero-media { order: 2; width: min(90%, 500px); justify-self: center; aspect-ratio: 1.42; margin: 0; }
  .hero-photo-main { left: 12%; width: 68%; height: 100%; }
  .hero-photo-secondary { left: 0; bottom: -1%; width: 36%; height: 57%; }
  .hero-photo-detail { right: -3%; top: 26%; width: 39%; height: 61%; }
  .hero-lead-block { order: 3; }
  .hero-lead { max-width: 52ch; padding-right: 0; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; margin-top: 16px; }
  .hero-trabalhos { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: #d8b99f; font-size: 14px; text-underline-offset: 5px; }
  .hero-button { min-height: 62px; }
  .hero-button-content { justify-content: space-between; gap: 12px; }
  .hero-note { max-width: 46ch; margin-top: 26px; padding-right: 0; font-size: 11px; }
  .hero-note svg { width: 21px; height: 26px; }

  .credibility-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-grid > div { min-height: 96px; padding: 16px; border-bottom: 1px solid var(--line); }
  .credibility-grid > div:first-child { padding-left: 16px; }
  .credibility-grid > div:nth-child(2n) { border-right: 0; }
  .credibility-grid > div:nth-last-child(-n+2) { border-bottom: 0; }

  .manifesto-grid, .audience-grid, .about-grid, .case-grid, .cta-card, .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process .section-heading { position: static; }
  .process .section-heading > p { max-width: none; }
  .process-media { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading > p, .manifesto div > p { max-width: none; }
  .about-media { order: 2; }
  .about-copy h2, .case-intro h2, .audience h2, .cta-card h2, .section-heading h2, .manifesto h2 { max-width: none; }
  .process-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .services-grid article { min-height: 0; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; align-items: baseline; }
  .services-grid article p { grid-column: 2; }
  .case-body dl > div { grid-template-columns: 1fr; gap: 6px; }
  .audience-list { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .photo-grid figure + figure { margin-top: 48px; }
  .photo-grid img { aspect-ratio: .8; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (min-width: 560px) and (max-width: 820px) {
  .hero h1 { font-size: clamp(60px, 9.7vw, 78px); }
  .hero-grid { gap: 30px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .hero-actions .button { width: 100%; justify-content: space-between; gap: 12px; padding-inline: 20px; }
  .credibility strong { font-size: 20px; }
  .credibility span { font-size: 9.5px; }
  .reels-index a { grid-template-columns: 40px minmax(0, 1fr) 32px; padding-right: 0; }
  .audience-list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid figure + figure { margin-top: 0; }
  .photo-grid img { aspect-ratio: 1.05; }
  .cta-side .button { width: 100%; justify-content: space-between; padding-inline: 20px; gap: 16px; }
  .footer-brand { gap: 16px; }
  .footer-brand .brand-copy { padding-left: 16px; }
  .footer-brand .brand-copy small { display: block; max-width: 24ch; line-height: 1.5; }
  .footer-links { display: grid; gap: 0; }
}

@media (max-width: 359px) {
  .site-header .container, .hero .container { width: calc(100% - 36px); }
  .site-header .brand { gap: 10px; }
  .site-header .brand-copy { padding-left: 10px; }
  .site-header .brand-copy strong { font-size: 10px; letter-spacing: .12em; }
  .hero h1 { font-size: 10.6vw; }
  .hero-button { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal, .reveal.is-pending { opacity: 1; transform: none; }
  .whatsapp-float.is-visible { transform: none; }
}

/* Perguntas frequentes */
.faq-list { max-width: 880px; }
.faq-list details { border-bottom: 1px solid currentColor; padding: 20px 0; }
.faq-list summary { cursor: pointer; font-size: 1.08rem; font-weight: 600; padding: 6px 0; }
.faq-list summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.faq-list p { max-width: 72ch; margin: 16px 0 4px; line-height: 1.75; }

/* Conteúdo editorial */
.editorial-header { background: var(--hero-bg); color: var(--hero-text); padding: 22px 0; }
.editorial-header .container { display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.editorial-header nav { display:flex; gap:22px; flex-wrap:wrap; font-size:14px; }
.editorial-header a { text-decoration:none; }
.editorial-brand { font-family:"Playfair Display",Georgia,serif; font-size:24px; }
.editorial { max-width:800px; margin:auto; padding:48px 0 64px; }
.editorial h1 { max-width:23ch; font-size:clamp(34px,5vw,56px); }
.editorial h2 { margin-top:42px; font-size:clamp(26px,3vw,34px); max-width:32ch; }
.editorial p,.editorial li { line-height:1.85; }
.editorial .lead { font-size:1.15rem; }
.editorial-breadcrumb,.editorial-meta { font-size:13px; color:var(--muted); }
.editorial-meta { margin:20px 0 30px; }
.editorial-cta { background:var(--bg-soft); padding:28px; margin:36px 0; border-radius:var(--radius); }
.editorial-cta h2 { margin-top:0; }
.editorial-links { display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; }
.editorial-list { display:grid; gap:22px; padding:0; list-style:none; }
.editorial-list li { padding:26px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }
.editorial-list h2 { margin:0 0 12px; font-size:26px; }
.editorial-list p { margin:0 0 10px; }
.editorial-footer { padding:30px 0; border-top:1px solid var(--line); }
.editorial-footer .container { display:flex; gap:20px; flex-wrap:wrap; justify-content:space-between; }

.editorial-author { display:grid; grid-template-columns:120px minmax(0,1fr); gap:24px; padding:28px 0; margin:38px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.editorial-author img { width:120px; height:160px; object-fit:cover; border-radius:12px; }
.editorial-author h2 { margin:0 0 12px; font-size:28px; }
.editorial-author .section-label { margin-bottom:8px; }
.editorial-author p { margin-bottom:12px; }
.editorial-author .editorial-links { font-size:14px; }
.guias-leitura { max-width:78ch; margin:32px 0 0; line-height:1.8; }
.guias-leitura a { text-underline-offset:3px; }
@media(max-width:520px) { .editorial-author { grid-template-columns:1fr; gap:18px; } .editorial-author img { width:90px; height:120px; } }

/* Crédito de criação */
.site-credit { margin: 12px 0 0; font-size: .75rem; font-weight: 400; line-height: 1.5; text-align: center; }
.site-credit a { color: inherit; text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }
