/* ==========================================================================
   Receita: Painéis e Clareza — ochre-geometric
   Conteúdo sempre retangular. Curva só na borda das faixas e em um círculo.
   Toda cor e tipografia vem de tokens.css da família.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pog-header-h) + 12px); }

/* As curvas das faixas são elipses mais largas que a tela, para a curva ficar suave.
   overflow-x: clip corta o excesso sem criar contêiner de rolagem — o header sticky continua
   funcionando, o que não aconteceria com overflow: hidden. */
html, body { overflow-x: clip; }

body {
  margin: 0; background: var(--pog-bg); color: var(--pog-text);
  font-family: var(--pog-font-body); font-size: var(--pog-body-size);
  line-height: var(--pog-body-leading); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: var(--ws2-focus-width) solid var(--pog-ink); outline-offset: var(--ws2-focus-offset); }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--pog-ink); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 16px; }

.wrap { width: min(var(--pog-container), calc(100% - 48px)); margin-inline: auto; }
.wrap.read { width: min(var(--pog-measure), calc(100% - 44px)); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--pog-font-heading); font-weight: 400; color: var(--pog-ink); letter-spacing: -.005em; }
.section-title { font-size: var(--pog-section-heading); line-height: 1.18; margin: 0 0 30px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: var(--pog-label-tracking); text-transform: uppercase; margin: 0 0 18px; }
.lead { font-size: 19px; margin: 0 0 16px; }

/* Botão: retângulo, canto quase reto, caixa alta ----------------------------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pog-action); color: var(--pog-ink);
  font-family: var(--pog-font-body); font-size: 14px; font-weight: 600;
  letter-spacing: var(--pog-label-tracking); text-transform: uppercase;
  padding: 16px 30px; border: 1px solid rgba(46, 41, 38, .45);
  border-radius: var(--pog-radius-button); box-shadow: var(--pog-button-shadow);
  transition: background var(--ws2-duration-fast) ease, transform var(--ws2-duration-fast) var(--pog-ease), box-shadow var(--ws2-duration-fast) ease;
}
.button:hover { background: var(--pog-action-hover); transform: translateY(-2px); box-shadow: 0 4px 0 rgba(46, 41, 38, .18); }
.button .wa { width: 19px; height: 19px; }
.button-outline { background: transparent; }
.button-outline:hover { background: var(--pog-ochre-pale); }

/* Navbar · nav-uppercase-right -------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--pog-header-h);
  display: flex; align-items: center; gap: 26px; padding-inline: clamp(20px, 3.4vw, 48px);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent;
  transition: border-color var(--ws2-duration-fast) ease;
}
.header.scrolled { border-bottom-color: var(--pog-line); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; color: var(--pog-ochre); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark rect { color: var(--pog-taupe); stroke: var(--pog-taupe); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; border-left: 1px solid var(--pog-line); padding-left: 12px; }
.brand-copy strong { font-family: var(--pog-font-heading); font-weight: 500; font-size: 24px; color: var(--pog-taupe-deep); }
.brand-copy small { font-size: 11px; letter-spacing: .08em; color: var(--pog-muted); }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a { font-size: var(--pog-nav-size); letter-spacing: .06em; text-transform: uppercase; padding-block: 8px; border-bottom: 2px solid transparent; transition: border-color var(--ws2-duration-fast) ease; }
.nav a:hover { border-bottom-color: var(--pog-ochre); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--pog-ink); margin: 6px 0; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; position: sticky; top: var(--pog-header-h); z-index: 99; background: #fff; border-bottom: 1px solid var(--pog-line); padding: 6px 24px 16px; }
.nav-mobile a { padding: 13px 0; border-bottom: 1px solid var(--pog-line); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* Painel dividido 50/50 de ponta a ponta ------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(480px, 46vw, 660px); }
.split-ochre .panel { background: var(--pog-panel-primary); }
.split-blush .panel { background: var(--pog-panel-secondary); }
.panel { display: flex; align-items: center; padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px); }
.panel-inner { max-width: 560px; margin-left: auto; }
.split-photo-left .panel-inner { margin-left: 0; margin-right: auto; }
.panel h1 { font-size: var(--pog-hero-heading); line-height: 1.12; margin: 0 0 22px; }
.panel h2 { font-size: var(--pog-section-heading); line-height: 1.16; margin: 0 0 18px; }
.panel p { margin: 0 0 14px; }
.panel .button { margin-top: 18px; }

/* foto: metade do painel, inteira, sem canto arredondado */
.panel-photo { margin: 0; position: relative; overflow: hidden; background: var(--pog-blush-grey); }
.panel-photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--pog-radius-content); }
.split-photo-left .panel-photo > img { object-position: 38% 20%; }
.split-ochre:first-of-type .panel-photo > img { object-position: 50% 18%; }
/* o círculo: única forma curva de conteúdo permitida, uma por página */
.circle { position: absolute; top: 7%; right: 6%; width: clamp(120px, 13vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--pog-ochre); }

