/*
Ruler Digital Agency 
https://www.ruler.agency
Copyright 2023, RULER SMPC. All rights reserved.
Version: 1.0
*/
.unit-wrap, .facility-wrap {
	max-width: 100%;
	width: 100%;
}
.location sup {
    top: -.7em;
}
#languages.button li a.wpml-ls-link {
    line-height: 60px;
}

/* Home hero - scrim overlay for headline legibility */
#home-hero .hero-carousel-file::after,
#home-hero #home-hero-image::after,
#home-hero .home-hero-file::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.35);
	pointer-events: none;
	z-index: 0;
}
#home-hero .hero-carousel-title,
#home-hero .hero-carousel-title p,
#home-hero #home-hero-title,
#home-hero #home-hero-title p {
	color: #fff;
	text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------
   Developments section - "cover" opener over the full-bleed render.
   Markup is the theme's own (full_image_dynamic_carousel layout):
     #dynamic-carousel-title  -> <p>eyebrow</p> + <h2>statement</h2>  (ACF title field)
     .dynamic-carousel-image-img / -content / -navigation  (Swiper slides)
   Fonts stay under Elysian Settings -> Typography (no font-family here).
   ------------------------------------------------------------------ */
#home-dynamic-carousel-full-image {
	padding-top: 0;
}

/* Title block lifted out of flow and laid over the first render.
   Root font-size on this theme is 20px: 1rem = 20px. */
#home-dynamic-carousel-full-image #dynamic-carousel-title {
	position: absolute !important;   /* wrapper carries Bootstrap .position-relative (!important) */
	top: 0;
	left: 0;
	z-index: 2;
	max-width: 62%;
	margin-bottom: 0;
	padding: 6vh 50px 0 50px;   /* left aligns with .dynamic-carousel-image-content { left: 50px } */
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}
#home-dynamic-carousel-full-image #dynamic-carousel-title h2,
#home-dynamic-carousel-full-image #dynamic-carousel-title h2 em {
	color: #fff;   /* theme Typography sets h2 colour directly; inheritance is not enough */
}
/* Eyebrow: section name in the body face (Hamlin), small tracked caps with a rule.
   The wrapper's .main-heading class would otherwise push the heading serif onto it. */
#home-dynamic-carousel-full-image #dynamic-carousel-title p {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 clamp(90px, 20vh, 220px);   /* puts the statement at ~28% of the slide */
	font-family: 'Hamlin', sans-serif;
	font-size: 0.6rem;                      /* 12px */
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
}
#home-dynamic-carousel-full-image #dynamic-carousel-title p::before {
	content: "";
	flex: 0 0 auto;
	display: inline-block;
	width: 34px;
	height: 1px;
	background: rgba(255, 255, 255, 0.78);
}
/* Statement: two lines, serif light, left-set. Width comes from the wrapper (62%),
   not a character cap, so it breaks like the mock. */
#home-dynamic-carousel-full-image #dynamic-carousel-title h2 {
	margin: 0;
	max-width: none;
	font-size: clamp(1.6rem, 4.9vw, 3.4rem);   /* 32px – 68px */
	line-height: 1.04;
	font-weight: 300;
	letter-spacing: -0.005em;
	text-transform: none;
	text-wrap: balance;
}
#home-dynamic-carousel-full-image #dynamic-carousel-title h2 em {
	font-style: italic;
	font-weight: 300;
}

/* Render: scrim top + bottom for legibility, slow scale on the active slide */
#home-dynamic-carousel-full-image .dynamic-carousel-image-img::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	/* Two layers: a left-to-right wash under the statement (which sits top-left, ~28% down),
	   plus top/bottom bands for the eyebrow, caption and index. Right half stays clear. */
	background:
		linear-gradient(90deg,
			rgba(0, 0, 0, 0.55) 0%,
			rgba(0, 0, 0, 0.32) 38%,
			rgba(0, 0, 0, 0.08) 62%,
			rgba(0, 0, 0, 0)    80%),
		linear-gradient(180deg,
			rgba(0, 0, 0, 0.30) 0%,
			rgba(0, 0, 0, 0)    30%,
			rgba(0, 0, 0, 0)    58%,
			rgba(0, 0, 0, 0.60) 100%);
}
@media (max-width: 991px) {
	/* statement spans the full width on small screens: darken the upper half instead */
	#home-dynamic-carousel-full-image .dynamic-carousel-image-img::after {
		background: linear-gradient(180deg,
			rgba(0, 0, 0, 0.58) 0%,
			rgba(0, 0, 0, 0.35) 45%,
			rgba(0, 0, 0, 0.05) 62%,
			rgba(0, 0, 0, 0.60) 100%);
	}
}
@keyframes elysianDevReveal {
	from { transform: scale(1); }
	to   { transform: scale(1.06); }
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-img img {
	transform-origin: 55% 45%;
}
#home-dynamic-carousel-full-image .swiper-slide-active .dynamic-carousel-image-img img {
	animation: elysianDevReveal 9s ease-out forwards;
}

