/* ==========================================================================
   Albemarle Homes — design refinements & motion
   --------------------------------------------------------------------------
   Loaded after main.css. Visual polish only: no layout logic, markup or
   behaviour is changed. Remove the enqueue in inc/scripts.php to roll back.
   ========================================================================== */

:root {
	--ah-ease: cubic-bezier(.22, .61, .36, 1);
	--ah-ease-out: cubic-bezier(.16, 1, .3, 1);
	--ah-radius: 4px;
	--ah-radius-lg: 8px;
	--ah-shadow-sm: 0 1px 2px rgba(23, 22, 68, .06), 0 2px 8px rgba(23, 22, 68, .06);
	--ah-shadow-md: 0 2px 4px rgba(23, 22, 68, .05), 0 10px 28px rgba(23, 22, 68, .10);
	--ah-shadow-lg: 0 4px 8px rgba(23, 22, 68, .06), 0 18px 44px rgba(23, 22, 68, .16);
	--ah-border: rgba(35, 30, 87, .10);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--primary); color: #fff; }

/* Visible, on-brand keyboard focus (mouse users are unaffected) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--secondary);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Buttons — consistent radius, eased transitions, gentle lift
   -------------------------------------------------------------------------- */
.btn,
button,
input[type="submit"],
input[type="button"],
.button {
	border-radius: var(--ah-radius);
	transition: background-color .25s var(--ah-ease), color .25s var(--ah-ease),
		border-color .25s var(--ah-ease), box-shadow .25s var(--ah-ease),
		transform .25s var(--ah-ease);
}
.btn:hover,
input[type="submit"]:hover,
.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(23, 22, 68, .18);
}
.btn:active,
input[type="submit"]:active { transform: translateY(0); box-shadow: none; }

/* Static label styled as a button (e.g. house type name on plot page)
   — reads as a tag, not something clickable */
.title-btn,
.title-btn:hover {
	display: inline-flex;
	transform: none !important;
	box-shadow: none !important;
	background: var(--secondary2) !important;
	font-size: 12px !important;
	letter-spacing: 1.5px;
	padding: 6px 12px !important;
	border-radius: 2px;
	pointer-events: none;
}

/* Slider arrows */
.slick-arrow { transition: background-color .25s var(--ah-ease), color .25s var(--ah-ease), transform .25s var(--ah-ease), box-shadow .25s var(--ah-ease); }

/* --------------------------------------------------------------------------
   3. Header — compacts once fixed, softer shadow, eased nav underline
   -------------------------------------------------------------------------- */
#header .logo,
#header .logo img,
#header .header-right,
#header .flex.items-center.justify-between { transition: all .35s var(--ah-ease); }

.main-nav ul li a:before { transition: width .3s var(--ah-ease), left .3s var(--ah-ease); }
.main-nav ul li a,
.top-nav ul li a { transition: color .2s var(--ah-ease); }

/* Dropdowns: fade + drop in rather than snapping open */
@media (min-width: 1280px) {
	.main-nav ul li.menu-item-has-children:hover > ul {
		animation: ah-drop .28s var(--ah-ease-out) both;
	}
	.main-nav ul ul {
		border-radius: 0 0 var(--ah-radius) var(--ah-radius);
		box-shadow: var(--ah-shadow-md);
	}
}

