/* ==========================================================================
   Clube SMK — Layout (containers, grid, regiões globais)
   ========================================================================== */

.csmk-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.csmk-container--wide { max-width: var(--container-wide); }
.csmk-container--narrow { max-width: var(--container-narrow); }

.csmk-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.csmk-section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }

/* Cabeçalho de seção */
.csmk-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-4);
	margin-bottom: var(--s-8);
	flex-wrap: wrap;
}
.csmk-section__title {
	font-size: var(--fs-32);
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
}
.csmk-section__title .accent { color: var(--c-purple); }
.csmk-section__subtitle { color: var(--text-soft); margin-top: var(--s-2); font-size: var(--fs-16); }
.csmk-section__link {
	font-weight: var(--fw-semi);
	font-size: var(--fs-14);
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	color: var(--c-purple);
}
.csmk-section__link:hover { gap: var(--s-3); }

/* Grades reutilizáveis */
.csmk-grid { display: grid; gap: var(--s-6); }
.csmk-grid--products {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
@media (max-width: 600px) {
	.csmk-grid--products { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}

/* Eyebrow / kicker */
.csmk-eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: var(--fs-12);
	font-weight: var(--fw-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-purple);
	margin-bottom: var(--s-3);
}
.is-dark .csmk-eyebrow { color: #ff8b4d; }

/* Conteúdo principal */
#csmk-main { min-height: 40vh; }

/* Páginas de conteúdo (CMS) */
.csmk-page { padding-block: clamp(2rem, 5vw, 4rem); }
.csmk-page__header { margin-bottom: var(--s-8); }
.csmk-page__title { font-size: var(--fs-40); }
.csmk-entry-content { max-width: 760px; }
.csmk-entry-content > * + * { margin-top: var(--s-5); }
.csmk-entry-content--full { max-width: none; }
.csmk-entry-content--full > * + * { margin-top: 0; }
.csmk-page--wc { padding-block: var(--s-6) var(--s-16); }
.csmk-entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--text-soft); }
.csmk-entry-content p { line-height: 1.75; }
.csmk-entry-content strong { color: var(--text); font-weight: var(--fw-semi); }
.csmk-entry-content h2 {
	margin-top: var(--s-10); margin-bottom: var(--s-1);
	font-size: var(--fs-24); color: var(--text); scroll-margin-top: var(--sticky-offset);
}
.csmk-entry-content h3 { margin-top: var(--s-7); margin-bottom: var(--s-1); font-size: var(--fs-18); color: var(--text); }
.csmk-entry-content ul, .csmk-entry-content ol { padding-left: 1.3em; }
.csmk-entry-content ul { list-style: none; }
.csmk-entry-content ul > li { position: relative; padding-left: 1.2em; }
.csmk-entry-content ul > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-purple); }
.csmk-entry-content ol { list-style: decimal; }
.csmk-entry-content ol > li::marker { color: var(--c-purple); font-weight: var(--fw-bold); }
.csmk-entry-content li + li { margin-top: var(--s-2); }
.csmk-entry-content img { border-radius: var(--r); }
.csmk-entry-content a:not(.csmk-btn) { color: var(--c-purple); text-decoration: underline; text-underline-offset: 3px; }
.csmk-entry-content a:not(.csmk-btn):hover { color: var(--c-purple-700); }
.csmk-entry-content blockquote {
	border-left: 4px solid var(--c-purple);
	padding-left: var(--s-5);
	color: var(--text-soft);
	font-size: var(--fs-18);
}

/* ===== Páginas legais (políticas/termos) ===== */
.csmk-legal { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.csmk-legal__header { margin-bottom: var(--s-8); padding-bottom: var(--s-6); border-bottom: 1px solid var(--border); }
.csmk-legal__header .csmk-page__title { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: var(--s-2); }
.csmk-legal__layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .csmk-legal__layout { grid-template-columns: 1fr; gap: var(--s-6); } }
.csmk-legal__content { max-width: 760px; }

