/* Lotus Villa — front-end styles. Colours, fonts and sizes live in theme.json. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.lv-header-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--cream);
	transition: background-color .35s ease, box-shadow .35s ease;
}
.admin-bar .lv-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .lv-header-wrap { top: 46px; } }

/* Transparent header over the hero/cover on home and room pages */
.lv-header-wrap.is-overlay {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
}
.lv-header-wrap.is-overlay:not(.is-scrolled) .lv-header__contact a,
.lv-header-wrap.is-overlay:not(.is-scrolled) .wp-block-navigation__responsive-container-open { color: #fff; }
.lv-header-wrap.is-scrolled {
	background: var(--wp--preset--color--cream);
	box-shadow: 0 1px 0 rgba(72, 64, 54, .1);
}
.lv-header-wrap.is-scrolled .lv-header { padding-top: .6rem !important; padding-bottom: .6rem !important; }
.lv-header { transition: padding .35s ease; }

.lv-header__bar {
	grid-template-columns: 1fr auto 1fr !important;
	align-items: center;
	gap: 1rem;
}
.lv-header__contact { margin: 0; }
.lv-header__contact a { color: var(--wp--preset--color--espresso); }
.lv-header__logo { margin: 0 !important; justify-self: center; }
.lv-header__logo img { width: clamp(52px, 7vw, 70px); }
.lv-header__menu { justify-self: end; }

/* "MENU" label next to the hamburger */
.lv-header__menu .wp-block-navigation__responsive-container-open {
	display: inline-flex !important;
	align-items: center;
	gap: .75rem;
	color: var(--wp--preset--color--espresso);
}
.lv-header__menu .wp-block-navigation__responsive-container-open::before {
	content: "Menu";
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Full-screen overlay menu */
.lv-header__menu .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--espresso) !important;
	color: var(--wp--preset--color--cream) !important;
	padding: clamp(1.5rem, 5vw, 4rem);
}
.lv-header__menu .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center !important;
	justify-content: center;
	min-height: 80vh;
}
.lv-header__menu .is-menu-open .wp-block-navigation__container {
	align-items: center !important;
	gap: 1.1rem !important;
}
.lv-header__menu .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
	color: var(--wp--preset--color--cream) !important;
	transition: color .25s ease;
}
.lv-header__menu .is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bronze) !important; }
.lv-header__menu .is-menu-open .wp-block-navigation-submenu .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .8;
}
.lv-header__menu .is-menu-open .wp-block-navigation__submenu-container {
	align-items: center !important;
	padding: .75rem 0 0 !important;
	gap: .5rem;
}
.lv-header__menu .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--cream); }

/* ---------- Hero slider ---------- */
.lv-hero {
	position: relative;
	height: 100vh;
	min-height: 520px;
	overflow: hidden;
	background: var(--wp--preset--color--black);
	margin-top: 0 !important;
}
.lv-hero__slides { position: absolute; inset: 0; margin: 0 !important; }
.lv-hero__slide {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.lv-hero__slide:first-child,
.lv-hero__slide.is-active { opacity: 1; }
.lv-hero.is-ready .lv-hero__slide:not(.is-active) { opacity: 0; }
.lv-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 7s ease-out;
}
.lv-hero__slide.is-active img { transform: scale(1); }
.lv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(30, 26, 22, .45) 0%, rgba(30, 26, 22, .25) 45%, rgba(30, 26, 22, .5) 100%);
	pointer-events: none;
}
.lv-hero__content {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 !important;
	padding-inline: 1.5rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.lv-hero__dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 2.25rem;
	transform: translateX(-50%);
	display: flex;
	gap: .6rem;
	margin: 0 !important;
}
.lv-hero__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color .3s ease, transform .3s ease;
}
.lv-hero__dots button[aria-current="true"] { background: #fff; transform: scale(1.2); }

/* ---------- Typography helpers ---------- */
.is-style-lv-script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(4rem, 9vw, 7.5rem);
	line-height: .8;
	color: var(--wp--preset--color--taupe);
	opacity: .75;
	margin-bottom: -.15em !important;
}
.is-style-lv-eyebrow,
.lv-rule {
	font-family: var(--wp--preset--font-family--jost) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 600 !important;
	letter-spacing: .15em !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe);
}
.lv-rule { display: flex; align-items: center; gap: 1.25rem; }
.lv-rule::after { content: ""; flex: 1; height: 1px; background: rgba(72, 64, 54, .18); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.is-style-lv-light .wp-block-button__link {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--espresso);
	border: 1px solid rgba(72, 64, 54, .12);
}
.is-style-lv-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
}
.is-style-lv-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
}
.is-style-lv-ghost .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--bronze);
	border-color: #fff;
}

/* ---------- Photos ---------- */
.lv-tall img { aspect-ratio: 5 / 7; object-fit: cover; width: 100%; }
.lv-wide-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.lv-room .wp-block-post-featured-image,
.lv-wide-photo,
.lv-tall { overflow: hidden; }
.lv-room .wp-block-post-featured-image img,
.lv-wide-photo img,
.lv-tall img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.lv-room:hover .wp-block-post-featured-image img,
.lv-wide-photo:hover img,
.lv-tall:hover img { transform: scale(1.04); }

