/*
 * Republic Commercial customizations (Blackhawk DM).
 * Loaded after global-styles.min.css — homepage hero/nav treatment
 * modeled on republicranches.com.
 */

/* Homepage hero: hide the copy block; cover keeps its inline 90vh min-height */
.home .rf-video-hero .copy-wrapper {
	display: none;
}

/* Extra 20% black overlay on the hero so the transparent nav stays legible.
   Sits above the video (z1) and alongside the navy dim (z2); hero content
   and the nav render above it */
.home .rf-video-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.2);
	z-index: 2;
	pointer-events: none;
}

/* Homepage: pull the header out of flow so the hero sits underneath it,
   and let the hero imagery show through the nav */
.home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.home .site-mobile-header {
	background-color: transparent;
}

/* Desktop bar transparent on home only; the expanded mobile menu
   (same .site-menu element below 64em) keeps its navy background */
@media print, screen and (min-width: 64em) {
	.home .site-menu {
		background-color: transparent;
	}
}

/* --- Footer top section, modeled on republicranches.com ---
   Side-by-side: newsletter signup (left) / Stay In Touch contact (right).
   Inherits the footer's existing navy background */
.footer-top {
	padding: 40px 0 20px;
}

.footer-top__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 60px;
	justify-content: center;
	margin: 0 auto;
	max-width: 1000px;
}

.footer-top__newsletter {
	flex: 1 1 60%;
	min-width: 280px;
	max-width: 620px;
}

.footer-top__contact {
	flex: 1 1 30%;
	min-width: 220px;
}

/* Sized by the theme's h3 rules */
.footer-top__heading {
	color: #fefefe;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
}

.footer-top p {
	color: rgba(254, 254, 254, 0.85);
}

.footer-top a {
	color: #fefefe;
	text-decoration: underline;
}

.footer-top a:hover,
.footer-top a:focus {
	color: rgba(254, 254, 254, 0.7);
}

/* Inline newsletter form — input and submit render as one attached field,
   ported from the original .rf-newsletter__content form treatment */
.footer-top__newsletter .gform_wrapper {
	margin-bottom: 0;
	max-width: 480px;
	position: relative;
}

.footer-top__newsletter form {
	background-color: #fefefe;
	border-radius: 2px;
	box-shadow: 0 0 3px 0 rgba(29, 29, 29, 0.28);
	display: grid;
	grid-template: "body footer";
	grid-template-columns: 1fr 90px;
}

.footer-top__newsletter .gform_body {
	grid-area: body;
	width: 100%;
}

.footer-top__newsletter .gform_footer {
	grid-area: footer;
	margin: 0;
	padding: 0 !important;
	width: 90px !important;
}

.footer-top__newsletter .gform_fields {
	list-style: none;
	margin: 0;
}

.footer-top__newsletter .gform_fields li {
	margin: 0 !important;
	padding: 0 !important;
}

.footer-top__newsletter .gfield--type-honeypot {
	display: none !important;
}

.footer-top__newsletter .gfield_visibility_visible .ginput_container {
	margin-top: 0 !important;
}

.footer-top__newsletter label,
.footer-top__newsletter .validation_error {
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	height: 1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.footer-top__newsletter input[type="email"],
.footer-top__newsletter input[type="text"] {
	background-color: #fefefe;
	border: 0;
	border-bottom-left-radius: 2px;
	border-top-left-radius: 2px;
	box-shadow: none !important;
	height: 2.38rem;
	line-height: 14px;
	margin: 0;
	min-height: auto;
	padding-left: 12px !important;
}

.footer-top__newsletter .gform_button {
	background-color: #829298 !important;
	border: 0;
	border-radius: 0 2px 2px 0;
	color: #fefefe;
	cursor: pointer;
	height: 100% !important;
	text-transform: none !important; /* theme lowercases GF buttons; keep "Submit" */
	width: 100% !important;
}

/* Theme lowercases .button text; What We Do (standout block) buttons keep
   their authored Title Case */
.rf-standout .button.primary,
.rf-standout .button.secondary {
	text-transform: none;
}

.footer-top__newsletter .validation_message {
	padding: 0 0 3px 12px !important;
}

/* "View Our Listings" — pinned bottom-center over the 90vh hero (RR-style).
   Anchored to the document, which the hero tops since the header is out of
   flow on home; scrolls away with the hero */
.hero-listings-cta {
	position: absolute;
	top: calc(90vh - 90px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 50;
	background-color: rgba(21, 51, 87, 0.35);
	border: 1px solid #fefefe;
	border-radius: 2px;
	color: #fefefe;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 0.875rem 2rem;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-listings-cta:hover,
.hero-listings-cta:focus {
	background-color: #fefefe;
	color: #2e546b;
}

/* Phone button, far right of the desktop nav bar */
.site-menu {
	position: relative;
}

.site-menu__phone {
	position: absolute;
	right: 1.875rem;
	top: 50%;
	transform: translateY(-50%);
	padding: 0.625rem 1.25rem;
	border: 1px solid #fefefe;
	border-radius: 2px;
	color: #fefefe;
	font-weight: 600;
	letter-spacing: 0.5px;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-menu__phone:hover,
.site-menu__phone:focus {
	background-color: #fefefe;
	color: #2e546b;
}
