/*
Theme Name: Mosolyvirág
Theme URI: https://mosolyvirag.hu/
Author: Mosolyvirág Nagycsaládosok Debreceni Egyesülete
Description: A Twenty Twenty-Four alapjaira épülő, színes és játékos blokk-téma a Mosolyvirág Nagycsaládosok Debreceni Egyesülete számára.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.0
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mosolyvirag
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, accessibility-ready, blog, community
*/

:root {
	--mv-shadow-sm: 0 8px 24px rgba(36, 50, 74, 0.08);
	--mv-shadow-md: 0 18px 48px rgba(36, 50, 74, 0.13);
	--mv-radius-sm: 14px;
	--mv-radius-md: 24px;
	--mv-radius-lg: 38px;
	--mv-border: 1px solid rgba(36, 50, 74, 0.1);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
}

a,
button,
input,
textarea,
select {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
}

.mv-site-header {
	position: relative;
	z-index: 20;
	background: rgba(255, 255, 255, 0.96);
	border-top: 7px solid transparent;
	border-image: linear-gradient(90deg, #ef476f 0 20%, #ffd166 20% 40%, #06b98b 40% 60%, #4ea8de 60% 80%, #7b61a8 80%) 1;
	box-shadow: 0 7px 28px rgba(36, 50, 74, 0.07);
}

.mv-header-shell {
	min-height: 108px;
	box-sizing: border-box;
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

.mv-logo {
	width: min(100%, var(--mv-logo-width));
	line-height: 0;
}

.mv-logo--static {
	display: block;
	flex: 0 0 auto;
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
}

.mv-logo--full.mv-logo--static {
	aspect-ratio: 780 / 220;
	background-image: url("assets/images/mosolyvirag-logo.svg?v=1.0.3");
}

.mv-logo--mark.mv-logo--static {
	aspect-ratio: 1;
	background-image: url("assets/images/mosolyvirag-mark.svg?v=1.0.3");
	background-position: center;
}

.mv-logo__link {
	display: inline-flex;
	max-width: 100%;
}

.mv-logo__image {
	display: block;
	width: min(100%, var(--mv-logo-width));
	height: auto;
}

.mv-logo--mark {
	margin-inline: auto;
}

.mv-site-header .wp-block-navigation-item__content {
	padding: 0.62rem 0.84rem;
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.mv-site-header .wp-block-navigation-item__content:hover,
.mv-site-header .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--berry-soft);
	color: var(--wp--preset--color--berry);
}

.mv-site-header .wp-block-navigation__submenu-container {
	min-width: 230px !important;
	padding: 0.5rem !important;
	background: var(--wp--preset--color--paper) !important;
	border: var(--mv-border) !important;
	border-radius: var(--mv-radius-sm) !important;
	box-shadow: var(--mv-shadow-md) !important;
}

.mv-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: auto;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem !important;
	background: var(--wp--preset--color--base) !important;
}

.wp-element-button,
.wp-block-button__link {
	box-shadow: 0 7px 0 rgba(175, 37, 76, 0.18);
	text-decoration: none;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 9px 0 rgba(36, 50, 74, 0.14);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 2px solid currentColor;
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--berry);
	background: var(--wp--preset--color--paper);
}

.mv-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: 0 !important;
	background: var(--wp--preset--gradient--mosolyvirag-soft);
}

.mv-hero::before,
.mv-hero::after {
	position: absolute;
	z-index: -1;
	content: "";
	border-radius: 50%;
	filter: blur(1px);
}

.mv-hero::before {
	top: -80px;
	right: -55px;
	width: 220px;
	height: 220px;
	background: rgba(255, 209, 102, 0.62);
}

.mv-hero::after {
	bottom: -90px;
	left: -55px;
	width: 190px;
	height: 190px;
	background: rgba(6, 185, 139, 0.2);
}

.mv-hero__grid {
	position: relative;
	min-height: 410px;
}

.mv-hero__copy {
	position: relative;
	z-index: 2;
}

