/* ==== FONTES (servidas localmente — subconjunto latino) ====
   As famílias "Fallback" usam fontes do sistema com métricas ajustadas para ocupar o mesmo
   espaço da fonte final: enquanto o .woff2 carrega, o texto já aparece sem "pular" depois. */

/* DM Serif Display só tem peso normal: declarar a faixa 100–900 faz o navegador usar o mesmo arquivo
   para qualquer font-weight pedido, em vez de "engordar" a letra artificialmente (faux bold) */
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/dm-serif-display-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: 'DM Serif Display'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/dm-serif-display-latin-italic.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: 'DM Serif Display Fallback'; font-weight: 100 900; src: local('Georgia'); size-adjust: 100.8%; ascent-override: 102.78%; descent-override: 33.24%; line-gap-override: 0%; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/work-sans-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: 'Work Sans Fallback'; src: local('Arial'); size-adjust: 110.24%; ascent-override: 84.36%; descent-override: 22.04%; line-gap-override: 0%; }

:root {
  /* ==== PALETA — derivada da cor da identidade visual #A4C3C6 (ver README → Paleta de cores) ====
     Escalas tonais 50–950 em OKLCH (método do Tailwind/Radix/Material 3): teal = cor da marca,
     rose = complementar (matiz +180°) para acentos quentes, mist = neutro levemente esverdeado. */
  --teal-50: #F3F9FA;
  --teal-100: #E6F2F3;
  --teal-200: #D3E6E8;
  --teal-300: #A4C3C6;
  --teal-400: #82A6AA;
  --teal-500: #63888B;
  --teal-600: #4B6D70;
  --teal-700: #375659;
  --teal-800: #284245;
  --teal-900: #1B2F31;
  --teal-950: #0E1D1F;
  --rose-50: #FDF6F5;
  --rose-100: #FAEBEA;
  --rose-200: #F3DCDA;
  --rose-300: #D6B2AF;
  --rose-400: #BC9390;
  --rose-500: #9D7571;
  --rose-600: #805B58;
  --rose-700: #674644;
  --rose-800: #503533;
  --rose-900: #3B2523;
  --rose-950: #261615;
  --mist-50: #F5FAFB;
  --mist-100: #EDF4F4;
  --mist-200: #E0E8E9;
  --mist-300: #C9D3D4;
  --mist-400: #9CA7A8;
  --mist-500: #717D7E;
  --mist-600: #556061;
  --mist-700: #3F4A4B;
  --mist-800: #2B3536;
  --mist-900: #1B2324;
  --mist-950: #0F1516;

  /* papéis (use estes nos componentes) */
  --color-bg: var(--mist-50);          /* fundo da página */
  --color-surface: #FFFFFF;            /* cards */
  --color-band: var(--teal-100);       /* seções alternadas */
  --color-brand: var(--teal-300);      /* cor da identidade (#A4C3C6) */
  --color-primary: var(--teal-700);    /* botões, links, destaques */
  --color-primary-hover: var(--teal-900);
  --color-accent: var(--rose-600);     /* acento quente complementar */
  --color-ink: var(--mist-900);        /* títulos */
  --color-text: var(--mist-800);       /* texto corrido */
  --color-muted: var(--mist-600);      /* texto secundário */
  --color-border: var(--mist-200);
  --color-border-accent: var(--teal-200);
  --font-title: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
  --font-body: 'Work Sans', 'Work Sans Fallback', Arial, sans-serif;
  /* tipografia fluida: o máximo é o tamanho do desktop (≥ ~1280px); no celular reduz 1–2px */
  --text-xs: clamp(13px, 12.2px + 0.15vw, 14px);
  --text-sm: clamp(14px, 13px + 0.16vw, 15px);
  --text-base: clamp(15px, 14px + 0.16vw, 16px);
  --text-md: clamp(16px, 15px + 0.16vw, 17px);
  --text-lg: clamp(17px, 16px + 0.16vw, 18px);
  --text-xl: clamp(17px, 15.5px + 0.28vw, 19px);
  --text-h1: clamp(32px, 4.2vw, 52px);
  --text-h2: clamp(26px, 3vw, 36px);
  --text-step: clamp(24px, 21px + 0.55vw, 28px);
  --text-stat: clamp(28px, 24px + 0.8vw, 34px);
  /* espaçamento */
  --space-section: 72px;
  --space-gap: 56px;
  --radius-photo: 24px;
  --radius-card: 20px;

  --header-height: 84px;
  --header-height-scrolled: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* overflow-x no <html> (vale para a janela) + clip no body: corta o deslocamento lateral das animações
   de entrada sem transformar o body em área de rolagem (o que quebraria o window.scrollY) */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height-scrolled); overflow-x: hidden; }
