/* Albizia Apartments Landing Page Base */

:root {
	--albizia-surface: #ffffff;
	--albizia-text: #212121;
	--albizia-muted: rgba(33, 33, 33, 0.6);
	--albizia-accent: #cf7e00;
	--albizia-accent-rgb: 207, 126, 0;
	--albizia-flower-pink: #f48fb1;
	--albizia-flower-pink-rgb: 244, 143, 177;
	--albizia-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--albizia-radius-lg: 24px;
	--albizia-radius-md: 16px;
	--albizia-radius-sm: 10px;
	--albizia-heading-xl: clamp(2rem, 3.6vw, 3.2rem);
	--albizia-highlight-bleed: 0.18em;
	--albizia-highlight-bleed-x2: 0.36em;
	--albizia-space-2: 0.5rem;
	--albizia-space-3: 0.75rem;
	--albizia-space-4: 1rem;
	--albizia-space-5: 1.25rem;
	--albizia-space-6: 1.5rem;
	--albizia-highlight-gradient: linear-gradient(
		105deg,
		transparent 0.5em,
		rgba(var(--albizia-flower-pink-rgb), 0.4) 0.5em,
		rgba(var(--albizia-flower-pink-rgb), 0.4) calc(100% - 0.5em),
		transparent calc(100% - 0.5em)
	);
	--albizia-line-gradient: linear-gradient(
		90deg,
		rgba(207, 126, 0, 0) 0%,
		rgba(207, 126, 0, 0.75) 12%,
		#cf7e00 50%,
		rgba(207, 126, 0, 0.75) 88%,
		rgba(207, 126, 0, 0) 100%
	);
	--albizia-bento-glow-color: rgba(207, 126, 0, 0.86);
	--albizia-bento-glow-size: clamp(160px, 30vw, 380px);
	--albizia-bento-glow-blur: 38px;
}

@media (max-width: 1024px) {
	:root {
		--albizia-heading-xl: clamp(2.3rem, 4.2vw, 3rem);
	}
}

@media (max-width: 720px) {
	:root {
		--albizia-heading-xl: clamp(1.9rem, 6vw, 2.45rem);
	}
}

.albizia-highlight {
	/* Inline keeps multi-line wrap; padding lifts the line box to avoid iOS clipping */
	position: relative;
	display: inline;
	background-image: var(--albizia-highlight-gradient);
	background-size: 0% 80%;
	background-repeat: no-repeat;
	background-position: calc(-1 * var(--albizia-highlight-bleed)) 82%;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 0.06em 0.45em 0.04em;
	margin: 0 -0.45em;
	border-radius: 0.15em;
	transition: background-size 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.albizia-highlight.is-visible {
	background-size: calc(100% + var(--albizia-highlight-bleed-x2)) 80%;
}

.albizia-highlight--looping {
	position: relative;
	display: inline;
	background-image: none;
	padding: 0.06em 0.45em 0.04em;
	margin: 0 -0.45em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	isolation: isolate;
	z-index: 0;
}

.albizia-highlight--looping::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--albizia-highlight-gradient);
	background-repeat: no-repeat;
	background-size: calc(100% + var(--albizia-highlight-bleed-x2)) 80%;
	background-position: calc(-1 * var(--albizia-highlight-bleed)) 82%;
	border-radius: inherit;
	transform: translateY(0) scaleX(0) scaleY(0.9);
	transform-origin: left center;
	opacity: 0;
	z-index: -1;
	transition: none;
}

.albizia-highlight--looping.is-visible::after {
	animation: albizia-highlight-loop 4.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes albizia-highlight-loop {
	0% {
		transform: translateY(0) scaleX(0) scaleY(0.9);
		transform-origin: left center;
		opacity: 0;
	}
	15% {
		transform: translateY(0) scaleX(0) scaleY(0.9);
		transform-origin: left center;
		opacity: 1;
	}
	45% {
		transform: translateY(0) scaleX(1) scaleY(0.9);
		transform-origin: left center;
		opacity: 1;
	}
	60% {
		transform: translateY(0) scaleX(1) scaleY(0.9);
		transform-origin: left center;
		opacity: 1;
	}
	61% {
		transform: translateY(0) scaleX(1) scaleY(0.9);
		transform-origin: right center;
		opacity: 1;
	}
	80% {
		transform: translateY(0) scaleX(0.45) scaleY(0.9);
		transform-origin: right center;
		opacity: 0.25;
	}
	100% {
		transform: translateY(0) scaleX(0) scaleY(0.9);
		transform-origin: right center;
		opacity: 0;
	}
}

/* Animation Base Class */
.albizia-animate-fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.albizia-animate-fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.albizia-animate-fade-in {
		transition: none;
		opacity: 1;
		transform: none;
	}

	.albizia-highlight--looping::after {
		animation: none;
		opacity: 1;
		transform: translateY(0) scaleX(1) scaleY(0.9);
	}
}

@font-face {
	font-family: "Assassin";
	src: url("../fonts/Assassin$.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

.albizia-landing-page *,
.albizia-landing-page *::before,
.albizia-landing-page *::after {
	box-sizing: border-box;
}

.albizia-landing-page {
	margin: 0;
	padding: 0;
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	line-height: 1.6;
	background: var(--albizia-surface);
	color: var(--albizia-text);
}

.albizia-landing-page #page,
.albizia-landing-page .wp-site-blocks {
	margin: 0;
	padding: 0;
}

/* Shared slider dots */
.albizia-landing-bento__pagination,
.albizia-amenities__pagination,
.albizia-welcome-baden__pagination,
.albizia-testimonials__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--albizia-space-3);
	margin-top: var(--albizia-space-4);
}