.mv-eyebrow {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 0 !important;
	padding: 0.42rem 0.82rem;
	color: var(--wp--preset--color--berry);
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(239, 71, 111, 0.22);
	border-radius: 999px;
	box-shadow: var(--mv-shadow-sm);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.83rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mv-hero h1 {
	max-width: 700px;
	margin-top: 0.8rem;
	font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.mv-highlight {
	position: relative;
	display: inline-block;
	color: var(--wp--preset--color--berry);
}

.mv-highlight::after {
	position: absolute;
	z-index: -1;
	right: -0.1em;
	bottom: 0.04em;
	left: -0.1em;
	height: 0.24em;
	content: "";
	background: var(--wp--preset--color--sun);
	border-radius: 999px;
	transform: rotate(-1deg);
}

.mv-hero__lead {
	max-width: 650px;
	color: var(--wp--preset--color--slate);
	font-size: clamp(1.03rem, 1.5vw, 1.22rem);
}

.mv-hero__art {
	position: relative;
	display: grid;
	min-height: 280px;
	place-items: center;
}

.mv-hero__art::before {
	position: absolute;
	width: min(26vw, 320px);
	min-width: 230px;
	aspect-ratio: 1;
	content: "";
	background: rgba(255, 255, 255, 0.82);
	border: 2px dashed rgba(78, 168, 222, 0.35);
	border-radius: 43% 57% 54% 46% / 49% 43% 57% 51%;
	box-shadow: var(--mv-shadow-md);
	transform: rotate(4deg);
}

.mv-hero__art .mv-logo {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 14px 24px rgba(36, 50, 74, 0.12));
}

.mv-hero-mobile-logo {
	display: none;
}

.mv-hero-latest {
	position: relative;
	z-index: 2;
	width: min(100%, 310px);
	margin: 0;
}

.mv-hero-latest .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-hero-post-card {
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	border: var(--mv-border);
	border-radius: 24px;
	box-shadow: var(--mv-shadow-md);
	transform: rotate(1deg);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.mv-hero-post-card:hover {
	box-shadow: 0 24px 54px rgba(36, 50, 74, 0.18);
	transform: rotate(0deg) translateY(-3px);
}

.mv-hero-post-card .wp-block-post-featured-image {
	margin: 0;
	border-radius: 0;
}

.mv-hero-post-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 132px;
	border-radius: 0;
	object-fit: cover;
}

.mv-hero-post-card__body {
	gap: 0.55rem;
	padding: 0.9rem 1rem 1rem;
}

.mv-hero-post-card__meta {
	gap: 0.65rem;
	color: var(--wp--preset--color--slate);
	font-size: 0.72rem;
}

.mv-hero-post-card__meta p,
.mv-hero-post-card__meta .wp-block-post-date {
	margin: 0;
}

.mv-hero-post-card__meta p {
	color: var(--wp--preset--color--berry);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mv-hero-post-card .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.1rem, 1.55vw, 1.35rem);
	line-height: 1.13;
}

.mv-hero-post-card .wp-block-read-more {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.84rem;
	font-weight: 700;
}

.mv-section {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}

.mv-section-title {
	max-width: 760px;
	margin-inline: auto;
}

.mv-values {
	gap: 1.25rem;
}

.mv-value-card {
	position: relative;
	overflow: hidden;
	padding: clamp(1.4rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--paper);
	border: var(--mv-border);
	border-top: 7px solid var(--wp--preset--color--berry);
	border-radius: var(--mv-radius-md);
	box-shadow: var(--mv-shadow-sm);
}

.mv-value-card:nth-child(2) {
	border-top-color: var(--wp--preset--color--mint);
}

.mv-value-card:nth-child(3) {
	border-top-color: var(--wp--preset--color--sky);
}

.mv-value-card::after {
	position: absolute;
	right: -26px;
	bottom: -32px;
	width: 105px;
	height: 105px;
	content: "";
	background: var(--wp--preset--color--berry-soft);
	border-radius: 50%;
}

.mv-value-card:nth-child(2)::after {
	background: var(--wp--preset--color--mint-soft);
}