body { margin: 0; padding-top: var(--header-height); font-family: var(--font-body); color: var(--color-ink); background: var(--color-bg); overflow-x: clip; }
body.menu-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-title); margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }
picture { display: block; }
/* texto só para leitores de tela (ex.: aviso "abre em nova aba") */
.nowrap { white-space: nowrap; }
.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; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--color-primary); color: var(--color-bg); padding: 12px 18px; border-radius: 8px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: var(--color-bg); }

.btn-primary { background: var(--color-primary); color: var(--color-bg); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, opacity 0.2s; }
.btn-primary:hover { color: var(--color-bg); opacity: 0.94; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(40, 66, 69, 0.6); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--color-ink); color: var(--color-ink); transition: background 0.2s, color 0.2s; }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-bg); }
.eyebrow { color: var(--teal-700); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; }
.card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--radius-card); transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s; }
.services-grid .card:hover { transform: translateY(-4px); border-color: var(--color-border-accent); box-shadow: 0 18px 36px -24px rgba(40, 66, 69, 0.45); }

/* ==== HEADER ==================================================== */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
/* desfoque num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile (position: fixed) dentro dele */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(245, 250, 251, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.scrolled { border-color: var(--color-border); box-shadow: 0 6px 24px -14px rgba(27, 35, 36, 0.35); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-height); transition: height 0.3s var(--ease-out); }
.site-header.scrolled .nav { height: var(--header-height-scrolled); }

.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-title); font-weight: 600; font-size: 20px; color: var(--color-ink); white-space: nowrap; }
.logo:hover { color: var(--color-ink); }
.logo-mark { width: 44px; height: 44px; flex: none; color: var(--color-primary); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), transform 0.6s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.site-header.scrolled .logo-mark { width: 38px; height: 38px; }
.logo-text, .logo-accent { transition: color 0.4s ease; }
.logo-accent { color: var(--color-primary); }
.site-header.scrolled .logo-text { color: var(--color-primary); }
.site-header.scrolled .logo-accent { color: var(--color-ink); }


