/* ==========================================================================
   Mr. Mushies: main styles
   White + sky blue, clean and premium, with playful motion.
   ========================================================================== */

:root {
	--blue: #0b14c7;
	--blue-d: #080f9e;
	--cyan: #1cc7fb;
	--sky: #e8f7ff;
	--sky-2: #cdeeff;
	--sky-3: #9fddfb;
	--ink: #0b1b4d;
	--muted: #4a5a85;
	--line: #d5e8f5;
	--white: #fff;
	--choc: #4a2c20;
	--cream: #fff7ee;
	--danger: #c62828;
	--ok: #11794a;

	--r: 20px;
	--r-lg: 32px;
	--shadow: 0 10px 30px -14px rgba(11, 20, 199, 0.28);
	--shadow-lg: 0 30px 60px -28px rgba(11, 20, 199, 0.4);

	--font-d: "Fredoka", ui-rounded, "Nunito", "Segoe UI", system-ui, sans-serif;
	--font-b: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--wrap: 1200px;
	--header-h: 76px;
}

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

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

body {
	margin: 0;
	font-family: var(--font-b);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100000; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 820px); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn,
.button,
button.button,
input.button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.7em 1.5em;
	font: 600 1rem/1 var(--font-d);
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	background: var(--blue);
	color: #fff;
	transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
	position: relative;
	overflow: hidden;
}
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.hero .btn--primary::after { animation: btnsweep 3.2s ease-in-out infinite; }
@keyframes btnsweep { 0%, 42% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
.btn:hover, .button:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; background: var(--blue-d); }
.btn:active, .button:active { transform: translateY(0) scale(0.98); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { min-height: 56px; padding: 0.85em 1.9em; font-size: 1.08rem; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--sky); color: var(--blue-d); }

