/*
Theme Name: My Friend in Bucharest
Theme URI: https://myfriendinbucharest.com/
Author: DWF
Author URI: https://dwf.ro/
Description: A fast, editable block theme for My Friend in Bucharest, private experiences with Costin. Full Site Editing, warm Bucharest palette, ready-made patterns for experiences, galleries, reviews, FAQ and booking. Pairs with the "My Friend in Bucharest – Core" plugin for tours, booking requests and structured data.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfriendinbucharest
Tags: one-column, wide-blocks, block-patterns, block-styles, full-site-editing, editor-style, style-variations, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, blog, travel
*/

/* ----------------------------------------------------------------
 * Global details theme.json cannot express yet.
 * ---------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

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

img {
	height: auto;
}

/* Sticky header */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 rgba(30, 27, 24, 0.08);
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.mfib-header .wp-block-button__link {
	padding: 0.6em 1.15em;
	font-size: var(--wp--preset--font-size--small);
}

.mfib-header .wp-block-site-title {
	white-space: nowrap;
}

@media (max-width: 480px) {
	.mfib-header .mfib-header__cta {
		display: none;
	}
}

/* Hero */
.mfib-hero .wp-block-cover__inner-container > * {
	max-width: 46rem;
}

.mfib-hero h1 {
	text-wrap: balance;
}

/* Balance headings everywhere */
:where(h1, h2, h3) {
	text-wrap: balance;
}

/* ----------------------------------------------------------------
 * Block styles registered in functions.php
 * ---------------------------------------------------------------- */

/* Image / featured image: "Arch" – a nod to Brâncovenesc arches. */
.wp-block-image.is-style-arch img,
.wp-block-post-featured-image.is-style-arch img {
	border-radius: 50% 50% var(--wp--custom--radius--medium) var(--wp--custom--radius--medium) / 38% 38% var(--wp--custom--radius--medium) var(--wp--custom--radius--medium);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

/* Group: "Card" */
.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
	padding: var(--wp--preset--spacing--40);
	height: 100%;
}

/* Paragraph: "Kicker" – small label above headings. */
p.is-style-kicker {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.5rem;
}

.has-accent-background-color p.is-style-kicker,
.has-accent-3-background-color p.is-style-kicker,
.has-contrast-background-color p.is-style-kicker,
.wp-block-cover p.is-style-kicker {
	color: var(--wp--preset--color--accent-2);
}

/* List: "Checks" */
ul.is-style-checks {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checks li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: 0.6em;
}

ul.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Button: "Ghost" (outline on dark or light) */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: currentColor;
	box-shadow: inset 0 0 0 2px currentColor;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--contrast);
}

.wp-block-cover .wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-ghost .wp-block-button__link:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--white);
}

/* ----------------------------------------------------------------
 * Cards in query loops (tours & posts)
 * ---------------------------------------------------------------- */

.mfib-card-grid .wp-block-post {
	display: flex;
	flex-direction: column;
}

.mfib-card-grid .wp-block-post-featured-image {
	overflow: hidden;
}

.mfib-card-grid .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.mfib-card-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.mfib-card-grid .wp-block-post-excerpt__more-text {
	margin-top: auto;
}

/* Experience cards on the homepage */
.mfib-experience {
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mfib-experience:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.mfib-experience .wp-block-image {
	margin: calc(var(--wp--preset--spacing--40) * -1) calc(var(--wp--preset--spacing--40) * -1) var(--wp--preset--spacing--30);
}

.mfib-experience .wp-block-image img {
	border-radius: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.mfib-experience a {
	text-decoration: none;
}

/* Reviews */
.mfib-review .wp-block-quote {
	border-left: 0;
	padding-left: 0;
	margin: 0;
}

.mfib-stars {
	color: var(--wp--preset--color--accent-2);
	letter-spacing: 0.15em;
}

/* FAQ */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	font-family: var(--wp--preset--font-family--display);
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

/* Sticky sidebar on tour pages */
@media (min-width: 782px) {
	.mfib-sticky {
		position: sticky;
		top: 6rem;
	}
}

.wp-block-group.is-style-card.mfib-sticky {
	height: auto;
}

/* Comments & forms inherit the warm look */
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	border: 1px solid #E2D5C2;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	padding: 0.75em 1em;
}

/* Footer */
.mfib-footer a {
	color: inherit;
	text-decoration: none;
}

.mfib-footer a:hover {
	text-decoration: underline;
}

.mfib-plain-list {
	list-style: none;
	padding-left: 0;
}

.mfib-plain-list li {
	margin-bottom: 0.4em;
}

.mfib-footer__rule {
	border-color: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.14);
	background-color: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

/* ----------------------------------------------------------------
 * Romanian folk motif (separator style "Motif")
 * ---------------------------------------------------------------- */
.wp-block-separator.is-style-motif {
	border: 0 !important;
	height: 30px;
	max-width: 22rem;
	margin-left: auto;
	margin-right: auto;
	background: url("assets/images/motif.svg") center / 60px 30px repeat-x !important;
	opacity: 1;
}

/* ----------------------------------------------------------------
 * Multi-day tours: highlights, itinerary timeline, included / excluded
 * ---------------------------------------------------------------- */
.mfib-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.mfib-highlights .wp-block-group {
	text-align: center;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--base-2);
}