.menu { display: flex; align-items: center; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { position: relative; font-size: 15px; font-weight: 500; color: var(--color-ink); padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.menu-cta { display: none; }

.nav-cta { background: var(--color-primary); color: var(--color-bg); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.nav-cta:hover { color: var(--color-bg); opacity: 0.94; transform: translateY(-1px); }

.menu-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--color-ink); transition: transform 0.35s var(--ease-out), opacity 0.2s, top 0.35s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==== ANIMAÇÕES DE ENTRADA DAS SEÇÕES ===========================
   Só escondem elementos quando o JS está ativo (classe .js no <html>),
   para o conteúdo nunca ficar invisível se o script falhar. */

.js [data-reveal] { opacity: 0; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==== TIPOGRAFIA ================================================ */

h1 em { font-style: italic; color: var(--color-accent); }

/* ==== RITMO DAS SEÇÕES: fundos alternados de largura total ==========
   O conteúdo continua no container centralizado; só o fundo (::before) vai de ponta a ponta. */

main { isolation: isolate; }
.band { position: relative; }
.band::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; }
.band-white::before { background: #FFFFFF; }
.band-lilac::before { background: var(--color-band); }

/* ==== HERO: arco do monograma atrás da foto + moldura em arco ======= */

.hero-photo { position: relative; }
/* 140% da foto e centralizado: o arco abraça a foto sem subir até a área do header fixo */
.hero-ring { position: absolute; left: 50%; top: 50%; width: 140%; height: auto; aspect-ratio: 1; margin: -70% 0 0 -70%; translate: 0 var(--parallax-ring, 0px); z-index: -1; fill: var(--color-brand); stroke: var(--color-brand); stroke-width: 3; pointer-events: none; overflow: visible; }
/* topo em semicírculo: raio horizontal 50% da largura; vertical 40% da altura (fotos em ~4:5) */
.hero-photo picture { translate: 0 var(--parallax-photo, 0px); }
.photo.photo-arch { border-radius: 50% 50% var(--radius-photo) var(--radius-photo) / 40% 40% var(--radius-photo) var(--radius-photo); }

/* ==== CHAMADA FINAL (faixa ameixa antes do mapa) ===================== */

.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 72px; padding: 56px; border-radius: 28px; background: var(--color-brand); color: var(--color-ink); }
.cta-text { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.15; color: var(--color-ink); }
.cta-band p { margin: 10px 0 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--color-text); }
.cta-mark { position: absolute; right: -40px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.cta-btn { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; padding: 16px 28px; border-radius: 999px; background: var(--teal-800); color: #FFFFFF; font-weight: 600; font-size: 16px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.cta-btn:hover { background: var(--teal-900); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
.cta-band a:focus-visible { outline-color: var(--teal-900); }

/* ==== RODAPÉ ===================================================== */

.site-footer { margin-top: 24px; padding: 48px 0 40px; border-top: 1px solid var(--color-border); font-size: 14px; color: var(--color-muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand p { margin: 0; line-height: 1.5; }
.footer-mark { width: 44px; height: 44px; flex: none; color: var(--color-primary); }
.footer-name { font-family: var(--font-title); font-size: 20px; color: var(--color-ink); }
.footer-title { margin: 0 0 8px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 13px; }
.footer-bottom p { margin: 0; }

/* ==== DEPOIMENTOS (carrossel com arrasto) ========================
   Sem padding lateral no trilho: o primeiro encaixe precisa coincidir com scrollLeft 0. Se o navegador
   tiver que rolar o trilho sozinho ao carregar (ex.: 2px de padding), o Chrome trata isso como rolagem
   e para de medir o LCP da página. */

.reviews-carousel { margin-top: 44px; }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 0 12px; scrollbar-width: none; cursor: grab; }
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 20px; }
.reviews-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.review-card { padding: 28px; scroll-snap-align: start; display: flex; flex-direction: column; }
.review-stars { color: var(--rose-500); font-size: 15px; letter-spacing: 0.1em; }
.review-card blockquote { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--color-text); font-style: italic; flex: 1; }
.review-author { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--color-muted); }
.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.reviews-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--color-border-accent); border-radius: 50%; background: #FFFFFF; color: var(--color-primary); cursor: pointer; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.reviews-nav:hover:not(:disabled) { background: var(--color-band); border-color: var(--color-primary); }
.reviews-nav:disabled { opacity: 0.35; cursor: default; }
.reviews-dots { display: flex; gap: 2px; }
/* bolinha visível de 8px dentro de uma área de toque de 24px */
.reviews-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.reviews-dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--color-border-accent); transition: background 0.2s, transform 0.2s; }
.reviews-dot[aria-current="true"]::before { background: var(--color-primary); transform: scale(1.25); }

/* ==== ÍCONES DAS ÁREAS DE ATUAÇÃO: traço único, arredondado como o da logo ==== */

