/* SH Vendas — componentes compartilhados pelos blocos (design/components/**). Gerados pelos helpers de inc/blocks.php. */

.sh-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.sh-accent { color: var(--wp--preset--color--blue); }
@keyframes sh-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sh-fade-up { animation: sh-fade-up var(--wp--custom--motion--enter) ease both; }

/* Os blocos sh/* controlam o próprio espaçamento. */
:where(.wp-block-post-content, .entry-content, .wp-site-blocks main) > [class*="wp-block-sh-"] { margin-block-start: 0; }
.sh-container { box-sizing: border-box; max-width: 1240px; margin-inline: auto; }

/* ---------- Botão (Button.jsx) ---------- */
.sh-btn {
	--btn-bg: var(--wp--preset--color--blue); --btn-fg: #fff; --btn-bd: var(--wp--preset--color--blue);
	--btn-hbg: var(--wp--preset--color--navy); --btn-hfg: #fff; --btn-hbd: var(--wp--preset--color--navy);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
	height: 48px; padding: 0 26px; border: 1px solid var(--btn-bd); border-radius: 64px;
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .02em;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out), color var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out), border-color var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out), transform var(--wp--custom--motion--fast) var(--wp--custom--motion--ease-out);
}
.sh-btn:hover:not(:disabled) { background: var(--btn-hbg); color: var(--btn-hfg); border-color: var(--btn-hbd); }
.sh-btn:active:not(:disabled) { transform: scale(.98); }
.sh-btn:disabled { opacity: .4; cursor: not-allowed; }
.sh-btn .sh-btn__arrow { transition: transform var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out); }
.sh-btn:hover .sh-btn__arrow { transform: translateX(3px); }
.sh-btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.sh-btn--lg { height: 56px; padding: 0 32px; font-size: 16px; }
.sh-btn--xl { height: 64px; padding: 0 42px; font-size: 16px; border-radius: 40px; }
.sh-btn--caps { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.sh-btn--sm.sh-btn--caps { font-size: 13px; }
.sh-btn--lg.sh-btn--caps { font-size: 15px; }
.sh-btn--xl.sh-btn--caps { font-size: 16px; }
.sh-btn--full { display: flex; width: 100%; }
.sh-btn--dark { --btn-bg: var(--wp--preset--gradient--navy); --btn-bd: #141F35; --btn-hbg: var(--wp--preset--color--blue); --btn-hbd: var(--wp--preset--color--blue); }
.sh-btn--secondary { --btn-bg: transparent; --btn-fg: var(--wp--preset--color--navy); --btn-bd: var(--wp--preset--color--navy); }
.sh-btn--ghost { --btn-bg: transparent; --btn-fg: var(--wp--preset--color--navy); --btn-bd: transparent; --btn-hbg: var(--wp--preset--color--surface-2); --btn-hfg: var(--wp--preset--color--navy); --btn-hbd: transparent; }
.sh-btn--inverse { --btn-bg: #fff; --btn-fg: var(--wp--preset--color--navy); --btn-bd: #fff; --btn-hbg: var(--wp--preset--color--blue); --btn-hbd: var(--wp--preset--color--blue); }
.sh-btn--outline-inverse { --btn-bg: transparent; --btn-bd: rgba(255, 255, 255, .6); --btn-hbg: #fff; --btn-hfg: var(--wp--preset--color--navy); --btn-hbd: #fff; }
@media (max-width: 560px) {
	.sh-btn--lg, .sh-btn--xl { height: auto; min-height: 56px; padding: 14px 28px; line-height: 1.3; white-space: normal; text-align: center; }
}

/* Variações de estilo do botão core (mesmas cores) */
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--wp--preset--gradient--navy); border-color: #141F35; color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); }
.wp-block-button.is-style-secondary .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: transparent; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--surface-2); }
.wp-block-button.is-style-inverse .wp-block-button__link { background: #fff; border-color: #fff; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-inverse .wp-block-button__link:hover { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); color: #fff; }
.wp-block-button.is-style-outline-inverse .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.wp-block-button.is-style-outline-inverse .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--navy); }
.wp-block-button.is-no-caps .wp-block-button__link { text-transform: none; font-weight: 600; letter-spacing: .02em; font-size: 15px; }

