/**
 * Páginas institucionais (A2: logo compacto no header)
 */

/* Ritmo de página via brand.css tokens */

/* Fundo papel suave nas páginas de conteúdo (evita cinza/branco cru do Ashe) */
body.ashe-woocommerce-child.ashe-wc-store:not(.woocommerce-shop):not(.ashe-wc-single):not(.ashe-wc-cart):not(.ashe-wc-checkout) .page-content {
	background-color: transparent;
}

body.ashe-woocommerce-child.ashe-wc-store .main-container article.page {
	background: transparent;
	border: 0;
	box-shadow: none;
}


/* Evita título da página Ashe + H2 redundante em Sobre quando iguais em peso */
body.ashe-wc-no-blog-sidebars .post-header {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ebe8e4;
}

body.ashe-wc-no-blog-sidebars .page-title {
	font-family: var(--ashe-wc-font-serif, 'Playfair Display', Georgia, serif) !important;
	font-weight: 400 !important;
	font-size: clamp(1.75rem, 3vw, 2.1rem) !important;
	margin: 0 !important;
	color: var(--ashe-wc-ink, #1f1f1f);
}

body.ashe-wc-no-blog-sidebars .post-content {
	max-width: var(--ashe-wc-read, 720px);
	margin-left: auto;
	margin-right: auto;
	line-height: 1.75;
	color: var(--ashe-wc-ink, #444);
	font-size: var(--ashe-wc-fs-body, 0.95rem);
}

/* Sobre: coluna de leitura limpa */
body.ashe-wc-no-blog-sidebars .post-content:has(.ep-about) {
	max-width: var(--ashe-wc-read, 720px);
}

/* Carrinho / checkout / conta: layout de fluxo (não coluna de leitura 720px) */
body.ashe-wc-cart .post-content,
body.ashe-wc-checkout .post-content,
body.ashe-wc-account .post-content {
	max-width: min(1120px, 100%);
	line-height: 1.6;
	color: var(--ashe-wc-ink, #1f1f1f);
	font-size: inherit;
}

body.ashe-wc-no-blog-sidebars .post-content:has(ul.products),
body.ashe-wc-no-blog-sidebars .post-content:has(.ep-portfolio),
body.ashe-wc-no-blog-sidebars .post-content:has(.ashe-acervo) {
	max-width: var(--ashe-wc-max, 1320px);
}

/* Acervo: layout de catálogo (largura total do content) */
body.ashe-wc-no-blog-sidebars .post-content:has(.ashe-acervo) {
	line-height: 1.55;
	color: var(--ashe-wc-ink, #17191a);
	font-size: inherit;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

body.ashe-wc-no-blog-sidebars:has(.ashe-acervo) .post-header {
	display: none; /* título editorial vive no hub */
}

/* Remove respiro extra do Ashe em volta do catálogo */
body.ashe-wc-no-blog-sidebars:has(.ashe-acervo) .main-container,
body.ashe-wc-no-blog-sidebars:has(.ashe-acervo) .page-content {
	max-width: none;
}

body.ashe-wc-no-blog-sidebars:has(.ashe-acervo) .page-content {
	padding-top: 0.5rem;
	padding-bottom: 1.5rem;
}

/* Portfólio: menos “post de blog”, mais vitrine */
body.ashe-wc-no-blog-sidebars:has(.ep-portfolio) .post-header {
	border-bottom: 0;
	margin-bottom: 0.5rem;
	padding-bottom: 0;
}

body.ashe-wc-no-blog-sidebars:has(.ep-portfolio) .page-title {
	font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-family: "Open Sans", system-ui, sans-serif !important;
	font-weight: 600 !important;
	color: var(--ashe-wc-moss, #3d5c52) !important;
}

body.ashe-wc-no-blog-sidebars .post-content h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 400;
	font-size: 1.45rem;
	margin: 2rem 0 0.85rem;
	color: #1f1f1f;
}

/* Se a página já tem .page-title, suaviza o primeiro H2 “Sobre…” genérico */
body.ashe-wc-no-blog-sidebars .post-content > h2:first-child {
	display: none;
}

body.ashe-wc-no-blog-sidebars .post-content h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 400;
	font-size: 1.2rem;
	margin: 1.75rem 0 0.65rem;
	color: #2a2a2a;
}

/* Listas de texto — NÃO afetar grelha de produtos WC */
body.ashe-wc-no-blog-sidebars .post-content ul:not(.products) {
	padding-left: 1.15rem;
	margin: 0.75rem 0 1.25rem;
}

body.ashe-wc-no-blog-sidebars .post-content ul:not(.products) > li {
	margin-bottom: 0.4rem;
}

/* ── Página Sobre — blocos Gutenberg ── */
.ep-about {
	margin: 0;
	padding: 0;
}

body.ashe-wc-no-blog-sidebars .post-content .ep-about p,
.ep-about p {
	margin: 0 0 1.05rem !important;
	line-height: 1.75 !important;
	color: var(--ashe-wc-ink, #2a2a2a) !important;
	font-size: 0.98rem !important;
}

.ep-about p:last-child {
	margin-bottom: 0 !important;
}

.ep-about__greeting {
	margin: 0 0 1.15rem !important;
	font-family: var(--ashe-wc-font-serif, "Playfair Display", Georgia, serif) !important;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem) !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	color: var(--ashe-wc-ink, #17191a) !important;
	letter-spacing: -0.01em;
}

body.ashe-wc-no-blog-sidebars .post-content .ep-about h2,
.ep-about h2.wp-block-heading,
.ep-about h2 {
	margin: 2rem 0 0.85rem !important;
	text-align: left !important;
	font-size: 1.25rem !important;
}

.ep-about ul.wp-block-list,
.ep-about ul {
	margin: 0.35rem 0 1.25rem !important;
	padding-left: 1.15rem !important;
}

.ep-about ul li {
	margin-bottom: 0.55rem !important;
	line-height: 1.65 !important;
	color: var(--ashe-wc-ink, #2a2a2a) !important;
}

/* Foto casal — bloco Imagem (clicar no editor e substituir) */
.ep-about .ep-about__duo,
.ep-about figure.ep-about__duo {
	margin: 1.75rem 0 1.85rem !important;
	max-width: 100%;
}

.ep-about .ep-about__duo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 22rem;
	object-fit: cover;
	object-position: center;
	border-radius: var(--ashe-wc-radius, 8px);
	border: 1px solid var(--ashe-wc-line, #e5e1db);
	background: var(--ashe-wc-paper, #f7f4ef);
}

.ep-about .ep-about__duo figcaption {
	margin-top: 0.5rem;
	font-size: 0.82rem;
	color: var(--ashe-wc-muted, #6a6e6c);
	text-align: center;
}

/* Colunas com retratos */
.ep-about .ep-about__people {
	margin: 1.75rem 0 1.5rem !important;
	align-items: flex-start;
}

.ep-about .ep-about__people .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ep-about .ep-about__portrait,
.ep-about figure.ep-about__portrait {
	margin: 0 0 0.5rem !important;
}

.ep-about .ep-about__portrait img {
	border-radius: 50% !important;
	border: 1px solid var(--ashe-wc-line, #e5e1db);
	background: var(--ashe-wc-paper, #f7f4ef);
	object-fit: cover;
}

.ep-about .ep-about__caption {
	margin: 0.35rem 0 0 !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	color: var(--ashe-wc-ink, #17191a) !important;
}

/* Botões */
.ep-about .ep-about__actions,
.ep-about .wp-block-buttons.ep-about__actions {
	margin: 1.75rem 0 0 !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ashe-wc-line, #e5e1db);
	gap: 0.65rem;
}

/* Dark */
body.ashe-woocommerce-child.ashe-dark-mode .ep-about p,
body.ashe-woocommerce-child.ashe-dark-mode .ep-about ul li {
	color: var(--ashe-dm-text-2, #b8b4ae) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ep-about__greeting,
body.ashe-woocommerce-child.ashe-dark-mode .ep-about__caption {
	color: var(--ashe-dm-text, #eceae6) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ep-about .ep-about__duo img,
body.ashe-woocommerce-child.ashe-dark-mode .ep-about .ep-about__portrait img {
	border-color: var(--ashe-dm-border, #2e3238);
}

body.ashe-woocommerce-child.ashe-dark-mode .ep-about .ep-about__duo figcaption {
	color: var(--ashe-dm-text-3, #87837d);
}

body.ashe-woocommerce-child.ashe-dark-mode .ep-about .ep-about__actions {
	border-top-color: var(--ashe-dm-border, #2e3238);
}

/* ═══════════════════════════════════════════════════════════
   Contato — claro + escuro
   Lista: label + valor (telefone/e-mail) sem grid a partir o texto
   ═══════════════════════════════════════════════════════════ */
body.ashe-woocommerce-child .ashe-wc-contact,
.ashe-wc-contact {
	max-width: min(36rem, 100%);
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Gutenberg inner container: não espremer a lista */
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-group__inner-container,
body.ashe-woocommerce-child .ashe-wc-contact.is-layout-constrained,
body.ashe-woocommerce-child .ashe-wc-contact .is-layout-constrained {
	max-width: none !important;
}

body.ashe-woocommerce-child .ashe-wc-contact > p:first-of-type,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-group__inner-container > p:first-of-type,
.ashe-wc-contact > p:first-of-type {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--ashe-wc-muted, #6a6e6c);
	margin: 0 0 1.35rem;
	text-align: center;
}

body.ashe-woocommerce-child .ashe-wc-contact > p,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-group__inner-container > p,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-paragraph,
.ashe-wc-contact > p {
	text-align: center;
	color: var(--ashe-wc-ink, #17191a);
	line-height: 1.7;
}

body.ashe-woocommerce-child .ashe-wc-contact h2,
body.ashe-woocommerce-child .ashe-wc-contact h3,
.ashe-wc-contact h2,
.ashe-wc-contact h3 {
	text-align: center;
	margin: 2rem 0 0.85rem;
	color: var(--ashe-wc-ink, #17191a);
}

/* Card de contactos */
body.ashe-woocommerce-child .ashe-wc-contact-list,
body.ashe-woocommerce-child .ashe-wc-contact ul.wp-block-list,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list,
.ashe-wc-contact-list,
.ashe-wc-contact .wp-block-list {
	list-style: none !important;
	margin: 0 0 1.75rem !important;
	padding: 0 !important;
	border: 1px solid var(--ashe-wc-line, #e5e1db) !important;
	border-radius: 12px !important;
	background: var(--ashe-wc-white, #fff) !important;
	overflow: hidden;
	box-shadow: var(--ashe-wc-shadow-soft, 0 1px 2px rgba(23, 25, 26, 0.04));
}

/* Uma linha por contacto: coluna flex (NÃO grid 7rem — isso partia tel/email) */
body.ashe-woocommerce-child .ashe-wc-contact-list li,
body.ashe-woocommerce-child .ashe-wc-contact ul.wp-block-list > li,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list > li,
.ashe-wc-contact-list li,
.ashe-wc-contact .wp-block-list > li {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center;
	gap: 0.3rem !important;
	padding: 1rem 1.2rem !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--ashe-wc-line, #e5e1db) !important;
	/* anula grid residual de site.css */
	grid-template-columns: none !important;
}

body.ashe-woocommerce-child .ashe-wc-contact-list li:last-child,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list > li:last-child,
.ashe-wc-contact-list li:last-child,
.ashe-wc-contact .wp-block-list > li:last-child {
	border-bottom: 0 !important;
}

/* Label */
body.ashe-woocommerce-child .ashe-wc-contact-list strong,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list strong,
.ashe-wc-contact-list strong,
.ashe-wc-contact .wp-block-list strong {
	display: block !important;
	margin: 0 !important;
	font-family: var(--ashe-wc-font-sans, "Open Sans", system-ui, sans-serif) !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ashe-wc-moss, #455a51) !important;
	line-height: 1.3;
}

/* Esconde <br> legados entre label e valor */
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list li > br,
body.ashe-woocommerce-child .ashe-wc-contact-list li > br {
	display: none !important;
}

/* Telefone / e-mail — sem partir no meio */
body.ashe-woocommerce-child .ashe-wc-contact-list a,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list a,
.ashe-wc-contact-list a,
.ashe-wc-contact .wp-block-list a {
	display: inline-block !important;
	max-width: 100%;
	color: var(--ashe-wc-ink, #17191a) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	line-height: 1.45 !important;
	/* Quebra só se o contentor for mais estreito que o texto — não letter-by-letter */
	word-break: normal !important;
	overflow-wrap: break-word !important;
	white-space: normal;
	hyphens: none !important;
}

/* Telefone / WhatsApp: preferir uma linha */
body.ashe-woocommerce-child .ashe-wc-contact a[href*="wa.me"],
body.ashe-woocommerce-child .ashe-wc-contact a[href^="tel:"],
body.ashe-woocommerce-child .ashe-wc-contact-list a[href*="wa.me"],
body.ashe-woocommerce-child .ashe-wc-contact-list a[href^="tel:"] {
	white-space: nowrap !important;
	overflow-wrap: normal !important;
}

body.ashe-woocommerce-child .ashe-wc-contact-list a:hover,
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-list a:hover,
.ashe-wc-contact-list a:hover,
.ashe-wc-contact .wp-block-list a:hover {
	color: var(--ashe-wc-moss, #455a51) !important;
	text-decoration: underline !important;
	text-underline-offset: 0.15em;
}

/* Botões */
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-buttons,
body.ashe-woocommerce-child .ashe-wc-contact-actions,
.ashe-wc-contact .wp-block-buttons,
.ashe-wc-contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin: 0 0 1.5rem;
}

body.ashe-woocommerce-child .ashe-wc-contact p:has(.button) {
	margin-top: 1.25rem;
}

/* Outline (e-mail) legível no claro */
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 1.5px solid var(--ashe-wc-moss, #455a51) !important;
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
}
body.ashe-woocommerce-child .ashe-wc-contact .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--ashe-wc-moss-soft, #eef2ef) !important;
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
}

/* ── Dark mode (tokens, sem #222 / #555 hardcoded) ── */
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact > p:first-of-type,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-group__inner-container > p:first-of-type,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact p,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-paragraph {
	color: var(--ashe-dm-text-2, #b8b4ae) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact h2,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact h3 {
	color: var(--ashe-dm-text, #eceae6) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact-list,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact ul.wp-block-list,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-list {
	background: var(--ashe-dm-surface, #1c1f24) !important;
	border-color: var(--ashe-dm-border, #2e3238) !important;
	box-shadow: none !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact-list li,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-list > li {
	border-bottom-color: var(--ashe-dm-border, #2e3238) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact-list strong,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-list strong {
	color: var(--ashe-dm-accent, #cbb79c) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact-list a,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-list a {
	color: var(--ashe-dm-text, #eceae6) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact-list a:hover,
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-list a:hover {
	color: var(--ashe-dm-accent, #cbb79c) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: var(--ashe-dm-accent, #cbb79c) !important;
	color: var(--ashe-dm-accent, #cbb79c) !important;
}
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-contact .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(203, 183, 156, 0.12) !important;
	color: var(--ashe-dm-accent, #cbb79c) !important;
}

/* WhatsApp button permanece verde (site.css) */