.services-grid .card svg { stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ==== CONTATO / RODAPÉ — área de toque mínima de 44px sem mudar o espaçamento visual ==== */

.contact-link { display: inline-block; padding: 13px 0; margin: -13px 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ==== FAQ (acordeão nativo <details>) ============================ */

.faq-item { padding: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; min-height: 44px; box-sizing: border-box; cursor: pointer; list-style: none; border-radius: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 600; }
.faq-item summary:hover h3 { color: var(--color-primary); }
.faq-chevron { flex: none; color: var(--color-primary); transition: transform 0.3s var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
:root { interpolate-size: allow-keywords; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { margin: 0; padding: 0 28px 24px; font-size: 15px; line-height: 1.6; color: var(--color-muted); }

/* ==== LOCALIZAÇÃO (MAPA) ======================================== */

.map-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 44px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 24px; overflow: hidden; }
.map-frame { position: relative; min-height: 380px; background: var(--mist-100); }
.map-frame iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.map-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 8px rgba(27, 35, 36, 0.25)); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 18px; height: 6px; margin-left: -9px; border-radius: 50%; background: rgba(40, 66, 69, 0.35); animation: pin-pulse 2.4s ease-out infinite; }
.map-load { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--color-ink); font: 600 15px var(--font-body); white-space: nowrap; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(27, 35, 36, 0.45); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.map-load:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 14px 28px -10px rgba(27, 35, 36, 0.5); }
.map-load svg { color: var(--color-primary); }
.map-frame.is-loaded .map-load, .map-frame.is-loaded .map-pin { display: none; }
@keyframes pin-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.map-info { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 36px; }
.map-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.map-actions .btn-primary, .map-actions .btn-ghost { font-size: 15px; }

/* ==== WHATSAPP FLUTUANTE ======================================== */

.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; height: 60px; min-width: 60px; padding: 0 15px; box-sizing: border-box; border-radius: 999px; background: #168F49; color: #FFFFFF; box-shadow: 0 10px 26px -8px rgba(22, 143, 73, 0.6), 0 4px 10px rgba(27, 35, 36, 0.15); animation: wa-enter 0.6s var(--ease-out) 0.8s both; transition: background 0.2s, transform 0.25s var(--ease-out); }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #168F49; z-index: -1; animation: wa-pulse 2.6s ease-out 2s infinite; }
.whatsapp-float:hover { background: #127A3E; color: #FFFFFF; transform: translateY(-3px); }
.whatsapp-float svg { flex: 0 0 30px; }
.whatsapp-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 15px; opacity: 0; transition: max-width 0.4s var(--ease-out), opacity 0.3s, margin 0.4s var(--ease-out); }
.whatsapp-float:hover .whatsapp-float-label, .whatsapp-float:focus-visible .whatsapp-float-label { max-width: 220px; margin-left: 10px; opacity: 1; }