.mfib-highlights p {
	margin: 0;
	font-weight: 600;
	line-height: 1.3;
}

.mfib-highlights .mfib-highlight__icon {
	font-size: 1.9rem;
	line-height: 1;
	margin-bottom: 0.4rem;
}

.mfib-itinerary {
	position: relative;
	padding-left: 2.75rem;
}

.mfib-itinerary::before {
	content: "";
	position: absolute;
	left: 1.05rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--wp--preset--color--accent) 0 8px, transparent 8px 14px);
	opacity: 0.5;
}

.mfib-day {
	position: relative;
}

.mfib-day::before {
	content: "";
	position: absolute;
	left: calc(-2.75rem + 0.45rem);
	top: 1.6rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 5px var(--wp--preset--color--base);
}

.mfib-day .is-style-kicker {
	margin-bottom: 0.1rem;
}

.mfib-day h3 {
	margin-top: 0;
}

.mfib-day ol,
.mfib-day ul {
	margin-bottom: 0;
}

.mfib-day ol li,
.mfib-day ul li {
	margin-bottom: 0.35em;
}

ul.is-style-crosses {
	list-style: none;
	padding-left: 0;
}

ul.is-style-crosses li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: 0.6em;
}

ul.is-style-crosses li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.mfib-pricebox {
	text-align: center;
}

.mfib-pricebox .mfib-pricebox__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1;
	font-weight: 700;
	margin: 0;
}

.mfib-host-note {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
}

/* Trust bar */
.mfib-trust p {
	margin: 0;
}

.mfib-trust .mfib-trust__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--accent);
}

/* Steps */
.mfib-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0;
}

/* Photo gallery page */
.mfib-album .wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: var(--wp--custom--radius--small);
}

.mfib-album-nav {
	position: sticky;
	top: 5.5rem;
	z-index: 5;
	background: var(--wp--preset--color--base);
	padding: 0.5rem 0;
}

.mfib-album-nav .wp-block-button__link {
	padding: 0.5em 1.1em;
	font-size: var(--wp--preset--font-size--small);
}

/* Tour page sidebar: the price card already shows the price, keep the card compact. */
.mfib-sticky .mfib-facts__price {
	display: none;
}

.mfib-sticky .mfib-facts.is-list .mfib-facts__list li {
	padding: 0.5rem 0;
}

.mfib-sticky .mfib-pricecard {
	padding: 1.1rem;
}

.mfib-tour-hero .mfib-hero-terms a {
	color: var(--wp--preset--color--accent-2);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 600px) {
	.mfib-trust__row {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--30) !important;
	}

	.mfib-trust__row > .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
	}
}

/* Script accents (signatures, host name) */
.mfib-host-note,
.mfib-host .mfib-host__sign,
.mfib-pricecard__note {
	font-family: var(--wp--preset--font-family--script);
	font-style: normal;
	font-size: 1.35em;
	line-height: 1.3;
}

.mfib-pricecard__note {
	font-size: 1.2rem;
}


/* =================================================================
 * v1.4 – Boutique look: warm paper tones, hairlines, brass details
 * ================================================================= */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: rgba(184, 146, 90, 0.3);
}

/* Header: airy, translucent ivory */
/* Blur lives on a pseudo-layer: a backdrop-filter on the header itself would trap the
   fixed mobile menu inside the header height. */
.wp-site-blocks > header.wp-block-template-part {
	background-color: transparent;
	box-shadow: 0 1px 0 rgba(110, 97, 87, 0.12);
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(250, 246, 240, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
}

/* Mobile menu overlay: full screen, boutique */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--60) !important;
	align-items: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.4rem !important;
	align-items: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 7vw, 2.2rem);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	padding: 0.35rem 0 !important;
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--contrast);
}

.mfib-header .wp-block-site-title {
	letter-spacing: 0.01em;
}

.mfib-header .wp-block-navigation {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.78rem;
}