/* Logo — a touch smaller than the original 170 / 220 / 240px */
@media (min-width: 576px)  { #header .logo { width: 155px; } }
@media (min-width: 1280px) { #header .logo { width: 195px; } }
@media (min-width: 1360px) { #header .logo { width: 210px; } }

/* Fixed (scrolled) state — the plugin locks the wrapper height, so
   shrinking the bar causes no content jump */
.sticky-wrap.fixed-position #header {
	box-shadow: 0 6px 24px rgba(10, 10, 40, .22);
	animation: ah-header-in .45s var(--ah-ease-out) both;
}
@media (min-width: 1280px) {
	.sticky-wrap.fixed-position #header .flex.items-center.justify-between {
		padding-top: 6px;
		padding-bottom: 6px;
	}
	.sticky-wrap.fixed-position #header .logo { width: 170px; }
	.sticky-wrap.fixed-position #header .header-right > .flex { margin-bottom: 4px; }
	.sticky-wrap.fixed-position .main-nav ul li a { padding: 6px 0; }
}

/* --------------------------------------------------------------------------
   4. Search bar
   -------------------------------------------------------------------------- */
.search-bar { box-shadow: 0 1px 0 var(--ah-border); position: relative; z-index: 5; }
.search-bar .select-holder {
	border-radius: var(--ah-radius);
	overflow: hidden;
	transition: box-shadow .25s var(--ah-ease), border-color .25s var(--ah-ease);
}
.search-bar .select-holder:hover { box-shadow: var(--ah-shadow-sm); }
.search-bar .select-holder:focus-within { box-shadow: 0 0 0 3px rgba(35, 30, 87, .15); }
.search-bar select { cursor: pointer; }

/* --------------------------------------------------------------------------
   5. Cards — development / plot, news, team, CTA hub
   -------------------------------------------------------------------------- */
.development-card,
.news-card,
.team-card {
	border-radius: var(--ah-radius);
	border-color: var(--ah-border);
	box-shadow: var(--ah-shadow-sm);
	transition: transform .4s var(--ah-ease), box-shadow .4s var(--ah-ease);
	overflow: hidden;
}
.development-card:hover,
.news-card:hover,
.team-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ah-shadow-lg);
}

/* Image zoom: slower and subtler than the default 1.1 linear */
.development-card .image img,
.news-card .image img,
.team-card .image img { transition: transform .9s var(--ah-ease-out); }
.development-card:hover .image img,
.news-card:hover .image img,
.team-card:hover .image img { transform: scale(1.05); }

/* Image sits flush with the card edge instead of inside a white frame */
.development-card .image { margin: 0; }
.development-card .tag { left: 24px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.development-card .info-holder { border-color: var(--ah-border); }
.development-card .link,
.news-card .link { transition: background-color .25s var(--ah-ease), color .25s var(--ah-ease); }
.development-card .link i,
.news-card .link i,
.cta-card .link i { transition: transform .3s var(--ah-ease); }
.development-card:hover .link i,
.news-card:hover .link i { transform: translateX(4px); }

/* CTA hub (Search, explore & plan your move) — lighter outline, lift on hover */
.cta-card {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius);
	overflow: hidden;
	box-shadow: var(--ah-shadow-sm);
	transition: transform .4s var(--ah-ease), box-shadow .4s var(--ah-ease), border-color .4s var(--ah-ease);
	position: relative;
}
.cta-card:before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: var(--secondary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ah-ease-out);
}
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--ah-shadow-lg); border-color: transparent; }
.cta-card:hover:before { transform: scaleX(1); }
.cta-card .icon { transition: transform .4s var(--ah-ease); }
.cta-card:hover .icon { transform: translateY(-3px); }
.cta-card .link:hover i { left: 0; transform: translateX(4px); }

/* Contact tiles (Book / Call back / Email updates) */
.info-card { border-radius: var(--ah-radius-lg); border-color: var(--ah-border); }
.info-card .contact-info li { transition: transform .3s var(--ah-ease), box-shadow .3s var(--ah-ease); border-radius: var(--ah-radius); overflow: hidden; }
.info-card .contact-info li:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-md); }
.info-card .contact-info li .icon { transition: transform .3s var(--ah-ease); }
.info-card .contact-info li:hover .icon { transform: scale(1.08); }
.full-plan-card { border-radius: var(--ah-radius-lg); }

/* Filter panel */
.filter-block { border-radius: var(--ah-radius-lg); box-shadow: var(--ah-shadow-md); }
.filter-block select { border-radius: var(--ah-radius); transition: border-color .2s var(--ah-ease), box-shadow .2s var(--ah-ease); }
.filter-block select:hover { border-color: var(--primary); }

