/*
Theme Name:   Me Salva Motoboy
Theme URI:    https://mesalvamotoboy.com.br/
Description:  Tema filho do Astra para o Me Salva Motoboy. Único arquivo de CSS do site.
Author:       Paulo
Template:     astra
Version:      1.1.0
Text Domain:  mesalvamotoboy-child
*/

/* ==========================================================================
   1. Fonte e variáveis
   ========================================================================== */
@font-face {
	font-family: "Barlow Condensed";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-800i.woff2") format("woff2");
}

:root {
	--msm-preto: #000000;
	--msm-grafite: #111111;
	--msm-grafite-2: #1c1c1c;
	--msm-lima: #C8F031;
	--msm-lima-esc: #9fc21c;
	--msm-branco: #ffffff;
	--msm-fundo: #f5f5f2;
	--msm-texto: #161616;
	--msm-texto-2: #4a4a4a;
	--msm-borda: #e2e2dc;
	--msm-wa: #25D366;
	--msm-wa-esc: #1da851;
	--msm-raio: 12px;
	--msm-sombra: 0 8px 24px rgba(0, 0, 0, .12);
	--msm-largura: 1140px;
	--msm-titulo: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--msm-corpo: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html { scroll-behavior: smooth; }
body.msm {
	margin: 0;
	background: var(--msm-branco);
	color: var(--msm-texto);
	font-family: var(--msm-corpo);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.msm h1, .msm h2, .msm h3 {
	font-family: var(--msm-titulo);
	font-style: italic;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: .005em;
	color: inherit;
	margin: 0 0 .5em;
}
.msm h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.msm h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.msm h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.msm p { margin: 0 0 1em; }
.msm a { color: var(--msm-texto); text-decoration-color: var(--msm-lima-esc); text-underline-offset: 3px; }
.msm a:hover { color: var(--msm-preto); }
.msm img { max-width: 100%; height: auto; }
.msm :focus-visible { outline: 3px solid var(--msm-lima); outline-offset: 2px; }

.msm-wrap { width: 100%; max-width: var(--msm-largura); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.msm-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--msm-lima); color: var(--msm-preto); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.msm-skip:focus { left: 8px; }
.msm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   3. Botões
   ========================================================================== */
.msm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 22px; box-sizing: border-box;
	border-radius: 10px; border: 2px solid transparent;
	font-family: var(--msm-corpo); font-size: 1.05rem; font-weight: 700; line-height: 1.2;
	text-decoration: none !important; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.msm-btn:hover { transform: translateY(-1px); }
.msm-btn svg { flex: 0 0 auto; }
.msm-btn--wa { background: var(--msm-wa); color: var(--msm-branco) !important; }
.msm-btn--wa:hover { background: var(--msm-wa-esc); }
.msm-btn--lima { background: var(--msm-lima); color: var(--msm-preto) !important; }
.msm-btn--lima:hover { background: var(--msm-lima-esc); }
.msm-btn--borda { background: transparent; border-color: currentColor; color: inherit !important; }
.msm-btns { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .msm-btns { flex-direction: row; flex-wrap: wrap; } }

/* ==========================================================================
   4. Cabeçalho
   ========================================================================== */
.msm-header { position: sticky; top: 0; z-index: 900; background: var(--msm-preto); color: var(--msm-branco); }
.admin-bar .msm-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .msm-header { top: 32px; } }
.msm-header__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.msm-logo { display: block; flex: 0 0 auto; line-height: 0; }
.msm-logo-svg { width: 132px; height: auto; }
.msm-logo-svg .lg-a { fill: var(--msm-lima); }
.msm-logo-svg .lg-b { fill: var(--msm-branco); }
.msm-header__acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.msm-ligar {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 8px 14px; border-radius: 10px;
	background: var(--msm-lima); color: var(--msm-preto) !important;
	font-weight: 800; font-size: .98rem; text-decoration: none !important; white-space: nowrap;
}
.msm-ligar:hover { background: var(--msm-lima-esc); }
.msm-ligar__num { display: none; }
@media (min-width: 400px) { .msm-ligar__num { display: inline; } .msm-ligar__txt { display: none; } }
.msm-burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
	background: var(--msm-grafite-2); color: var(--msm-branco); cursor: pointer;
}
.msm-burger__bar, .msm-burger__bar::before, .msm-burger__bar::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s ease;
}
.msm-burger__bar::before { position: absolute; top: -6px; }
.msm-burger__bar::after { position: absolute; top: 6px; }
.msm-nav-aberto .msm-burger__bar { background: transparent; }
.msm-nav-aberto .msm-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.msm-nav-aberto .msm-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

