/* cms_blocks.css — CSS dos blocos de Layout do dispatcher compartilhado
   (cms_block_renderer.jsx), idêntico byte-a-byte nos dois bundles
   (frontends/smaug-system-fe-client e frontends/smaug-system), carregado via
   dist/cms_blocks.<hash>.css (ADR-019 DD3/DD10). Regras movidas SEM alteração
   de frontends/smaug-system-fe-client/styles.css.

   Restrições (DD3): nenhum seletor `:root`/`html`/`body`/`[data-theme]`,
   nenhuma custom property, nenhuma classe já usada por
   frontends/smaug-system/styles.css (checado no build.sh de cada bundle) e
   todo seletor tem pelo menos uma classe (exceto os quadros-chave de
   @keyframes). `.btn`/`.btn__*`/`.btn--*` NÃO estão aqui: colidem com a base
   `.btn` de frontends/smaug-system/styles.css:463 e ficam duplicadas em cada
   bundle (DD3, achado do spike 01.3 §3).

   `.container` NÃO está aqui (achado B-1, review-cms-pagina-institucional-pr1a.md):
   é utilitário de layout genérico, não específico de bloco — telas que não são
   blocos do CMS também dependem dele (`.state__inner`, `.container--prose`,
   `.legal-page`, todas em styles.css). Como este arquivo carrega DEPOIS do
   styles.css de cada bundle, uma regra `.container` aqui venceria a cascata
   contra esses modificadores de mesma especificidade (uma classe). Por isso
   `.container` fica em styles.css — carregado primeiro — de cada bundle. */

/* ── Hero (primeira dobra) ───────────────────────────────────────────── */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(82vh, 660px);
  background: var(--ink); background-size: cover; background-position: center;
  overflow: hidden; isolation: isolate;
}
/* Base escura e quente (não navy) com dois focos de luz na cor do tema — para o
   dom-barber, preto quente + spotlights dourados como na preview; para outros
   temas, a base recebe um leve tom do accent e continua sóbria. */
.hero:not(.hero--media) {
  background:
    radial-gradient(120% 100% at 78% 6%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    radial-gradient(90% 90% at 6% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 9%, #0d0c0b) 0%, #0b0a09 60%, #100e0c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent);
}
/* Grão de filme sutil — mesmo toque premium da preview (decorativo, sem animação). */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.hero--media::after { display: none; }
/* <img> real (issue de performance de imagens): substitui o antigo
   background-image inline. z-index:-1 mantém a mesma camada mais ao fundo de
   antes — `.hero` isola (isolation:isolate) então o -1 fica contido aqui, não
   vaza para o resto da página. */
.hero__bgimg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(10,12,20,.86) 0%, rgba(10,12,20,.45) 65%, rgba(10,12,20,.2) 100%); }
.hero--media::before { display: none; }
.hero__inner { position: relative; z-index: 1; max-width: 660px; padding-block: clamp(64px, 12vh, 120px); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 20px;
  color: var(--accent); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em;
}
.hero__subtitle { margin-top: 22px; max-width: 540px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ── Page hero ───────────────────────────────────────────────────────── */
.page-hero {
  position: relative; background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding-block: clamp(56px, 9vw, 96px); background-size: cover; background-position: center; isolation: isolate;
}
.page-hero--media { background-color: var(--ink); }
.page-hero--media .page-hero__title, .page-hero--media .page-hero__subtitle, .page-hero--media .hero__eyebrow { color: #fff; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
.page-hero__subtitle { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; max-width: 580px; }
.page-hero--media .page-hero__subtitle { color: rgba(255,255,255,.8); }

/* ── Profile hero (página dedicada do barbeiro) ──────────────────────────
   Split: foto retrato grande de um lado, nome + descrição + CTA do outro. Ao
   contrário do .hero (imagem como background cover + overlay, que corta e lava
   foto de pessoa), aqui a foto é um <img object-fit:cover> com o foco no topo
   (rosto), mostrando o máximo do barbeiro. Tudo em tokens do tema — combina com
   o dark/gold do dom-barber e com qualquer outro tema. */
.profile-hero { position: relative; background: var(--bg); padding-block: clamp(40px, 7vw, 88px); overflow: hidden; }
.profile-hero__inner {
  display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
/* Moldura da foto: cantos arredondados, altura generosa (~70vh, mín. 520px),
   sombra macia. Sem foto, vira um painel escuro elegante com o monograma. */
.profile-hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 520px; height: clamp(520px, 70vh, 760px);
  background: radial-gradient(120% 100% at 50% 0, color-mix(in srgb, var(--accent) 14%, #0d0c0b), #0b0a09);
  box-shadow: var(--shadow-lg);
  animation: rise .6s var(--ease) both;
}
.profile-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.profile-hero__mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1; color: var(--accent); opacity: .4;
}
.profile-hero__body { max-width: 30em; animation: rise .6s var(--ease) both; }
.profile-hero__title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em;
}
.profile-hero__sub { margin-top: 18px; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; }
.profile-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* Mobile: empilhado — foto grande no topo, nome + descrição + CTA embaixo. */
@media (max-width: 860px) {
  .profile-hero__inner { grid-template-columns: 1fr; gap: clamp(22px, 6vw, 36px); }
  .profile-hero__media { height: clamp(360px, 62vh, 520px); min-height: 0; }
  .profile-hero__body { max-width: none; }
}

/* ── Estilo por bloco/seção (issue #82) ──────────────────────────────────
   O wrapper só existe quando o bloco declara `props.style` — bloco sem estilo
   continua renderizando exatamente o DOM de antes. Quando o usuário define o
   espaçamento, ele SUBSTITUI o padding vertical da seção interna (senão o número
   escolhido somaria ao padrão do tema e não significaria nada). */
.block-style { position: relative; }
.block-style__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); pointer-events: none; }
.block-style__body { position: relative; }
.block-style--padded > .block-style__body > * { padding-block: 0; }