/* Caption: project name + meta, bottom-left (theme positions it at left:50px / bottom:150px) */
#home-dynamic-carousel-full-image .dynamic-carousel-image-content h3.main-heading {
	margin-bottom: 0.4rem;
	font-size: clamp(1rem, 1.7vw, 1.3rem);   /* 20px – 26px */
	line-height: 1.2;
	font-weight: 300;
	letter-spacing: 0.06em;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-content h3.main-heading a {
	color: #fff;
}
/* The theme prints <p class="big-text"><p>…</p></p>; the browser splits that into
   sibling <p>s, so the meta text lives in a bare <p> — style every p, hide the empty ones. */
#home-dynamic-carousel-full-image .dynamic-carousel-image-content p {
	margin: 0;
	font-family: 'Hamlin', sans-serif;
	font-size: 0.6rem;                       /* 12px */
	line-height: 1.6;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-content p:empty {
	display: none;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-content p strong {
	color: #fff;
	font-weight: 500;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-content .project-status {
	width: 8px;
	height: 8px;
	vertical-align: 1px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* Slide index "01 — 04", injected by js/custom.js into the theme's navigation wrapper */
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .dev-carousel-index {
	align-self: center;
	margin-right: 18px;
	font-family: 'Hamlin', sans-serif;
	font-size: 0.65rem;                      /* 13px */
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.72);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .dev-carousel-index b {
	color: #fff;
	font-weight: 500;
}

/* Navigation: quiet outlined circles instead of the 90px white discs */
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-prev,
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-next {
	width: 48px;
	height: 48px;
	padding: 14px;
	margin: 0 0 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background-color: transparent;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-disabled {
	opacity: 0.35;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-prev svg,
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-next svg {
	fill: #fff;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-prev:hover,
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-next:hover {
	background-color: #fff;
	border-color: #fff;
}
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-prev:hover svg,
#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-next:hover svg {
	fill: #000;
}

@media (max-width: 991px) {
	/* theme caps the slide at 50vh here and moves the caption to left:25px / bottom:100px */
	#home-dynamic-carousel-full-image #dynamic-carousel-title {
		max-width: 100%;
		padding: 3vh 25px 0 25px;
	}
	#home-dynamic-carousel-full-image #dynamic-carousel-title p {
		margin-bottom: 3vh;
		font-size: 0.65rem;
	}
	#home-dynamic-carousel-full-image #dynamic-carousel-title h2 {
		max-width: 100%;
		font-size: clamp(1.5rem, 6vw, 2.2rem);
	}
	#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-prev,
	#home-dynamic-carousel-full-image .dynamic-carousel-image-navigation .swiper-button-next {
		width: 40px;
		height: 40px;
		padding: 11px;
	}
}
@media (prefers-reduced-motion: reduce) {
	#home-dynamic-carousel-full-image .swiper-slide-active .dynamic-carousel-image-img img {
		animation: none;
	}
}

/* ------------------------------------------------------------------
   Projects: availability line on cards, location link, enquiry form,
   homepage "Two Calls To Action" section  (2026-09-15)
   ------------------------------------------------------------------ */
/* Card line "N units available | Price on request" - same rhythm as the intro line above it */
.row-layout-item-details .project-availability,
.grid-layout-item-details .project-availability,
.list-layout-item-details .project-availability {
	margin-top: -0.5rem;
}
.project-availability .sep {
	opacity: 0.45;
	margin: 0 0.15em;
}
/* Homepage full-image carousel prints the intro line inside .dynamic-carousel-image-content */
#home-dynamic-carousel-full-image .dynamic-carousel-image-content .project-availability {
	margin: 0.25rem 0 0;
}

/* Single project: location section - heading is the location, CTA is the map link */
#project-location .project-location-label {
	font-family: 'Hamlin', sans-serif;   /* the theme's .small-heading is a large display size; this is an eyebrow */
	font-size: 0.6rem;                   /* 12px at the theme's 20px root */
	line-height: 1.4;
	letter-spacing: 0.16em;
	opacity: 0.6;
}
#project-location .project-location-cta {
	margin-bottom: 0;
}
/* the [link] shortcode renders an inline-flex anchor; text-center on the wrapper centres it */
#project-location .project-location-cta a {
	justify-content: center;
}