/* ---------- Eyebrow ---------- */
.sh-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0;
	font-family: var(--wp--preset--font-family--body); font-size: 12px; font-weight: 600; line-height: 16px;
	letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--blue);
}
.sh-eyebrow__rule { width: 18px; height: 1.5px; background: currentColor; }
.sh-eyebrow__number { font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--wp--preset--color--fg-3); }
.sh-eyebrow--inverse { color: var(--wp--preset--color--blue-light); }
.sh-eyebrow--inverse .sh-eyebrow__number { color: rgba(255, 255, 255, .5); }

/* ---------- Card ---------- */
.sh-card { position: relative; box-sizing: border-box; padding: 32px; border-radius: 20px; color: var(--wp--preset--color--navy); }
.sh-card--surface { background: var(--wp--preset--gradient--surface); border: 1px solid #fff; box-shadow: var(--wp--preset--shadow--md); }
.sh-card--outline { background: #fff; border: 1px solid var(--wp--preset--color--border); }
.sh-card--navy { background: var(--wp--preset--gradient--navy); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--wp--preset--shadow--lg); color: #fff; }
.sh-card--featured { background: #fff; border: 1px solid rgba(49, 87, 213, .35); box-shadow: var(--wp--preset--shadow--accent); }
.sh-card--interactive { transition: transform var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out), box-shadow var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out); }
.sh-card--interactive:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--lg); }
a.sh-card { display: block; text-decoration: none; }

/* ---------- ResultCard ---------- */
.sh-result { display: flex; flex-direction: column; gap: 12px; }
.sh-result--sm { padding: 24px; }
.sh-result__value {
	font-family: var(--wp--preset--font-family--display); font-size: 48px; font-weight: 800; line-height: 1;
	letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--wp--preset--color--green);
}
.sh-result--sm .sh-result__value { font-size: 36px; }
.sh-result--accent .sh-result__value { color: var(--wp--preset--color--blue); }
.sh-result--neutral .sh-result__value { color: var(--wp--preset--color--navy); }
.sh-card--navy .sh-result--accent .sh-result__value { color: var(--wp--preset--color--blue-light); }
.sh-result__label { font-size: 15px; font-weight: 600; line-height: 22px; color: var(--wp--preset--color--navy); }
.sh-result__context { font-size: 13px; line-height: 18px; color: var(--wp--preset--color--fg-3); }

/* ---------- Títulos de seção ---------- */
.sh-zen-title { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; text-align: center; }
.sh-zen-title__title { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.33; font-weight: 700; letter-spacing: -.015em; color: var(--wp--preset--color--navy); }
.sh-zen-title__sub { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 29px; font-weight: 500; color: var(--wp--preset--color--graphite); }
.sh-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 680px; }
.sh-section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; }
.sh-section-head p { margin: 0; font-size: 18px; line-height: 30px; color: var(--wp--preset--color--graphite); }

/* ---------- Badge ---------- */
.sh-badge {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 22px; padding: 0 9px;
	border: 1px solid var(--wp--preset--color--border); border-radius: 64px; background: var(--wp--preset--color--surface-2);
	font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--wp--preset--color--graphite);
}

/* ---------- IconButton + Dots ---------- */
.sh-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--wp--preset--color--border); border-radius: 50%; background: transparent; color: var(--wp--preset--color--navy);
	cursor: pointer; transition: all var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out);
}
.sh-icon-btn:hover { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
.sh-icon-btn--solid { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
.sh-icon-btn--solid:hover { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); }
.sh-dots { display: inline-flex; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--wp--preset--color--border); border-radius: 64px; }
.sh-dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--wp--preset--color--border); cursor: pointer;
	transition: all var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out);
}
.sh-dots button[aria-current="true"] { width: 28px; background: var(--wp--preset--color--navy); }

