/*
Theme Name: MyLivora
Theme URI: https://mylivora.local
Author: MyLivora Home
Author URI: https://mylivora.local
Description: Boutique co-living landing theme for MyLivora Home — converted from the Lovable HTML export. Warm olive/beige palette, single-page layout with rooms, FAQ, homeowners and contact sections.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mylivora
Tags: one-column, custom-menu, translation-ready
*/

/* ============================================================
   MyLivora custom layer (loaded after the Tailwind build CSS)
   ============================================================ */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

/* ---------- Fixed header states ---------- */
#site-header {
	background: transparent;
}
#site-header.is-scrolled {
	background: color-mix(in oklab, var(--beige, #f0ead2) 88%, white 12%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-color: var(--border, rgba(60, 60, 40, 0.12));
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	box-shadow: 0 10px 30px -18px rgba(40, 45, 20, 0.25);
}
body.admin-bar #site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar #site-header {
		top: 46px;
	}
}

/* ---------- Scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(38px);
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}
.reveal-left { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }
.reveal-scale { transform: scale(0.94); }
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal,
	.reveal-left,
	.reveal-right,
	.reveal-scale {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Resident stories marquee ---------- */
.stories-viewport { overflow: hidden; }
.stories-track {
	animation: mylivora-marquee 55s linear infinite;
}
.stories-viewport:hover .stories-track {
	animation-play-state: paused;
}
@keyframes mylivora-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.stories-track { animation: none; }
	.stories-viewport { overflow-x: auto; }
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}
.faq-answer > div { overflow: hidden; }
.faq-item.open .faq-answer {
	grid-template-rows: 1fr;
	opacity: 1;
	padding-bottom: 1.75rem;
}
.faq-icon { transition: transform 0.5s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Mobile menu ---------- */
.mylivora-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	background: color-mix(in oklab, var(--beige, #f0ead2) 94%, white 6%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.mylivora-mobile-menu.open {
	opacity: 1;
	pointer-events: auto;
}
.mylivora-mobile-menu a {
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--foreground, #2c2c20);
}
.mylivora-mobile-menu .menu-close {
	position: absolute;
	top: 1.6rem;
	right: 1.4rem;
}
body.menu-open { overflow: hidden; }

/* ---------- Floating label inputs ---------- */
.float-field {
	position: relative;
}
.float-field .float-label {
	position: absolute;
	left: 0;
	top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: color-mix(in oklab, var(--muted-foreground, #8a8a76) 70%, transparent);
	pointer-events: none;
	transform-origin: left top;
	transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, letter-spacing 0.3s ease;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.float-field .float-input:focus + .float-label,
.float-field .float-input:not(:placeholder-shown) + .float-label {
	top: -0.95rem;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary, #6b7150);
}
.float-field .float-input::placeholder {
	color: transparent;
}

/* ---------- reCAPTCHA (inline, above the submit button) ---------- */
.ml-recaptcha {
	display: block;
}
.ml-recaptcha .g-recaptcha {
	display: inline-block;
}
/* v3: badge is hidden while fixed in the corner, then relocated into the
   form (above the submit button) by main.js and shown inline there. */
.grecaptcha-badge {
	visibility: hidden;
}
.ml-recaptcha-v3 .grecaptcha-badge {
	visibility: visible !important;
	position: static !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0;
}

/* ---------- Contact form notice ---------- */
.mylivora-notice {
	margin-bottom: 1.5rem;
	border-radius: 0.9rem;
	padding: 0.9rem 1.2rem;
	font-size: 0.85rem;
	line-height: 1.6;
}
.mylivora-notice.sent {
	background: color-mix(in oklab, var(--sage, #b8c4a9) 30%, white 70%);
	color: var(--olive-deep, #3c422a);
}
.mylivora-notice.error {
	background: #f7e3e0;
	color: #7c3a30;
}

/* ---------- Homepage form: inline validation + AJAX result (assets/js/main.js) ---------- */
.ml-field-err {
	margin-top: 0.4rem;
	font-size: 0.72rem;
	line-height: 1.4;
	color: #a33d2d;
}
.ml-field-err:empty {
	display: none;
}
.float-field.has-error .float-input {
	border-color: #b4533b;
}
.float-field.has-error .float-label {
	color: #a33d2d;
}
.ml-form-status {
	margin-bottom: 0;
}
.ml-form-status[hidden] {
	display: none;
}
.mylivora-notice.ml-form-status:not(.sent):not(.error) {
	background: color-mix(in oklab, var(--beige, #efe9d5) 70%, white 30%);
	color: var(--olive-deep, #3c422a);
}
.ml-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ml-contact-form button[disabled] {
	cursor: progress;
}

/* ---------- Generic inner pages / 404 ---------- */
.mylivora-page-shell {
	padding-top: 11rem;
	padding-bottom: 6rem;
	min-height: 70vh;
}
.mylivora-prose h1,
.mylivora-prose h2,
.mylivora-prose h3 {
	font-family: inherit;
}
.mylivora-prose p + p { margin-top: 1rem; }
