/* Meikki Bricks elements: one stylesheet for the site layer and every custom element (fewer render-blocking requests than one file per element). */

/* ===== site ===== */
/* The design resets paragraph margins globally; Bricks adds margin-bottom to
   text elements that are not the last child (inside @layer, so this wins). */
p.brxe-text-basic, .brxe-text-basic p { margin: 0 }

/* Visually hidden, still read by screen readers and search engines (the second
   half of the hero H1 is shown by a separate, aria-hidden title). */
.mki-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }

/* Sticky header as in the design (.top). The header section's own position:sticky
   cannot work: its parent #brx-header is exactly as tall as it is. The stacking
   context also keeps the mobile menu panel (z 49) under the header row (z 50). */
#brx-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50 }
html { scroll-padding-top: 96px }

/* Horizontal overflow. On phones the hero titles are full width, and their entrance
   (mkiInL/R, ±40px) pushes them past the edge for ~300ms, which makes the whole page
   pannable sideways. clip (not hidden) keeps the section from becoming a scroll
   container. The body rule is the design's own safety net; it propagates to the
   viewport, so the sticky header keeps working. */
.mki-hero { overflow-x: clip }
body { overflow-x: hidden }

/* Very narrow phones (320px): the unbreakable Instagram handle and the footer's
   two-column grid were a few px wider than the content box (also in the design). */
@media (max-width: 360px) {
	.mki-ig__head h2.brxe-heading { font-size: min(36.8px, 10.6vw) }
	.mki-footer__grid > * { min-width: 0 }
}

/* The menu panel carries the booking link, so the bottom bar steps aside. */
body:has(.mki-mmenu.brx-open) .mki-mcta { opacity: 0; visibility: hidden }

/* Scroll reveal — copied from the approved design. The classes are added by
   site.js only on the front end and removed again once the element is in. */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) }
.rv-img { opacity: 0; transform: scale(1.025); transition: opacity 1.4s ease var(--d, 0ms), transform 1.8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) }
.rv.in, .rv-img.in { transform: none; opacity: 1 }

/* Footer wordmark: a second outlined copy, revealed through a radial mask that
   follows the pointer (site.js sets --x / --y on hover-capable devices). */