/* ---- Announcement bar --------------------------------------------------- */
.announce { background: var(--blue); color: #fff; text-align: center; font-size: 0.9rem; font-weight: 500; }
.announce p { margin: 0; padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.announce .icon { width: 1em; height: 1em; color: var(--cyan); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11, 20, 199, 0.5); background: rgba(255, 255, 255, 0.96); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { flex: none; line-height: 0; }
.brand__link { display: inline-block; transition: transform 0.35s var(--bounce); }
.brand__link:hover { transform: rotate(-3deg) scale(1.05); }
.mrm-logo { display: block; width: auto; }
.mrm-logo--header { height: 52px; }
.mrm-logo--footer { height: 64px; }
.mrm-logo--age { height: 70px; margin-inline: auto; }
.brand .custom-logo { max-height: 54px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav .menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav a {
	display: block;
	padding: 10px 16px;
	font: 500 1.02rem/1 var(--font-d);
	color: var(--ink);
	text-decoration: none;
	border-radius: 999px;
	position: relative;
	transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { background: var(--sky); color: var(--blue); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background: var(--sky-2); color: var(--blue); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.25s var(--bounce);
}
.icon-btn:hover { background: var(--sky); color: var(--blue); transform: translateY(-2px); }
.icon-btn .icon { width: 24px; height: 24px; }
.mrm-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	font: 700 0.72rem/1 var(--font-b);
	color: #fff;
	background: var(--blue);
	border-radius: 999px;
	border: 2px solid #fff;
}
.mrm-cart.is-pop { animation: cartpop 0.6s var(--bounce); }
@keyframes cartpop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---- Page hero (inner pages) ------------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(48px, 8vw, 96px) 0 clamp(52px, 8vw, 100px);
	background: linear-gradient(180deg, var(--sky) 0%, #f6fcff 100%);
}
.page-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 38px;
	background: #fff;
	-webkit-mask: radial-gradient(60px 26px at 50% 100%, #000 98%, transparent) 50% 100% / 120px 100% repeat-x;
	mask: radial-gradient(60px 26px at 50% 100%, #000 98%, transparent) 50% 100% / 120px 100% repeat-x;
	-webkit-mask-composite: source-over;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { margin: 0 auto 0.3em; max-width: 18ch; }
.page-hero__sub { max-width: 52ch; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.page-hero__bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #fff, var(--sky-3) 60%, var(--cyan)); opacity: 0.5; animation: float 7s ease-in-out infinite; }
.page-hero__bubble--1 { width: 90px; height: 90px; left: 8%; top: 18%; }
.page-hero__bubble--2 { width: 46px; height: 46px; right: 12%; top: 22%; animation-delay: -2s; }
.page-hero__bubble--3 { width: 28px; height: 28px; right: 24%; bottom: 22%; animation-delay: -4s; }

.eyebrow,
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 16px;
	font: 600 0.82rem/1.2 var(--font-d);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue);
	background: #fff;
	border: 1.5px solid var(--sky-2);
	border-radius: 999px;
}
.pill .icon { width: 16px; height: 16px; color: var(--cyan); }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.8); }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.section--sky { background: linear-gradient(180deg, var(--sky) 0%, #f3fbff 100%); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__sub { color: var(--muted); font-size: 1.1rem; }
.section__more { text-align: center; margin-top: 40px; }

/* ---- Home hero ---------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(120% 90% at 85% 10%, var(--sky-2) 0%, var(--sky) 38%, #fff 80%);
	padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 11vw, 150px);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 64px); position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 0.35em; max-width: 12ch; }
.hl { color: var(--blue); position: relative; white-space: nowrap; background-image: linear-gradient(100deg, var(--blue) 35%, #4f74ff 50%, var(--blue) 65%); background-size: 260% 100%; background-position: 120% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hlshine 3.2s ease-in-out infinite; }
@keyframes hlshine { 0%, 42% { background-position: 120% 0; } 80%, 100% { background-position: -20% 0; } }
.hl::after {
	content: "";
	position: absolute;
	left: -2%; right: -2%; bottom: 0.02em;
	height: 0.22em;
	background: var(--cyan);
	opacity: 0.55;
	border-radius: 999px;
	z-index: -1;
	transform-origin: left;
	animation: underline 1.1s 0.9s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; font: 500 0.95rem/1.2 var(--font-d); color: var(--ink); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--blue); width: 20px; height: 20px; }
.hero__visual { position: relative; }
.hero-art { width: 100%; max-width: 560px; margin-inline: auto; display: block; overflow: visible; }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; pointer-events: none; }
.hero__blob--1 { width: 380px; height: 380px; left: -140px; top: -110px; background: radial-gradient(circle at 35% 35%, rgba(28, 199, 251, 0.35), transparent 70%); animation: float 9s ease-in-out infinite; }
.hero__blob--2 { width: 280px; height: 280px; right: -80px; bottom: 40px; background: radial-gradient(circle at 40% 40%, rgba(11, 20, 199, 0.18), transparent 70%); animation: float 11s ease-in-out infinite -3s; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 110px); z-index: 3; display: block; }

/* hero art animation: spinning colour arcs, hopping mushrooms, rising bubbles, a pulsing glow */
.hero-art .swirl, .hero-art .orbit { transform-box: view-box; transform-origin: 50% 50%; }
.hero-art .swirl--a { animation: spin 7s linear infinite; }
.hero-art .swirl--b { animation: spin 10s linear infinite reverse; }
.hero-art .swirl--c { animation: spin 5s linear infinite; }
.hero-art .orbit--b { animation: spin 14s linear infinite reverse; }
/* mushrooms ride the ring and counter-spin so they stay upright, then hop and wiggle */
.hero-art .unspin { transform-box: view-box; animation: spin 14s linear infinite; }
.hero-art .hop { transform-box: fill-box; transform-origin: center; animation: shroomhop 2.2s ease-in-out infinite; }
.hero-art .hop--2 { animation-delay: -0.75s; }
.hero-art .hop--3 { animation-delay: -1.5s; }
/* the logo in the banner: JS (hero-logo.js) assembles it from spinning pieces on a loop; these are the effects it triggers */
.hero-art svg.hero-logo { overflow: visible; }
.hero-art .logo-wrap { transform-box: view-box; transform-origin: 50% 50%; }
.hero-art .logo-pop { transform-box: fill-box; transform-origin: center; }
.hero-art .ripple, .hero-art .logo-burst { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero-art .pt { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero-art.is-burst .ripple { animation: ripple 1.9s ease-out both; }
.hero-art.is-burst .ripple--2 { animation-delay: 0.14s; }
.hero-art.is-burst .ripple--3 { animation-delay: 0.28s; }
.hero-art.is-burst .logo-burst { animation: ringburst 1.1s cubic-bezier(.2, .7, .3, 1) both; }
.hero-art.is-burst .pt { animation: confetti 2.2s both; }
.hero-art .glow { transform-box: fill-box; transform-origin: center; animation: glowpulse 3.2s ease-in-out infinite; }
.hero-art .rise { transform-box: fill-box; transform-origin: center; opacity: 0.55; animation: rise 7s linear infinite; }
.hero-art .bub { transform-box: fill-box; transform-origin: center; animation: float 6s ease-in-out infinite; }
.hero-art .bub--2 { animation-delay: -1.5s; animation-duration: 7s; }
.hero-art .bub--3 { animation-delay: -3s; }
.hero-art .bub--4 { animation-delay: -4.5s; animation-duration: 8s; }
.hero-art .bub--5 { animation-delay: -2.2s; }
.hero-art .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.hero-art.is-paused * { animation-play-state: paused !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
/* the hop: squash on landing, stretch on take-off, a little tilt at the top */
@keyframes ripple { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(3.5); opacity: 0; } }
@keyframes ringburst { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(4.4); opacity: 0; } }
@keyframes confetti {
	0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); animation-timing-function: cubic-bezier(.1, .8, .3, 1); }
	5% { opacity: 1; }
	36% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); animation-timing-function: ease-in; }
	64%, 100% { opacity: 0; transform: translate(calc(var(--dx) * 1.1), calc(var(--dy) + 80px)) scale(0.7) rotate(calc(var(--r) * 1.5)); }
}
@keyframes glowpulse {
	0%, 100% { transform: scale(0.92); opacity: 0.75; }
	50% { transform: scale(1.12); opacity: 1; }
}
@keyframes shroomhop {
	0%, 100% { transform: scale(1) rotate(0deg); }
	20% { transform: scale(1.28) rotate(-14deg); }
	40% { transform: scale(0.92) rotate(10deg); }
	60% { transform: scale(1.14) rotate(-6deg); }
	80% { transform: scale(0.98) rotate(3deg); }
}
@keyframes rise {
	0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
	12% { opacity: 0.85; }
	50% { transform: translate(16px, -260px) scale(1); }
	88% { opacity: 0.8; }
	100% { opacity: 0; transform: translate(-12px, -520px) scale(0.85); }
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

/* hero entrance (CSS only, runs after intro finishes) */
.js .hero [data-hero] { opacity: 0; transform: translateY(26px); }
.js .hero.is-live [data-hero] { animation: heroin 0.8s var(--ease) forwards; }
.js .hero.is-live [data-hero="2"] { animation-delay: 0.08s; }
.js .hero.is-live [data-hero="3"] { animation-delay: 0.18s; }
.js .hero.is-live [data-hero="4"] { animation-delay: 0.28s; }
.js .hero.is-live [data-hero="5"] { animation-delay: 0.38s; }
.js .hero.is-live [data-hero="art"] { animation: artin 1.1s 0.1s var(--bounce) forwards; }
.js .hero [data-hero="art"] { transform: scale(0.85) rotate(-4deg); }
@keyframes heroin { to { opacity: 1; transform: none; } }
@keyframes artin { to { opacity: 1; transform: none; } }

/* ---- Marquee ------------------------------------------------------------ */
.site-main--home { overflow-x: clip; }
.marquee { overflow: hidden; background: var(--blue); color: #fff; padding: 16px 0; transform: rotate(-1deg); margin: -6px -10px 0; position: relative; z-index: 4; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 1.15rem/1 var(--font-d); white-space: nowrap; }
.marquee__spark { width: 18px; height: 18px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Features ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
	background: #fff;
	border: 1.5px solid var(--sky-2);
	border-radius: var(--r-lg);
	padding: 30px 26px;
	transition: transform 0.35s var(--bounce), box-shadow 0.3s, border-color 0.3s;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.feature__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 20px; background: var(--sky); color: var(--blue); transition: transform 0.4s var(--bounce), background 0.3s, color 0.3s; }
.feature__icon .icon { width: 28px; height: 28px; }
.feature:hover .feature__icon { transform: rotate(-10deg) scale(1.1); background: var(--blue); color: #fff; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---- Inside / mushrooms -------------------------------------------------- */
.inside { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.inside__copy p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.4em; }
.shrooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shroom-card { margin: 0; text-align: center; padding: 26px 14px 22px; background: linear-gradient(180deg, #fff, var(--sky)); border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); transition: transform 0.35s var(--bounce), box-shadow 0.3s; }
.shroom-card:nth-child(2) { transform: translateY(24px); }
.shroom-card:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.shroom-card:nth-child(2):hover { transform: translateY(14px) rotate(1.5deg); }
.shroom-card .shroom { width: 100%; max-width: 120px; margin: 0 auto 8px; display: block; animation: float 5.5s ease-in-out infinite; }
.shroom-card:nth-child(2) .shroom { animation-delay: -1.8s; }
.shroom-card:nth-child(3) .shroom { animation-delay: -3.2s; }
.shroom-card figcaption { display: grid; gap: 2px; font-family: var(--font-d); }
.shroom-card figcaption strong { font-size: 1.1rem; }
.shroom-card figcaption span { color: var(--muted); font: 400 0.9rem var(--font-b); }

/* ---- Steps -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; position: relative; }
.step { text-align: center; padding: 8px 16px; position: relative; }
.step p { color: var(--muted); max-width: 30ch; margin-inline: auto; }
.step__num { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 1.9rem/1 var(--font-d); box-shadow: 0 0 0 8px var(--sky-2); transition: transform 0.4s var(--bounce); }
.step:hover .step__num { transform: scale(1.12) rotate(-8deg); }
.steps::before { content: ""; position: absolute; top: 44px; left: 16%; right: 16%; border-top: 3px dotted var(--sky-3); z-index: 0; }
.step { z-index: 1; }

/* ---- CTA ---------------------------------------------------------------- */
.section--cta { padding-top: 0; }
.cta { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(48px, 7vw, 88px) 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--blue) 0%, #1b2be8 100%); box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; max-width: 18ch; margin: 0 auto 0.4em; }
.cta p { color: #dff5ff; font-size: 1.15rem; margin-bottom: 1.6em; }
.cta > * { position: relative; z-index: 2; }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(28, 199, 251, 0.55) 60%, rgba(28, 199, 251, 0.2)); z-index: 1; animation: float 8s ease-in-out infinite; }
.bubble--a { width: 120px; height: 120px; left: -30px; top: -30px; }
.bubble--b { width: 70px; height: 70px; right: 8%; top: 16%; animation-delay: -3s; }
.bubble--c { width: 44px; height: 44px; left: 14%; bottom: 14%; animation-delay: -5s; }

/* ---- Newsletter --------------------------------------------------------- */
.newsletter { padding: 0 0 clamp(48px, 7vw, 80px); }
.newsletter__card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 56px); background: var(--sky); border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); }
.newsletter__card .bubble--a { width: 90px; height: 90px; left: auto; right: -20px; top: -24px; opacity: 0.7; }
.newsletter__card .bubble--b { width: 40px; height: 40px; left: 46%; right: auto; top: auto; bottom: 14px; opacity: 0.6; }
.newsletter__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.2em; }
.newsletter__copy p { color: var(--muted); margin: 0; }
.newsletter__form { display: flex; gap: 10px; position: relative; z-index: 2; }
.newsletter__form input[type="email"] { flex: 1; min-width: 0; }
.newsletter .form-note { grid-column: 1 / -1; margin: 0; position: relative; z-index: 2; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--blue); color: #dbe6ff; padding: clamp(48px, 6vw, 72px) 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1em; letter-spacing: 0.02em; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.site-footer__brand p { max-width: 36ch; margin: 14px 0 18px; }
.site-footer__brand .brand__link { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 18px; }
.footer-menu, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--cyan); }
.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; transition: transform 0.3s var(--bounce), background 0.2s, color 0.2s; }
.social a:hover { background: #fff; color: var(--blue); transform: translateY(-4px) rotate(-6deg); text-decoration: none; }
.social--solid a { background: var(--sky); color: var(--blue); }
.social--solid a:hover { background: var(--blue); color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 22px; display: grid; gap: 8px; font-size: 0.85rem; }
.site-footer__legal p { margin: 0; color: #b9caff; }

/* ---- WhatsApp float ----------------------------------------------------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 12px 28px -8px rgba(11, 20, 199, 0.6); transition: transform 0.3s var(--bounce); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---- Forms -------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	font: 400 1rem var(--font-b);
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--sky-2);
	border-radius: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { border-radius: 20px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28, 199, 251, 0.3); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font: 500 0.95rem var(--font-d); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { padding: 12px 18px; border-radius: 14px; font-weight: 500; margin: 0 0 18px; }
.form-note--ok { background: #e6f7ef; color: var(--ok); border: 1.5px solid #bfe8d3; }
.form-note--err { background: #fdecec; color: var(--danger); border: 1.5px solid #f4c7c7; }

/* ---- Contact page ------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__intro { font-size: 1.1rem; color: var(--muted); }
.contact-cards { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.contact-cards li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r); transition: transform 0.3s var(--bounce), box-shadow 0.3s; }
.contact-cards li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-cards__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--sky); color: var(--blue); flex: none; }
.contact-cards strong { display: block; font-family: var(--font-d); }
.contact-cards a { color: var(--ink); word-break: break-word; }
.contact__follow { font: 600 1rem var(--font-d); margin-bottom: 10px; }
.contact__form { background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact__form h2 { font-size: 1.8rem; }

/* ---- Content (pages, posts) --------------------------------------------- */
.entry__content { font-size: 1.08rem; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content--wide { font-size: 1rem; }
.entry__content h2 { margin-top: 1.6em; }
.entry__thumb { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; }
.prose { max-width: 820px; margin-inline: auto; }
.prose .lead, .lead { font-size: 1.3rem; color: var(--ink); line-height: 1.5; }
.note { padding: 12px 16px; background: var(--sky); border-left: 4px solid var(--cyan); border-radius: 10px; font-size: 0.92rem; color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0; }
.card { padding: 26px 24px; background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); transition: transform 0.35s var(--bounce), box-shadow 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.card h3 { margin-bottom: 0.3em; }
.card p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; margin: 32px auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--cyan); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 500 1.12rem/1.3 var(--font-d); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details p:last-child { margin-bottom: 0; }

/* ---- Blog cards --------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.35s var(--bounce), box-shadow 0.3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.post-card__body { padding: 22px; }
.post-card__date { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.post-card__title { font-size: 1.3rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.navigation.pagination { margin-top: 40px; text-align: center; }
.page-numbers { display: inline-block; padding: 8px 16px; margin: 2px; border-radius: 999px; text-decoration: none; background: var(--sky); }
.page-numbers.current { background: var(--blue); color: #fff; }

/* ---- 404 ---------------------------------------------------------------- */
.notfound { text-align: center; }
.notfound .shroom { width: 140px; margin: 0 auto 10px; animation: float 4s ease-in-out infinite; }

/* ---- Age gate ----------------------------------------------------------- */
.mrm-age { display: none; position: fixed; inset: 0; z-index: 9990; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 15, 158, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mrm-age-on:not(.mrm-intro-on) .mrm-age { display: flex; animation: fadein 0.4s var(--ease); }
.mrm-age__card { width: min(100%, 460px); padding: 36px 28px 30px; text-align: center; background: #fff; border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); animation: pop 0.55s var(--bounce); }
.mrm-age__card h2 { font-size: 1.9rem; margin: 16px 0 6px; }
.mrm-age__card p { color: var(--muted); }
.mrm-age__actions { display: grid; gap: 10px; margin-top: 18px; }
.mrm-age__denied { margin: 16px 0 0; font-weight: 500; color: var(--danger) !important; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- Logo intro --------------------------------------------------------- */
.mrm-intro { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(90% 90% at 50% 45%, #ffffff 0%, var(--sky) 55%, var(--sky-2) 100%); }
.mrm-intro-on .mrm-intro { display: flex; }
.mrm-intro-on body,
.mrm-intro-on,
.mrm-age-on body { overflow: hidden; }
.mrm-intro.is-leaving { pointer-events: none; }
.mrm-intro__stage { position: relative; width: min(82vw, 560px); aspect-ratio: 1.2; display: grid; place-items: center; }
.mrm-intro__logo { position: relative; z-index: 3; width: 100%; }
.mrm-intro__logo .mrm-logo, .mrm-intro__img { width: 100%; height: auto; display: block; opacity: 0; }
.mrm-intro.is-running .mrm-intro__logo .mrm-logo, .mrm-intro.is-running .mrm-intro__img { opacity: 1; }
.mrm-intro__logo .mrm-logo { overflow: visible; }
.mrm-intro__dots, .mrm-intro__ring { position: absolute; inset: 0; pointer-events: none; }
.mrm-intro__dots { z-index: 2; }
.mrm-intro__dot { position: absolute; left: 50%; top: 50%; border-radius: 50%; will-change: transform, opacity; }
.mrm-intro__ring { z-index: 1; display: grid; place-items: center; }
.mrm-intro__ring::before { content: ""; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--cyan); opacity: 0; }
.mrm-intro__ring.is-burst::before { animation: burst 0.9s var(--ease) forwards; }
@keyframes burst { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(4.2); opacity: 0; border-width: 1px; } }
.mrm-intro__tag { position: absolute; left: 0; right: 0; bottom: -2%; text-align: center; margin: 0; font: 500 clamp(0.95rem, 2.4vw, 1.2rem) var(--font-d); color: var(--blue); letter-spacing: 0.04em; opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s var(--ease); z-index: 3; }
.mrm-intro.is-done .mrm-intro__tag { opacity: 1; transform: none; }
.mrm-intro__skip { position: absolute; right: 18px; bottom: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; font: 600 0.95rem var(--font-d); color: var(--blue); background: #fff; border: 2px solid var(--sky-2); border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity 0.4s, background 0.2s, transform 0.2s var(--bounce); }
.mrm-intro.is-running .mrm-intro__skip { opacity: 1; }
.mrm-intro__skip:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.mrm-intro__skip .icon { width: 16px; height: 16px; }

/* ---- Scroll reveal ------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.8s var(--bounce); }
.js [data-reveal="up"] { transform: translateY(34px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Staggered groups use an animation so hover effects keep working afterwards. */
.js [data-reveal-stagger]:not(.is-in) > *:not(.woocommerce),
.js [data-reveal-stagger]:not(.is-in) ul.products > li { opacity: 0; }
.js [data-reveal-stagger].is-in > *:not(.woocommerce),
.js [data-reveal-stagger].is-in ul.products > li { animation: popin 0.6s var(--bounce) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes popin { from { opacity: 0; transform: translateY(24px) scale(0.94); } }

/* Fail-safe: if the scripts never ran, show everything. */
.reveal-all [data-reveal],
.reveal-all [data-reveal-stagger] > *,
.reveal-all [data-reveal-stagger] ul.products > li,
.reveal-all .hero [data-hero] { opacity: 1 !important; transform: none !important; }
.reveal-all .shroom-card:nth-child(2) { transform: translateY(24px) !important; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: inline-grid; }
	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		margin: 0;
		padding: 12px 20px 22px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(11, 20, 199, 0.4);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav .menu { flex-direction: column; gap: 2px; }
	.site-nav a { padding: 14px 16px; font-size: 1.15rem; border-radius: 14px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.site-header__actions { margin-left: auto; }

	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__copy { display: flex; flex-direction: column; align-items: center; }
	.hero__title { max-width: 14ch; }
	.hero__actions, .hero__trust { justify-content: center; }
	.hero__visual { order: -1; max-width: 380px; margin-inline: auto; }
	.inside { grid-template-columns: 1fr; text-align: center; }
	.inside__copy { display: flex; flex-direction: column; align-items: center; }
	.steps { grid-template-columns: 1fr; }
	.steps::before { display: none; }
	.cards-3 { grid-template-columns: 1fr; }
	.newsletter__card { grid-template-columns: 1fr; text-align: center; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.wrap { width: min(100% - 32px, var(--wrap)); }
	.mrm-logo--header { height: 42px; }
	.features { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.shrooms { gap: 10px; }
	.shroom-card { padding: 18px 8px 16px; }
	.form__row { grid-template-columns: 1fr; gap: 0; }
	.newsletter__form { flex-direction: column; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero { padding-bottom: 90px; }
	.btn--lg { width: 100%; }
	.hero__actions { width: 100%; }
	.announce p { font-size: 0.82rem; }
	.mrm-intro__stage { width: 88vw; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.js [data-reveal], .js [data-reveal-stagger] > *, .js .hero [data-hero] { opacity: 1 !important; transform: none !important; }
	.marquee__track { animation: none; flex-wrap: wrap; width: auto; }
	.marquee { transform: none; }
	.js .shrooms[data-reveal-stagger].is-in > .shroom-card:nth-child(2), .shroom-card:nth-child(2) { transform: translateY(24px) !important; }
}
