/**
 * Thimu Avenues.
 *
 * Colour, type and spacing come from theme.json as CSS custom properties, so
 * everything here references var(--wp--preset--*) rather than hard-coded values.
 */

/* -------------------------------------------------------------------------
 * Primitives
 * ---------------------------------------------------------------------- */

:root {
	--thimu-gold: var(--wp--preset--color--gold);
	--thimu-ink: var(--wp--preset--color--contrast);
	--thimu-radius: 2px;
	--thimu-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--thimu-header-h: 78px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--thimu-header-h) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--gold-light);
	color: var(--thimu-ink);
}

:where(a, button, .thimu-chip):focus-visible {
	outline: 2px solid var(--thimu-gold);
	outline-offset: 3px;
	border-radius: var(--thimu-radius);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip link. */
.thimu-skip {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--thimu-ink);
	color: #fff;
	font-size: 0.9rem;
	transition: top 0.2s var(--thimu-ease);
}

.thimu-skip:focus {
	top: 1rem;
}

/* -------------------------------------------------------------------------
 * Images: LQIP-backed <picture>
 * ---------------------------------------------------------------------- */

.thimu-pic {
	display: block;
	position: relative;
	overflow: hidden;
	background-image: var(--thimu-lqip);
	background-size: cover;
	background-position: center;
}

.thimu-pic img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	animation: thimu-fade 0.6s var(--thimu-ease) both;
}

@keyframes thimu-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */

.thimu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	border: 1px solid transparent;
	border-radius: var(--thimu-radius);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--thimu-ease), background 0.25s var(--thimu-ease),
		color 0.25s var(--thimu-ease), box-shadow 0.25s var(--thimu-ease);
}

.thimu-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.thimu-btn--gold {
	background: var(--wp--preset--gradient--gold);
	color: #221a08;
	box-shadow: 0 6px 20px rgba(200, 155, 71, 0.28);
}

.thimu-btn--gold:hover {
	color: #221a08;
	box-shadow: 0 10px 30px rgba(200, 155, 71, 0.4);
}

.thimu-btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.06);
}

.thimu-btn--ghost:hover {
	background: #fff;
	color: var(--thimu-ink);
	border-color: #fff;
}

.thimu-btn--dark {
	background: var(--thimu-ink);
	color: #fff;
}

.thimu-btn--dark:hover {
	background: var(--wp--preset--color--gold-dark);
	color: #fff;
}

.thimu-btn--wide {
	width: 100%;
}

/* -------------------------------------------------------------------------
 * Eyebrows, badges, section furniture
 * ---------------------------------------------------------------------- */

.thimu-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
}

.thimu-eyebrow--rule::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--thimu-gold);
	flex: none;
}

.thimu-hero .thimu-eyebrow {
	color: var(--wp--preset--color--gold-light);
}

.thimu-badge {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	background: var(--wp--preset--gradient--gold);
	color: #221a08;
	border-radius: var(--thimu-radius);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
}

.thimu-badge--inline {
	margin-right: 0.25rem;
}

.thimu-note {
	padding: 1.25rem;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--thimu-radius);
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.thimu-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background 0.3s var(--thimu-ease), box-shadow 0.3s var(--thimu-ease);
}

/* Logged-in editors get the WP admin bar; keep the sticky header below it. */
.admin-bar .thimu-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .thimu-header {
		top: 46px;
	}
}

/* Over a hero the header is transparent, and it solidifies once you scroll. */
.thimu-header.is-over-hero:not(.is-scrolled) {
	background: transparent;
}

.thimu-header.is-over-hero:not(.is-scrolled) .wp-block-site-title a,
.thimu-header.is-over-hero:not(.is-scrolled) .wp-block-navigation a,
.thimu-header.is-over-hero:not(.is-scrolled) .thimu-header__phone {
	color: #fff;
}

.thimu-header:not(.is-over-hero),
.thimu-header.is-scrolled {
	background: rgba(250, 247, 242, 0.92);
	backdrop-filter: saturate(1.4) blur(12px);
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}

.thimu-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--thimu-ink);
	text-decoration: none;
	white-space: nowrap;
}

.thimu-header__phone svg {
	width: 16px;
	height: 16px;
	color: var(--thimu-gold);
}

