/*
Theme Name: MonsterWeb Orbit
Theme URI: https://www.monsterweb.net/
Author: MonsterWeb
Description: MonsterWeb's block theme: a flat cartoon night sky, the MonsterWeb purple and yellow. The theme holds the look (header, footer, styles, patterns); page content lives in the pages, and Wilbur and the domain search come from the MonsterWeb Blocks plugin.
Version: 2.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: monsterweb-orbit
*/

:root { --mw-radius: 24px; --mw-shadow: 0 10px 40px rgba(51, 41, 81, 0.1); }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 2px; }
/* Sections sit edge to edge; the header floats over the sky */
.wp-site-blocks > *, .wp-block-post-content > * { margin-block-start: 0 !important; }

/* ---------- Header, laid over the night sky ---------- */
.mw-site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding: 0 20px; }
.mw-site-header .mw-nav-row { max-width: 1160px; margin: 0 auto; padding: 22px 0; gap: 20px; }
.mw-site-header .wp-block-site-logo img { display: block; }
.mw-site-header .wp-block-navigation { font-weight: 700; font-size: 0.95rem; color: #fff; }
.mw-site-header .wp-block-navigation-item__content { padding: 4px 0; border-bottom: 3px solid transparent; }
.mw-site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.mw-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.mw-site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--yellow); border-bottom-color: var(--wp--preset--color--yellow); }
.mw-site-header .wp-block-navigation .wp-block-navigation__responsive-container-open { color: #fff; }
.mw-site-header .wp-block-navigation .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
.mw-site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--space); color: #fff; padding: 30px; }
.mw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; }
.mw-site-header .wp-block-navigation__responsive-container-close { color: #fff; }
.mw-site-header .wp-block-navigation .wp-block-navigation-submenu__toggle { color: #fff; font-weight: 700; padding: 4px 0.85em 4px 0; }
.mw-site-header .wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] { color: var(--wp--preset--color--yellow); }
.mw-site-header .wp-block-navigation .wp-block-navigation__submenu-container { background: var(--wp--preset--color--deep) !important; color: #fff !important; border: 0 !important; border-radius: 14px; padding: 8px !important; min-width: 240px !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.mw-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 14px; border: 0; border-radius: 10px; }
.mw-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.08); }
.mw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; box-shadow: none; padding: 0 0 0 16px !important; }
.mw-site-header .is-style-mw-login .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); padding: 0.5em 1.1em; white-space: nowrap; }
.mw-site-header .is-style-mw-login .wp-block-button__link:hover { background: var(--wp--preset--color--yellow); }

