/*
Theme Name: Leeya & Rouma
Theme URI: https://leeyarouma.com
Author: Leeya & Rouma
Description: A warm, editorial bilingual block theme for Leeya and Rouma.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: leeyarouma
*/

:root {
	--ly-radius-sm: 0.75rem;
	--ly-radius: 1.5rem;
	--ly-shadow: 0 1.25rem 3.5rem rgba(45, 37, 41, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 3px solid #7b2348;
	outline-offset: 4px;
}

.wp-site-blocks {
	overflow: clip;
}

.ly-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(123, 35, 72, 0.14);
}

.ly-header-inner,
.ly-nav,
.ly-language-switcher,
.ly-social-links {
	display: flex;
	align-items: center;
}

.ly-header-inner {
	gap: 1rem;
	justify-content: space-between;
}

.ly-wordmark {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.35rem, 4vw, 1.8rem);
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.ly-nav {
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	justify-content: center;
}

.ly-nav a,
.ly-language-switcher a {
	color: var(--wp--preset--color--contrast);
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: none;
}

.ly-language-switcher {
	gap: 0.25rem;
	padding: 0.25rem;
	border: 1px solid rgba(123, 35, 72, 0.2);
	border-radius: 999px;
}

.ly-language-switcher a {
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
}

.ly-language-switcher .is-current {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
}

.ly-hero {
	min-height: clamp(36rem, 78svh, 52rem);
	background-position: 62% center;
}

.ly-hero .wp-block-cover__image-background {
	object-position: 62% center;
}

.ly-hero-copy {
	max-width: 39rem;
	padding: clamp(1.5rem, 5vw, 4rem);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--ly-radius);
	background: rgba(255, 248, 251, 0.9);
	box-shadow: var(--ly-shadow);
	backdrop-filter: blur(12px);
	color: var(--wp--preset--color--contrast);
}

.ly-eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ly-card {
	height: 100%;
	border: 1px solid rgba(123, 35, 72, 0.12);
	border-radius: var(--ly-radius);
	box-shadow: 0 0.75rem 2.5rem rgba(45, 37, 41, 0.07);
}

.ly-pill {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--berry);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ly-gallery img {
	aspect-ratio: 1 / 1;
	border-radius: var(--ly-radius-sm);
	object-fit: cover;
}

.ly-cta {
	border-radius: var(--ly-radius);
}

.ly-form {
	display: grid;
	gap: 1rem;
}

.ly-form label {
	display: grid;
	gap: 0.4rem;
	font-weight: 650;
}

.ly-form input,
.ly-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(123, 35, 72, 0.3);
	border-radius: 0.65rem;
	background: #fff;
	color: #2d2529;
	font: inherit;
}

.ly-form button {
	width: fit-content;
	padding: 0.8rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: #b8336a;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ly-honeypot {
	position: absolute;
	left: -9999px;
}

.ly-social-links {
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ly-social-links a {
	color: inherit;
}

.ly-site-footer {
	border-top: 1px solid rgba(123, 35, 72, 0.14);
}

@media (max-width: 781px) {
	.ly-header-inner {
		display: grid !important;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.ly-header-inner > .wp-block-group {
		display: grid !important;
		grid-column: 1 / -1;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.ly-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem 1rem;
		justify-content: stretch;
		margin-top: 0.75rem;
	}

	.ly-language-switcher {
		justify-self: start;
		margin-top: 0.75rem;
	}

	.ly-hero {
		align-items: flex-end !important;
		min-height: 42rem;
		background-position: 67% center;
	}

	.ly-hero .wp-block-cover__image-background {
		object-position: 82% center;
	}

	.ly-hero .wp-block-cover__inner-container {
		width: 100vw !important;
		max-width: 100vw !important;
	}

	.ly-hero .wp-block-group.alignwide {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.ly-hero-copy {
		width: auto !important;
		max-width: none !important;
		margin: 1rem !important;
		padding: 1.5rem !important;
	}
}

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

	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