.albizia-landing-bento__dot,
.albizia-amenities__dot,
.albizia-welcome-baden__dot,
.albizia-testimonials__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(23, 23, 23, 0.2);
	border: 1px solid rgba(23, 23, 23, 0.2);
	transition: transform 0.2s var(--albizia-ease),
		background-color 0.2s var(--albizia-ease),
		border-color 0.2s var(--albizia-ease);
	padding: 0;
	line-height: 1;
}

.albizia-landing-bento__dot--active,
.albizia-amenities__dot--active,
.albizia-welcome-baden__dot--active,
.albizia-testimonials__dot--active {
	background-color: #171717;
	border-color: #171717;
	transform: scale(1.1);
}

.albizia-logo {
	display: inline-flex;
	align-items: center;
}

/* Logo / top bar */
.albizia-top-bar__logo {
	text-decoration: none;
}

.albizia-top-bar__logo:hover {
	opacity: 0.9;
}

.albizia-top-bar__logo-picture {
	display: flex;
}

.albizia-top-bar__logo-image {
	display: block;
	width: auto;
	height: 82px;
	margin-top: 4px;
	transition: opacity 0.3s var(--albizia-ease);
}

.albizia-top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 76px;
	padding: 0 16px;
	background: transparent;
	box-shadow: none;
	transition:
		box-shadow 0.4s var(--albizia-ease);
	z-index: 999998;
}

.albizia-top-bar__inner {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	position: relative;
}

.albizia-top-bar--visible {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 12px 32px rgba(33, 33, 33, 0.08);
}

.albizia-language-switcher {
	position: absolute;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	z-index: 20;
}

.albizia-language-switcher__toggle {
	appearance: none;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(33, 33, 33, 0.08);
	border-radius: 999px;
	padding: 8px 18px;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
	color: var(--albizia-text);
	box-shadow: 0 12px 30px rgba(33, 33, 33, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: all 0.3s var(--albizia-ease);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

.albizia-language-switcher:hover .albizia-language-switcher__toggle {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.albizia-language-switcher.is-open .albizia-language-switcher__toggle {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.albizia-language-switcher__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.albizia-language-switcher__flag svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.albizia-language-switcher__arrow {
	margin-left: 2px;
	opacity: 0.6;
	transition: transform 0.3s var(--albizia-ease);
}

.albizia-language-switcher.is-open .albizia-language-switcher__arrow {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.albizia-language-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 8px;
	min-width: 150px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s var(--albizia-ease);
	border: 1px solid rgba(0, 0, 0, 0.05);
	pointer-events: none;
}

.albizia-language-switcher.is-open .albizia-language-switcher__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.albizia-language-switcher__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--albizia-text);
	transition: background 0.2s var(--albizia-ease);
	font-size: 0.9rem;
}

.albizia-language-switcher__item:hover {
	background: rgba(0, 0, 0, 0.04);
}

.albizia-language-switcher__item.is-active {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 700;
}

/* Accessibility: Focus styles for keyboard navigation */
.albizia-top-bar__logo:focus {
	outline: 2px solid var(--albizia-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.albizia-top-bar__logo:focus:not(:focus-visible) {
	outline: none;
}

.albizia-top-bar__logo:focus-visible {
	outline: 2px solid var(--albizia-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.albizia-language-switcher__toggle:focus {
	outline: 2px solid var(--albizia-accent);
	outline-offset: 2px;
}

.albizia-language-switcher__toggle:focus:not(:focus-visible) {
	outline: none;
}

.albizia-language-switcher__toggle:focus-visible {
	outline: 2px solid var(--albizia-accent);
	outline-offset: 2px;
}

.albizia-language-switcher__item:focus {
	outline: none;
	background: rgba(var(--albizia-accent-rgb), 0.12);
}

.albizia-language-switcher__item:focus-visible {
	outline: none;
	background: rgba(var(--albizia-accent-rgb), 0.12);
}

.albizia-top-bar--visible .albizia-language-switcher__toggle {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.albizia-top-bar--visible .albizia-language-switcher:hover .albizia-language-switcher__toggle,
.albizia-top-bar--visible .albizia-language-switcher.is-open .albizia-language-switcher__toggle {
	background: rgba(0,0,0,0.03);
}

@media (max-width: 640px) {
	.albizia-language-switcher {
		left: 12px;
	}

	.albizia-language-switcher__toggle {
		padding: 6px 14px;
		font-size: 0.8rem;
	}

	.albizia-language-switcher__menu {
		min-width: 130px;
	}

	.albizia-language-switcher__item {
		font-size: 0.8rem;
		padding: 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.admin-bar .albizia-hero-fullscreen {
	height: calc(100vh - 32px);
	height: calc(100dvh - 32px);
}

.admin-bar .albizia-top-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .albizia-hero-fullscreen {
		min-height: auto;
		height: auto;
		margin-top: 0;
	}

	.admin-bar .albizia-top-bar {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.albizia-top-bar {
		height: 76px;
		padding: 0 12px;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.albizia-top-bar__inner {
		padding-right: 0;
	}

	.albizia-top-bar__logo-image {
		height: 82px;
		margin-top: 4px;
	}

	.albizia-top-bar--visible {
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 12px 32px rgba(33, 33, 33, 0.08);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
}