.thimu-header__phone:hover {
	text-decoration: none;
	color: var(--wp--preset--color--gold-dark);
}

/* The site logo is gold on transparent, so it reads on both header states. */
.thimu-header .wp-block-site-logo img {
	height: 46px;
	width: auto;
}

.wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.5rem 0;
	position: relative;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--thimu-gold);
	transition: width 0.3s var(--thimu-ease);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content::after {
	width: 100%;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

/* Mobile overlay. */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--thimu-ink) !important;
	color: #fff;
	padding: 2rem 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open a {
	color: #fff !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.thimu-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(92vh, 900px);
	/* The hero carries the `alignfull` class (see thimu_sc_home_hero), which is
	   how WordPress's constrained layout lets a block escape the content column.
	   Fighting that with width:100vw only loses on specificity. */
	width: 100%;
	max-width: none;
	padding: calc(var(--thimu-header-h) + 4rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 6rem);
	overflow: hidden;
	isolation: isolate;
}

/* The hero slides up under the transparent header. WordPress's layout stylesheet
   zeroes the top margin of a container's first child, and wins on source order,
   so this is one of the few places !important is the honest answer. */
.thimu-hero {
	margin-block-start: calc(-1 * var(--thimu-header-h)) !important;
}

/* Sliding the hero up by the header's height is not quite enough on its own:
   WordPress also separates the header from <main> by the block gap (theme.json
   sets it to 1.5rem), and the negative margin above cancels only the header. The
   leftover 24px survives as a strip of page background across the top of the
   hero image — visible because the header over a hero is transparent. */
.wp-site-blocks > main:has(.thimu-hero) {
	margin-block-start: 0;
}

.admin-bar .thimu-hero {
	margin-block-start: calc(-1 * (var(--thimu-header-h) + 32px)) !important;
	padding-top: calc(var(--thimu-header-h) + 32px + 4rem);
}

.thimu-hero--project {
	min-height: min(78vh, 720px);
}

.thimu-hero__media,
.thimu-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.thimu-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--gradient--scrim);
}

.thimu-hero__inner {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	color: #fff;
	animation: thimu-rise 0.9s var(--thimu-ease) both;
}

@keyframes thimu-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.thimu-hero__title {
	max-width: 16ch;
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: balance;
}

.thimu-hero__sub {
	max-width: 52ch;
	margin: 0 0 2rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

.thimu-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
}

.thimu-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
}

.thimu-hero__scroll span {
	position: absolute;
	left: 50%;
	top: 9px;
	width: 3px;
	height: 7px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: #fff;
	animation: thimu-scroll 1.8s infinite;
}

@keyframes thimu-scroll {
	0% {
		opacity: 0;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
	}
	80% {
		opacity: 0;
		transform: translateY(14px);
	}
	100% {
		opacity: 0;
	}
}

/* -------------------------------------------------------------------------
 * Quick facts bar
 * ---------------------------------------------------------------------- */

.thimu-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
	background: var(--thimu-ink);
	color: #fff;
	border-radius: var(--thimu-radius);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Once the project hero scrolls away, the bar pins itself under the header. */
.admin-bar .thimu-facts.is-pinned {
	top: calc(var(--thimu-header-h) + 32px);
}

.thimu-facts.is-pinned {
	position: fixed;
	top: var(--thimu-header-h);
	left: 0;
	right: 0;
	z-index: 90;
	border-radius: 0;
	padding-block: 0.875rem;
	animation: thimu-drop 0.3s var(--thimu-ease) both;
}

@keyframes thimu-drop {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: none;
	}
}

.thimu-facts__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2.5rem;
	margin: 0;
}

.thimu-facts__item dt {
	margin: 0 0 0.3rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-light);
}

.thimu-facts__item dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}

.thimu-facts.is-pinned .thimu-facts__item dd {
	font-size: 1rem;
}

.thimu-facts__cta {
	flex: none;
	padding: 0.875rem 1.75rem;
}

@media (max-width: 900px) {
	.thimu-facts.is-pinned {
		display: none; /* The floating call/WhatsApp buttons cover this on mobile. */
	}
}

/* -------------------------------------------------------------------------
 * Shortcode sections inside a constrained container
 *
 * A shortcode's markup lands as a direct child of whatever block wrapped it, so
 * WordPress's constrained layout caps it at the 760px content width — which
 * squeezes card grids and amenity tiles into a narrow column. These sections are
 * meant to run to the wide width, the same as an `alignwide` block.
 * ---------------------------------------------------------------------- */