/* --------------------------------------------------------------------------
   6. Feature strips (icons row under hero, incentives, Standard Plus)
   -------------------------------------------------------------------------- */
.features-box .col .icon { transition: transform .4s var(--ah-ease); }
.features-box .col:hover .icon { transform: translateY(-3px); }
.features-box a .title,
.features-box .link { transition: color .2s var(--ah-ease); }

/* --------------------------------------------------------------------------
   7. Testimonials — editorial serif, lighter arrow panels, no slide bleed
   -------------------------------------------------------------------------- */
.reviews-slider { border-radius: var(--ah-radius-lg); position: relative; }
.reviews-slider .slick-list { overflow: hidden; }
.reviews-slider .slide { padding: 0 24px; box-sizing: border-box; }
.reviews-slider .slick-track { display: flex; align-items: center; } /* centre shorter reviews */
.reviews-slider q {
	font-family: var(--secondary-font);
	font-style: italic;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0;
	quotes: none;
}
@media (min-width: 1024px) { .reviews-slider q { font-size: 25px; line-height: 1.45; } }
/* The original quote icon (images/icon-quote3.svg) is missing from the
   theme, leaving an empty box — replaced with a typographic mark */
.reviews-slider q:before {
	content: "\201C";
	background: none !important;
	width: auto !important;
	height: auto !important;
	font-family: var(--secondary-font);
	font-style: normal;
	font-size: 72px;
	line-height: .6;
	margin: 10px auto 14px;
	opacity: .55;
}
.reviews-slider q:after { content: none; }
.reviews-slider cite { font-size: 13px; letter-spacing: 2px; opacity: .9; }
.reviews-slider .slick-arrow { background: rgba(0, 0, 0, .08); }
.reviews-slider .slick-arrow:hover { background: rgba(0, 0, 0, .18); }
.reviews-slider .slick-arrow i { font-size: 32px; transition: transform .3s var(--ah-ease); }
.reviews-slider .slick-prev:hover i { transform: translateX(-3px); }
.reviews-slider .slick-next:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   8. Media blocks
   -------------------------------------------------------------------------- */
.general-content .image,
.general-content .image-holder img,
.prod-content-block img { border-radius: 2px; }
.btn-play { transition: transform .35s var(--ah-ease), box-shadow .35s var(--ah-ease); }
.btn-play:hover { transform: scale(1.08); }

/* Plot / content intro: align copy with the sidebar instead of centring
   short text vertically (avoids the large gap above the house type) */
@media (min-width: 1024px) {
	.general-content .col.items-center:has(> .text-holder > .title-btn) { align-items: flex-start; }
	.general-content .col:has(> .info-card:first-child) > .info-card { margin-top: 0; }
}

/* Vimeo hero ("Vimeo Iframe Video"): make the video cover the whole media
   panel. Vimeo keeps its video at 16:9 inside the iframe, so the old fixed
   scale(1.62/2) left bands top and bottom on taller panels. Instead the
   iframe is sized at 16:9, just large enough to cover the panel whatever its
   shape (container query units), and centred; the overflow is cropped. */
.hero-block .vimeo-video-holder { overflow: hidden; container-type: size; }
.hero-block.v2 .vimeo-video-holder { position: relative; }
.hero-block .vimeo-video-holder iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	max-width: none;
	transform: translate(-50%, -50%);
	pointer-events: none; /* background video: no accidental pause on click */
}

/* Iframe column ("Has Iframe Column"): embed codes that bring their own
   responsive wrapper (e.g. Vimeo's padding box) don't need the theme's
   spacer above them, which was pushing the video ~500px down. Portrait
   embeds are capped (to ~720px tall) and centred against the text. The cap
   sits on the holder because % padding is measured from the parent's width. */