/* ---------- Rooms grid (staggered) ---------- */
.lv-rooms { margin-top: var(--wp--preset--spacing--50) !important; }
.lv-rooms .wp-block-post-template.is-layout-grid {
	column-gap: clamp(1.5rem, 6vw, 6rem);
	row-gap: var(--wp--preset--spacing--60);
}
@media (min-width: 782px) {
	.lv-rooms:not(.lv-rooms--compact) .wp-block-post-template > li:nth-child(even) { margin-top: clamp(4rem, 12vw, 11rem); }
}
.lv-room .wp-block-post-title a { color: var(--wp--preset--color--espresso); }
.lv-room__excerpt .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 1.25rem 3.4rem;
	border: 1px solid rgba(72, 64, 54, .12);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--wp--preset--color--espresso);
	transition: background-color .3s ease, color .3s ease;
}
.lv-room__excerpt .wp-block-post-excerpt__more-link:hover {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
}
.lv-rooms--compact .wp-block-post-title { font-size: 1.5rem; margin-top: 1rem; }

/* ---------- Room page (MotoPress output) ---------- */
.lv-room-single .wp-block-cover { margin-top: 0 !important; }
.lv-room-content .mphb_room_type_gallery_wrapper,
.lv-room-content .mphb-room-type-gallery-wrapper { margin-block: 2rem; }
.lv-room-content .mphb-details-title,
.lv-room-content .mphb-calendar-title,
.lv-room-content .mphb-reservation-form-title {
	font-family: var(--wp--preset--font-family--marcellus);
	color: var(--wp--preset--color--espresso);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	margin-top: var(--wp--preset--spacing--50);
}
.lv-room-content .mphb-single-room-type-attributes { list-style: none; padding: 0; display: grid; gap: .5rem; }
.lv-room-content .mphb-booking-form,
.lv-room-content .mphb_sc_search-form {
	background: var(--wp--preset--color--sand);
	padding: clamp(1.25rem, 4vw, 2.5rem);
}
.lv-room-content input[type="text"],
.lv-room-content input[type="email"],
.lv-room-content input[type="tel"],
.lv-room-content select,
.lv-room-content textarea,
.mphb_sc_checkout-form input,
.mphb_sc_checkout-form select,
.mphb_sc_checkout-form textarea {
	width: 100%;
	max-width: 420px;
	padding: .8rem 1rem;
	border: 1px solid rgba(72, 64, 54, .2);
	background: #fff;
	font: inherit;
	color: var(--wp--preset--color--espresso);
}
.lv-room-content .button,
.lv-room-content input[type="submit"],
.mphb_sc_checkout-form .button,
.mphb_sc_checkout-form input[type="submit"] {
	padding: 1.1rem 3rem;
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}
.lv-room-content .button:hover,
.lv-room-content input[type="submit"]:hover { background: var(--wp--preset--color--bronze); }

/* ---------- Footer ---------- */
.lv-footer { margin-top: 0 !important; }
.lv-footer__logo img { filter: brightness(0) invert(1); opacity: .95; }
.lv-footer__links { list-style: none; padding: 0; text-align: center; display: grid; gap: .35rem; }
.lv-footer a:hover { opacity: .75; }

/* ---------- Contact ---------- */
.lv-contact-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.lv-map { position: relative; aspect-ratio: 4 / 3; }
.lv-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.15); }

/* ---------- Scroll reveal ---------- */
.lv-js .lv-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.lv-js .lv-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.lv-js .lv-reveal { opacity: 1; transform: none; transition: none; }
	.lv-hero__slide img { transform: none !important; transition: none; }
	html { scroll-behavior: auto; }
}

/* Editor: keep everything visible and the hero tidy */
.editor-styles-wrapper .lv-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .lv-hero { height: 70vh; }
.editor-styles-wrapper .lv-hero__slide:not(:first-child) { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.lv-header__contact { font-size: 10px !important; }
	.wp-block-button__link { padding: 1.1rem 2.2rem !important; }
	.lv-hero__content p { font-size: 1.05rem !important; }
}

/* ---------- Inner pages ---------- */
.lv-banner { margin-top: 0 !important; }
.lv-banner .wp-block-cover__inner-container { max-width: 900px; margin-inline: auto; }
.lv-highlights { gap: clamp(1.5rem, 4vw, 3rem) !important; }
.lv-highlights > .wp-block-column {
	border-top: 1px solid rgba(72, 64, 54, .18);
	padding-top: 1.5rem;
}
.lv-highlights h3 { margin-top: .5rem; }
.lv-highlight__num {
	margin: 0;
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: 2.2rem;
	line-height: 1;
	color: var(--wp--preset--color--taupe);
}
.lv-card {
	background: var(--wp--preset--color--sand);
	padding: clamp(1.75rem, 4vw, 3rem);
}
.lv-ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem 1.5rem; }
.lv-ticks li { padding-left: 1.4rem; position: relative; }
.lv-ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7rem; height: 1px; background: var(--wp--preset--color--bronze); }
@media (min-width: 782px) {
	.lv-flip { flex-direction: row-reverse; }
}