.mki-footer__mark { position: relative; --x: 50%; --y: 50% }
.mki-footer__mark::after {
	content: "meikki";
	position: absolute;
	inset: 0;
	color: #a9c7b8;
	-webkit-text-stroke: 1px #cfe0d6;
	opacity: 0;
	transition: opacity .5s ease;
	-webkit-mask-image: radial-gradient(circle clamp(140px, 16vw, 280px) at var(--x) var(--y), #000 0, rgba(0, 0, 0, .55) 35%, transparent 100%);
	mask-image: radial-gradient(circle clamp(140px, 16vw, 280px) at var(--x) var(--y), #000 0, rgba(0, 0, 0, .55) 35%, transparent 100%);
	pointer-events: none;
}
.mki-footer__mark:hover::after { opacity: 1 }

/* Mobile sticky booking bar (<= 520px). */
.mki-mcta {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: none;
	grid-template-columns: auto 1fr;
	gap: 8px;
	padding: 8px;
	border-radius: 100px;
	background: rgba(24, 46, 39, .94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.mki-mcta a {
	display: block;
	gap: 0;
	font: 500 .85rem/1 "Albert Sans", sans-serif;
	text-decoration: none;
	text-align: center;
	padding: 1em 1.3em;
	border-radius: 100px;
	color: #fcfcf4;
}
.mki-mcta a:last-child { background: #578673; color: #fff }
@media (max-width: 520px) { .mki-mcta { display: grid } }

/* ===== circular-gallery ===== */
/* Structure only: anything the editor should be able to change is a Bricks
   control, so it must not be hard-coded here. */
/* Bricks sections and blocks are column flex containers with align-items:
   flex-start, so without this the element shrinks to its content width and the
   canvas is measured far too narrow. */
.mki-cg {
	width: 100%;
	align-self: stretch;
}

.mki-cg__stage {
	width: 100%;
	height: clamp(420px, 46vw, 620px);
	margin-top: clamp(8px, 2vw, 24px);
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}

.mki-cg__stage:active {
	cursor: grabbing;
}

.mki-cg__stage canvas {
	display: block;
}

.mki-cg__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	font: 400 .8rem/1 var(--sans, sans-serif);
	color: var(--accent, #578673);
}

.mki-cg__nav button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background 200ms ease, color 200ms ease;
}

.mki-cg__nav button:hover {
	background: currentColor;
}

.mki-cg__nav button:hover svg {
	stroke: #fff;
}

.mki-cg__nav svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The gallery needs a real canvas size; in the builder an unsized element would
   collapse before the library measures it. */
.mki-cg__empty {
	display: grid;
	place-items: center;
	min-height: 240px;
	padding: 24px;
	border: 1px dashed var(--line, rgba(87, 134, 115, .35));
	border-radius: var(--radius-md, 8px);
	color: var(--accent, #578673);
	text-align: center;
}

/* ===== photo-stack ===== */
.mki-stack {
	position: relative;
	aspect-ratio: 4 / 5;
	margin-block: 24px;
	width: 100%;
}

.mki-stack__item {
	position: absolute;
	inset: 0;
	margin: 0;
	background: #fff;
	padding: 4.5%;
	display: flex;
	flex-direction: column;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(24, 46, 39, .12), 0 18px 40px -12px rgba(24, 46, 39, .28);
	transition: transform 1100ms cubic-bezier(.3, .7, .2, 1), opacity 700ms ease;
	will-change: transform;
}

.mki-stack__item img {
	width: 100%;
	flex: 1;
	min-height: 0;
	object-fit: cover;
	object-position: 50% 40%;
	filter: saturate(.92) contrast(.97);
	border-radius: 1px;
}

/* Resting positions for the top three cards; anything deeper sits under them. */
.mki-stack__item[data-pos="0"] { z-index: 3; transform: rotate(-2deg) }
.mki-stack__item[data-pos="1"] { z-index: 2; transform: rotate(4deg) translate(5%, 2%) }
.mki-stack__item[data-pos="2"] { z-index: 1; transform: rotate(-7deg) translate(-6%, 3%) }

/* The card being dealt away. */
.mki-stack__item.is-out {
	transform: translate(-9%, -2%) rotate(-5deg);
	opacity: 0;
	z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
	.mki-stack__item { transition: none }
}

/* ===== icon ===== */
.mki-icon {
	display: block;
	flex: none;
	vector-effect: non-scaling-stroke;
}

/* ===== service-panel ===== */
/* Bricks containers are column flex with align-items: flex-start, so without
   these the panel shrinks to its content width. */
.mki-svc {
	width: 100%;
	align-self: stretch;
	position: relative;
	isolation: isolate;
	border-radius: var(--radius-md, 8px);
	overflow: hidden;
	/* WebKit does not clip a composited <video> to the rounded corners from
	   overflow alone; any mask forces the proper clip. */
	-webkit-mask-image: -webkit-radial-gradient(#fff, #000);
	mask-image: radial-gradient(#fff, #000);
	background: #182e27;
	padding: clamp(28px, 3vw, 48px) clamp(20px, 2.8vw, 44px);
	min-height: clamp(560px, 52vw, 800px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
}

.mki-svc::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(90deg, rgba(24, 46, 39, .82) 0, rgba(24, 46, 39, .66) 38%, rgba(24, 46, 39, .18) 66%, rgba(24, 46, 39, 0) 88%),
		linear-gradient(0deg, rgba(24, 46, 39, .3), transparent 45%);
}

.mki-svc > * { position: relative; z-index: 3 }
.mki-svc > .mki-svc__bg,
.mki-svc > .mki-svc__light,
.mki-svc > .mki-svc__video { position: absolute; inset: 0; z-index: 0 }

.mki-svc__bg {
	background-position: 50% 30%;
	background-size: cover;
	transform-origin: 78% 45%;
	animation: mkiKenburns 26s ease-in-out infinite alternate;
}

.mki-svc__light {
	z-index: 1 !important;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 200, .22) 45%, rgba(255, 236, 200, .05) 55%, transparent 70%);
	background-size: 250% 100%;
	mix-blend-mode: soft-light;
	animation: mkiSweep 14s ease-in-out infinite;
}

.mki-svc > .mki-svc__video {
	z-index: 1;
	left: 0;
	right: auto;
	width: 112%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	transform: scaleX(-1);
	opacity: 0;
	transition: opacity 1.2s ease;
}

.mki-svc.is-playing .mki-svc__video { opacity: 1 }

.mki-svc__title { color: #fff; max-width: 11em }

.mki-rows { list-style: none; margin: 0; padding: 0; max-width: 640px }

.mki-rows a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 32px;
	align-items: end;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, .35);
	text-decoration: none;
	color: #fff;
}

.mki-rows li:first-child a { border-top: 0 }
.mki-rows h3 { color: #fff; font-size: clamp(1.5rem, 2vw, 1.9rem); grid-column: 1 / -1 }
.mki-rows p { font: 400 .95rem/1.5 "Albert Sans", sans-serif; color: rgba(255, 255, 255, .78); max-width: 34em; margin: 0 }

.mki-rows__go {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .55);
	display: grid;
	place-items: center;
	color: #fff;
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.mki-rows__go svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 200ms ease;
}

.mki-rows a:hover .mki-rows__go { background: #fff; border-color: #fff; color: #182e27 }
.mki-rows a:hover .mki-rows__go svg { transform: translate(1.5px, -1.5px) }

@media (max-width: 820px) {
	.mki-svc > .mki-svc__video { left: 0; width: 100%; object-position: 40% 0 }
}

@keyframes mkiKenburns {
	0% { transform: scale(1) translate(0, 0) }
	100% { transform: scale(1.14) translate(-2.5%, 1.5%) }
}

@keyframes mkiSweep {
	0%, 100% { background-position: 100% 0 }
	50% { background-position: 0 0 }
}

@media (prefers-reduced-motion: reduce) {
	.mki-svc__bg, .mki-svc__light { animation: none }
}

/* ===== quotes ===== */
.mki-quotes {
	position: relative;
	z-index: 1;
	width: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
	color: #fff;
}

.mki-quotes__mark {
	width: 52px;
	height: 44px;
	stroke: rgba(255, 255, 255, .75);
	fill: none;
	stroke-width: 1;
}

.mki-quotes__stage {
	display: grid;
	width: 100%;
	touch-action: pan-y;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}

.mki-quotes__stage.is-dragging { cursor: grabbing }
.mki-quotes__stage.is-dragging .mki-quotes__item { transition: none }

.mki-quotes__item {
	grid-area: 1 / 1;
	/* The design keeps the browser's default figure margin (1em 40px): that is
	   what insets the quote on phones and spaces it vertically, so it stays. */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 400ms ease, visibility 400ms;
}

.mki-quotes__item.is-on { opacity: 1; visibility: visible }

.mki-quotes__item blockquote {
	/* Bricks styles bare blockquotes (Georgia, left padding, border); the design inherits body type. */
	font-family: inherit;
	font-style: normal;
	padding: 0;
	border: 0;
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2.4rem);
	line-height: 1.2;
	font-weight: 100;
	letter-spacing: -.015em;
	max-width: 26em;
	text-wrap: balance;
}

.mki-quotes__item cite {
	font: 400 .95rem/1.5 "Albert Sans", sans-serif;
	font-style: normal;
	color: rgba(255, 255, 255, .7);
}

.mki-quotes__dots { display: flex; gap: 8px }

.mki-quotes__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: background 200ms ease;
}

.mki-quotes__dots button[aria-selected="true"] { background: #fff }

/* ===== readmore ===== */
/* The wrapper is invisible to layout, so the hidden block and the toggle take part
   in the parent column's gap exactly like the two separate nodes in the design. */
.mki-more-wrap { display: contents }

.mki-more {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: -24px;
	transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1), margin-top .45s cubic-bezier(.4, 0, .2, 1);
	width: 100%;
	align-self: stretch;
}

.mki-more.is-open { grid-template-rows: 1fr; margin-top: 0 }

.mki-more__body {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mki-more__body p {
	max-width: 36em;
	font: 400 1rem/1.65 "Albert Sans", sans-serif;
	color: #3f4a45;
	margin: 0;
}

.mki-more__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 .35em;
	background: none;
	border: 0;
	border-bottom: 1px solid #578673;
	cursor: pointer;
	font: 500 .9rem/1 "Albert Sans", sans-serif;
	color: #182e27;
	transition: color 200ms ease;
}

.mki-more__toggle:hover { color: #578673 }

.mki-more__toggle svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .3s;
}

.mki-more__toggle[aria-expanded="true"] svg { transform: rotate(180deg) }

/* While open, the portrait beside the copy sticks so it stays in view. */
.mki-about.is-expanded .mki-about__img { position: sticky; top: 104px; align-self: start }

@media (max-width: 820px) {
	.mki-about.is-expanded .mki-about__img { position: relative; top: auto; height: auto !important }
}

/* ===== faq ===== */
.mki-faq { width: 100%; align-self: stretch }
.mki-faq details { border-top: 1px solid rgba(87, 134, 115, .35) }
.mki-faq details:first-child { border-top: 0 }
.mki-faq summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 24px 0;
	font-size: 1.2em;
	color: #182e27;
	line-height: 1.2;
}
.mki-faq summary::-webkit-details-marker { display: none }
.mki-faq summary::after {
	content: "";
	/* the design's * { box-sizing } reset never reaches pseudo-elements, so the
	   1px border sits outside the 34px box there - keep that */
	box-sizing: content-box;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #578673;
	background: transparent;
	transition: background 200ms ease, border-color 200ms ease;
}
.mki-faq summary::before {
	content: "";
	order: 2;
	position: absolute;
	right: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: #182e27;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform .3s ease, background 200ms ease;
	z-index: 1;
}
.mki-faq summary:hover::after { background: #578673; border-color: #578673 }
.mki-faq summary:hover::before { background: #fff }
.mki-faq details[open] summary::before { transform: rotate(90deg) }
/* faq.js keeps [open] until the closing animation ends: turn the arrow back at once */
.mki-faq details.is-closing summary::before { transform: none }
.mki-faq details p {
	padding-bottom: 28px;
	max-width: 40em;
	font: 400 1rem/1.65 "Albert Sans", sans-serif;
	color: #3f4a45;
	margin: 0;
}
@media (max-width: 820px) {
	.mki-faq details p { color: #2b3531 }
	.mki-faq summary { color: #132621 }
}

/* ===== custom select (contact form "Téma") ===== */
/* Built by site.js over the native select, which stays in the form but hidden. */
.mki-select { position: relative; width: 100% }
.mki-select > select { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none }
.mki-select__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 0; margin: 0; text-align: left; text-transform: none; letter-spacing: 0;
	font: 400 .95rem/1.3 "Albert Sans", sans-serif; color: #fcfcf4;
	background: rgba(252, 252, 244, .07); border: 1px solid rgba(252, 252, 244, .2); border-radius: 8px;
	padding: .85em 1em; cursor: pointer;
	transition: border-color 200ms ease, background 200ms ease;
}
.mki-select__btn:hover { border-color: rgba(252, 252, 244, .35) }
.mki-select__btn:focus-visible, .mki-select.is-open .mki-select__btn { outline: 0; border-color: #a9c7b8; background: rgba(252, 252, 244, .11) }
.mki-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mki-select__btn::after {
	content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px;
	border: solid #a9c7b8; border-width: 0 1.3px 1.3px 0;
	transform: translateY(-2px) rotate(45deg); transition: transform 250ms cubic-bezier(.4, 0, .2, 1);
}
.mki-select.is-open .mki-select__btn::after { transform: translateY(2px) rotate(-135deg) }
.mki-select__list {
	position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
	margin: 0; padding: 6px; list-style: none; max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
	background: #1d362e; border: 1px solid rgba(252, 252, 244, .14); border-radius: 12px; /* opaque: the field labels under it must not show through */
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 220ms;
}
.mki-select__list:focus { outline: 0 }
.mki-select.is-open .mki-select__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s }
.mki-select__opt {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0; padding: .7em .85em; border-radius: 8px;
	font: 400 .92rem/1.3 "Albert Sans", sans-serif; color: rgba(252, 252, 244, .82);
	cursor: pointer; transition: background 150ms ease, color 150ms ease;
}
.mki-select__opt.is-active { background: rgba(252, 252, 244, .08); color: #fcfcf4 }
.mki-select__opt[aria-selected="true"] { color: #fcfcf4 }
.mki-select__opt[aria-selected="true"]::after {
	content: ""; flex: none; width: 5px; height: 10px; margin-right: 4px;
	border: solid #a9c7b8; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -1px);
}
.ff-el-is-error .mki-select__btn { border-color: #e4a3a0 }
@media (prefers-reduced-motion: reduce) {
	.mki-select__btn, .mki-select__btn::after, .mki-select__list, .mki-select__opt { transition: none }
}