/* ---------- SegmentedTabs ---------- */
.sh-tabs {
	position: relative; display: inline-flex; gap: 4px; max-width: 100%; padding: 6px; box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border); border-radius: 64px;
	background: var(--wp--preset--gradient--glass-light); -webkit-backdrop-filter: blur(17.5px); backdrop-filter: blur(17.5px);
	overflow-x: auto; scrollbar-width: none;
}
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs__indicator {
	position: absolute; top: 6px; left: 0; width: 0; height: 52px; border-radius: 64px; background: #fff;
	box-shadow: inset 0 1px .3px rgba(11, 18, 32, .35), var(--wp--preset--shadow--xs);
	transition: left var(--wp--custom--motion--normal) ease-in-out, width var(--wp--custom--motion--normal) ease-in-out;
}
.sh-tabs__tab {
	position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px;
	border: 0; border-radius: 64px; background: none; cursor: pointer; text-decoration: none; white-space: nowrap;
	font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 600; color: var(--wp--preset--color--graphite);
	transition: color var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out);
}
.sh-tabs__tab[aria-selected="true"] { color: var(--wp--preset--color--navy); }
.sh-tabs:not(.is-ready) .sh-tabs__tab[aria-selected="true"] { background: #fff; box-shadow: inset 0 1px .3px rgba(11, 18, 32, .35), var(--wp--preset--shadow--xs); }
.sh-tabs--sm .sh-tabs__tab { height: 40px; padding: 0 18px; font-size: 14px; }
.sh-tabs--sm .sh-tabs__indicator { height: 40px; }

/* ---------- StepIndicator ---------- */
.sh-steps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font-family: var(--wp--preset--font-family--body); }
.sh-steps__item { display: flex; flex: 1; align-items: center; }
.sh-steps__item:last-child { flex: 0 0 auto; }
.sh-steps__item:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 1px; margin: 0 14px; background: var(--wp--preset--color--border); }
.sh-steps__item.is-done:not(:last-child)::after { background: var(--wp--preset--color--blue); }
.sh-steps__step { display: flex; align-items: center; gap: 10px; }
.sh-steps__dot {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border); border-radius: 50%;
	font-family: var(--wp--preset--font-family--display); font-size: 15px; font-weight: 700; color: var(--wp--preset--color--fg-3);
	transition: all .25s;
}
.sh-steps__dot .sh-icon { display: none; }
.sh-steps__label { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--wp--preset--color--fg-3); }
.sh-steps__item.is-current .sh-steps__dot { border-color: var(--wp--preset--color--blue); background: #fff; color: var(--wp--preset--color--blue); box-shadow: 0 0 0 3px rgba(49, 87, 213, .18); }
.sh-steps__item.is-current .sh-steps__label { font-weight: 600; color: var(--wp--preset--color--navy); }
.sh-steps__item.is-done .sh-steps__dot { border-color: var(--wp--preset--color--blue); background: var(--wp--preset--color--blue); color: #fff; }
.sh-steps__item.is-done .sh-steps__num { display: none; }
.sh-steps__item.is-done .sh-steps__dot .sh-icon { display: block; }
@media (max-width: 900px) {
	.sh-steps__label { display: none; }
	.sh-steps__item.is-current .sh-steps__label { display: inline; }
	.sh-steps__item:not(:last-child)::after { margin: 0 8px; min-width: 12px; }
}

/* ---------- Grids de cards (soluções, cases, conteúdos) ---------- */
.sh-grid { padding: 120px 24px 0; }
.sh-grid__filter { margin-bottom: 32px; }
.sh-grid__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sh-grid__list > [hidden] { display: none; }
.sh-grid__empty { padding: 32px; text-align: center; color: var(--wp--preset--color--fg-3); }
.sh-grid__pagination { margin-top: 40px; text-align: center; }
.sh-cases-note { max-width: 820px; margin: 0 auto; padding: 8px 24px 0; text-align: center; font-size: 14px; line-height: 22px; color: var(--wp--preset--color--fg-3); }
.sh-grid__empty a { color: var(--wp--preset--color--navy); font-weight: 600; }
.sh-grid__pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0 2px; padding: 0 14px;
	box-sizing: border-box; border: 1px solid var(--wp--preset--color--border); border-radius: 64px;
	font-size: 14px; font-weight: 600; color: var(--wp--preset--color--navy); text-decoration: none;
}
.sh-grid__pagination .current { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
@media (max-width: 1000px) { .sh-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sh-grid { padding: 88px 20px 0; } .sh-grid__list { grid-template-columns: 1fr; } }

.sh-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--blue); }
.sh-card--interactive:hover .sh-more .sh-icon { transform: translateX(3px); }
.sh-more .sh-icon { transition: transform var(--wp--custom--motion--normal) var(--wp--custom--motion--ease-out); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; white-space: nowrap; word-wrap: normal !important;
}