.is-layout-constrained > :is(
	.thimu-stats,
	.thimu-projects,
	.thimu-amenities,
	.thimu-gallery,
	.thimu-facts,
	.thimu-location,
	.thimu-brochure,
	.thimu-specs
) {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
}

/* -------------------------------------------------------------------------
 * Section shell
 * ---------------------------------------------------------------------- */

.thimu-section {
	padding-block: var(--wp--preset--spacing--50);
}

.thimu-section--tight {
	padding-block: var(--wp--preset--spacing--40);
}

.thimu-section--dark {
	background: var(--wp--preset--gradient--charcoal);
	color: #fff;
}

.thimu-section--dark :is(h1, h2, h3, h4) {
	color: #fff;
}

.thimu-section--dark p {
	color: rgba(255, 255, 255, 0.76);
}

.thimu-section--surface {
	background: var(--wp--preset--color--surface);
}

/* -------------------------------------------------------------------------
 * Stats strip
 * ---------------------------------------------------------------------- */

.thimu-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.thimu-stats__item {
	position: relative;
	padding-left: 1.5rem;
	border-left: 1px solid var(--wp--preset--color--line);
}

.thimu-section--dark .thimu-stats__item {
	border-left-color: rgba(255, 255, 255, 0.16);
}

.thimu-stats__value {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--gold-dark);
}

.thimu-section--dark .thimu-stats__value {
	color: var(--wp--preset--color--gold-light);
}

.thimu-stats__label {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.thimu-section--dark .thimu-stats__label {
	color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------
 * Project cards
 * ---------------------------------------------------------------------- */

.thimu-projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.thimu-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--thimu-radius);
	overflow: hidden;
	transition: transform 0.4s var(--thimu-ease), box-shadow 0.4s var(--thimu-ease),
		border-color 0.4s var(--thimu-ease);
}

.thimu-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: var(--wp--preset--shadow--lifted);
}

.thimu-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.thimu-card__link:hover {
	text-decoration: none;
	color: inherit;
}

.thimu-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--line);
}

.thimu-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--thimu-ease);
}

.thimu-card:hover .thimu-card__img {
	transform: scale(1.05);
}

.thimu-card__media .thimu-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
}

.thimu-card__body {
	padding: 1.75rem;
}

.thimu-card__title {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 600;
}

.thimu-card__location {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

.thimu-card__meta {
	margin: 0 0 1rem;
	padding-block: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.thimu-card__price {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--gold-dark);
}

.thimu-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--thimu-ink);
}

.thimu-card__cta::after {
	content: "→";
	transition: transform 0.3s var(--thimu-ease);
}

.thimu-card:hover .thimu-card__cta::after {
	transform: translateX(5px);
}

/* -------------------------------------------------------------------------
 * Amenities, highlights, specs, landmarks
 * ---------------------------------------------------------------------- */

.thimu-amenities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
}

.thimu-amenities__item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1.5rem 1.25rem;
	background: var(--wp--preset--color--surface);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: background 0.3s var(--thimu-ease);
}

.thimu-amenities__item:hover {
	background: var(--wp--preset--color--base);
}

.thimu-section--dark .thimu-amenities {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.1);
}

.thimu-section--dark .thimu-amenities__item {
	background: var(--wp--preset--color--contrast-soft);
	color: #fff;
}

.thimu-section--dark .thimu-amenities__item:hover {
	background: #262d38;
}

.thimu-icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--thimu-gold);
}

.thimu-highlights {
	display: grid;
	gap: 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.thimu-highlights li {
	position: relative;
	padding-left: 1.9rem;
	font-size: 1rem;
	line-height: 1.6;
}

.thimu-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--thimu-gold);
	border-bottom: 2px solid var(--thimu-gold);
	transform: rotate(-45deg);
}