.msm-nav { display: none; }
.msm-nav-aberto .msm-nav {
	display: block; position: absolute; left: 0; right: 0; top: 100%;
	background: var(--msm-grafite); border-top: 1px solid #262626; padding: 8px 16px 18px;
}
.msm-menu { list-style: none; margin: 0; padding: 0; }
.msm-menu a { display: block; padding: 12px 4px; color: var(--msm-branco) !important; text-decoration: none; font-weight: 600; border-bottom: 1px solid #262626; }
.msm-menu a:hover, .msm-menu .current-menu-item > a { color: var(--msm-lima) !important; }
.msm-nav__wa { margin-top: 14px; width: 100%; }

@media (min-width: 960px) {
	.msm-header__in { min-height: 76px; gap: 28px; }
	.msm-logo-svg { width: 150px; }
	.msm-burger { display: none; }
	.msm-nav, .msm-nav-aberto .msm-nav { display: flex; align-items: center; position: static; background: none; border: 0; padding: 0; margin-left: auto; gap: 18px; }
	.msm-menu { display: flex; gap: 4px; }
	.msm-menu a { border: 0; padding: 8px 10px; font-size: .97rem; }
	.msm-nav__wa { display: none; }
	.msm-header__acoes { margin-left: 0; }
}

/* ==========================================================================
   5. Conteúdo das páginas
   ========================================================================== */
.msm-main { display: block; }
.msm-topo-pag { background: var(--msm-preto); color: var(--msm-branco); padding: 36px 0 32px; }
.msm-topo-pag h1 { margin: 0; }
.msm-topo-pag__sub { margin: 10px 0 0; color: #cfcfcf; max-width: 720px; }
.msm-trilha { font-size: .88rem; color: #bdbdbd; margin-bottom: 12px; }
.msm-trilha a { color: #bdbdbd !important; }
.msm-texto { padding: 36px 0 56px; }
.msm-texto > .msm-wrap > * { max-width: 760px; }
.msm-texto h2 { margin-top: 1.4em; }
.msm-texto ul, .msm-texto ol { padding-left: 1.3em; margin: 0 0 1em; }
.msm-texto li { margin-bottom: .35em; }
.msm-texto table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; }
.msm-texto th, .msm-texto td { border: 1px solid var(--msm-borda); padding: 10px 12px; text-align: left; }
.msm-texto th { background: var(--msm-fundo); }
.msm-tabela-rola { overflow-x: auto; }

.msm-secao { padding: 48px 0; }
.msm-secao--cinza { background: var(--msm-fundo); }
.msm-secao--preta { background: var(--msm-preto); color: var(--msm-branco); }
.msm-destaque { color: var(--msm-lima); }

/* Chamada para ação ao fim das páginas */
.msm-cta { background: var(--msm-preto); color: var(--msm-branco); border-radius: var(--msm-raio); padding: 28px 22px; margin: 32px 0 0; }
.msm-cta h2 { margin-top: 0 !important; }
.msm-cta p { color: #d7d7d7; }

/* Perguntas frequentes */
.msm-faq details { border: 1px solid var(--msm-borda); border-radius: 10px; margin-bottom: 10px; background: var(--msm-branco); }
.msm-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.msm-faq summary::-webkit-details-marker { display: none; }
.msm-faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; line-height: 1; color: var(--msm-lima-esc); }
.msm-faq details[open] summary::after { content: "–"; }
.msm-faq details > div { padding: 0 18px 16px; }

/* ==========================================================================
   6. Rodapé
   ========================================================================== */
.msm-rodape { background: var(--msm-preto); color: #d0d0d0; padding: 44px 0 0; font-size: .95rem; }
.msm-rodape a { color: var(--msm-branco) !important; }
.msm-rodape a:hover { color: var(--msm-lima) !important; }
.msm-rodape__grade { display: grid; gap: 28px; }
@media (min-width: 760px) { .msm-rodape__grade { grid-template-columns: 1.3fr 1fr 1fr; } }
.msm-rodape__marca .msm-logo-svg { width: 150px; }
.msm-rodape__marca p { margin-top: 14px; max-width: 320px; }
.msm-rodape h2 { font-size: 1.25rem; color: var(--msm-branco); margin-bottom: .7em; }
.msm-rodape ul { list-style: none; margin: 0; padding: 0; }
.msm-rodape li { margin-bottom: 8px; }
.msm-rodape__base { border-top: 1px solid #262626; margin-top: 36px; padding: 16px 0 96px; font-size: .85rem; color: #9a9a9a; }
.msm-rodape__base p { margin: 0 0 4px; }
@media (min-width: 760px) { .msm-rodape__base { padding-bottom: 20px; } }

/* ==========================================================================
   7. Botão flutuante do WhatsApp
   ========================================================================== */
.msm-wa-flutuante {
	position: fixed; right: 16px; bottom: 16px; z-index: 950;
	display: inline-flex; align-items: center; gap: 10px;
	height: 58px; padding: 0 18px 0 16px; border-radius: 999px;
	background: var(--msm-wa); color: var(--msm-branco) !important;
	box-shadow: var(--msm-sombra); font-weight: 700; text-decoration: none !important;
}
.msm-wa-flutuante:hover { background: var(--msm-wa-esc); }
.msm-wa-flutuante__txt { display: none; }
@media (min-width: 760px) { .msm-wa-flutuante__txt { display: inline; } }
@media (max-width: 759px) { .msm-wa-flutuante { width: 58px; padding: 0; justify-content: center; } }

/* ==========================================================================
   8. Aviso de cookies
   ========================================================================== */
.msm-cookies {
	position: fixed; left: 16px; right: 16px; bottom: 86px; z-index: 960;
	max-width: 520px; background: var(--msm-grafite); color: #e6e6e6;
	border: 1px solid #2c2c2c; border-radius: var(--msm-raio); box-shadow: var(--msm-sombra);
	padding: 16px 18px; font-size: .92rem;
}
.msm-cookies[hidden] { display: none; }
.msm-cookies p { margin: 0 0 12px; }
.msm-cookies a { color: var(--msm-lima) !important; }
.msm-cookies__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.msm-cookies .msm-btn { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
@media (min-width: 760px) { .msm-cookies { left: 16px; right: auto; bottom: 16px; } }

/* ==========================================================================
   9. Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.msm-btn, .msm-burger__bar, .msm-burger__bar::before, .msm-burger__bar::after { transition: none; }
}

/* ==========================================================================
   10. Página inicial
   ========================================================================== */
.msm-hero { background: var(--msm-preto); color: var(--msm-branco); padding: 32px 0 44px; position: relative; overflow: hidden; }
.msm-hero::after {
	content: ""; position: absolute; right: -40px; bottom: 20px; width: 260px; height: 10px;
	background: var(--msm-lima); transform: skewX(-20deg); opacity: .9; pointer-events: none;
}
.msm-hero__grade { display: grid; gap: 28px; position: relative; z-index: 1; }
.msm-hero__selo { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border: 1px solid #333; border-radius: 999px; font-size: .85rem; color: #d6d6d6; }
.msm-hero h1 { color: var(--msm-branco); margin-bottom: .35em; }
.msm-hero__sub { font-size: 1.1rem; color: #dcdcdc; max-width: 560px; margin-bottom: 22px; }
.msm-hero .msm-btn--borda { color: var(--msm-branco) !important; border-color: #4a4a4a; }
.msm-hero .msm-btn--borda:hover { border-color: var(--msm-lima); }
.msm-hero__lista { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; color: #cfcfcf; font-size: .95rem; }
.msm-hero__lista li { padding-left: 26px; position: relative; }
.msm-hero__lista li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--msm-lima); border-bottom: 3px solid var(--msm-lima); transform: rotate(-45deg); }

.msm-preco-card { background: var(--msm-lima); color: var(--msm-preto); border-radius: 16px; padding: 22px 22px 20px; align-self: start; }
.msm-preco-card p { margin: 0; }
.msm-preco-card__rot { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.msm-preco-card__valor { font-family: var(--msm-titulo); font-style: italic; font-weight: 800; font-size: 3.2rem; line-height: 1; margin: 6px 0 4px !important; }
.msm-preco-card__valor span { font-size: 1.1rem; font-weight: 800; vertical-align: middle; }
.msm-preco-card__det { font-weight: 600; margin-bottom: 12px !important; }
.msm-preco-card ul { list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 2px solid rgba(0,0,0,.15); display: grid; gap: 6px; font-size: .95rem; }
.msm-preco-card a { color: var(--msm-preto) !important; font-weight: 800; text-decoration: underline; text-decoration-color: var(--msm-preto); }

@media (min-width: 900px) {
	.msm-hero { padding: 56px 0 72px; }
	.msm-hero__grade { grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
}

.msm-secao h2 { margin-bottom: .6em; }
.msm-secao__intro { max-width: 720px; color: inherit; opacity: .9; }

.msm-passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 16px; }
.msm-passos li { counter-increment: passo; position: relative; padding: 20px 20px 18px 74px; border: 1px solid var(--msm-borda); border-radius: var(--msm-raio); }
.msm-passos li::before {
	content: counter(passo); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px;
	background: var(--msm-preto); color: var(--msm-lima); font-family: var(--msm-titulo); font-style: italic; font-weight: 800; font-size: 1.5rem;
	display: flex; align-items: center; justify-content: center;
}
.msm-passos h3 { margin-bottom: .3em; }
.msm-passos p { margin: 0; color: var(--msm-texto-2); }
@media (min-width: 760px) { .msm-passos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .msm-passos { grid-template-columns: repeat(4, 1fr); } .msm-passos li { padding: 74px 18px 18px; } }

.msm-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .msm-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .msm-cards { grid-template-columns: repeat(4, 1fr); } }
.msm-card { background: var(--msm-branco); border-radius: var(--msm-raio); padding: 20px; border-top: 4px solid var(--msm-lima); }
.msm-card p { color: var(--msm-texto-2); margin-bottom: .6em; }
.msm-card a { font-weight: 700; }

.msm-duas { display: grid; gap: 28px; }
@media (min-width: 900px) { .msm-duas { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; } }
.msm-tabela { width: 100%; border-collapse: collapse; font-size: 1rem; }
.msm-tabela th, .msm-tabela td { padding: 12px 14px; border-bottom: 1px solid var(--msm-borda); text-align: left; }
.msm-tabela th { background: var(--msm-preto); color: var(--msm-branco); font-weight: 700; }
.msm-tabela td:last-child { font-weight: 800; white-space: nowrap; }
.msm-link-forte { font-weight: 800; }

.msm-bairros { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 700px) { .msm-bairros { grid-template-columns: 1fr 1fr; } }
.msm-bairro { display: block; padding: 18px 20px; border: 1px solid #2c2c2c; border-radius: var(--msm-raio); background: var(--msm-grafite); color: var(--msm-branco) !important; text-decoration: none !important; }
.msm-bairro:hover { border-color: var(--msm-lima); }
.msm-bairro strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.msm-bairro strong::after { content: " →"; color: var(--msm-lima); }
.msm-bairro span { color: #bdbdbd; font-size: .93rem; }

.msm-destaque-box { background: var(--msm-fundo); border-radius: var(--msm-raio); padding: 22px; border-left: 6px solid var(--msm-lima); }
.msm-destaque-box p { margin: 0 0 6px; }
.msm-destaque-box .msm-btn { margin-top: 12px; width: 100%; }
.msm-destaque-box__tit { font-family: var(--msm-titulo); font-style: italic; font-weight: 800; font-size: 1.4rem; }

.msm-cta-final { text-align: left; }
.msm-cta-final p { color: #d7d7d7; }

.msm-bairro--sem-link strong::after { content: none; }
.msm-bairro--sem-link:hover { border-color: #2c2c2c; }
