/* ==========================================================================
   Monster Exercises – enchanted forest theme
   ========================================================================== */
:root {
	--mf-forest: #17301f;
	--mf-forest-2: #24482f;
	--mf-moss: #6fae4a;
	--mf-moss-light: #a8d86b;
	--mf-lavender: #b89cf0;
	--mf-purple: #7b4fd1;
	--mf-pink: #f49ac8;
	--mf-teal: #2fc6b8;
	--mf-orange: #ff8a3d;
	--mf-gold: #ffd27a;
	--mf-cream: #fff8ec;
	--mf-ink: #2b2140;
	--mf-radius: 26px;
	--mf-shadow: 0 18px 40px rgba(23, 48, 31, .25);
	--mf-font-head: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
	--mf-font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mf-bg: url('../img/forest-bg.jpg');
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--mf-font-body); font-size: 18px; line-height: 1.65;
	color: var(--mf-ink); background: var(--mf-cream);
}
img { max-width: 100%; height: auto; }
a { color: var(--mf-purple); }
a:hover { color: var(--mf-orange); }
h1, h2, h3, h4 { font-family: var(--mf-font-head); line-height: 1.15; color: var(--mf-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.mf-container { width: min(1200px, 92vw); margin: 0 auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.mf-btn, .wp-block-button__link, button.mf-btn {
	display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.7em; border: 0; border-radius: 999px;
	font: 600 1.1rem/1 var(--mf-font-head); text-decoration: none; cursor: pointer; color: #fff;
	background: linear-gradient(180deg, #ff9d55, var(--mf-orange)); box-shadow: 0 6px 0 #d8641b, 0 12px 24px rgba(255,138,61,.35);
	transition: transform .15s ease, box-shadow .15s ease;
}
.mf-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 #d8641b, 0 16px 28px rgba(255,138,61,.4); }
.mf-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d8641b; }
.mf-btn--purple { background: linear-gradient(180deg, #9d78ec, var(--mf-purple)); box-shadow: 0 6px 0 #5a35a8, 0 12px 24px rgba(123,79,209,.35); }
.mf-btn--purple:hover { box-shadow: 0 8px 0 #5a35a8, 0 16px 28px rgba(123,79,209,.4); }

/* Header */
.mf-header { position: sticky; top: 0; z-index: 50; background: rgba(23,48,31,.72); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.mf-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.mf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.mf-logo { font: 700 1.6rem var(--mf-font-head); color: var(--mf-cream); text-decoration: none; display: flex; align-items: center; gap: .4em; }
.mf-logo span { color: var(--mf-gold); }
.mf-logo img { max-height: 60px; width: auto; }
.mf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.mf-nav a { display: block; padding: .5em 1em; border-radius: 999px; color: var(--mf-cream); text-decoration: none; font: 600 1.05rem var(--mf-font-head); }
.mf-nav a:hover, .mf-nav .current-menu-item > a { background: rgba(255,210,122,.18); color: var(--mf-gold); }
.mf-nav-toggle { display: none; background: none; border: 0; color: var(--mf-cream); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 860px) {
	.mf-nav-toggle { display: block; }
	.mf-nav { position: absolute; inset: 76px 0 auto 0; background: var(--mf-forest); display: none; padding: 1rem 4vw 1.5rem; }
	.mf-nav.is-open { display: block; }
	.mf-nav ul { flex-direction: column; }
}

/* Hero */
.mf-hero {
	position: relative; overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: center;
	background: var(--mf-bg) center 60% / cover no-repeat; color: var(--mf-cream);
}
.mf-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,48,31,.55) 0%, rgba(23,48,31,.15) 45%, rgba(23,48,31,.0) 70%, rgba(255,248,236,1) 100%); }
.mf-hero__inner { position: relative; z-index: 2; text-align: center; padding: 7rem 0 22rem; }
.mf-hero h1 { color: #fff; text-shadow: 0 4px 0 rgba(43,33,64,.35), 0 10px 30px rgba(0,0,0,.35); }
.mf-hero h1 .mf-wiggle { display: inline-block; color: var(--mf-gold); animation: mf-wiggle 2.4s ease-in-out infinite; }
.mf-hero p { font-size: 1.3rem; max-width: 640px; margin: 0 auto 1.8rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.mf-hero__monsters { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0rem, 3vw, 3rem); pointer-events: none; }
.mf-hero .mf-hero__monsters .mf-monster { pointer-events: auto; margin: 0 0 -8px; }

/* Sections */
.mf-section { padding: clamp(3rem, 8vw, 6rem) 0; }
.mf-section--moss { background: linear-gradient(180deg, var(--mf-cream), #eef7de); }
.mf-section--forest { background: var(--mf-forest); color: var(--mf-cream); }
.mf-section--forest h2 { color: var(--mf-cream); }
.mf-section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.mf-eyebrow { display: inline-block; font: 600 .95rem var(--mf-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--mf-purple); background: rgba(184,156,240,.2); padding: .35em 1em; border-radius: 999px; margin-bottom: 1rem; }

/* Cards */
.mf-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mf-card {
	background: #fff; border-radius: var(--mf-radius); overflow: hidden; box-shadow: var(--mf-shadow);
	border: 4px solid #fff; transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.mf-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(23,48,31,.3); }
.mf-card__media { aspect-ratio: 16/10; background: var(--mf-forest-2) center/cover; }
.mf-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.mf-card__body h3 { font-size: 1.4rem; margin-bottom: .3em; }
.mf-tag { display: inline-block; font: 600 .8rem var(--mf-font-head); padding: .25em .8em; border-radius: 999px; color: #fff; background: var(--mf-pink); }
.mf-tag--boing { background: var(--mf-orange); }
.mf-tag--yoga { background: var(--mf-teal); }

/* Meet the monsters */
.mf-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.mf-trio__item { background: rgba(255,255,255,.06); border-radius: var(--mf-radius); padding: 1.5rem 1rem 2rem; border: 2px solid rgba(255,210,122,.25); }
.mf-trio__item h3 { color: var(--mf-gold); margin-top: 1rem; }
@media (max-width: 860px) { .mf-trio { grid-template-columns: 1fr; } }

/* Content */
.mf-content { padding: 3rem 0 5rem; }
.mf-content .entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.mf-content .entry-content > .alignwide { max-width: 1100px; }
.mf-content .entry-content > .alignfull { max-width: none; }
.mf-page-head { background: var(--mf-bg) center 55% / cover; position: relative; padding: 6rem 0 4rem; text-align: center; }
.mf-page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,48,31,.6), rgba(23,48,31,.25) 60%, var(--mf-cream)); }
.mf-page-head h1 { position: relative; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* Footer */
.mf-footer { position: relative; background: var(--mf-forest); color: rgba(255,248,236,.85); padding: 4rem 0 2rem; overflow: hidden; }
.mf-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: radial-gradient(40px 30px at 40px 0, var(--mf-cream) 98%, transparent) repeat-x; background-size: 80px 40px; }
.mf-footer a { color: var(--mf-gold); }
.mf-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.5rem; font-size: .9rem; text-align: center; }
.mf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; }

/* Fireflies (decorative) */
.mf-fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mf-fireflies i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--mf-gold); box-shadow: 0 0 12px 4px rgba(255,210,122,.7); opacity: 0; animation: mf-firefly 7s ease-in-out infinite; }
@keyframes mf-firefly { 0%,100% { opacity: 0; transform: translate(0,0); } 20% { opacity: 1; } 50% { transform: translate(30px,-40px); opacity: .8; } 80% { opacity: 0; } }
@keyframes mf-wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.05); } }