.thimu-specs {
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.thimu-specs__row {
	display: grid;
	grid-template-columns: minmax(140px, 240px) 1fr;
	gap: 1rem 2rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.thimu-specs__row dt {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
}

.thimu-specs__row dd {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.thimu-section--dark .thimu-specs,
.thimu-section--dark .thimu-specs__row {
	border-color: rgba(255, 255, 255, 0.14);
}

.thimu-section--dark .thimu-specs__row dd {
	color: rgba(255, 255, 255, 0.76);
}

.thimu-location {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 900px) {
	.thimu-location {
		grid-template-columns: 340px 1fr;
		align-items: start;
	}
}

.thimu-location__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line);
}

.thimu-location__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 0.9375rem;
}

.thimu-location__distance {
	flex: none;
	font-weight: 600;
	color: var(--wp--preset--color--gold-dark);
}

.thimu-location__map {
	overflow: hidden;
	border-radius: var(--thimu-radius);
	box-shadow: var(--wp--preset--shadow--soft);
	/* Google's embed is a light map; a warm filter keeps it on-brand. */
	filter: saturate(0.9);
}

.thimu-location__map iframe {
	display: block;
}

/* -------------------------------------------------------------------------
 * Gallery + lightbox
 * ---------------------------------------------------------------------- */

.thimu-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.thimu-chip {
	padding: 0.6rem 1.25rem;
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: all 0.25s var(--thimu-ease);
}

.thimu-chip:hover {
	border-color: var(--thimu-gold);
	color: var(--thimu-ink);
}

.thimu-chip.is-active {
	background: var(--thimu-ink);
	border-color: var(--thimu-ink);
	color: #fff;
}

.thimu-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.thimu-gallery__item {
	margin: 0;
}

.thimu-gallery__item[hidden] {
	display: none;
}

.thimu-gallery__btn {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	overflow: hidden;
	border-radius: var(--thimu-radius);
}

.thimu-gallery__btn .thimu-pic {
	aspect-ratio: 4 / 3;
}

.thimu-gallery__btn img {
	height: 100%;
	transition: transform 0.6s var(--thimu-ease);
}

.thimu-gallery__btn:hover img {
	transform: scale(1.06);
}

.thimu-gallery__zoom {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(20, 24, 31, 0.45);
	opacity: 0;
	transition: opacity 0.3s var(--thimu-ease);
}

.thimu-gallery__zoom svg {
	width: 34px;
	height: 34px;
	color: #fff;
}

.thimu-gallery__btn:hover .thimu-gallery__zoom,
.thimu-gallery__btn:focus-visible .thimu-gallery__zoom {
	opacity: 1;
}

.thimu-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(12, 15, 20, 0.95);
	backdrop-filter: blur(4px);
	animation: thimu-fade 0.25s var(--thimu-ease);
}

.thimu-lightbox[hidden] {
	display: none;
}

.thimu-lightbox__img {
	max-width: 100%;
	max-height: 78vh;
	object-fit: contain;
	border-radius: var(--thimu-radius);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.thimu-lightbox__caption {
	margin-top: 1.25rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
}

.thimu-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background 0.25s var(--thimu-ease);
}

.thimu-lightbox__btn:hover {
	background: var(--thimu-gold);
	color: var(--thimu-ink);
	border-color: var(--thimu-gold);
}

.thimu-lightbox__close {
	top: 1.5rem;
	right: 1.5rem;
}

.thimu-lightbox__prev {
	left: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
}

.thimu-lightbox__next {
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.thimu-lightbox__prev {
		left: 0.75rem;
	}
	.thimu-lightbox__next {
		right: 0.75rem;
	}
}

/* -------------------------------------------------------------------------
 * Forms
 * ---------------------------------------------------------------------- */

.thimu-form-wrap {
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--thimu-radius);
	box-shadow: var(--wp--preset--shadow--soft);
}

.thimu-section--dark .thimu-form-wrap {
	background: var(--wp--preset--color--contrast-soft);
	border-color: rgba(255, 255, 255, 0.12);
}

.thimu-form__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.thimu-form__note {
	margin: 0 0 1.75rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.thimu-section--dark .thimu-form__note {
	color: rgba(255, 255, 255, 0.7);
}

.thimu-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.thimu-field {
	margin: 0;
}

.thimu-field--full {
	grid-column: 1 / -1;
}

.thimu-field label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.thimu-section--dark .thimu-field label {
	color: var(--wp--preset--color--gold-light);
}

.thimu-field :is(input, textarea) {
	width: 100%;
	padding: 0.9rem 1rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--thimu-radius);
	font-family: inherit;
	font-size: 1rem;
	color: var(--thimu-ink);
	transition: border-color 0.25s var(--thimu-ease), box-shadow 0.25s var(--thimu-ease);
}

