/*
Theme Name: Empregada app
Theme URI: https://empregada.eu
Author: Empregada app
Description: Tema à medida do site institucional da Empregada app — direção Japandi, construído a partir do brand kit oficial (tokens, Outfit + Source Sans 3). Sem page builders.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: empregada
*/

/* ===== Tokens do brand kit (Claude Design, set/2026) ===== */
:root {
  /* stone */
  --stone-50: #FAFAF9;  --stone-100: #F5F5F4; --stone-200: #E7E5E4; --stone-300: #D6D3D1;
  --stone-400: #A8A29E; --stone-500: #78716C; --stone-700: #44403C; --stone-800: #292524;
  /* japandi */
  --sage-100: #E4E8DD;  --sage-400: #8A9A7B;  --sage-600: #5E6E52;
  --clay-100: #F1E4D6;  --clay-400: #D9A06E;  --clay-600: #A0693F;
  --slate-100: #DFE3E7; --slate-400: #7A8896; --slate-600: #3F4A55;
  --sand-200: #E8DCC8;  --sand-400: #C9B99F;
  /* semântica */
  --bg: var(--stone-100);        --surface: #FFFFFF;             --border: var(--stone-200);
  --text: var(--stone-700);      --text-muted: var(--stone-500); --text-strong: var(--stone-800);
  --accent: var(--sage-600);     --accent-hover: #4E5C44;        --accent-soft: var(--sage-100);
  --success: #5E7A55; --warning: #B8823F; --error: #A85A50; --info: #5F7385;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --maxw: 1120px;
}

/* ===== Reset e base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--stone-700); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-strong); margin: 0 0 0.5em; }
h1 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-weight: 400; font-size: 2rem; line-height: 1.16; letter-spacing: -0.015em; }
h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.overline {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
@media (min-width: 800px) { section { padding: 96px 0; } }

/* ===== Botões ===== */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--stone-100); }
.btn-primary:hover { background: var(--accent-hover); color: var(--stone-50); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-nav { padding: 10px 18px; font-size: 15px; }

/* ===== Banner de consentimento de cookies ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 8px 28px rgba(41, 37, 36, 0.14);
  padding: 20px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cookie-banner-inner > p { flex: 1 1 320px; }
.cookie-banner-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 560px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

/* ===== Barra de aviso (transição de domínio) ===== */
.notice-bar {
  background: var(--slate-600); color: var(--slate-100); text-align: center;
  font-size: 14px; padding: 9px 16px;
}
.notice-bar a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ===== Header / nav ===== */
.site-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.site-logo img { width: 210px; height: auto; }
.site-nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.site-nav a { color: var(--text); font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 3px; padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
    z-index: 30;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .site-header { position: relative; }
}

/* ===== Hero ===== */
.hero { padding: 72px 0 64px; }
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
  .hero { padding: 96px 0 88px; }
}
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 34em; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.hero-visual {
  background: var(--sand-200); border-radius: 6px; aspect-ratio: 1 / 1;
  overflow: hidden; margin-top: 40px;
}
@media (min-width: 900px) { .hero-visual { margin-top: 0; } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Cartões e grelhas ===== */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 28px 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--sage-600); font-weight: 600;
  align-items: center; justify-content: center; font-size: 15px; margin-bottom: 14px;
}

/* Secção editorial (fundo areia) */
.section-sand { background: var(--sand-200); }
.section-soft { background: var(--stone-50); }
.section-dark { background: var(--slate-600); }
.section-dark h2, .section-dark h3 { color: var(--stone-100); }
.section-dark p { color: var(--slate-100); }

/* ===== Preços ===== */
.pricing { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (min-width: 700px) { .pricing { grid-template-columns: 1fr 1fr; } }
.price-card { text-align: center; padding: 36px 28px; }
.price-card .price { font-family: var(--font-heading); font-weight: 300; font-size: 3rem; color: var(--text-strong); }
.price-card .per { color: var(--text-muted); font-size: 15px; }
.price-badge {
  display: inline-block; background: var(--accent-soft); color: var(--sage-600);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px; margin-bottom: 12px;
}
.price-features { list-style: none; padding: 0; margin: 20px 0 26px; color: var(--text-muted); font-size: 15px; }
.price-features li { padding: 5px 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 0 22px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 500; font-size: 17px;
  color: var(--text-strong); padding: 18px 0; list-style: none; position: relative; padding-right: 28px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 2px; top: 15px; font-size: 22px; color: var(--sage-600); font-weight: 300; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 0 18px; color: var(--text); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ===== Formulário ===== */
.form-card { max-width: 640px; margin: 0 auto; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text-strong); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--stone-300); border-radius: 3px;
  font: inherit; color: var(--text); background: var(--surface);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--sage-400); border-color: var(--sage-400); }