/* Faixas de texto ------------------------------------------------------------- */
.band { padding-block: var(--pog-band-y); }
.band-tight { padding-top: 0; }
.band-paper { background: var(--pog-paper); }
.band-blush { background: var(--pog-panel-secondary); }

/* Statement · statement-centered */
.statement { font-family: var(--pog-font-heading); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; margin: 0 0 16px; }
.band-paper .wrap.read p:not(.statement):not(.closing) { color: var(--pog-text-muted); }

/* Recognition · recognition-centered-lines */
.lines { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.lines li { color: var(--pog-text-muted); }
.lines li strong { color: var(--pog-ink); }
.closing { font-weight: 600; margin: 0; }

/* SplitPanel · lista em negrito e etapas */
.bold-list { margin: 22px 0 0; display: grid; gap: 14px; }
.bold-list dt { font-weight: 600; }
.bold-list dd { margin: 2px 0 0; color: #4A403B; font-size: 16px; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; border-top: 1px solid rgba(46, 41, 38, .28); padding-top: 14px; }
.steps span { font-family: var(--pog-font-heading); font-size: 30px; line-height: 1; }
.steps strong { display: block; }
.steps p { margin: 2px 0 0; font-size: 16px; }

/* Demands · demands-bold-list */
.demands { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--pog-line); }
.demands li { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--pog-line); color: var(--pog-text-muted); font-size: 16px; }
.demands li:nth-child(odd) { border-right: 1px solid var(--pog-line); }
.demands li:nth-child(even) { padding-left: 24px; }
.demands strong { display: block; color: var(--pog-ink); font-size: 17px; margin-bottom: 4px; }

/* Stats · stats-ruled-columns ----------------------------------------------------
   Mesmo comportamento de contagem da gold-blush (global), aparência desta família:
   colunas retas separadas por filetes, serifada leve, nenhum degradê, nenhum canto curvo. */
.band-stats { padding-block: clamp(40px, 5vw, 64px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--pog-ink); border-bottom: 1px solid var(--pog-line); }
.stats li { padding: 34px 30px 30px; }
.stats li + li { border-left: 1px solid var(--pog-line); }
.stat-value { font-family: var(--pog-font-heading); font-weight: 300; font-size: clamp(48px, 6vw, 84px);
  line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; color: var(--pog-ink); }
.stat-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: var(--pog-label-tracking); text-transform: uppercase; color: var(--pog-text-muted); }

/* Method · method-two-items */
.subline { margin: -12px 0 38px; }
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--pog-line); }
.method-item { padding: 34px 36px; }
.method-item + .method-item { border-left: 1px solid var(--pog-line); }
.method-item h3 { font-size: 24px; margin: 0 0 12px; }
.method-item p { margin: 0; color: var(--pog-text-muted); font-size: 16px; }

/* VideoIntro · video-poster-split */
.video-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--pog-taupe); overflow: hidden; }
.video-poster > img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%); background: var(--pog-ochre); color: var(--pog-ink); display: grid; place-items: center; border-radius: var(--pog-radius-button); transition: background var(--ws2-duration-fast) ease; }
.play svg { width: 32px; height: 32px; margin-left: 4px; }
.video-poster:hover .play { background: var(--pog-ochre-deep); }
.video-copy h2 { font-size: var(--pog-section-heading); margin: 0 0 14px; }
.video-copy p { margin: 0 0 12px; }
.video-note { font-size: 14px; color: var(--pog-text-muted); }

/* CtaBand · cta-band-curved: curva só na fronteira ---------------------------- */
.cta-band { position: relative; z-index: 1; background: var(--pog-ochre); padding-block: clamp(56px, 7vw, 90px); margin-block: 48px; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; left: -6%; right: -6%; height: 72px; z-index: -1;
  background: var(--pog-ochre); border-radius: 50%;
}
.cta-band::before { top: -36px; }
.cta-band::after { bottom: -36px; }
.cta-band h2 { font-size: var(--pog-band-heading); line-height: 1.1; margin: 0 0 16px; }
.cta-band .subline { margin: 0 0 18px; font-size: 20px; }
.cta-band p { margin: 0 0 26px; }

/* Faq · faq-thin-lines */
.accordion details { border-bottom: 1px solid var(--pog-line); }
.accordion summary { cursor: pointer; list-style: none; position: relative; padding: 22px 40px 22px 0; font-size: 17px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--pog-ink); border-bottom: 1.5px solid var(--pog-ink); transform: rotate(45deg); transition: transform var(--ws2-duration-fast) ease; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details p { margin: 0 0 22px; color: var(--pog-text-muted); font-size: 16px; }