/* ---------- WhatsApp flutuante (inc/contact.php) ---------- */
.sh-wa {
	position: fixed; right: 24px; bottom: 24px; z-index: 40;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 60px; min-width: 60px; padding: 0 15px; box-sizing: border-box;
	border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
	box-shadow: 0 8px 24px rgba(6, 11, 20, .28);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
	animation: sh-wa-in .4s .8s ease both;
}
.sh-wa:hover, .sh-wa:focus-visible { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6, 11, 20, .32); }
.sh-wa:focus-visible { outline: 3px solid var(--wp--preset--color--blue-light); outline-offset: 3px; }
.sh-wa__icon { flex-shrink: 0; }
/* Rótulo aparece ao passar o mouse (desktop); no celular fica só o ícone. */
.sh-wa__label { display: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (min-width: 900px) {
	.sh-wa:hover .sh-wa__label, .sh-wa:focus-visible .sh-wa__label { display: inline; padding-right: 6px; }
}
@media (max-width: 640px) { .sh-wa { right: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 13px; } }
@keyframes sh-wa-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .sh-wa { animation: none; transition: none; } }
@media print { .sh-wa { display: none; } }

/* ---------- Aviso de cookies (inc/consent.php) ---------- */
.sh-consent {
	position: fixed; left: 24px; bottom: 24px; z-index: 45;
	width: min(420px, calc(100vw - 48px)); box-sizing: border-box; padding: 20px 22px;
	border: 1px solid var(--wp--preset--color--border); border-radius: 18px;
	background: #fff; box-shadow: 0 16px 40px rgba(6, 11, 20, .18);
	animation: sh-fade-up .35s ease both;
}
.sh-consent[hidden] { display: none; }
.sh-consent__title { margin: 0 0 6px; font-family: var(--wp--preset--font-family--display); font-size: 16px; font-weight: 700; color: var(--wp--preset--color--navy); }
.sh-consent__text { margin: 0 0 16px; font-size: 14px; line-height: 21px; color: var(--wp--preset--color--graphite); }
.sh-consent__text a { color: var(--wp--preset--color--navy); font-weight: 600; }
.sh-consent__actions { display: flex; justify-content: flex-end; gap: 8px; }
/* Mesmo peso visual para aceitar e recusar (exigência de consentimento livre). */
.sh-consent__actions .sh-btn { min-width: 110px; }
.sh-consent__actions .sh-btn--ghost { border-color: var(--wp--preset--color--border); }
@media (max-width: 640px) {
	.sh-consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.sh-consent__actions .sh-btn { flex: 1; }
	/* Enquanto o aviso está aberto, o botão do WhatsApp sobe para não ficar por baixo. */
	.sh-consent-open .sh-wa { bottom: 196px; }
}
@media (prefers-reduced-motion: reduce) { .sh-consent { animation: none; } }
@media print { .sh-consent { display: none; } }
.sh-footer__legal a, .sh-footer__legal button { color: inherit; text-decoration: none; }
.sh-footer__legal button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.sh-footer__legal a:hover, .sh-footer__legal button:hover { color: #fff; }