.form-msg { border-radius: 4px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.form-msg.ok { background: rgba(94,122,85,.12); color: var(--success); border: 1px solid var(--success); }
.form-msg.err { background: rgba(168,90,80,.12); color: var(--error); border: 1px solid var(--error); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ===== Conteúdo de página (legais, blog) ===== */
.page-content { max-width: 760px; margin: 0 auto; }
.page-content h1 { font-size: 2.4rem; margin-bottom: 0.4em; }
.page-content h3 { margin-top: 1.6em; }
.page-content ul { padding-left: 1.3em; }
.page-content li { margin-bottom: 0.4em; }
.entry-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 2em; }

/* ===== CTA final ===== */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 0.4em; }
.cta-final p { color: var(--text-muted); max-width: 34em; margin: 0 auto 26px; }

/* ===== Newsletter ===== */
.newsletter-band { background: var(--sage-100); padding: 44px 0; }
.newsletter-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .newsletter-inner { grid-template-columns: 1fr 1fr; } }
.newsletter-band h3 { margin-bottom: 4px; }
.newsletter-band p { margin: 0; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input[type=email] {
  flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--stone-300);
  border-radius: 3px; font: inherit; background: var(--surface);
}
.newsletter-row input[type=email]:focus { outline: 2px solid var(--sage-400); border-color: var(--sage-400); }
.newsletter-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin-top: 10px; cursor: pointer; }
.newsletter-consent input { margin-top: 2px; }
#nl-msg { font-size: 14px; font-weight: 600; margin: 8px 0 0; min-height: 1em; }
#nl-msg.nl-ok { color: var(--success); }
#nl-msg.nl-err { color: var(--error); }

/* ===== Footer ===== */
.site-footer { background: var(--stone-800); color: var(--stone-400); padding: 56px 0 40px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--stone-100); font-weight: 500; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: var(--stone-300); display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--stone-100); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--stone-700); padding-top: 22px; margin-top: 8px; font-size: 13px; }
.footer-brand img { width: 200px; margin-bottom: 14px; }

/* ===== Acessibilidade ===== */
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--sage-400); outline-offset: 2px; }

/* Selo da marca nas secções de destaque (visto vazado na cor do fundo areia) */
.seal-stamp { width: 128px; height: 128px; display: block; margin: 0 auto 20px; }

/* Landing pages de campanhas (page-landing.php): sem navegação, um só CTA */
.lp-body { background: var(--cream-50, #FBF9F4); }
.lp-wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px 56px; text-align: center; }
.lp-logo { display: block; margin: 0 auto 28px; width: 168px; height: auto; }
.lp-title { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-bottom: 20px; }
.lp-subtitle { font-size: 17px; line-height: 1.55; color: var(--text-muted); max-width: 540px; margin: -6px auto 8px; }
.lp-faq { text-align: left; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--sand-200); }
.lp-faq h2 { font-size: 1.4rem; margin-top: 28px; }
.lp-faq h2:first-child { margin-top: 0; }
.lp-faq h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.lp-faq p { margin-bottom: 8px; }
.lp-cta-block { margin: 24px 0 36px; }
.lp-cta { font-size: 17px; padding: 14px 28px; }
.lp-trust { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.lp-content { text-align: left; margin: 0 auto; }
.lp-content h2 { font-size: 1.4rem; margin-top: 32px; }
/* Hero em mobile: sem isto, um 4:5 inteiro gasta meia página de scroll antes
 * da primeira linha de texto (reauditoria CRO 10/09). */
@media (max-width: 560px) {
  .lp-content .wp-block-image:first-child img { max-height: 430px; width: 100%; object-fit: cover; }
}
.lp-content img { border-radius: 8px; }
.lp-cta-final { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--sand-200); }
.lp-footer { margin-top: 48px; font-size: 12px; color: var(--stone-400); }
.lp-footer a { color: var(--stone-500); text-decoration: underline; }

