/**
 * Global styles — Washing Machine Theme.
 */

:root {
	--wmt-primary: #2563eb;
	--wmt-primary-deep: #1d4ed8;
	--wmt-accent: #06b6d4;
	--wmt-bg: #f8fafc;
	--wmt-ink: #0f172a;
	--wmt-muted: #64748b;
	--wmt-white: #ffffff;
	--wmt-line: rgba(15, 23, 42, 0.08);
	--wmt-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
	--wmt-radius: 1.25rem;
	--wmt-font-display: "Poppins", system-ui, sans-serif;
	--wmt-font-body: "Inter", system-ui, sans-serif;
	--wmt-container: 72rem;
	--wmt-header: 4.5rem;
	--wmt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--wmt-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--wmt-ink);
	background: var(--wmt-bg);
	min-height: 100vh;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: var(--wmt-primary);
	text-decoration: none;
}

a:hover {
	color: var(--wmt-primary-deep);
}

:focus-visible {
	outline: 2px solid var(--wmt-accent);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--wmt-font-display);
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--wmt-ink);
	font-weight: 600;
}

p {
	margin-top: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: min(100% - 2rem, var(--wmt-container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2rem, 42rem);
}

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

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--wmt-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
	transition: transform 0.25s var(--wmt-ease), box-shadow 0.25s var(--wmt-ease), background 0.25s var(--wmt-ease);
}

.btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.btn__icon {
	display: inline-flex;
	width: 1.1rem;
	height: 1.1rem;
}

.btn__icon svg {
	width: 100%;
	height: 100%;
}

.btn__label,
.btn__meta {
	display: block;
}

.btn__meta {
	margin-top: 0.15rem;
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.85;
}

.btn--lg {
	min-height: 3.35rem;
	padding-inline: 1.55rem;
}

.btn--sm {
	min-height: 2.55rem;
	padding: 0.5rem 0.95rem;
	font-size: 0.875rem;
}

.btn--primary {
	background: linear-gradient(135deg, var(--wmt-primary), var(--wmt-accent));
	color: #fff;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.btn--primary:hover {
	color: #fff;
}

.btn--glass {
	background: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--wmt-ink);
	backdrop-filter: blur(12px);
}

.btn--glass:hover {
	color: var(--wmt-ink);
}

.btn--ghost-dark {
	background: rgba(15, 23, 42, 0.04);
	border-color: var(--wmt-line);
	color: var(--wmt-ink);
}

.btn--ghost-dark:hover {
	color: var(--wmt-ink);
}

.btn--light {
	background: #fff;
	color: var(--wmt-ink);
}

.btn--light:hover {
	color: var(--wmt-ink);
}

.btn--whatsapp {
	background: #12a150;
	color: #fff;
}

.btn--whatsapp:hover {
	color: #fff;
}

/* Floating WhatsApp */
.floating-whatsapp {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1100;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 3.35rem;
	padding: 0.7rem 1.05rem 0.7rem 0.75rem;
	border-radius: 999px;
	background: #12a150;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 12px 32px rgba(18, 161, 80, 0.35);
	transition: transform 0.25s var(--wmt-ease), box-shadow 0.25s var(--wmt-ease), background 0.25s var(--wmt-ease);
	animation: waPulse 2.4s ease-in-out infinite;
}

.floating-whatsapp:hover {
	color: #fff;
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 16px 40px rgba(18, 161, 80, 0.42);
	animation: none;
}

.floating-whatsapp__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.floating-whatsapp__icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

@keyframes waPulse {
	0%,
	100% {
		box-shadow: 0 12px 32px rgba(18, 161, 80, 0.35);
	}
	50% {
		box-shadow: 0 12px 32px rgba(18, 161, 80, 0.35), 0 0 0 10px rgba(18, 161, 80, 0.12);
	}
}

@media (max-width: 640px) {
	.floating-whatsapp {
		right: 1rem;
		bottom: 1rem;
		padding: 0.75rem;
		min-height: 3.25rem;
		min-width: 3.25rem;
		justify-content: center;
	}

	.floating-whatsapp__label {
		display: none;
	}

	.floating-whatsapp__icon {
		background: transparent;
	}
}