.mv-value-card:nth-child(3)::after {
	background: var(--wp--preset--color--sky-soft);
}

.mv-value-icon {
	display: grid;
	width: 54px;
	height: 54px;
	margin: 0 0 1rem;
	color: var(--wp--preset--color--paper);
	background: var(--wp--preset--color--berry);
	border-radius: 18px;
	font-size: 1.65rem;
	place-items: center;
	transform: rotate(-4deg);
}

.mv-value-card:nth-child(2) .mv-value-icon {
	background: var(--wp--preset--color--mint);
	transform: rotate(3deg);
}

.mv-value-card:nth-child(3) .mv-value-icon {
	background: var(--wp--preset--color--sky);
}

.mv-value-card h3 {
	margin-top: 0;
}

.mv-news-section {
	background: var(--wp--preset--color--paper);
}

.mv-post-grid > .wp-block-post-template {
	gap: 1.4rem;
}

.mv-post-card {
	overflow: hidden;
	height: 100%;
	background: var(--wp--preset--color--base);
	border: var(--mv-border);
	border-radius: var(--mv-radius-md);
	box-shadow: var(--mv-shadow-sm);
}

.mv-post-card:hover {
	box-shadow: var(--mv-shadow-md);
	transform: translateY(-4px);
}

.mv-post-card .wp-block-post-featured-image {
	margin: 0 !important;
	border-radius: 0;
}

.mv-post-card .wp-block-post-featured-image img {
	width: 100%;
	height: 230px;
	border-radius: 0;
	object-fit: cover;
}

.mv-post-card__body {
	padding: 1.45rem;
}

.mv-post-card .wp-block-post-title {
	margin-top: 0.45rem;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.mv-post-card .wp-block-post-date,
.mv-post-card .wp-block-post-terms {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

.mv-post-card .wp-block-post-excerpt__more-link {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.mv-cta {
	position: relative;
	overflow: hidden;
	color: var(--wp--preset--color--paper);
	background: var(--wp--preset--gradient--community);
	border-radius: var(--mv-radius-lg);
	box-shadow: var(--mv-shadow-md);
}

.mv-cta::after {
	position: absolute;
	right: -80px;
	top: -90px;
	width: 250px;
	height: 250px;
	content: "";
	background: rgba(255, 255, 255, 0.14);
	border: 3px dashed rgba(255, 255, 255, 0.38);
	border-radius: 50%;
}

.mv-cta :where(h2, p) {
	position: relative;
	z-index: 1;
	color: inherit;
}

.mv-cta .wp-block-button__link {
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--sun);
	box-shadow: 0 7px 0 rgba(36, 50, 74, 0.15);
}

.mv-title-band {
	position: relative;
	overflow: hidden;
	margin-top: 0 !important;
	background: var(--wp--preset--gradient--mosolyvirag-soft);
}

.mv-title-band::after {
	position: absolute;
	right: 7vw;
	top: 50%;
	width: 80px;
	height: 80px;
	content: "";
	background: var(--wp--preset--color--sun);
	border: 10px solid rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	transform: translateY(-50%);
}

.mv-title-band .wp-block-post-title,
.mv-title-band .wp-block-query-title {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	font-size: clamp(1.9rem, 3.2vw, 3rem) !important;
}

.mv-article-shell {
	padding-top: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--50);
}

.mv-content-card {
	padding: clamp(1.4rem, 4vw, 3.5rem);
	background: var(--wp--preset--color--paper);
	border: var(--mv-border);
	border-radius: var(--mv-radius-md);
	box-shadow: var(--mv-shadow-sm);
}

.mv-featured-image img {
	max-height: 620px;
	object-fit: cover;
	box-shadow: var(--mv-shadow-md);
}

.mv-entry-content > :where(h2, h3) {
	margin-top: 1.7em;
}

.mv-entry-content :where(ul, ol) li::marker {
	color: var(--wp--preset--color--berry);
	font-weight: 800;
}

.mv-entry-content blockquote {
	margin-inline: 0;
	padding: 1.2rem 1.5rem;
	background: var(--wp--preset--color--berry-soft);
	border-left: 6px solid var(--wp--preset--color--berry);
	border-radius: 0 var(--mv-radius-sm) var(--mv-radius-sm) 0;
}

.mv-entry-content :where(table) {
	overflow: hidden;
	border: 1px solid rgba(36, 50, 74, 0.12);
	border-radius: var(--mv-radius-sm);
}

.mv-entry-content :where(th) {
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--sun);
}

