/* Topo da home (index e en/): hero com o carrossel, títulos, botão,
   fundo de vídeo. O carrossel em si está em pdp-carousel.css. */
/* ============================================================
   HERO COM O CARROSSEL (2026-11-22), como a home do Squarespace:
   título compacto em cima, cartões logo abaixo, tudo na primeira
   tela. O hero deixa de ocupar a tela inteira só com o texto.
   ============================================================ */
header.hero.has-ac {
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 116px 32px 36px;
  margin-bottom: 72px;
  gap: 0;
}
header.hero.has-ac .hero-inner { gap: 18px; max-width: 860px; }
header.hero.has-ac h1 {
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 860px;
}
header.hero.has-ac .hero-sub { font-size: clamp(17px, 1.6vw, 19px); max-width: 600px; }
header.hero.has-ac .hero-micro { font-size: 14.5px; margin-top: 0; max-width: 560px; }
header.hero.has-ac .q-link { margin: 0; }
/* os rótulos verticais de baixo cairiam em cima dos cartões */
header.hero.has-ac .hero-vside.left-bottom,
header.hero.has-ac .hero-vside.right-bottom { display: none; }
/* no celular não há margem lateral: os rótulos de cima cobriam o texto */
@media (max-width: 720px) {
  header.hero.has-ac .hero-vside { display: none; }
}

header.hero.has-ac .ac {
  --ac-w: min(780px, 58vw);
  position: relative; z-index: 2;
  margin-top: 34px;
  animation: heroFade 900ms ease-out 1000ms both;
}

@media (max-width: 980px) {
  header.hero.has-ac { min-height: 0; padding: 92px 22px 28px; margin-bottom: 56px; gap: 0; }
}
@media (max-width: 720px) {
  header.hero.has-ac .hero-inner { gap: 14px; padding: 0 8px; }
  header.hero.has-ac h1 { font-size: clamp(29px, 7.6vw, 38px); line-height: 1.06; }
  header.hero.has-ac .hero-sub { font-size: 16.5px; }
  header.hero.has-ac .hero-micro { font-size: 14px; }
  header.hero.has-ac .ac { --ac-w: 84vw; margin-top: 22px; }
}

/* título em duas linhas fixas: uma frase por linha, em qualquer largura */
header.hero.has-ac h1 .h1-l { display: block; }