/* Brand */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--wmt-ink);
	font-family: var(--wmt-font-display);
	font-weight: 600;
	font-size: 1.05rem;
}

.brand:hover {
	color: var(--wmt-ink);
}

.brand__mark {
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 0.75rem;
	background: linear-gradient(145deg, var(--wmt-primary), var(--wmt-accent));
}

.brand__logo {
	width: 3.15rem;
	height: 3.15rem;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 50%;
}

.brand--with-logo {
	gap: 0.7rem;
}

.brand--light .brand__logo {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.brand--light {
	color: #fff;
}

.custom-logo-link img {
	max-height: 2.5rem;
	width: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--wmt-header);
	display: flex;
	align-items: center;
	background: rgba(248, 250, 252, 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background 0.25s var(--wmt-ease), border-color 0.25s var(--wmt-ease), box-shadow 0.25s var(--wmt-ease);
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.94);
	border-bottom-color: var(--wmt-line);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	width: min(100% - 2rem, var(--wmt-container));
}

.main-navigation {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.main-navigation .menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.85rem;
}

.main-navigation .menu-item {
	flex: 0 0 auto;
}

.main-navigation a {
	color: var(--wmt-ink);
	font-size: 0.88rem;
	font-weight: 500;
	opacity: 0.8;
	white-space: nowrap;
}

.main-navigation a:hover {
	opacity: 1;
	color: var(--wmt-primary);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.header-call {
	white-space: nowrap;
	max-width: none;
	padding-inline: 0.85rem 1rem;
}

.header-call__text {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	white-space: nowrap;
	line-height: 1;
}

.header-call__label {
	font-weight: 600;
}

.header-call__number {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.site-branding {
	min-width: 0;
	flex: 0 1 auto;
	max-width: min(22rem, 34vw);
}

.site-branding .brand {
	max-width: 100%;
}

.site-branding .brand__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	white-space: normal;
	line-height: 1.2;
	font-size: 0.92rem;
}

.site-branding .custom-logo-link {
	display: block;
	max-width: 12rem;
}

.site-branding .custom-logo-link img {
	max-height: 2.5rem;
	width: auto;
}

.menu-toggle {
	display: none;
	width: 2.65rem;
	height: 2.65rem;
	border: 1px solid var(--wmt-line);
	border-radius: 0.75rem;
	background: #fff;
	cursor: pointer;
}

.menu-toggle__box {
	display: flex;
	flex-direction: column;
	gap: 0.32rem;
	width: 1.05rem;
	margin: auto;
}

.menu-toggle__box span {
	display: block;
	height: 2px;
	background: var(--wmt-ink);
	border-radius: 2px;
	transition: transform 0.25s var(--wmt-ease), opacity 0.25s var(--wmt-ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__box span:first-child {
	transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__box span:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

/* Footer */
.site-footer {
	margin-top: 2rem;
	padding-top: 3.5rem;
	background: #0f172a;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
	color: var(--wmt-accent);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.site-footer__tagline {
	max-width: 28ch;
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.6);
}

.site-footer__heading {
	margin: 0 0 0.9rem;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer__col .menu,
.site-footer__meta {
	display: grid;
	gap: 0.6rem;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.1rem 0 1.5rem;
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__glow {
	display: none;
}

.site-main:not(.site-main--home) {
	width: min(100% - 2rem, var(--wmt-container));
	margin: 0 auto;
	padding: 2.5rem 0 4rem;
}

@media (max-width: 1100px) {
	.header-call .btn__text,
	.header-wa .btn__text {
		display: none;
	}

	.header-call,
	.header-wa {
		width: 2.55rem;
		padding: 0;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: fixed;
		inset: var(--wmt-header) 1rem auto;
		padding: 1rem;
		border-radius: var(--wmt-radius);
		background: #fff;
		border: 1px solid var(--wmt-line);
		box-shadow: var(--wmt-shadow);
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		justify-content: stretch;
		z-index: 1001;
		visibility: hidden;
		transition: 0.3s var(--wmt-ease);
	}

	.main-navigation.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.main-navigation .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
	}

	.main-navigation a {
		display: block;
		padding: 0.8rem 0.7rem;
		border-radius: 0.7rem;
	}

	body.nav-open {
		overflow: hidden;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

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