/* ── Section ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--accent); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.section__eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .75; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; }
.section__subtitle { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }

/* ── Features ────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
/* G2 (02.2 §4.4, E3-6): `columns` explícito do bloco vence o auto-fit acima —
   carrega depois no arquivo, então ganha em empate de especificidade. */
.feature-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.feature-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.feature-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature__title { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.feature__text { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stat-band { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; text-align: center; }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.02em; }
.stat__label { margin-top: 6px; color: rgba(255,255,255,.66); font-size: .92rem; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
/* Faixa de chamada full-bleed como a preview: fundo da SEÇÃO (borda em cima/baixo),
   leve tom do accent, conteúdo centralizado. O botão dourado dá o destaque. */
.cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--bg-soft));
  border-block: 1px solid var(--border);
  padding-block: clamp(56px, 9vw, 104px);
}
.cta__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  background: none; border-radius: 0; box-shadow: none; padding: 0;
}
.cta__copy { max-width: 46ch; }
.cta__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.cta__text { margin-top: 16px; color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Prose (editorial) ───────────────────────────────────────────────── */
.prose { max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; margin-top: 1.6em; }
.prose h3 { font-weight: 600; font-size: 1.28rem; margin-top: 1.4em; }
.prose p { color: var(--ink-soft); line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin-top: .5em; line-height: 1.7; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px;
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--ink);
}
.prose__lead { font-size: 1.22rem; line-height: 1.65; color: var(--ink); font-family: var(--font-display); }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { padding: 12px 14px; font-size: .88rem; color: var(--ink-soft); }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Lightbox da galeria (ampliar imagem — usado na galeria de trabalhos do barbeiro) */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 24px; }
.lightbox__figure { margin: 0; max-width: min(1100px, 94vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__figure figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: .9rem; }
.lightbox__close { position: fixed; top: 16px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.26); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 1.06rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__chevron::before, .faq__chevron::after { content: ""; position: absolute; top: 50%; width: 9px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .25s ease; }
.faq__chevron::before { left: 0; transform: rotate(45deg); }
.faq__chevron::after { right: 0; transform: rotate(-45deg); }
.faq__item[open] .faq__chevron::before { transform: rotate(-45deg); }
.faq__item[open] .faq__chevron::after { transform: rotate(45deg); }
.faq__a { padding: 0 4px 22px; color: var(--ink-soft); line-height: 1.7; max-width: 90%; }

/* ── Pricing (ADR-019 DD5, 02.3 §6.2; 03B.1) ────────────────────────────
   Extração 1 para 1 das classes "apres-plan" e "apres-plans" de
   frontends/smaug-system/styles.css (linhas 10813 a 10867), renomeadas em
   BEM ("pricing-plan__..."). Nenhuma classe daqui usa "btn", "icon", "seg"
   ou "muted" no SELETOR — essas já são standalone em cada styles.css
   próprio (DD3 item 1: colidiria e falharia o build.sh); o botão do plano e
   o ícone de recurso continuam com essas classes só na marcação JSX
   (cms_block_renderer.jsx), que não passa por esta checagem. */
.pricing-currency { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .82rem; color: var(--ink-soft); }
.pricing-currency__options { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pricing-currency__option { padding: 6px 14px; min-height: 44px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; }
.pricing-currency__option + .pricing-currency__option { border-left: 1px solid var(--border); }
.pricing-currency__option--active { background: var(--accent-soft); color: var(--accent); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }

.pricing-plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
}
.pricing-plan--highlight { border-color: var(--accent); background: var(--bg-soft); }
.pricing-plan__badge {
  position: absolute; top: -10px; left: 22px;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--bg);
}
.pricing-plan__name { font-size: 1rem; font-weight: 600; }
.pricing-plan__price { display: flex; align-items: baseline; gap: 6px; }
.pricing-plan__amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.pricing-plan__period { font-size: .82rem; color: var(--ink-faint); }
.pricing-plan__desc { font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }
.pricing-plan__block { border-top: 1px solid var(--border); padding-top: 14px; }
.pricing-plan__block-title { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.pricing-plan__limits, .pricing-plan__features { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.pricing-plan__limits li { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; }
.pricing-plan__limit-value { font-weight: 600; min-width: 46px; }
.pricing-plan__limit-label { color: var(--ink-soft); }
.pricing-plan__features li { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.pricing-plan__features li .icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
/* Wrapper do CtaButton: estica o botão/link para 100% sem citar `.btn` aqui
   (universal `*` alcança o elemento real que o CtaButton desenha). */
.pricing-plan__cta { margin-top: auto; display: flex; }
.pricing-plan__cta > * { flex: 1; justify-content: center; }

.pricing-plan--skeleton { gap: 14px; }
.pricing-plan__skel-bar { border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); }
.pricing-plan__skel-bar--name { width: 46%; height: 14px; }
.pricing-plan__skel-bar--price { width: 62%; height: 30px; }
.pricing-plan__skel-bar--line { width: 100%; height: 10px; }

.pricing-state { padding: 32px 0; display: grid; gap: 10px; justify-items: start; }
.pricing-state__title { font-size: .96rem; font-weight: 600; color: var(--ink); }
.pricing-state__hint { color: var(--ink-soft); }

/* Equivalente escopado de `.sr-only` (que já existe, sozinho, no styles.css
   operacional — DD3 item 1 proíbe repetir o nome aqui). */
.pricing-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .pricing-plan__badge { left: 18px; }
}

/* ── Contact ─────────────────────────────────────────────────────────── */
/* Painel de informações como a preview: um cartão único (surface + borda) com as
   linhas separadas por fios, ícone dourado sem fundo, rótulo miúdo + valor forte. */
.contact-grid { max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.contact { display: flex; gap: 15px; align-items: center; padding: 16px 4px; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; min-width: 0; }
.contact:last-child { border-bottom: 0; }
.contact > div { min-width: 0; flex: 1; }
.contact__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 0; background: none; color: var(--accent); flex-shrink: 0; box-shadow: none; }
.contact__icon .icon { width: 22px; height: 22px; }
.contact__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 3px; }
.contact__value { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Animação de entrada por bloco — configurável no CMS (props.style.animation) e por
   MCP. O bloco começa transparente e "assenta" quando entra na viewport (a classe
   .is-in é adicionada por JS, via IntersectionObserver). Como o site inteiro exige JS
   para renderizar, não há caso "sem JS" a proteger; ainda assim reduced-motion e o
   failsafe do hook garantem que nada fique preso invisível. O translateX é seguro no
   mobile porque o body tem overflow-x: hidden. */
.block-anim { opacity: 0; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.block-anim--rise { transform: translateY(28px); }
.block-anim--slide-left { transform: translateX(-42px); }
.block-anim--slide-right { transform: translateX(42px); }
.block-anim--zoom { transform: scale(.94); }
.block-anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .block-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 720px) {
  .cta__inner { align-items: center; }
  .feature-grid[data-count="2"] { grid-template-columns: 1fr; }
  .feature-grid[data-cols] { grid-template-columns: 1fr; } /* G2: 1 coluna a 390px, qualquer contagem */
}
