/* ==========================================================================
   Motorim – base styles (sporty direction, light body)
   Logical properties (inline-start/end) so RTL works without a separate file.
   ========================================================================== */

:root {
	--ink: #0B0D0C;
	--ink-2: #151917;
	--ink-line: #2A302C;
	--ground: #F1F3EE;
	--surface: #FFFFFF;
	--line: #DCE0D8;
	--muted: #565E58;
	--muted-dark: #A3ABA5;
	--text-soft: #3F4741;
	--accent: #C6FF1A;
	--whatsapp: #1E8E4E;

	--font-display: 'Karantina', 'Heebo', sans-serif;
	--font-body: 'Heebo', system-ui, sans-serif;

	--container: 1320px;
	--gutter: 24px;
	--header-h: 76px;
	--tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--ground);
	padding-block-end: var(--tabbar-h);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg.icon { flex: none; }

a { color: var(--ink); }
a:hover { color: #000; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--accent);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 0.9;
	margin: 0 0 0.4em;
}

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

.site-main { padding-block: 32px 72px; }

.page-title { font-size: clamp(56px, 8vw, 120px); }

/* Readable page text (about, contact, legal pages) */
.entry__content { max-width: 780px; font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.entry__content h2 { margin: 36px 0 12px; font: 800 24px/1.3 var(--font-body); color: var(--ink); }
.entry__content h3 { margin: 24px 0 8px; font: 800 19px/1.3 var(--font-body); color: var(--ink); }
.entry__content ul,
.entry__content ol { padding-inline-start: 22px; }
.entry__content li { margin-block-end: 6px; }
.entry__content strong { color: var(--ink); }
.entry__content .lead { font-size: 20px; color: var(--ink); }
.entry__content .contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.entry__content .faq__item { border-block-end: 1px solid var(--line); }
.store-missing { padding: 0 4px; background: #FBE9C8; color: #6B4A00; font-size: 0.9em; }

.mark { background: var(--accent); padding-inline: 0.12em; }

/* Classic WooCommerce notices (e.g. "added to cart" on the product page) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0 !important;
	border-inline-start: 6px solid var(--accent) !important;
	background: var(--surface) !important;
	color: var(--ink) !important;
	font-weight: 500;
}
.woocommerce-error { border-inline-start-color: #C8322B !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--ink) !important; }
.woocommerce-message .button,
.woocommerce-info .button {
	border-radius: 0 !important;
	background: var(--ink) !important;
	color: var(--accent) !important;
	font-weight: 800 !important;
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* Accessibility helpers ---------------------------------------------------- */

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

.skip-link:focus {
	position: fixed !important;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	z-index: 1000;
	background: var(--accent);
	color: var(--ink);
	font-weight: 800;
	padding: 12px 18px;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 2px solid var(--ink);
	background: var(--surface);
	color: var(--ink);
	font: 800 17px/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
}
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--ink { background: var(--ink); color: #F2F5F0; }
.btn--ink:hover { color: #FFF; }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #FFF; }
.btn--whatsapp:hover { color: #FFF; }

.icon-btn {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3A423D;
	background: transparent;
	color: #F2F5F0;
	cursor: pointer;
	text-decoration: none;
}
.icon-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.icon-btn--accent:hover { color: var(--ink); }

/* Header ------------------------------------------------------------------- */

.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: var(--ink);
	color: #F2F5F0;
}
.admin-bar .site-header { inset-block-start: 32px; }

.site-header__inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 16px 32px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #F2F5F0;
	text-decoration: none;
}
.brand:hover { color: #FFF; }
.brand__mark { width: 48px; height: 48px; transition: transform 0.2s; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name {
	direction: ltr;
	font: 700 26px/1 'Fredoka', var(--font-body);
	letter-spacing: 0.2px;
	white-space: nowrap;
}
.brand__accent { color: var(--accent); }
.custom-logo { max-height: 52px; width: auto; }

.primary-nav { margin-inline-end: auto; }
.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
}
.primary-nav__list a {
	display: block;
	padding: 10px 0;
	color: #F2F5F0;
	font-weight: 700;
	text-decoration: none;
	border-block-end: 3px solid transparent;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	color: #FFF;
	border-block-end-color: var(--accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-search {
	display: flex;
	align-items: center;
	border: 1px solid #3A423D;
	background: var(--ink-2);
}
.header-search input[type="search"] {
	width: 220px;
	height: 42px;
	border: 0;
	background: transparent;
	color: #F2F5F0;
	font: 500 15px var(--font-body);
	padding-inline: 14px;
}
.header-search input::placeholder { color: var(--muted-dark); }
.header-search .icon-btn { border: 0; }

.cart-count {
	position: absolute;
	inset-block-start: -6px;
	inset-inline-end: -6px;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border-radius: 10px;
	background: #F2F5F0;
	color: var(--ink);
	font: 800 12px/20px var(--font-body);
	text-align: center;
}
.cart-count[data-count="0"] { display: none; }

.menu-toggle { display: none; border: 0; }

/* Drawer (mobile menu) ----------------------------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 13, 12, 0.6); }
.drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(340px, 88vw);
	background: var(--ink);
	color: #F2F5F0;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
}
.drawer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block-end: 12px;
}
.drawer__title { font: 700 36px/1 var(--font-display); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a {
	display: flex;
	justify-content: space-between;
	padding: 14px 0;
	border-block-end: 1px solid var(--ink-line);
	color: #F2F5F0;
	text-decoration: none;
	font: 700 32px/1 var(--font-display);
}
.drawer__list a::after { content: '←'; color: var(--accent); font: 800 18px var(--font-body); }
.drawer__foot {
	margin-block-start: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	color: var(--muted-dark);
}
body.drawer-open { overflow: hidden; }

/* Footer ------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #F2F5F0; }

/* Help strip (top of the footer) */
.footer-help { background: var(--accent); color: var(--ink); }
.footer-help__inner { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-help__title { margin: 0; font: 700 clamp(40px, 5vw, 56px)/0.9 var(--font-display); }
.footer-help__text { margin: 6px 0 0; font-size: 16px; }
.footer-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-help a.btn { text-decoration: none; }
.site-footer .footer-help a.btn--ink { color: #F2F5F0; }
.site-footer .footer-help a.btn:not(.btn--ink) { color: var(--ink); }

.site-footer__grid {
	padding-block: 56px 32px;
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-footer__brand p { margin: 0; max-width: 320px; color: var(--muted-dark); font-size: 15px; line-height: 1.6; }
.site-footer__brand .brand:hover { text-decoration: none; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted-dark); }
.site-footer__heading { font-weight: 800; color: #F2F5F0; margin-block-end: 4px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: #FFF; text-decoration: underline; }
.site-footer a.site-footer__cta { color: var(--accent); font-weight: 700; }

.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-links a {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3A423D;
	color: #F2F5F0;
}
.site-footer .social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); text-decoration: none; }

/* Trust row + payment methods */
.footer-trust {
	padding-block: 20px;
	border-block-start: 1px solid var(--ink-line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
}
.footer-trust__list,
.footer-trust__pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-trust__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.footer-trust__list .icon { color: var(--accent); }
.footer-trust__pay { gap: 6px; }
.footer-trust__pay li {
	padding: 5px 10px;
	border: 1px solid #3A423D;
	font-size: 12px;
	font-weight: 700;
	color: #C3CAC5;
	direction: ltr;
}

.site-footer__bottom {
	padding-block: 20px 32px;
	border-block-start: 1px solid var(--ink-line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 13px;
	color: var(--muted-dark);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Floating WhatsApp + mobile tab bar --------------------------------------- */

.whatsapp-float {
	position: fixed;
	inset-block-end: 24px;
	inset-inline-end: 24px;
	z-index: 40;
	min-width: 60px;
	height: 60px;
	padding: 0 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 30px;
	background: var(--whatsapp);
	color: #FFF;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(11, 13, 12, 0.35);
	transition: transform 0.15s;
}
.whatsapp-float:hover { color: #FFF; transform: translateY(-2px); }
/* Soft pulse ring to draw the eye without being annoying. */
.whatsapp-float::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(30, 142, 78, 0.6);
	animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
	0% { box-shadow: 0 0 0 0 rgba(30, 142, 78, 0.55); }
	70%, 100% { box-shadow: 0 0 0 16px rgba(30, 142, 78, 0); }
}

.tabbar { display: none; }

/* Sections (home blocks and patterns) -------------------------------------- */

.section { padding-block: 72px 48px; }
.section--dark { background: var(--ink); color: #F2F5F0; }
.section--dark a { color: #F2F5F0; }

.section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-block-end: 32px;
}
.section__title {
	margin: 0;
	font: 700 clamp(56px, 7vw, 96px)/0.85 var(--font-display);
}
.section__sub { margin: 8px 0 0; font-size: 18px; color: var(--muted); }
.section--dark .section__sub { color: var(--muted-dark); }
.section__link { font-weight: 800; font-size: 17px; padding-block: 10px; }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 1px; }

/* Home: full-width blocks sit edge to edge; clip the tilted strips sideways. */
.home-content { overflow-x: clip; }
.home-content > * { margin-block: 0; }

/* Power guide pattern */
.power__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	background: var(--surface);
	border: 1px solid var(--line);
}
.power__col { padding: 32px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.power__col:last-child { border-inline-end: 0; }
.power__col p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.power__col .power__volt { align-self: flex-start; font: 700 110px/0.8 var(--font-display); color: var(--ink); padding-inline: 8px; }
.power__col--3 .power__volt { background: var(--accent); }
.power__title { margin: 0; font: 800 20px/1.3 var(--font-body); }
/* Three-step strength bar under the number. */
.power__col .power__volt::after {
	content: '';
	display: block;
	height: 8px;
	margin-block-start: 16px;
	margin-inline: -8px;
	background: linear-gradient(to left, var(--ink) 33.3%, var(--line) 33.3%);
}
.power__col--2 .power__volt::after { background: linear-gradient(to left, var(--ink) 66.6%, var(--line) 66.6%); }
.power__col--3 .power__volt::after { background: var(--ink); }
[dir="ltr"] .power__col .power__volt::after { transform: scaleX(-1); }

/* Clips pattern (vertical videos) */
.clips { margin-block-start: -40px; padding-block-start: 120px; }
.clips__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.clips__grid .wp-block-video { margin: 0; aspect-ratio: 9 / 16; background: var(--ink-2); border: 1px solid var(--ink-line); overflow: hidden; }
.clips__grid .wp-block-video video { width: 100%; height: 100%; object-fit: cover; }
.clips__grid .wp-block-video:empty { display: none; }

/* FAQ + guides pattern */
.faq__inner { display: flex; flex-wrap: wrap; gap: 40px; }
.faq__list { flex: 1 1 520px; min-width: 0; }
.faq__guides { flex: 1 1 380px; min-width: 0; }
.faq .section__title { font-size: clamp(52px, 6vw, 72px); margin-block-end: 24px; }
.faq__item { border-block-end: 1px solid var(--line); }
.faq__list .section__title + .faq__item { border-block-start: 2px solid var(--ink); }
.faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 22px;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
	list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: '+';
	flex: none;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	font-weight: 800;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin: 0 0 22px; color: var(--text-soft); }

.guides-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.guides-list li { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.guides-list .wp-block-latest-posts__post-title { font-weight: 800; font-size: 18px; text-decoration: none; }
.guides-list .wp-block-latest-posts__post-excerpt { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
	.section { padding-block: 48px 32px; }
	.section__head { margin-block-end: 20px; }
	.power__col { padding: 24px; border-inline-end: 0; border-block-end: 1px solid var(--line); }
	.power__col .power__volt { font-size: 80px; }
	.clips__grid { display: flex; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.clips__grid .wp-block-video { flex: none; width: 160px; }
}

/* Product card -------------------------------------------------------------- */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }

.product-card__media {
	position: relative;
	aspect-ratio: 16 / 13;
	background: #E6E9E2;
	color: #9AA39C;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	background: var(--ink);
	color: var(--accent);
	font-weight: 800;
	font-size: 14px;
	padding: 8px 12px;
}
.product-card__volt {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-end: 12px;
	font: 700 44px/1 var(--font-display);
	color: var(--ink);
	background: rgba(255, 255, 255, 0.85);
	padding-inline: 6px;
}
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__name { font-weight: 800; font-size: 19px; line-height: 1.3; }
.product-card__meta { font-size: 14px; color: var(--muted); }
.product-card__foot {
	margin-block-start: auto;
	padding-block-start: 12px;
	border-block-start: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 8px;
}
.product-card__price { font: 700 38px/1 var(--font-display); }
.product-card__price del { font-size: 24px; color: var(--muted); }
.product-card__price ins { text-decoration: none; }
.product-card__inst { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.product-card__body { padding: 12px; gap: 6px; }
	.product-card__name { font-size: 15px; }
	.product-card__meta, .product-card__inst { display: none; }
	.product-card__volt { font-size: 30px; }
	.product-card__badge { font-size: 11px; padding: 5px 8px; }
	.product-card__price { font-size: 30px; }
	.product-card__price del { font-size: 18px; }
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1240px) {
	.header-search { display: none; }
	.primary-nav__list { gap: 4px 20px; }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; --header-h: 60px; --tabbar-h: 72px; }

	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; }
	.site-header__inner { gap: 8px; justify-content: space-between; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__name { font-size: 20px; }
	.header-search { display: none; }

	/* Round button above the tab bar; label hidden on phones. */
	.whatsapp-float { inset-block-end: calc(var(--tabbar-h) + 14px); inset-inline-end: 14px; width: 56px; min-width: 0; height: 56px; padding: 0; }
	.whatsapp-float__label { display: none; }
	body.single-product .whatsapp-float { inset-block-end: calc(var(--tabbar-h) + 86px); }

	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px 24px; }
	.site-footer__brand { grid-column: 1 / -1; }
	.footer-help__actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-help__actions .btn { padding: 0 12px; }

	.tabbar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 45;
		height: var(--tabbar-h);
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		background: var(--ink);
		border-block-start: 1px solid var(--ink-line);
		padding-block-end: env(safe-area-inset-bottom);
	}
	.tabbar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		color: #C3CAC5;
		font-size: 12px;
		font-weight: 700;
		text-decoration: none;
	}
	.tabbar a[aria-current="page"] { color: var(--accent); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { inset-block-start: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