/* Credentials · credentials-text-badges */
.credentials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--pog-line); border-bottom: 1px solid var(--pog-line); }
.credentials li { padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; }
.credentials li + li { border-left: 1px solid var(--pog-line); }
.credentials strong { font-family: var(--pog-font-heading); font-weight: 500; font-size: 22px; }
.credentials span { font-size: 14px; color: var(--pog-text-muted); }

/* Footer · footer-taupe-curved -------------------------------------------------- */
.footer { position: relative; z-index: 1; background: var(--pog-close); color: rgba(255, 255, 255, .82); padding: clamp(56px, 7vw, 80px) 0 26px; margin-top: 70px; font-size: 15px; }
.footer::before { content: ""; position: absolute; left: -6%; right: -6%; top: -34px; height: 68px; background: var(--pog-close); border-radius: 50%; z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer p { margin: 0 0 10px; }
.footer-brand { font-family: var(--pog-font-heading); font-size: 26px; color: #fff; }
.footer-title { font-size: 12px; letter-spacing: var(--pog-label-tracking); text-transform: uppercase; color: var(--pog-ochre-pale); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; }

/* Contato flutuante: quadrado, ocre — nenhum verde nesta família ---------------- */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 56px; height: 56px; background: var(--pog-ochre); color: var(--pog-ink); display: grid; place-items: center; border: 1px solid rgba(46, 41, 38, .45); border-radius: var(--pog-radius-button); box-shadow: var(--pog-button-shadow); transition: transform var(--ws2-duration-fast) var(--pog-ease); }
.floating svg { width: 28px; height: 28px; }
.floating:hover { transform: translateY(-3px); }

/* Revelação ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .75s var(--pog-ease); }
.reveal.in { opacity: 1; transform: none; }
/* assinatura: cortina horizontal. O recorte vive no primeiro filho, nunca no elemento
   observado (R15) — senão o IntersectionObserver nunca enxerga o painel. */
.reveal-media { opacity: 0; transition: opacity .6s ease; }
.reveal-media.in { opacity: 1; }
.reveal-media > :first-child { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.22, 1, .36, 1); }
.reveal-media.in > :first-child { clip-path: inset(0 0 0 0); }

/* Responsivo ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split .panel-photo { order: -1; height: clamp(300px, 70vw, 520px); }
  .panel-inner, .split-photo-left .panel-inner { margin: 0; max-width: 640px; }
  .video-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .method-item + .method-item { border-left: 0; border-top: 1px solid var(--pog-line); }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credentials li:nth-child(3) { border-left: 0; }
  .credentials li:nth-child(n+3) { border-top: 1px solid var(--pog-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap.read { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--pog-line); }
  .demands { grid-template-columns: 1fr; }
  .demands li:nth-child(odd) { border-right: 0; }
  .demands li:nth-child(even) { padding-left: 0; }
  .credentials { grid-template-columns: 1fr; }
  .credentials li + li { border-left: 0; border-top: 1px solid var(--pog-line); }
  .footer-grid { grid-template-columns: 1fr; }
  .button { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Movimento reduzido — escopado para o preview da WS2 ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) { scroll-behavior: auto; }
  html:not([data-ws2-motion="full"]) .reveal, html:not([data-ws2-motion="full"]) .reveal-media { transform: none !important; transition: opacity .4s ease !important; }
  html:not([data-ws2-motion="full"]) .reveal.in, html:not([data-ws2-motion="full"]) .reveal-media.in { opacity: 1; }
  html:not([data-ws2-motion="full"]) .reveal-media > :first-child { clip-path: none; transition: none; }
  html:not([data-ws2-motion="full"]) .button:hover, html:not([data-ws2-motion="full"]) .floating:hover { transform: none; }
}


/* Ajustes desta família ao contrato de imagens (a base vive em components/global/ws2-base.css). */
/* nesta família, o painel sem foto continua de ponta a ponta: a cor ocupa a largura toda */
.split[data-ws2-layout="single"] { max-width: none; min-height: 0; }
.split[data-ws2-layout="single"] .panel-inner { margin-inline: auto; max-width: 760px; }

/* Redes sociais: canto reto, como todo conteúdo desta família. */
.footer { --ws2-social-radius: 2px; }

/* Mapa: canto reto, como todo conteúdo desta família. */
.ws2-map { --ws2-map-radius: 0; }

/* Página atual na navegação (contrato de páginas). */
.nav a[aria-current="page"] { border-bottom-color: var(--pog-ochre); }
.nav-mobile a[aria-current="page"] { color: var(--pog-ochre-deep); font-weight: 600; }