@keyframes wa-enter { from { opacity: 0; transform: translateY(24px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ==== EFEITOS (Fase 6) — todos desligados por "reduzir movimento" (regra no fim do arquivo) ==== */

/* Entrada do hero ao carregar: sequência de ~1s. Só com JS ativo (.js no <html>, marcado antes da pintura) */
.js .hero-text > * { animation: hero-up 0.7s var(--ease-out) both; }
.js .hero-text > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-text > :nth-child(3) { animation-delay: 0.45s; }
.js .hero-text > :nth-child(4) { animation-delay: 0.6s; }
.js .hero-text > :nth-child(5) { animation-delay: 0.75s; }
/* título revelado de cima para baixo, linha a linha: uma "cortina" da cor do fundo recolhe por cima dele.
   O texto em si é pintado já visível na primeira pintura — assim o navegador o registra como LCP
   (com máscara ou opacidade 0 no próprio título, o Chrome não consegue medir o LCP). */
.js .hero-text h1 { position: relative; animation: none; }
.js .hero-text h1::after { content: ""; position: absolute; inset: -6px -12px; background: linear-gradient(to bottom, rgba(245, 250, 251, 0), var(--color-bg) 48px); transform-origin: bottom; animation: hero-curtain 1s var(--ease-out) 0.12s both; pointer-events: none; }
.js .hero-photo { animation: hero-photo 1s var(--ease-out) 0.2s both; }
.js .hero-ring { animation: hero-ring 1.3s var(--ease-out) 0.35s both; }
@keyframes hero-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-curtain { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes hero-photo { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
@keyframes hero-ring { from { opacity: 0; rotate: -30deg; scale: 0.92; } to { opacity: 1; rotate: 0deg; scale: 1; } }

/* Monograma "desenhado" na primeira visita: a logo (forma preenchida, fiel à arte) é revelada por uma
   máscara cujos traços seguem o caminho da pena; pathLength=1, então dasharray/offset 1 = traço inteiro */
.first-visit .logo-shape { mask: url(#logo-draw); }
.first-visit .logo-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mono-draw 0.7s var(--ease-out) forwards; }
.first-visit .logo-draw path:nth-child(1) { animation-delay: 0.55s; animation-duration: 0.8s; }
.first-visit .logo-draw path:nth-child(2) { animation-delay: 0.1s; }
.first-visit .logo-draw path:nth-child(3) { animation-delay: 0.35s; animation-duration: 0.4s; }
.first-visit .logo-draw path:nth-child(4) { animation-delay: 0.45s; }
.first-visit .logo-draw path:nth-child(5) { animation-delay: 0.85s; animation-duration: 0.3s; }
@keyframes mono-draw { to { stroke-dashoffset: 0; } }

/* Linha sob os títulos de seção, desenhada quando o bloco entra na tela */
.section-title::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 18px; border-radius: 2px; background: var(--rose-400); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out) 0.35s; }
.section-title.is-centered::after { margin-inline: auto; transform-origin: center; }
.is-visible .section-title::after, html:not(.js) .section-title::after { transform: scaleX(1); }

/* Números da faixa de diferenciais (contador animado em main.js) */
.stat-number { font-variant-numeric: tabular-nums; }

/* Barra de progresso de leitura, na borda inferior do header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-primary); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }

/* Voltar ao topo: aparece depois de 2 telas de rolagem, alinhado acima do botão do WhatsApp */
.back-to-top { position: fixed; right: 32px; bottom: 100px; z-index: 89; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--color-border-accent); border-radius: 50%; background: #FFFFFF; color: var(--color-primary); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(27, 35, 36, 0.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s, background 0.2s; }
.back-to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0s, background 0.2s; }
.back-to-top:hover { background: var(--color-band); }

/* ==== LAYOUT E COMPONENTES DAS SEÇÕES ============================ */

.section { padding: var(--space-section) 0; }
.section-header { text-align: center; max-width: 560px; margin: 0 auto; }
.section-title { font-size: var(--text-h2); font-weight: 600; margin-top: 14px; }
.section-title--tight { line-height: 1.2; }
.section-intro { font-size: var(--text-base); color: var(--color-muted); margin-top: 14px; }
.section-footer { text-align: center; margin-top: 36px; }

/* duas colunas: texto + foto (Sobre, Contato) */
.split { display: flex; align-items: center; gap: var(--space-gap); padding: var(--space-section) 0; }
.split-text { flex: 1 1 0; min-width: 0; }
.split-media { flex: 0 0 360px; width: 360px; }

.photo { width: 100%; object-fit: cover; border-radius: var(--radius-photo); display: block; }
.photo--hero { height: 460px; }
.photo--about { height: 440px; }
.photo--contact { height: 420px; }

.body-text { font-size: var(--text-md); line-height: 1.7; color: var(--color-text); margin-top: 18px; }
.body-text + .body-text { margin-top: 16px; }
.about-link { margin-top: 24px; }

/* hero */
.hero-row { display: flex; align-items: center; gap: var(--space-gap); padding: 72px 0 var(--space-section); }
.hero-text { flex: 1 1 0; min-width: 0; }
.hero-photo { flex: 0 0 380px; width: 380px; }
.hero-title { font-size: var(--text-h1); font-weight: 600; line-height: 1.12; margin-top: 16px; color: var(--color-ink); }
.hero-lead { font-size: var(--text-lg); line-height: 1.6; color: var(--color-muted); margin-top: 20px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--color-border); font-size: var(--text-xs); color: var(--color-muted); }

/* faixa de diferenciais */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 40px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat { text-align: center; }
.stat-number { font-family: var(--font-title); font-size: var(--text-stat); font-weight: 600; color: var(--color-primary); }
.stat-label { font-size: var(--text-xs); color: var(--color-muted); margin-top: 6px; }

/* áreas de atuação */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.service-card { padding: 32px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.service-icon--rose { background: var(--rose-100); }
.card-title { font-size: var(--text-xl); font-weight: 600; margin-top: 20px; }
.card-text { font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); margin-top: 10px; }

/* como funciona */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.step-number { font-family: var(--font-title); font-size: var(--text-step); font-weight: 600; color: var(--teal-500); }
.step-title { font-size: var(--text-md); font-weight: 600; margin-top: 10px; }
.step-text { font-size: var(--text-xs); line-height: 1.6; color: var(--color-muted); margin-top: 8px; }

/* contato e FAQ */
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; font-size: var(--text-base); color: var(--color-text); }
.contact-cta { margin-top: 28px; }
.faq-list { max-width: 760px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 16px; }
.map-address { font-style: normal; font-size: var(--text-base); line-height: 1.6; color: var(--color-text); }
.map-address strong { color: var(--color-ink); }

/* ==== RESPONSIVO ================================================ */

@media (max-width: 960px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  /* Menu mobile: painel que desce do topo, com os links entrando em sequência */
  .menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 40px; padding: 96px 32px 48px; background: var(--color-bg); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.5s var(--ease-out), visibility 0s linear 0.5s; }
  .nav.open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.5s var(--ease-out), visibility 0s; }
  .nav-links { flex-direction: column; gap: 28px; }
  .nav-link { font-family: var(--font-title); font-size: 26px; font-weight: 500; }
  .nav-links li, .menu-cta { opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
  .nav.open .nav-links li, .nav.open .menu-cta { opacity: 1; transform: none; }
  .nav.open .nav-links li:nth-child(1) { transition-delay: 0.12s; }
  .nav.open .nav-links li:nth-child(2) { transition-delay: 0.17s; }
  .nav.open .nav-links li:nth-child(3) { transition-delay: 0.22s; }
  .nav.open .nav-links li:nth-child(4) { transition-delay: 0.27s; }
  .nav.open .nav-links li:nth-child(5) { transition-delay: 0.32s; }
  .nav.open .nav-links li:nth-child(6) { transition-delay: 0.37s; }
  .nav.open .menu-cta { transition-delay: 0.44s; }
  .menu-cta { display: inline-flex; background: var(--color-primary); color: var(--color-bg); }
  .menu-cta:hover { color: var(--color-bg); }
}