.mv-post-meta {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

.mv-site-footer {
	position: relative;
	overflow: hidden;
	color: var(--wp--preset--color--paper);
	background: var(--wp--preset--color--ink);
}

.mv-site-footer::before {
	position: absolute;
	top: -100px;
	left: -70px;
	width: 260px;
	height: 260px;
	content: "";
	background: rgba(239, 71, 111, 0.14);
	border-radius: 50%;
}

.mv-site-footer :where(h2, h3, p) {
	color: inherit;
}

.mv-site-footer a {
	color: var(--wp--preset--color--paper);
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 0.25em;
}

.mv-site-footer a:hover {
	color: var(--wp--preset--color--sun);
}

.mv-footer-contact {
	margin-top: 1.35rem;
	gap: 0.85rem;
}

.mv-footer-contact p {
	margin: 0;
	overflow-wrap: anywhere;
}

.mv-footer-contact strong {
	color: var(--wp--preset--color--sun);
}

.mv-footer-dots {
	display: flex;
	gap: 0.45rem;
}

.mv-footer-dots span {
	display: block;
	width: 13px;
	height: 13px;
	background: var(--wp--preset--color--berry);
	border-radius: 50%;
}

.mv-footer-dots span:nth-child(2) { background: var(--wp--preset--color--sun); }
.mv-footer-dots span:nth-child(3) { background: var(--wp--preset--color--mint); }
.mv-footer-dots span:nth-child(4) { background: var(--wp--preset--color--sky); }
.mv-footer-dots span:nth-child(5) { background: var(--wp--preset--color--violet); }

.mv-footer-bottom {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
	.mv-header-shell {
		min-height: 88px;
	}

	.mv-header-shell > .wp-block-group {
		flex-wrap: nowrap;
	}

	.mv-site-header .mv-logo {
		max-width: 260px;
	}

	.mv-hero__grid {
		min-height: auto;
	}

	.mv-hero__grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.mv-hero__art {
		min-height: 255px;
	}

	.mv-hero-latest {
		display: none;
	}

	.mv-hero-mobile-logo {
		display: block;
	}

	.mv-hero__art::before {
		width: 245px;
	}

	.mv-title-band::after {
		right: -28px;
		top: -28px;
		transform: none;
	}
}

@media (max-width: 600px) {
	.mv-site-header {
		border-top-width: 5px;
	}

	.mv-site-header .mv-logo {
		max-width: 220px;
	}

	.mv-site-header .wp-block-navigation__responsive-container-open {
		padding: 0.55rem;
		background: var(--wp--preset--color--berry-soft);
		border-radius: 50%;
	}

	.mv-title-band .wp-block-post-title,
	.mv-title-band .wp-block-query-title {
		font-size: 1.65rem !important;
		line-height: 1.08;
	}

	.mv-hero h1 {
		font-size: clamp(2.35rem, 11vw, 3.4rem);
	}

	.mv-hero .wp-block-buttons {
		flex-wrap: nowrap;
		gap: 0.55rem;
	}

	.mv-hero .wp-block-button__link {
		padding: 0.7rem 0.82rem;
		font-size: 0.8rem;
		white-space: nowrap;
	}

	.mv-hero__art {
		min-height: 180px;
	}

	.mv-hero__art::before {
		min-width: 165px;
		width: 165px;
	}

	.mv-hero__art .mv-logo {
		max-width: 150px;
	}

	.mv-value-card,
	.mv-content-card {
		border-radius: 20px;
	}

	.mv-post-card .wp-block-post-featured-image img {
		height: 210px;
	}

	.mv-cta {
		border-radius: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