/* dois botões lado a lado no hero: agendar (cheio) e questionário (contorno) */
header.hero.has-ac .hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 10px;
  animation: heroFade 900ms ease-out 700ms both;
}
header.hero.has-ac .hb {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 12px;
  font: 600 16px/1.2 var(--sans); letter-spacing: 0.01em; text-transform: none;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1);
}
header.hero.has-ac .hb::after { content: "→"; transition: transform .3s cubic-bezier(.22,1,.36,1); }
header.hero.has-ac .hb:hover { transform: translateY(-2px); }
header.hero.has-ac .hb:hover::after { transform: translateX(3px); }
header.hero.has-ac .hb-primary { background: #0F172A; color: #FFFFFF; border: 1px solid #0F172A; }
header.hero.has-ac .hb-primary:hover { background: #1E293B; box-shadow: 0 12px 28px rgba(15,23,42,.18); }
header.hero.has-ac .hb-ghost { background: rgba(255,255,255,.7); color: #0F172A; border: 1px solid rgba(15,23,42,.22); }
header.hero.has-ac .hb-ghost:hover { background: #FFFFFF; border-color: rgba(15,23,42,.4); }
@media (max-width: 560px) {
  header.hero.has-ac .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  header.hero.has-ac .hb { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  header.hero.has-ac .hb:hover { transform: none; }
}

/* ============================================================
   HERO OCUPA A PRIMEIRA TELA (2026-11-23): título e botões centrados
   no espaço entre a barra e o carrossel, com respiro em cima; cartões
   menores para o conjunto caber na primeira tela.
   ============================================================ */
header.hero.has-ac {
  min-height: 100vh; min-height: 100svh;
  padding: 76px 32px 24px;
}
header.hero.has-ac .hero-inner {
  flex: 1 0 auto;
  justify-content: center;
  padding: 48px 0 32px;
  gap: 26px;
}
header.hero.has-ac .hero-actions { margin-top: 4px; }
header.hero.has-ac .ac { --ac-w: min(640px, 46vw); margin-top: 0; }
/* tela baixa (notebook): cartões ainda menores */
@media (min-width: 981px) and (max-height: 820px) {
  header.hero.has-ac .ac { --ac-w: min(560px, 42vw); }
  header.hero.has-ac .hero-inner { padding: 32px 0 24px; }
}
@media (max-width: 980px) {
  header.hero.has-ac { padding: 64px 22px 20px; }
  header.hero.has-ac .hero-inner { padding: 40px 0 28px; }
}
@media (max-width: 720px) {
  header.hero.has-ac .ac { --ac-w: 78vw; margin-top: 0; }
  header.hero.has-ac .hero-inner { gap: 20px; padding: 36px 0 24px; }
}

/* Título no meio da primeira tela, como no Squarespace: o bloco do texto
   ocupa a tela menos uma faixa onde o topo dos cartões aparece, convidando
   a rolar. (2026-11-23) */
header.hero.has-ac .hero-inner {
  min-height: calc(100vh - 76px - 170px);
  min-height: calc(100svh - 76px - 170px);
  padding: 24px 0;
}
@media (max-width: 980px) {
  header.hero.has-ac .hero-inner { min-height: calc(100svh - 64px - 150px); padding: 20px 0; }
}

/* carrossel um pouco mais alto na primeira tela (2026-11-23): mais
   cartão à mostra, título ainda centrado no espaço de cima */
header.hero.has-ac .hero-inner {
  min-height: calc(100vh - 76px - 280px);
  min-height: calc(100svh - 76px - 280px);
}
@media (max-width: 980px) {
  header.hero.has-ac .hero-inner { min-height: calc(100svh - 64px - 230px); }
}
/* mais um pouco (2026-11-23) */
header.hero.has-ac .hero-inner {
  min-height: calc(100vh - 76px - 360px);
  min-height: calc(100svh - 76px - 360px);
}
@media (max-width: 980px) {
  header.hero.has-ac .hero-inner { min-height: calc(100svh - 64px - 300px); }
}

/* nome e links sobre o cartão do centro, ao passar o mouse (2026-11-23) */
.ac-over { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ac.is-ready .ac-caption { display: none; }
  .ac.is-ready .ac-over {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    position: absolute; left: 1px; right: 1px; top: 1px; bottom: 1px;
    border-radius: 11px; text-align: center; padding: 24px;
    background: linear-gradient(180deg, rgba(15,23,42,.30), rgba(15,23,42,.62));
    color: #fff; opacity: 0; pointer-events: none;
    transition: opacity .35s ease-out;
  }
  .ac.is-ready .ac-card.is-center:hover .ac-over,
  .ac.is-ready .ac-card.is-center:focus-within .ac-over { opacity: 1; pointer-events: auto; }
  .ac-over strong { font: 500 30px/1.15 var(--serif); letter-spacing: -0.01em; transform: translateY(8px); transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .ac-over span { font: italic 400 17px var(--serif); opacity: .88; transform: translateY(8px); transition: transform .45s cubic-bezier(.22,1,.36,1) 40ms; }
  .ac-over-btns { display: flex; gap: 10px; margin-top: 14px; transform: translateY(8px); transition: transform .45s cubic-bezier(.22,1,.36,1) 80ms; }
  .ac-card.is-center:hover .ac-over strong, .ac-card.is-center:hover .ac-over span, .ac-card.is-center:hover .ac-over-btns { transform: none; }
  .ac-ob { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 600 15.5px var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .25s, transform .3s cubic-bezier(.22,1,.36,1); }
  .ac-ob::after { content: "→"; }
  .ac-ob-1 { background: #fff; color: #0F172A; }
  .ac-ob-2 { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
  .ac-ob:hover { transform: translateY(-2px); }
  .ac-ob-2:hover { background: rgba(255,255,255,.24); }
}
@media (hover: hover) and (pointer: fine) {
  .ac .ac-over a.ac-ob-1 { color: #0F172A; }
  .ac .ac-over a.ac-ob-2 { color: #fff; }
  .ac.is-ready .ac-over { background: linear-gradient(180deg, rgba(15,23,42,.48), rgba(15,23,42,.74)); }
  .ac-over strong { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
}
@media (hover: hover) and (pointer: fine) {
  .ac .ac-over a.ac-ob { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 600 15.5px/1 var(--sans); text-decoration: none; }
  .ac.is-ready .ac-card .ac-over { background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.78)); }
}
/* ainda mais alto (2026-11-23): menos respiro entre o texto e os cartões */
header.hero.has-ac .hero-inner {
  min-height: calc(100vh - 76px - 430px);
  min-height: calc(100svh - 76px - 430px);
  padding: 22px 0 4px;
  gap: 22px;
}
header.hero.has-ac .ac { margin-top: -8px; }
@media (max-width: 980px) {
  header.hero.has-ac .hero-inner { min-height: calc(100svh - 64px - 340px); padding: 18px 0 4px; }
}
header.hero.has-ac .ac { margin-top: 18px; }
/* título do topo numa serifada arredondada: Fraunces com o eixo SOFT no
   máximo (pontas arredondadas), mesmo peso de leitura da Literata */
header.hero.has-ac h1 {
  font-family: "Fraunces", "Literata", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
  letter-spacing: -0.02em;
}

/* Título do topo em Vinhedo Sans Display: a família geométrica (Art Déco,
   letras redondas) da PDP, a mesma de onde saiu a MHS Sans. Fonte
   proprietária da PDP (~/pdp/mhs/fontes/vinhedo-v4/LICENSE.txt). Os
   arquivos web não têm itálico: o destaque fica só na cor. */
@font-face {
  font-family: "Vinhedo Sans Display";
  src: url("/assets/fonts/VinhedoSansDisplay-Latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0178, U+02C6, U+02DC, U+2009, U+2010-2011,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Vinhedo Sans Display";
  src: url("/assets/fonts/VinhedoSansDisplay-LatinExt.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0118-0119, U+011E-011F, U+0130, U+0141-0144, U+0150-0151,
    U+015A-015B, U+015E-0161, U+0170-0171, U+0179-017E;
}
header.hero.has-ac h1 {
  font-family: "Vinhedo Sans Display", "Atkinson Hyperlegible Next", sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
header.hero.has-ac h1 em { font-style: normal; font-weight: 500; }

/* títulos da home em Lexend Exa (substitui a Vinhedo, 2026-11-23) */
:root { --serif: "Figtree", "Atkinson Hyperlegible Next", sans-serif; }
header.hero.has-ac h1 { font-family: "Figtree", "Atkinson Hyperlegible Next", sans-serif; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-size: clamp(30px, 4vw, 52px); }
h1 em, h2 em, h3 em { font-style: normal; }
.svh__titulo, #contato h2 { letter-spacing: -0.035em; font-weight: 500; }
.ac-over strong { letter-spacing: -0.03em; }
/* título do topo em caixa alta, no espírito da Novecento (2026-11-23) */
header.hero.has-ac h1 { text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; }

/* Outfit (2026-11-23) */
header.hero.has-ac h1 { font-family: "Figtree", "Atkinson Hyperlegible Next", sans-serif; letter-spacing: 0.02em; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; }
.svh__titulo, #contato h2 { letter-spacing: -0.015em; }

/* Celular: como o Squarespace, o topo fica só com título e botões no meio
   da tela; o carrossel inclinado não aparece (os modelos estão no menu
   Portfólio e na galeria) */
@media (max-width: 720px) {
  /* 2026-11-25: o carrossel volta no celular, com o efeito de crescer ao rolar */
  header.hero.has-ac { padding-bottom: 32px; }
  header.hero.has-ac .hero-inner { min-height: calc(100svh - 64px - 48px); padding: 24px 0; gap: 26px; }
  header.hero.has-ac h1 { font-size: clamp(32px, 9vw, 42px); }
}


/* frase de quem atendemos, logo abaixo do botão (2026-11-25) */
header.hero.has-ac .hero-para {
  margin: -6px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ink-soft, #475569);
  animation: heroFade 900ms ease-out 850ms both;
}

/* ============================================================
   FUNDO DE VÍDEO NA PÁGINA INICIAL INTEIRA (2026-11-25)
   O vídeo saiu do topo e fica fixo atrás de tudo, com o mesmo véu
   branco de antes. Sem vídeo (economia de bateria, erro), fica a
   imagem de fundo do mesmo vídeo.
   ============================================================ */
html:has(.home-bg) body { background: transparent; }
.home-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #F8FAFC url('/brand/hero-bg.webp') center / cover no-repeat;
  pointer-events: none;
}
.home-bg .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.85); }
header.hero.has-ac { background: none; }
header.hero.has-ac::before { display: none; }
@media (max-width: 720px) {
  .home-bg { background-image: url('/brand/hero-bg-mobile.webp'); }
}

/* Botão do topo: branco, letra preta, pulsando (2026-11-25).
   O pulso é um anel de sombra que cresce e some; para no hover. */
@keyframes hbPulso {
  0%   { box-shadow: 0 6px 18px rgba(15,23,42,.10), 0 0 0 0 rgba(15,23,42,.22); }
  70%  { box-shadow: 0 6px 18px rgba(15,23,42,.10), 0 0 0 16px rgba(15,23,42,0); }
  100% { box-shadow: 0 6px 18px rgba(15,23,42,.10), 0 0 0 0 rgba(15,23,42,0); }
}
header.hero.has-ac .hb-primary {
  background: #FFFFFF; color: #0F172A;
  border: 1px solid rgba(15,23,42,.16);
  animation: hbPulso 2.2s ease-out infinite;
}
header.hero.has-ac .hb-primary:hover,
header.hero.has-ac .hb-primary:focus-visible {
  background: #FFFFFF; color: #0F172A; border-color: rgba(15,23,42,.35);
  animation: none; box-shadow: 0 14px 30px rgba(15,23,42,.16);
}


/* o palco do carrossel fica preso no topo ao rolar: o topo da home
   não pode ser um contêiner de rolagem (overflow: hidden quebraria o sticky) */
header.hero.has-ac { overflow: clip; }

/* Títulos em Figtree (2026-11-25): a fonte aberta mais parecida com a
   Clarkson do Squarespace; no título do topo, peso 400 como lá */
header.hero.has-ac h1 { font-weight: 400; }
header.hero.has-ac h1 em { font-weight: 400; }

/* Carrossel no formato do Squarespace (2026-11-25): cartões em 4:3 (o topo
   da página do modelo) e o do centro com quase metade da tela; os de baixo
   ficam cortados pela dobra, convidando a rolar */
header.hero.has-ac .ac { --ac-w: min(900px, 47vw); }
@media (min-width: 981px) and (max-height: 820px) {
  header.hero.has-ac .ac { --ac-w: min(900px, 47vw); }
}
@media (max-width: 720px) {
  header.hero.has-ac .ac { --ac-w: 80vw; }
}