.general-content .iframe-holder:has(> div[style*="padding"]) { padding-top: 0; }
.general-content .iframe-holder:has(> div[style*="177."]) { max-width: 405px; margin: 0 auto; } /* 9:16 */
.general-content .iframe-holder:has(> div[style*="133."]) { max-width: 540px; margin: 0 auto; } /* 3:4 */
.general-content .iframe-holder:has(> div[style*="125%"]) { max-width: 576px; margin: 0 auto; } /* 4:5 */
@media (min-width: 1024px) {
	.general-content .grid > .col:has(> .image-holder > .iframe-holder) { align-self: center; }
}

/* --------------------------------------------------------------------------
   9. Development listing (/category/development/…)
   -------------------------------------------------------------------------- */
.block-head h1 {
	font-family: var(--secondary-font);
	font-weight: 600;
	color: var(--primary);
	letter-spacing: 1.5px;
	font-size: 34px;
	line-height: 1.1;
}
@media (min-width: 768px) { .block-head h1 { font-size: 44px; } }
.block-head p { line-height: 1.7; color: #4a4a5a; }

.development-post.v2 { overflow: hidden; }
.development-post.v2 .image { transition: transform 1.4s var(--ah-ease-out); }
.development-post.v2:hover .image { transform: scale(1.03); }
.development-post.v2 .caption {
	background: var(--primary-90);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: var(--ah-radius);
	box-shadow: var(--ah-shadow-lg);
	font-size: 16px;
	line-height: 1.75;
}
.development-post.v2 .caption p { font-weight: 400; }
.development-post.v2 .caption .heading-frame { border-bottom: 2px solid var(--secondary); width: auto; }
.development-post.v2 .caption .heading-holder { width: auto; }
.development-post.v2 .caption h2 { line-height: 1.1; }
.development-post.v2 .caption .location { opacity: .85; font-size: 20px; }
.development-post.v2 .caption .btn { border-radius: var(--ah-radius); background: var(--secondary); }

/* Card grid (category-current.php) */
.dev-listing-head .text-holder { max-width: 760px; margin: 0 auto; text-align: center; }
.dev-listing-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: 10px;
}
.dev-listing-head h1 { text-transform: uppercase; }
.dev-listing-intro p { margin: 0; }

.dev-listing { padding: 10px 0 60px; }
.dev-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 768px)  { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .dev-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.dev-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius-lg);
	box-shadow: var(--ah-shadow-sm);
	overflow: hidden;
	transition: transform .4s var(--ah-ease), box-shadow .4s var(--ah-ease);
}
.dev-card:hover { transform: translateY(-4px); box-shadow: var(--ah-shadow-lg); }

.dev-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--gray);
}
.dev-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s var(--ah-ease-out);
}
.dev-card:hover .dev-card__img { transform: scale(1.05); }
.dev-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%);
	pointer-events: none;
}
.dev-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 48px;
	color: var(--ah-border);
}

.dev-card__tags {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 16px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dev-card__tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--secondary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.2;
	text-transform: uppercase;
}
.dev-card__tag--type { background: var(--primary); }
.dev-card__tag--plus { background: #e5bd88; color: #160e2b; }

.dev-card__count {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.dev-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px 26px 28px;
}
.dev-card__plus-logo {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--ah-radius-lg);
	background: #160e2b;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.dev-card__plus-logo img { display: block; height: 38px; width: auto; }
.dev-card__title {
	font-family: var(--secondary-font);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 6px;
	color: var(--primary);
}
.dev-card__title a { color: inherit; text-decoration: none; }
.dev-card__title a:hover { color: var(--secondary); }
.dev-card__place {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--secondary);
	margin-bottom: 14px;
}
.dev-card__text {
	font-size: 15px;
	line-height: 1.7;
	color: #4a4a5a;
	margin-bottom: 18px;
}
.dev-card__text p { margin: 0 0 8px; }
.dev-card__text p:last-child { margin: 0; }