/* Single project: enquiry section - full-width form, centred title */
#project-enquiry {
	scroll-margin-top: 2rem;
}
#project-enquiry .project-enquiry-form {
	max-width: 100%;
	margin-left: 3rem;    /* 60px at the theme's 20px root - breathing room from the section edges */
	margin-right: 3rem;
}
#project-enquiry .project-enquiry-form .wpforms-container,
#project-enquiry .project-enquiry-form .wpforms-container-full {
	max-width: 100%;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}
#project-enquiry .project-enquiry-form .wpforms-form {
	width: 100%;
}
@media (max-width: 991px) {
	#project-enquiry .project-enquiry-form {
		margin-left: 0;
		margin-right: 0;
	}
}

/* The site's contact-form styling lives in Customizer -> Additional CSS and is hardcoded to
   #wpforms-form-12, so any other form falls back to WPForms defaults (blue submit button).
   Same treatment here, scoped to the enquiry section instead of a form ID, so it applies to
   whatever form an editor assigns in the project's shortcode field. */
#project-enquiry .wpforms-form .wpforms-layout-column .wpforms-field {
	border-bottom: 2px solid #000;
	padding-bottom: 0;
}
#project-enquiry .wpforms-form .wpforms-layout-column .wpforms-field:after,
#project-enquiry .wpforms-form .wpforms-layout-column .wpforms-field:before {
	bottom: 0;
}
#project-enquiry .wpforms-form input.wpforms-error,
#project-enquiry .wpforms-form .wpforms-field input.wpforms-error:hover {
	border: none;
	color: #000;
}
#project-enquiry .wpforms-form textarea {
	margin-bottom: -7px;
	color: #000;
}
#project-enquiry .wpforms-form .wpforms-layout-column .iti,
#project-enquiry .wpforms-form .choices,
#project-enquiry .wpforms-form input[type="text"],
#project-enquiry .wpforms-form input[type="tel"],
#project-enquiry .wpforms-form input[type="email"],
#project-enquiry .wpforms-form .wpforms-layout-column input::placeholder,
#project-enquiry .wpforms-form .wpforms-field-container textarea::placeholder,
#project-enquiry .wpforms-form .choices .choices__inner .choices__placeholder {
	color: #000;
	border: none !important;
	margin-bottom: 0;
}
#project-enquiry .wpforms-form .choices > .choices__inner {
	background-color: unset;
}
#project-enquiry .wpforms-form .wpforms-submit-container,
#project-enquiry .wpforms-form .wpforms-submit-container:hover,
#project-enquiry .wpforms-form button[type="submit"],
#project-enquiry .wpforms-form button[type="submit"]:hover,
#project-enquiry .wpforms-form button[type="submit"]:focus,
#project-enquiry .wpforms-form button[type="submit"]:focus:after {
	border: none;
	background: transparent !important;
	box-shadow: none;
	background-color: transparent !important;
	color: #000;
	font-size: 1em;
}
#project-enquiry .wpforms-form input:focus,
#project-enquiry .wpforms-form .iti__selected-flag:focus {
	border: none;
	box-shadow: none;
}
#project-enquiry .wpforms-form .iti__selected-country:focus {
	border: 2px solid #000;
	border-bottom: none;
	box-shadow: none;
}
#project-enquiry .wpforms-form input.wpforms-error {
	position: relative;
}
#project-enquiry .wpforms-form .wpforms-error {
	position: absolute;
	right: 5px;
	top: 0;
}
#project-enquiry .wpforms-form input.wpforms-error:hover {
	box-shadow: none;
}

/* Homepage: two calls to action side by side (stack below lg) */
#home-two-ctas .two-ctas-item {
	padding-top: 1.5rem;
	border-top: 1px solid currentColor;
}
@media (max-width: 991px) {
	#home-two-ctas .two-ctas-item {
		padding-top: 1.25rem;
	}
}

/* Home - stop the load jump: header overlays the hero from first paint,
   so heroMargin() (main.js) has nothing left to move. Inline margin it sets is ignored. */
body.home #header {
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
}
body.home #home-hero {
	margin-top: 0 !important;
}
/* The theme adds .gradient-header to #header on window.load (inline script) -
   a white-to-transparent wash appearing after paint. Apply it from first paint instead
   so nothing changes on load. Keeps the dark logo / hamburger legible over the hero. */
body.home #header {
	background-image: linear-gradient(to bottom, #ffffff, transparent);
}

/* Hero reveal: the parent home.js used gsap.from(opacity:0) AFTER first paint
   (visible -> invisible -> fade = flash). Child js/home.js drops that; this CSS
   animation starts at first paint, so the fade is continuous. */
@keyframes elysianHeroReveal {
	from { opacity: 0; }
	to   { opacity: 1; }
}
body.home .carousel-images-with-moto-swiper {
	animation: elysianHeroReveal 2s ease-out both;
}