/* ==========================================================================
   Homepage banner — headline + listing carousel + call / email bar
   (includes/inc-hero.php, assets/js/hero.js)
   ========================================================================== */

.hero {
	--color-gold: #c9a24a;
	background: var(--color-accent-800);
	color: var(--color-bg);
}
.hero-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 56px;
	padding-block: 36px 32px;
}

/* ---- headline ---- */
.hero-copy {
	flex: 1 1 360px;
	min-width: 0;
}
.hero-kicker {
	margin-bottom: 14px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-accent-400);
}
.hero-title {
	margin: 0 0 18px -0.03em;
	font-size: clamp(44px, 5.6vw, 84px);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
}
.hero-title span {
	display: block;
}
/* "Over 500 pieces of" is the small first line; "For sale." picks up the
   gold of the print campaign */
.hero-title-small {
	margin-bottom: 0.18em;
	font-size: 0.5em;
	letter-spacing: 0.03em;
}
.hero-title-accent {
	color: var(--color-gold);
}
.hero .btn-secondary {
	color: #fff;
	border-color: color-mix(in srgb, #fff 45%, transparent);
}
.hero .btn-secondary:hover {
	background: color-mix(in srgb, #fff 12%, transparent);
	color: #fff;
}
.hero .btn-primary {
	background: var(--color-accent-500);
	border-color: var(--color-accent-500);
	color: var(--color-accent-900);
}
.hero .btn-primary:hover {
	background: var(--color-accent-400);
	color: var(--color-accent-900);
}

/* ---- carousel ---- */
.hero-carousel {
	position: relative;
	flex: 1 1 480px;
	min-width: 0;
	max-width: 760px;
}
/* the same hairline frame with corner marks the rest of the site uses */
.hero-frame {
	border-color: color-mix(in srgb, #fff 30%, transparent);
}
.hero-frame > .corner {
	color: var(--color-accent-400);
}
.hero-slides {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--color-accent-900);
}
.hero-slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	transition: opacity 1.4s ease-in-out;
	color: #fff;
	text-decoration: none;
	will-change: opacity;
}
.hero-slide.is-active {
	opacity: 1;
	z-index: 1;
}
/* the slide is a link: keep its text white on hover (the site's link hover
   colour is a dark green) and brighten the "View listing" cue instead */
.hero-slide:hover,
.hero-slide:focus-visible {
	color: #fff;
}
.hero-slide:hover .hero-slide-cta {
	color: #fff;
}
/* a slow drift on the photo while it is showing, so the change reads as a
   dissolve rather than a cut */
.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 7s linear;
}
.hero-slide.is-active img {
	transform: scale(1);
}
.hero-slide-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 18px;
	align-items: end;
	padding: 14px 18px 16px;
	background: color-mix(in srgb, var(--color-accent-900) 82%, transparent);
	border-top: 1px solid color-mix(in srgb, #fff 18%, transparent);
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.hero-slide.is-active .hero-slide-label {
	opacity: 1;
	transform: none;
}
.hero-slide-kicker {
	grid-column: 1 / -1;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-accent-400);
}
.hero-slide-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.hero-slide-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 24px;
	line-height: 1;
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
}
.hero-slide-cta {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent-400);
}
.hero-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid color-mix(in srgb, #fff 35%, transparent);
	background: color-mix(in srgb, var(--color-accent-900) 70%, transparent);
	font-size: 26px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}
.hero-nav:hover {
	border-color: #fff;
}
.hero-nav.is-prev {
	left: 12px;
}
.hero-nav.is-next {
	right: 12px;
}
.hero-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.hero-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid color-mix(in srgb, #fff 55%, transparent);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.hero-dot.is-active {
	background: var(--color-accent-400);
	border-color: var(--color-accent-400);
}

/* ---- call / email bar ---- */
.hero-contact {
	background: var(--color-accent-900);
	border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
}
.hero-contact-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.hero-contact-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 28px;
	border-right: 1px solid color-mix(in srgb, #fff 14%, transparent);
	color: #fff;
	text-decoration: none;
}
.hero-contact-item:last-child {
	border-right: 0;
}
.hero-contact-item:hover {
	background: color-mix(in srgb, #fff 6%, transparent);
	color: #fff;
}
.hero-contact-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
}
.hero-contact-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.hero-contact-kicker {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-accent-400);
}
.hero-contact-main {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(26px, 2.8vw, 36px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-feature-settings: "tnum" 1;
}
.hero-contact-item:hover .hero-contact-main {
	color: var(--color-gold);
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide,
	.hero-slide img,
	.hero-slide-label {
		transition: none;
		transform: none;
	}
}

@media (max-width: 720px) {
	.hero-inner {
		padding-block: 36px 32px;
	}
	.hero-contact-item {
		border-right: 0;
		border-bottom: 1px solid color-mix(in srgb, #fff 14%, transparent);
	}
	.hero-contact-item:last-child {
		border-bottom: 0;
	}
}