/* Expandable description: clamp to 6 lines until "Read more" */
.dev-card__text-wrap { margin-bottom: 18px; }
.dev-card__text-wrap .dev-card__text { margin-bottom: 0; }
.dev-card__text-wrap:not(.is-open) .dev-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
}
.dev-card__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--secondary);
}
.dev-card__more[hidden] { display: none; }
/* Plain text link: cancel the global button / button:hover styles */
.dev-card button.dev-card__more,
.dev-card button.dev-card__more:hover,
.dev-card button.dev-card__more:focus,
.dev-card button.dev-card__more:active {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	line-height: 1.4;
}
/* style.css forces `color: #fff !important` on all button:hover, hence !important here */
.dev-card button.dev-card__more:hover,
.dev-card button.dev-card__more:focus-visible {
	color: var(--primary) !important;
	text-decoration: none;
}
.dev-card--plus button.dev-card__more:hover,
.dev-card--plus button.dev-card__more:focus-visible { color: #fff !important; }
.dev-card button.dev-card__more:hover i { left: 0; }
.dev-card__more i { font-size: 16px; transition: transform .25s var(--ah-ease); }
.dev-card__text-wrap.is-open .dev-card__more i { transform: rotate(180deg); }
.dev-card--plus .dev-card__more { color: #e5bd88; }

.dev-card__meta {
	list-style: none;
	margin: auto 0 22px;
	padding: 16px 0 0;
	border-top: 1px solid var(--ah-border);
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	color: var(--primary);
}
.dev-card__meta li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.dev-card__meta li::before { display: none; }
.dev-card__meta i { font-size: 18px; opacity: .7; }
.dev-card__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.dev-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: var(--ah-radius);
	background: var(--primary);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background .25s var(--ah-ease);
}
.dev-card__btn:hover { background: var(--secondary) !important; color: #fff; }
.dev-card__btn i { transition: transform .25s var(--ah-ease); }
.dev-card__btn:hover i { transform: translateX(4px); }

/* Standard Plus: navy & gold, matching the Standard Plus development theme */
.dev-card--plus { background: #160e2b; border-color: #160e2b; color: #fff; }
.dev-card--plus .dev-card__title,
.dev-card--plus .dev-card__meta { color: #fff; }
.dev-card--plus .dev-card__title a:hover,
.dev-card--plus .dev-card__place { color: #e5bd88; }
.dev-card--plus .dev-card__text { color: rgba(255,255,255,.78); }
.dev-card--plus .dev-card__meta { border-color: rgba(255,255,255,.18); }
.dev-card--plus .dev-card__btn { background: #e5bd88; color: #160e2b; }
.dev-card--plus .dev-card__btn:hover,
.dev-card--plus .dev-card__btn:focus { background: #fff !important; color: #160e2b !important; }

.dev-listing .paging { margin-top: 48px; }

/* Align titles, locations, text, meta and buttons across each row of cards.
   Each card spans 6 row tracks of the parent grid and shares them via subgrid. */
@supports (grid-template-rows: subgrid) {
	.dev-grid { row-gap: 0; }
	.dev-card {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 6;
		row-gap: 0;
		margin-bottom: 28px;
	}
	.dev-card__body {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 5;
		row-gap: 0;
	}
	.dev-card__place-row { margin-bottom: 14px; }
	.dev-card__place { margin-bottom: 0; }
	.dev-card__meta { margin-top: 0; align-self: stretch; }
	.dev-card__btn { align-self: end; }
	.dev-card__title { align-self: end; }
	@media (min-width: 1200px) { .dev-card { margin-bottom: 32px; } }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
	transition: border-color .2s var(--ah-ease), box-shadow .2s var(--ah-ease);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
	box-shadow: 0 0 0 3px rgba(35, 30, 87, .14);
}
.newsletter-block input[type="text"]:focus,
.newsletter-block input[type="email"]:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer a { transition: color .2s var(--ah-ease), opacity .2s var(--ah-ease); }
.footer .footer-nav li a:hover { color: #fff; opacity: .7; }
.footer .social-networks li a { transition: transform .25s var(--ah-ease), color .25s var(--ah-ease), opacity .25s; }
.footer .social-networks li a:hover { transform: translateY(-2px); }
.footer .affilations { border-radius: var(--ah-radius-lg); }
.footer .footer-bottom { border-top-color: rgba(255, 255, 255, .12); font-size: 13px; opacity: .85; }

/* --------------------------------------------------------------------------
   12. Back to top — on-brand, round, fades in
   -------------------------------------------------------------------------- */
.back-to-top {
	background-color: var(--primary);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	right: 16px;
	bottom: 16px;
	box-shadow: 0 6px 18px rgba(10, 10, 40, .25);
	border: 1px solid rgba(255, 255, 255, .15);
	transition: background-color .25s var(--ah-ease), transform .25s var(--ah-ease);
}
.back-to-top:hover { background-color: var(--secondary); transform: translateY(-3px); }
.fixed-position ~ .back-to-top { animation: ah-fade-up .4s var(--ah-ease-out) both; }

/* ==========================================================================
   MOTION
   Reveal classes are only ever added by js/animations.js, so with JS off
   (or reduced motion) everything renders normally.
   ========================================================================== */

@keyframes ah-fade-up   { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes ah-fade      { from { opacity: 0; } to { opacity: 1; } }
@keyframes ah-drop      { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
@keyframes ah-header-in { from { transform: translate3d(0, -100%, 0); } to { transform: none; } }
@keyframes ah-settle    { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Page-load: hero copy and imagery */
.ah-motion .hero-block .caption > *,
.ah-motion .hero-block .container h1,
.ah-motion .intro-block .max-w-3xl > * {
	animation: ah-fade-up .9s var(--ah-ease-out) both;
}
.ah-motion .hero-block .caption > *:nth-child(2) { animation-delay: .1s; }
.ah-motion .hero-block .caption > *:nth-child(3) { animation-delay: .2s; }
.ah-motion .hero-block .caption > *:nth-child(4) { animation-delay: .3s; }
.ah-motion .hero-block .caption > *:nth-child(n+5) { animation-delay: .4s; }

.ah-motion .hero-block:not(.v2) > .image img,
.ah-motion .hero-block:not(.v2) > .bg-video-holder video {
	animation: ah-settle 2.4s var(--ah-ease-out) both;
}
.ah-motion .hero-block.v2 > .hero-slider { animation: ah-fade 1.1s var(--ah-ease) both; }
.ah-motion .hero-block .standard-box { animation: ah-fade-up .9s var(--ah-ease-out) .45s both; }

.ah-motion .search-bar .container { animation: ah-fade .8s var(--ah-ease) .1s both; }

/* Scroll reveals */
.ah-reveal {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	transition: opacity .8s var(--ah-ease-out), transform .8s var(--ah-ease-out);
	transition-delay: var(--ah-delay, 0s);
	will-change: opacity, transform;
}
.ah-reveal.ah-fade-only { transform: none; }
.ah-reveal.ah-in { opacity: 1; transform: none; }

/* (animations.js removes these classes once the reveal finishes, so hover
   styles above take over untouched) */

/* Eyebrow underline draws in with its heading */
.ah-motion .top-title.ah-reveal:after { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ah-ease-out) .25s; }
.ah-motion .text-center .top-title.ah-reveal:after,
.ah-motion .top-title.ah-reveal.text-center:after { transform-origin: center; }
.ah-motion .top-title.ah-reveal.ah-in:after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.ah-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Standard Plus development theme
   (body.standard-plus is set in header.php when Development Type = Standard Plus)
   ========================================================================== */

/* Hero badge: the round Standard Plus seal floats on the hero image/video
   in the top-right corner, with no box or border, and a soft shadow so it
   reads over light and dark footage. The box only renders when a Standard
   Plus logo is set, so this doesn't affect standard developments. If a
   title or link is filled in, it sits centred under the seal. */
.hero-block .hero-slider .standard-box {
	top: 20px;
	right: 20px;
	left: auto;
	bottom: auto;
	transform: none;
	width: auto;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	padding: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border: 0;
}
.hero-block .hero-slider .standard-box .logo {
	width: 120px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
}
.hero-block .hero-slider .standard-box .logo img { display: block; width: 100%; height: auto; }
.hero-block .hero-slider .standard-box .logo:after { display: none; }
.hero-block .hero-slider .standard-box .title:empty { display: none; }
.hero-block .hero-slider .standard-box .title,
.hero-block .hero-slider .standard-box .link {
	margin: 0;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero-block .hero-slider .standard-box .title { font-size: 17px; }
.hero-block .hero-slider .standard-box .link { font-size: 11px; letter-spacing: .06em; }
.hero-block .hero-slider .standard-box .link:hover { color: #e5bd88; }

@media (min-width: 1024px) {
	.hero-block .hero-slider .standard-box { top: 28px; right: 28px; }
	.hero-block .hero-slider .standard-box .logo { width: 150px; }
	.hero-block .hero-slider .standard-box .title { font-size: 21px; }
	.hero-block .hero-slider .standard-box .link { font-size: 12px; }
}
@media (min-width: 1440px) {
	.hero-block .hero-slider .standard-box .logo { width: 170px; }
}

/* --------------------------------------------------------------------------
   Intertwining gold lines — the motif from the Standard Plus brochure
   (images/sp-lines.svg). The SVG stretches to any box while the strokes
   stay a crisp hairline. Used on the hero and the Standard Plus strip;
   other navy bands keep the gold corner swoosh.
   -------------------------------------------------------------------------- */

/* 1. Hero: lines sweep across the clear space under the info row of the
      navy text panel and draw in from left to right on load (like the
      brochure cover). Height follows the panel's bottom padding. */
@media (min-width: 1024px) {
	.standard-plus .hero-block.v2 { position: relative; }
	.standard-plus .hero-block.v2 > .container { position: relative; z-index: 2; }
	.standard-plus .hero-block.v2:before {
		content: "";
		position: absolute;
		left: 0;
		bottom: 6px;
		width: 50%;
		height: 68px;
		background: url(../images/sp-lines.svg) no-repeat 0 0 / 100% 100%;
		opacity: .85;
		pointer-events: none;
		z-index: 1;
	}
	.ah-motion .standard-plus .hero-block.v2:before { animation: sp-draw 2.2s var(--ah-ease-out) .5s both; }
}
@media (min-width: 1280px) { .standard-plus .hero-block.v2:before { height: 86px; } }
@media (min-width: 1536px) { .standard-plus .hero-block.v2:before { height: 106px; } }

/* Corner shape on the other navy bands (e.g. Exclusive Incentives): gold
   in place of blue */
.standard-plus .features-block:after,
.standard-plus .bg-primary:before {
	background-image: url(../images/shape-gold.svg);
}

/* 2. Navy bands with the lines (Standard Plus strip, site plan section):
      lines run along the bottom of the band, under the content, in place of
      the corner swoosh */
/* (.footer also carries .bg-primary, so it's excluded: no lines there) */
.standard-plus .features-block.v3 > .container,
.standard-plus .bg-primary:not(.footer) > .container { position: relative; z-index: 1; }
.standard-plus .bg-primary:not(.footer) { position: relative; overflow: hidden; }

@media (min-width: 1024px) {
	/* Extra room under the strip so the lines clear the square logo */
	.standard-plus .features-block.v3 { padding-bottom: 84px; }
	.standard-plus .features-block.v3:after,
	.standard-plus .bg-primary:not(.footer):before {
		display: block;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		background: url(../images/sp-lines.svg) no-repeat 0 0 / 100% 100%;
		opacity: .75;
		pointer-events: none;
		z-index: 0;
	}
	.standard-plus .features-block.v3:after { height: 46px; bottom: 2px; }
	.standard-plus .bg-primary:not(.footer):before { height: 140px; opacity: .5; }
}

@keyframes sp-draw {
	from { clip-path: inset(0 100% 0 0); opacity: 0; }
	15%  { opacity: .85; }
	to   { clip-path: inset(0 0 0 0); opacity: .85; }
}