/* Kicker: small caps with a brass hairline */
p.is-style-kicker {
	letter-spacing: 0.22em;
	font-size: 0.75rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

p.is-style-kicker::before {
	content: "";
	width: 2rem;
	height: 1px;
	background: var(--wp--preset--color--accent-2);
	flex: none;
}

p.is-style-kicker.has-text-align-center {
	justify-content: center;
}

p.is-style-kicker.has-text-align-center::after {
	content: "";
	width: 2rem;
	height: 1px;
	background: var(--wp--preset--color--accent-2);
	flex: none;
}

/* Headings: a touch more air */
:where(h1, h2) {
	font-weight: 500;
}

/* Cards: paper feel instead of heavy shadows */
.wp-block-group.is-style-card,
.mfib-card,
.mfib-review-card,
.mfib-terms,
.mfib-inc__col,
.mfib-host-card,
.mfib-itin__day details,
.mfib-booking__form {
	border: 1px solid rgba(110, 97, 87, 0.12);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Buttons: refined */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Hero: warmer overlay */
.mfib-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(36, 57, 47, 0.92) 0%, rgba(36, 57, 47, 0.7) 45%, rgba(42, 33, 28, 0.25) 100%) !important;
	opacity: 1 !important;
}

.mfib-hero h1 {
	font-weight: 500;
}

/* Dark sections: brass kickers */
.has-accent-3-background-color p.is-style-kicker,
.has-contrast-background-color p.is-style-kicker,
.wp-block-cover p.is-style-kicker {
	color: var(--wp--preset--color--accent-2);
}

/* Images: soft rounding everywhere */
.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--medium);
}

/* Trust bar: centred, quieter */
.mfib-trust {
	background: var(--wp--preset--color--base);
}

/* Steps */
.mfib-step__num {
	background: transparent;
	color: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 1.25rem;
}

/* FAQ */
.wp-block-details summary {
	font-weight: 500;
}

.wp-block-details summary::after {
	color: var(--wp--preset--color--accent-2);
}

/* Footer: forest with brass headings */
.mfib-footer h2 {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 0.75rem !important;
}


/* =================================================================
 * v2 – Presentation video next to the hero
 * Desktop: floats on the right side of the hero photo.
 * Mobile/tablet: sits right under the hero. Hidden until a video is uploaded.
 * ================================================================= */
.mfib-hero-wrap {
	position: relative;
}

.mfib-hero-video {
	margin: 0;
}

.mfib-hero-video video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 72vh;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--contrast);
}

.mfib-hero-video figcaption {
	margin-top: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/* Front end only (the editor shows the block normally). */
body:not(.editor-styles-wrapper) .mfib-hero-video:not(:has(video)) {
	display: none;
}

@media (min-width: 1024px) {
	body:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video {
		position: absolute;
		z-index: 3;
		top: 50%;
		right: max(var(--wp--style--root--padding-right, 1.5rem), calc((100vw - var(--wp--style--global--wide-size, 1240px)) / 2));
		transform: translateY(-50%);
		width: min(34vw, 440px);
		padding: 8px;
		border-radius: calc(var(--wp--custom--radius--medium) + 8px);
		background: rgba(250, 246, 240, 0.12);
		border: 1px solid rgba(184, 146, 90, 0.55);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
	}

	body:not(.editor-styles-wrapper) .mfib-hero-video figcaption {
		color: var(--wp--preset--color--base);
	}

	/* Keep the headline clear of the video. */
	body:not(.editor-styles-wrapper) .mfib-hero-wrap:has(.mfib-hero-video video) .mfib-hero .wp-block-cover__inner-container > * {
		max-width: min(40rem, 52vw);
	}
}

@media (max-width: 1023px) {
	body:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video {
		max-width: 560px;
		margin: calc(var(--wp--preset--spacing--50) * -1) auto 0;
		padding: 0 var(--wp--style--root--padding-right, 1rem);
		position: relative;
		z-index: 3;
	}

	body:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video video {
		box-shadow: 0 24px 48px -28px rgba(42, 33, 28, 0.55);
		border: 1px solid rgba(184, 146, 90, 0.45);
	}
}


/* v2 – articles */
.single-post .wp-block-post-content > p:first-of-type.mfib-lead,
.mfib-lead {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--contrast);
	line-height: 1.5;
}

.mfib-keypoints {
	border-left: 3px solid var(--wp--preset--color--accent-2) !important;
	margin-block: var(--wp--preset--spacing--40);
}

.mfib-keypoints h2 {
	margin-top: 0;
}

.single-post .wp-block-post-content h2 {
	margin-top: var(--wp--preset--spacing--50);
}

/* Related articles section collapses when there are none */
.mfib-related-wrap:not(:has(.mfib-related-posts)) {
	display: none;
}

.mfib-story-wrap:not(:has(.mfib-story)) {
	display: none;
}

.mfib-carousel-section:not(:has(.mfib-carousel)) {
	display: none;
}

/* v2 – legal pages */
.mfib-legal h2 {
	margin-top: var(--wp--preset--spacing--50);
}

.mfib-cookie-table table {
	font-size: var(--wp--preset--font-size--small);
}