/* ==========================================================================
   The Monster widget
   ========================================================================== */
.mf-monster { --mf-w: 320px; width: var(--mf-w); max-width: 100%; position: relative; }
.mf-monster.mf-align-center { margin-left: auto; margin-right: auto; }
.mf-monster.mf-align-right { margin-left: auto; }
.mf-monster__rig { position: relative; transform-origin: 50% 100%; will-change: transform; }
.mf-monster__img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
.mf-eye { position: absolute; border-radius: 50%; overflow: hidden; }
.mf-pupil {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, #000 0 38%, var(--mf-pupil) 40% 100%);
	transition: height .08s ease;
}
.mf-glint { position: absolute; width: 32%; height: 32%; left: 18%; top: 14%; border-radius: 50%; background: #fff; opacity: .95; }
.mf-glint::after { content: ''; position: absolute; width: 50%; height: 50%; left: 150%; top: 160%; border-radius: 50%; background: #fff; opacity: .8; }
.mf-eye::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--mf-lid, #f49ac8); transform: translateY(-102%); transition: transform .07s ease-in; z-index: 2; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.mf-monster.is-blinking .mf-eye::after { transform: translateY(0); }
.mf-bob .mf-monster__img { animation: mf-bob 3.2s ease-in-out infinite; }
.mf-bob .mf-eye { animation: mf-bob-eye 3.2s ease-in-out infinite; }
@keyframes mf-bob { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-6px) scaleY(1.01); } }
@keyframes mf-bob-eye { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .mf-bob .mf-monster__img, .mf-bob .mf-eye, .mf-fireflies i, .mf-hero h1 .mf-wiggle { animation: none; } }

/* Looping monster animations */
.mf-anim { width: var(--mf-w, 240px); max-width: 100%; }
.mf-anim.mf-align-center { margin-left: auto; margin-right: auto; }
.mf-anim.mf-align-right { margin-left: auto; }
.mf-anim img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(0,0,0,.22)); }