/* Badge "última atualização" (1º parágrafo) */
.csmk-legal__content > p:first-child {
	display: inline-block; margin: 0 0 var(--s-6);
	background: var(--c-purple-050); color: var(--c-purple-700);
	font-size: var(--fs-12); font-weight: var(--fw-semi);
	padding: 0.4em 0.9em; border-radius: var(--r-pill);
}
.csmk-legal__content > p:first-child em { font-style: normal; }

/* Índice lateral (TOC) */
.csmk-legal__aside { position: sticky; top: var(--sticky-offset); display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 880px) { .csmk-legal__aside { position: static; } .csmk-legal__toc { display: none; } }
.csmk-legal__toc { border-left: 2px solid var(--border); padding-left: var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.csmk-legal__toc::before { content: "Nesta página"; display: block; font-size: var(--fs-11); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: var(--fw-bold); margin-bottom: var(--s-2); margin-left: calc(-1 * var(--s-4)); padding-left: var(--s-4); }
.csmk-legal__toc a { display: block; padding: var(--s-1) 0; font-size: var(--fs-13); color: var(--text-soft); line-height: 1.4; border-left: 2px solid transparent; margin-left: calc(-1 * var(--s-4) - 2px); padding-left: var(--s-4); transition: color var(--t-fast); }
.csmk-legal__toc a:hover { color: var(--c-purple); }
.csmk-legal__toc a.is-active { color: var(--c-purple); font-weight: var(--fw-semi); border-left-color: var(--c-purple); }

/* Card de ajuda */
.csmk-legal__help { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.csmk-legal__help-icon { display: inline-flex; width: 44px; height: 44px; border-radius: var(--r); background: var(--c-purple-050); color: var(--c-purple); align-items: center; justify-content: center; margin-bottom: var(--s-3); }
.csmk-legal__help strong { display: block; font-size: var(--fs-16); margin-bottom: var(--s-1); }
.csmk-legal__help p { font-size: var(--fs-13); color: var(--text-soft); margin-bottom: var(--s-4); }
.csmk-legal__help .csmk-btn { margin-bottom: var(--s-2); }

/* ===== Header ===== */
.csmk-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	transition: box-shadow var(--t) var(--ease);
}
.csmk-header.is-stuck { box-shadow: var(--sh-2); }

.csmk-topbar {
	background: #0c0a12;
	color: #efe9fb;
	font-size: var(--fs-13);
}
.csmk-topbar__inner {
	min-height: var(--topbar-h);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--s-4);
	padding-block: var(--s-1);
}
.csmk-topbar__side { display: inline-flex; align-items: center; gap: var(--s-2); }
.csmk-topbar__left { justify-self: start; }
.csmk-topbar__right { justify-self: end; }
.csmk-topbar__main { justify-self: center; text-align: center; }
.csmk-topbar a { color: #fff; font-weight: var(--fw-semi); }
.csmk-topbar a:hover { color: var(--c-purple-100); }
@media (max-width: 768px) {
	.csmk-topbar__inner { grid-template-columns: 1fr; }
	.csmk-topbar__side { display: none; }
}

.csmk-header__bar {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	min-height: var(--header-h);
}
.csmk-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.csmk-logo img { height: 42px; width: auto; }
@media (max-width: 1024px) { .csmk-logo img { height: 32px; } }

.csmk-header__search { flex: 1 1 auto; max-width: 560px; }
.csmk-searchrow { display: none; }

.csmk-header__actions {
	display: flex;
	align-items: center;
	gap: var(--s-1);
	margin-left: auto;
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.csmk-header__search { display: none; }
	.csmk-logo { margin-right: auto; }
	.csmk-searchrow { display: block; padding-bottom: var(--s-3); }
}
.csmk-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: var(--r-sm);
	color: var(--text);
	transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.csmk-iconbtn:hover { background: var(--bg-muted); color: var(--c-purple); }
.csmk-iconbtn svg { width: 22px; height: 22px; }
.csmk-iconbtn__badge {
	position: absolute;
	top: 4px; right: 4px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--c-purple);
	color: #fff;
	font-size: var(--fs-11);
	font-weight: var(--fw-bold);
	font-family: var(--font-sans);
	display: flex; align-items: center; justify-content: center;
	line-height: 1;
}
.csmk-iconbtn__badge:empty,
.csmk-iconbtn__badge[data-count="0"] { display: none; }