.mfib-cookie-table th {
	background: var(--wp--preset--color--base-2);
	text-align: left;
}

.mfib-cookie-table td,
.mfib-cookie-table th {
	border: 1px solid #e6d9c6 !important;
	padding: 0.6rem 0.75rem;
}

.mfib-legal .mfib-company {
	padding: 1rem 1.25rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-2);
	opacity: 1;
}

/* =================================================================
 * v2 – Motion & micro-interactions
 * ================================================================= */
.mfib-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--mfib-delay, 0ms);
}

.mfib-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Hero text rises gently on load */
@keyframes mfib-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.mfib-hero .wp-block-cover__inner-container > *,
.mfib-tour-hero .wp-block-cover__inner-container > * {
	animation: mfib-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mfib-hero .wp-block-cover__inner-container > *:nth-child(2),
.mfib-tour-hero .wp-block-cover__inner-container > *:nth-child(2) {
	animation-delay: 0.12s;
}

.mfib-hero .wp-block-cover__inner-container > *:nth-child(3) {
	animation-delay: 0.24s;
}

.mfib-hero .wp-block-cover__inner-container > *:nth-child(4) {
	animation-delay: 0.36s;
}

/* Header: compact after scrolling */
.wp-site-blocks > header.wp-block-template-part .mfib-header {
	transition: padding 0.3s ease;
}

.mfib-scrolled .wp-site-blocks > header.wp-block-template-part .mfib-header {
	padding-top: 0.45rem !important;
	padding-bottom: 0.45rem !important;
}

.mfib-scrolled .wp-site-blocks > header.wp-block-template-part {
	box-shadow: 0 10px 30px -22px rgba(42, 33, 28, 0.45);
}

/* Navigation: underline that grows */
.mfib-header .wp-block-navigation-item__content {
	background-image: linear-gradient(var(--wp--preset--color--accent-2), var(--wp--preset--color--accent-2));
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease;
	text-decoration: none !important;
}

.mfib-header .wp-block-navigation-item__content:hover,
.mfib-header .wp-block-navigation-item__content:focus-visible {
	background-size: 100% 1px;
}

/* Buttons: soft press */
.wp-block-button__link:active {
	transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
	.mfib-reveal,
	.mfib-hero .wp-block-cover__inner-container > *,
	.mfib-tour-hero .wp-block-cover__inner-container > * {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* Header: keep everything on one line. Below 1180px the menu becomes the hamburger overlay. */
.mfib-header .wp-block-button__link {
	white-space: nowrap;
}

.mfib-header .wp-block-navigation__container {
	flex-wrap: nowrap;
}

@media (max-width: 1180px) {
	.mfib-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.mfib-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* Video slot placeholder – visible only to logged-in editors until a video is uploaded. */
body.logged-in:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video:not(:has(video)) {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	min-height: 12rem;
	border: 2px dashed rgba(184, 146, 90, 0.85) !important;
	border-radius: var(--wp--custom--radius--medium);
	background: rgba(36, 57, 47, 0.55);
	text-align: center;
}

body.logged-in:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video:not(:has(video))::before {
	content: "▶  Add your presentation video\A Appearance → Editor → Front Page → click this box → Upload";
	white-space: pre-line;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.6;
	padding: 1rem;
}

@media (max-width: 1023px) {
	body.logged-in:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero-video:not(:has(video)) {
		background: var(--wp--preset--color--accent-3);
	}
}

@media (min-width: 1024px) {
	body.logged-in:not(.editor-styles-wrapper) .mfib-hero-wrap .mfib-hero .wp-block-cover__inner-container > * {
		max-width: min(40rem, 52vw);
	}
}

/* Footer sits flush against the last section (no default block gap). */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Full-width sections stack flush everywhere (each has its own padding). */
.wp-site-blocks > .alignfull,
.wp-site-blocks > main > .alignfull,
.wp-block-post-content > .alignfull,
.wp-site-blocks > .alignfull + *,
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Homepage hero photo: let the faces show, keep the text readable. */
.mfib-hero-wrap .mfib-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(36, 57, 47, 0.85) 0%, rgba(36, 57, 47, 0.55) 40%, rgba(42, 33, 28, 0.12) 75%, rgba(42, 33, 28, 0.05) 100%) !important;
}

.mfib-hero-wrap .mfib-hero .wp-block-cover__image-background {
	object-position: 50% 30%;
}

.mfib-hero-wrap .mfib-hero h1,
.mfib-hero-wrap .mfib-hero p {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 781px) {
	.mfib-hero-wrap .mfib-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(36, 57, 47, 0.35) 0%, rgba(36, 57, 47, 0.78) 55%, rgba(36, 57, 47, 0.9) 100%) !important;
	}
}