/* ---------- Night sky sections (Group block styles) ---------- */
.is-style-mw-sky-hero, .is-style-mw-sky-page {
	position: relative; overflow-x: clip; overflow-y: visible; color: #fff;
	background: radial-gradient(ellipse at 70% 20%, #4a3b78 0%, var(--wp--preset--color--deep) 45%, var(--wp--preset--color--space) 100%);
	padding-left: 20px; padding-right: 20px;
}
.is-style-mw-sky-hero { padding-top: 150px; padding-bottom: 170px; }
.is-style-mw-sky-page { padding-top: 140px; padding-bottom: 150px; }
.is-style-mw-sky-hero :where(h1, h2, h3), .is-style-mw-sky-page :where(h1, h2, h3) { color: #fff; }
.is-style-mw-sky-hero > *, .is-style-mw-sky-page > * { position: relative; z-index: 2; }
/* stars and planet, drawn as small SVG backgrounds */
.is-style-mw-sky-hero::before, .is-style-mw-sky-page::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	--star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 1l3 7.5 8 .7-6 5.3 1.8 8L12 18.3 5.2 22.5 7 14.5 1 9.2l8-.7z'/%3E%3C/svg%3E");
	background-image: var(--star), var(--star), var(--star), var(--star), var(--star), var(--star), var(--mw-planet, none);
	background-repeat: no-repeat;
	background-position: 8% 22%, 44% 14%, 30% 80%, 92% 72%, 58% 64%, 18% 10%, var(--mw-planet-pos, 95% 17%);
	background-size: 22px, 14px, 18px, 20px, 12px, 10px, var(--mw-planet-size, 110px);
	animation: mw-twinkle 5s ease-in-out infinite;
}
.is-style-mw-sky-hero::before { --mw-planet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cellipse cx='60' cy='64' rx='58' ry='14' fill='none' stroke='%23f5db42' stroke-width='5'/%3E%3Ccircle cx='60' cy='60' r='34' fill='%23f5db42'/%3E%3Ccircle cx='48' cy='50' r='6' fill='%23e5c52a'/%3E%3Ccircle cx='70' cy='70' r='4' fill='%23e5c52a'/%3E%3Cpath d='M4 64c10 10 102 10 112 0' fill='none' stroke='%23f5db42' stroke-width='5'/%3E%3C/svg%3E"); }
.is-style-mw-sky-page::before { --mw-planet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='40' fill='%238b7bc0'/%3E%3Ccircle cx='46' cy='48' r='8' fill='%237a6ab0'/%3E%3Ccircle cx='74' cy='74' r='6' fill='%237a6ab0'/%3E%3C/svg%3E"); --mw-planet-pos: 70% 22%; --mw-planet-size: 60px; }
/* the wavy white edge; it hangs 2px past the bottom to cover the seam */
.is-style-mw-sky-hero::after, .is-style-mw-sky-page::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; z-index: 3; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 60C240 110 480 0 720 40s480 70 720 0v70H0z' fill='%23fff'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.is-style-mw-sky-page::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 70C300 20 520 100 760 60s460-50 680 10v40H0z' fill='%23fff'/%3E%3C/svg%3E"); }
@keyframes mw-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.is-style-mw-sky-hero .wp-block-columns, .is-style-mw-sky-page .wp-block-columns { max-width: 1160px; margin-left: auto; margin-right: auto; align-items: center; gap: 40px; }
.is-style-mw-sky-hero mark, .is-style-mw-sky-page mark { background: none; color: var(--wp--preset--color--yellow); }

/* ---------- Paragraph styles ---------- */
.is-style-mw-eyebrow { display: inline-block; background: rgba(245, 219, 66, 0.15); color: var(--wp--preset--color--yellow); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.9em; border-radius: 999px; }
.is-style-mw-kicker { color: var(--wp--preset--color--purple); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 0 !important; }
.is-style-mw-band .is-style-mw-kicker { color: var(--wp--preset--color--yellow); }
.is-style-mw-lead { font-size: 1.2rem; opacity: 0.92; max-width: 32em; }
.is-style-mw-intro { color: var(--wp--preset--color--muted); max-width: 40em; margin-left: auto !important; margin-right: auto !important; font-size: 1.1rem; }
.is-style-mw-crumb { font-size: 0.9rem; opacity: 0.85; }
.is-style-mw-crumb a { color: var(--wp--preset--color--yellow); text-decoration: none; }
.is-style-mw-price { font-family: var(--wp--preset--font-family--display); font-size: 3.2rem; font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1; margin: 10px 0 4px; }
.is-style-mw-price small { font-size: 1rem; color: var(--wp--preset--color--muted); font-weight: 500; font-family: var(--wp--preset--font-family--body); }
.is-style-mw-phone { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 2.4rem; }
.is-style-mw-phone a { color: var(--wp--preset--color--deep); text-decoration: none; }

/* ---------- List styles ---------- */
.is-style-mw-checks { list-style: none; padding-left: 0 !important; }
.is-style-mw-checks li { padding: 6px 0 6px 30px; position: relative; }
.is-style-mw-checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 14px; border-radius: 7px 7px 7px 2px; background: var(--wp--preset--color--yellow); }
.is-style-mw-chips { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.is-style-mw-chips li { background: var(--wp--preset--color--lavender); border-radius: 16px 16px 16px 5px; padding: 18px 20px; font-weight: 700; color: var(--wp--preset--color--ink); }

/* ---------- Column and group styles ---------- */
.is-style-mw-card { background: #fff; border-radius: var(--mw-radius); padding: 34px 30px !important; box-shadow: var(--mw-shadow); border: 1px solid #eeebf6; transition: transform 0.2s; }
.is-style-mw-card:hover { transform: translateY(-6px); }
.is-style-mw-card h3, .is-style-mw-card h2 { margin-top: 0.8rem; }
.is-style-mw-card .is-style-mw-price { font-size: 1.9rem; }
.is-style-mw-band { background: var(--wp--preset--color--deep); color: #fff; border-radius: 32px; padding: 56px !important; }
.is-style-mw-band :where(h2, h3) { color: #fff; }
.is-style-mw-band > .wp-block-column p, .is-style-mw-band > p { opacity: 0.92; }
.is-style-mw-plan { background: #fff; color: var(--wp--preset--color--text); border-radius: var(--mw-radius); padding: 34px !important; }
.is-style-mw-plan :where(h2, h3) { color: var(--wp--preset--color--ink) !important; margin-top: 0.8rem; }
.is-style-mw-plan-big { background: #fff; border-radius: 28px; padding: 40px !important; box-shadow: 0 20px 60px rgba(28, 21, 48, 0.18); border: 1px solid #eeebf6; }
.is-style-mw-plan-big .is-style-mw-price { font-size: 4rem; color: var(--wp--preset--color--purple); }
.is-style-mw-plan-big .is-style-mw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.is-style-mw-note { background: var(--wp--preset--color--lavender); border-radius: 24px 24px 24px 6px; padding: 30px !important; }
.is-style-mw-shot { border-radius: 20px; overflow: hidden; background: var(--wp--preset--color--lavender); }
.is-style-mw-shot .wp-block-image { margin: 0; }
.is-style-mw-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.is-style-mw-shot h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 800; margin: 0; }
.is-style-mw-shot p { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin: 0; }
/* a row of boxes that overlaps the bottom of the night sky above it */
.is-style-mw-overlap { margin-top: -110px !important; position: relative; z-index: 4; }

/* ---------- Yellow closing section ---------- */
.is-style-mw-cta { position: relative; overflow: hidden; background: var(--wp--preset--color--yellow); text-align: center; padding: 90px 20px !important; }
.is-style-mw-cta h2 { color: var(--wp--preset--color--ink); }
.is-style-mw-cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
	--star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23231c38' d='M12 1l3 7.5 8 .7-6 5.3 1.8 8L12 18.3 5.2 22.5 7 14.5 1 9.2l8-.7z'/%3E%3C/svg%3E");
	background-image: var(--star), var(--star), var(--star); background-repeat: no-repeat;
	background-position: 10% 20%, 22% 70%, 80% 18%; background-size: 26px, 16px, 20px;
}
.is-style-mw-cta .wp-block-button__link { background: var(--wp--preset--color--ink); color: #fff; }
.is-style-mw-cta .wp-block-button__link:hover { background: var(--wp--preset--color--deep); }

/* ---------- Footer ---------- */
.mw-footer { background: var(--wp--preset--color--space); color: #bdb6d3; font-size: 0.95rem; }
.mw-footer a { color: #e3def2; }
.mw-footer a:hover { color: var(--wp--preset--color--yellow); }

/* ---------- Plain text pages (privacy and similar) ---------- */
.mw-prose { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }

/* Mid-size screens: no room beside Wilbur, and above him runs into the menu */
@media (min-width: 901px) and (max-width: 1200px) {
	.is-style-mw-sky-hero .mw-wilbur img { width: 300px; }
	.is-style-mw-sky-page .mw-wilbur.is-small img { width: 220px; }
	.is-style-mw-sky-hero .mw-bubble, .is-style-mw-sky-page .mw-bubble { display: none; }
}

@media (max-width: 900px) {
	.mw-site-header .wp-block-site-logo img { width: 150px !important; }
	.mw-site-header .is-style-mw-login .wp-block-button__link { font-size: 0.9rem; padding: 0.45em 0.9em; }
	.is-style-mw-sky-hero { padding-top: 120px; padding-bottom: 150px; }
	.is-style-mw-sky-hero::before, .is-style-mw-sky-page::before { background-size: 22px, 14px, 18px, 20px, 12px, 10px, 0; }
	.is-style-mw-band { padding: 32px 22px !important; }
	.is-style-mw-chips, .is-style-mw-plan-big .is-style-mw-checks { grid-template-columns: 1fr; }
	.is-style-mw-overlap { margin-top: -60px !important; }
	.is-style-mw-price small { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.is-style-mw-sky-hero::before, .is-style-mw-sky-page::before { animation: none; }
	.is-style-mw-card { transition: none; }
}