/* ===== LPs com demonstração (hierarquia invertida, 14/09/2026) =====
 * Só se aplica quando a página tem o campo lp_demo_video. Ação principal =
 * ver a app a funcionar; criar conta passa a linha discreta; um loop curto sem
 * som ocupa o lugar do hero, para o produto se ver sem clique nenhum. */
.lp-cta-block--demo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-demo-abrir { font-size: 17px; padding: 14px 28px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; }
.lp-demo-play { font-size: 12px; line-height: 1; }
.lp-cta.lp-cta-secundario { background: none; padding: 4px 8px; font-size: 15px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.lp-cta-block--demo .lp-trust { margin-top: 0; }
.lp-demo-loop { display: block; margin: 4px auto 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.lp-demo-loop video { display: block; height: min(56vh, 520px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--sand-200); }
.lp-demo { padding: 0; border: 0; background: transparent; width: min(92vw, 420px); max-width: none; overflow: visible; }
.lp-demo::backdrop { background: rgba(41, 37, 36, .85); }
.lp-demo-caixa { position: relative; margin-top: 44px; }
.lp-demo-video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; }
.lp-demo-fechar { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lp-demo-fim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 28px; background: rgba(251, 249, 244, .97); border-radius: 14px; text-align: center; }
.lp-demo-fim[hidden] { display: none; }
.lp-demo-fim-titulo { font-family: var(--font-heading); font-size: 22px; line-height: 1.25; color: var(--text-strong); margin: 0; }
.lp-demo-fim-nota { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.lp-demo-rever { background: none; border: 0; color: var(--text-muted); text-decoration: underline; font-size: 15px; cursor: pointer; }
/* Linha do Android (16/09): pequena, para não competir com o botão. */
.lp-android { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); max-width: 360px; }
/* Por baixo do leitor: a linha do Android e a transcrição recolhível. A caixa
   passa a poder rolar, para a transcrição aberta caber em qualquer ecrã. */
.lp-demo { max-height: 100vh; overflow: auto; }
.lp-demo-extra { padding: 12px 4px 20px; text-align: center; }
.lp-demo-android { color: rgba(251, 249, 244, .85); max-width: none; }
.lp-demo-transcricao { margin-top: 12px; text-align: left; color: rgba(251, 249, 244, .9); font-size: 14px; line-height: 1.55; }
.lp-demo-transcricao summary { cursor: pointer; text-align: center; color: rgba(251, 249, 244, .75); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.lp-demo-transcricao[open] summary { margin-bottom: 10px; }
.lp-demo-transcricao p { margin: 0 0 10px; }

/* Carrossel de capturas das LP: o quadro seguinte espreita na margem e há
   contagem, senão metade dos visitantes só vê o primeiro. */
.lp-carrossel { margin: 0 -20px 36px; text-align: left; }
.lp-carrossel-pista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 4px; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lp-carrossel-pista::-webkit-scrollbar { display: none; }
.lp-carrossel-quadro { flex: 0 0 82%; max-width: 360px; margin: 0; scroll-snap-align: start; }
.lp-carrossel-quadro img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--sand-200); }
.lp-carrossel-quadro figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.lp-carrossel-quadro figcaption strong { display: block; font-family: var(--font-heading); font-size: 17px; line-height: 1.3; color: var(--text-strong); margin-bottom: 2px; }
.lp-carrossel-rodape { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.lp-carrossel-pontos { display: flex; gap: 6px; }
.lp-carrossel-pontos button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--stone-300); cursor: pointer; box-sizing: content-box; }
.lp-carrossel-pontos button.ativo { background: var(--accent); }
/* Setas (16/09): com rato e barra escondida a pista não andava. */
.lp-carrossel-seta { width: 36px; height: 36px; padding: 0 0 3px; border: 1px solid var(--sand-200); border-radius: 50%; background: #fff; color: var(--text-strong); font-size: 24px; line-height: 1; cursor: pointer; }
.lp-carrossel-seta:hover { border-color: var(--accent); color: var(--accent); }
.lp-carrossel-conta { margin: 0; font-size: 13px; color: var(--text-muted); }