.thimu-section--dark .thimu-field :is(input, textarea) {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.thimu-field :is(input, textarea):focus {
	outline: none;
	border-color: var(--thimu-gold);
	box-shadow: 0 0 0 3px rgba(200, 155, 71, 0.18);
}

.thimu-form__consent {
	margin: 1rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.thimu-section--dark .thimu-form__consent {
	color: rgba(255, 255, 255, 0.55);
}

/* The honeypot must be reachable by bots but invisible to people. */
.thimu-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.thimu-alert {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid;
	border-radius: var(--thimu-radius);
	font-size: 0.9375rem;
}

.thimu-alert--ok {
	border-color: #2e7d5b;
	background: rgba(46, 125, 91, 0.09);
	color: #1d5540;
}

.thimu-alert--error {
	border-color: #b4462f;
	background: rgba(180, 70, 47, 0.09);
	color: #8d3524;
}

/* -------------------------------------------------------------------------
 * Brochure
 * ---------------------------------------------------------------------- */

.thimu-brochure {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.thimu-brochure {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.thimu-brochure__title {
	margin: 0 0 0.75rem;
}

/* -------------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------------- */

.thimu-contact {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.75rem;
}

.thimu-contact__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--thimu-gold);
}

.thimu-contact li :is(a, address, span:not(.thimu-contact__label)) {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-style: normal;
	line-height: 1.5;
	color: inherit;
	text-decoration: none;
}

.thimu-contact a:hover {
	color: var(--thimu-gold);
	text-decoration: none;
}

.thimu-rera {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.thimu-rera span {
	color: inherit;
	word-break: break-word;
}

.thimu-section--dark .thimu-rera,
.thimu-footer .thimu-rera {
	color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.thimu-footer {
	background: var(--thimu-ink);
	color: rgba(255, 255, 255, 0.72);
}

.thimu-footer :is(h1, h2, h3, h4) {
	color: #fff;
}

.thimu-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.thimu-footer a:hover {
	color: var(--wp--preset--color--gold-light);
	text-decoration: none;
}

.thimu-footer .wp-block-site-logo img {
	height: 54px;
	width: auto;
}

.thimu-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------------
 * Floating call + WhatsApp
 * ---------------------------------------------------------------------- */

.thimu-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 95;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.thimu-float__btn {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(20, 24, 31, 0.28);
	transition: transform 0.25s var(--thimu-ease);
}

.thimu-float__btn:hover {
	transform: scale(1.08);
	text-decoration: none;
	color: #fff;
}

.thimu-float__btn svg {
	width: 26px;
	height: 26px;
}

.thimu-float__btn--wa {
	background: #25d366;
}

.thimu-float__btn--call {
	background: var(--wp--preset--gradient--gold);
	color: #221a08;
}

.thimu-float__btn--call:hover {
	color: #221a08;
}

.thimu-float__label {
	display: none;
}

/* On phones, the call button spans the bottom so it is unmissable. */
@media (max-width: 600px) {
	.thimu-float {
		right: 0;
		left: 0;
		bottom: 0;
		flex-direction: row;
		gap: 0;
	}

	.thimu-float__btn {
		flex: 1;
		width: auto;
		height: 58px;
		border-radius: 0;
		gap: 0.5rem;
		grid-auto-flow: column;
		box-shadow: 0 -4px 20px rgba(20, 24, 31, 0.2);
		font-size: 0.9375rem;
		font-weight: 600;
	}

	.thimu-float__btn:hover {
		transform: none;
	}

	.thimu-float__label {
		display: inline;
	}

	body {
		padding-bottom: 58px;
	}
}

/* -------------------------------------------------------------------------
 * Scroll reveal
 * ---------------------------------------------------------------------- */

[data-thimu-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--thimu-ease), transform 0.7s var(--thimu-ease);
}

[data-thimu-reveal].is-visible {
	opacity: 1;
	transform: none;
}

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

	[data-thimu-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
 * Editor
 * ---------------------------------------------------------------------- */

.editor-styles-wrapper .thimu-hero {
	margin-top: 0;
	min-height: 480px;
}