@media (max-width: 860px) {
  .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); }
  /* celular: título e botão primeiro (visíveis sem rolar), foto em arco logo abaixo */
  .hero-row { flex-direction: column; gap: 40px; padding: 72px 0 56px; }
  .hero-row > .hero-photo { max-width: 280px; align-self: center; }
  .hero-ring { width: 150%; margin: -75% 0 0 -75%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 32px; }
  .split { flex-direction: column; gap: 36px; }
  :root { --space-section: 56px; }
  /* as colunas usam flex-basis fixo em px no desktop; na coluna isso viraria altura */
  .hero-text, .hero-photo, .split-text, .split-media { width: 100%; flex: none; }
  .photo--hero, .photo--about, .photo--contact { height: auto; aspect-ratio: 4 / 5; max-height: 560px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 32px; }
  .map-card { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
  .map-info { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: 104px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .cta-btn { width: 100%; justify-content: center; box-sizing: border-box; }
  .cta-mark { width: 220px; height: 220px; right: -60px; top: 30%; }
}

@media (max-width: 560px) {
  /* celular: um card por vez, com o próximo aparecendo na borda para indicar que dá para arrastar */
  .reviews-track { grid-auto-columns: 85%; gap: 16px; }
  :root { --header-height: 72px; --header-height-scrolled: 64px; }
  .container { padding: 0 20px; }
  .logo { font-size: 18px; gap: 10px; }
  .logo-mark { width: 38px; height: 38px; }
  .site-header.scrolled .logo-mark { width: 34px; height: 34px; }
  .services-grid, .steps-grid { grid-template-columns: 1fr; }
  .service-card, .review-card { padding: 24px; }
  .faq-item summary { padding: 20px 22px; }
  .faq-item p { padding: 0 22px 20px; }
  .hero-row .btn-primary, .hero-row .btn-ghost, .contact-row .btn-primary { width: 100%; box-sizing: border-box; }
  .back-to-top { right: 22px; bottom: 84px; }
  .whatsapp-float { right: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 13px; }
}

@media (max-width: 380px) {
  /* telas muito estreitas (ex.: 320px): logo menor para caber com o botão do menu */
  .nav { gap: 12px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark, .site-header.scrolled .logo-mark { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