.csmk-burger { display: none; }
@media (max-width: 1024px) {
	.csmk-burger { display: inline-flex; }
}

/* ===== Footer ===== */
.csmk-footer { background: var(--bg); }
.csmk-footer .is-dark,
.csmk-footer.is-dark { background: #0c0a12; }
.csmk-footer__main { padding-block: clamp(2.5rem, 5vw, 4rem); }
.csmk-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: var(--s-10);
}
@media (max-width: 900px) { .csmk-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
@media (max-width: 560px) { .csmk-footer__grid { grid-template-columns: 1fr; } }
.csmk-footer__logo img { height: 40px; width: auto; margin-bottom: var(--s-4); }
.csmk-footer__col h4 {
	font-family: var(--font-sans);
	font-size: var(--fs-13);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-faint);
	margin-bottom: var(--s-4);
}
.csmk-footer__col a { color: var(--text-soft); display: inline-block; padding-block: var(--s-1); }
.csmk-footer__col a:hover { color: #fff; }
.csmk-footer__about { color: var(--text-soft); max-width: 38ch; }
.csmk-footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.csmk-footer__social a {
	width: 40px; height: 40px;
	border: 1px solid var(--border-strong);
	border-radius: var(--r-circle);
	display: inline-flex; align-items: center; justify-content: center;
}
.csmk-footer__social a:hover { background: var(--c-purple); border-color: var(--c-purple); color: #fff; }
.csmk-footer__contact-list { display: flex; flex-direction: column; gap: var(--s-4); }
.csmk-footer__contact-list li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-13); color: var(--text-soft); line-height: 1.45; }
.csmk-footer__contact-list strong { color: #fff; font-weight: var(--fw-semi); font-size: var(--fs-13); }
.csmk-footer__contact-list a { color: var(--text-soft); }
.csmk-footer__contact-list a:hover { color: #fff; }
.csmk-footer__ci { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm); background: rgba(255,255,255,0.06); color: var(--c-purple); display: inline-flex; align-items: center; justify-content: center; }
.is-dark .csmk-footer__ci { color: #ff8b4d; }
.csmk-footer__cta { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-weight: var(--fw-semi); font-size: var(--fs-14); color: #fff; }
.csmk-footer__cta:hover { gap: var(--s-3); color: #ff8b4d; }
.csmk-footer__hours { color: var(--text-soft); font-size: var(--fs-13); margin-top: var(--s-3); }

.csmk-footer__bottom {
	border-top: 1px solid var(--border);
	padding-block: var(--s-5);
	font-size: var(--fs-13);
	color: var(--text-faint);
}
.csmk-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	flex-wrap: wrap;
}
.csmk-footer__copy { margin: 0; }
@media (max-width: 600px) { .csmk-footer__bottom-inner { justify-content: center; text-align: center; } }
.csmk-footer__pay { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.csmk-footer__pay span {
	font-size: var(--fs-11);
	font-weight: var(--fw-semi);
	border: 1px solid var(--border-strong);
	border-radius: var(--r-xs);
	padding: 3px 8px;
	color: var(--text-soft);
}

/* Breadcrumb */
.csmk-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px var(--s-1);
	font-size: var(--fs-13);
	color: var(--text-faint);
	padding-block: var(--s-4);
}
.csmk-breadcrumb a { color: var(--text-soft); }
.csmk-breadcrumb a:hover { color: var(--c-purple); }
.csmk-breadcrumb .sep { display: inline-flex; align-items: center; opacity: .5; }
