/* Schilling Real Estate – home page (0.10.0). Scoped to .sre-hp; same tokens as the property pages; the font comes from the theme. Sizes in px because the theme sets a small root size. */

.sre-hp {
	--sre-ink: #1e2b33;
	--sre-muted: #5a6a74;
	--sre-line: #dfe4e7;
	--sre-surface: #f4f6f7;
	--sre-blue: #1f5f99;
	--sre-blue-dark: #174a78;
	--sre-navy: #14324f;
	--sre-blue-tint: #e8f0f7;
	color: var(--sre-ink);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
}
.sre-hp *,
.sre-hp *::before,
.sre-hp *::after { box-sizing: border-box; }
/* Page-wide rules skip the embedded property cards (.sre-pa), which keep the archive's own styles. */
/* Wrapped in :where() so these stay at one-class weight and the section rules below (e.g. .sre-hp-num) win. */
.sre-hp :where(p, li, span, a, h1, h2, h3, strong):where(:not(.sre-pa *)) { letter-spacing: inherit; }
.sre-hp :where(p, li, a, span):where(:not(.sre-pa *)) { font-size: inherit; }
.sre-hp :where(a):where(:not(.sre-pa *)) { color: var(--sre-blue); }
.sre-hp :where(a):where(:not(.sre-pa *)):hover { color: var(--sre-blue-dark); }
.sre-hp :focus-visible { outline: 3px solid var(--sre-blue); outline-offset: 2px; }
.sre-hp-head h2,
.sre-hp-contact h2 { margin: 0; font-size: clamp(24px, 18px + 1.2vw, 30px); line-height: 1.2; }

.sre-hp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sre-hp section { margin: 0; }
.sre-hp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.sre-hp-more { font-weight: 600; font-size: 16px; }
.sre-hp-note { margin: 10px 0 0; font-size: 14px; color: var(--sre-muted); }
.sre-hp-center { margin: 24px 0 0; text-align: center; }

/* Buttons */
.sre-hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid var(--sre-blue);
	border-radius: 6px;
	background: var(--sre-blue);
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}
.sre-hp-btn:hover { background: var(--sre-blue-dark); border-color: var(--sre-blue-dark); }
.sre-hp-btn--light { background: #fff; color: var(--sre-blue) !important; }
.sre-hp-btn--light:hover { background: var(--sre-blue-tint); }

/* 1. Hero: navy by default; with image="ID", the photo sits under a dark wash so text stays readable. */
.sre-hp-hero {
	position: relative;
	padding: 56px 0 40px;
	background: var(--sre-navy);
	color: #fff;
}
.sre-hp-hero.has-image {
	background-image: linear-gradient(90deg, rgba(14, 33, 52, 0.92) 0%, rgba(14, 33, 52, 0.75) 55%, rgba(14, 33, 52, 0.45) 100%), var(--sre-hp-hero-image);
	background-size: cover;
	background-position: center;
}
.sre-hp-hero h1 {
	max-width: 760px;
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(32px, 22px + 2.6vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.015em;
}
.sre-hp-intro { max-width: 680px; margin: 0 0 24px; font-size: 20px; line-height: 1.45; color: #dbe6ef; }
.sre-hp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sre-hp-hero .sre-hp-btn { border-color: #fff; }
.sre-hp-hero .sre-hp-btn:not(.sre-hp-btn--light) { background: #fff; color: var(--sre-navy) !important; }
.sre-hp-hero .sre-hp-btn:not(.sre-hp-btn--light):hover { background: var(--sre-blue-tint); }
.sre-hp-hero .sre-hp-btn--light { background: transparent; color: #fff !important; }
.sre-hp-hero .sre-hp-btn--light:hover { background: rgba(255, 255, 255, 0.12); }

.sre-hp-quick { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sre-hp-quick-row { min-width: 0; }
.sre-hp-hero { overflow: hidden; } /* Sideways-scrolling quick links never widen the page. */
.sre-hp-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sre-hp-quick-label { width: 56px; flex: none; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #b9cad8; }
.sre-hp-quick ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sre-hp-quick li { margin: 0; padding: 0; }
.sre-hp-quick a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff !important;
	font-size: 15px;
	text-decoration: none;
}
.sre-hp-quick a:hover { background: #fff; color: var(--sre-navy) !important; }
.sre-hp-n { font-size: 13px; font-weight: 700; opacity: 0.75; }

/* 2. Key numbers */
.sre-hp-numbers { background: var(--sre-surface); border-bottom: 1px solid var(--sre-line); }
.sre-hp-numbers ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.sre-hp-numbers li { margin: 0; padding: 22px 20px; border-left: 4px solid var(--sre-blue); background: transparent; }
.sre-hp-numbers li + li { border-left-color: var(--sre-line); }
.sre-hp-num { display: block; font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.sre-hp-num-label { display: block; margin-top: 4px; font-size: 16px; }
.sre-hp-num-src { display: block; margin-top: 4px; font-size: 13px; color: var(--sre-muted); }

/* 3. Featured: reuse the archive cards, without the archive's page padding. */
.sre-hp-featured { padding: 48px 0; }
.sre-hp .sre-pa--embed { max-width: none; padding: 0; margin: 0; }

/* 4. Map */
.sre-hp-mapsec { padding: 48px 0; background: var(--sre-surface); }
.sre-hp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -8px 0 12px; padding: 0; list-style: none; font-size: 15px; color: var(--sre-muted); }
.sre-hp-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.sre-hp-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #b9c3c9; }
.sre-hp-dot--available { background: #2e7d4f; }
.sre-hp-dot--coming-soon { background: #8a5a00; }
.sre-hp-dot--under-contract { background: #5b4f9a; }
.sre-hp-map { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--sre-line); background: #dfe4e7; }
.sre-hp-pop { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; min-width: 160px; }
.sre-hp-pop strong { font-size: 15px; }
.sre-hp-pop span { color: #5a6a74; }
.sre-hp-pop .sre-hp-pop-status { font-weight: 600; color: #1e2b33; }
.sre-hp-pop a { margin-top: 4px; font-weight: 700; }

/* 5. Towns */
.sre-hp-towns { padding: 48px 0; }
.sre-hp-town-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sre-hp-town-list li { margin: 0; padding: 20px; border: 1px solid var(--sre-line); border-radius: 12px; }
.sre-hp-town-list h3 { margin: 0 0 8px; font-size: 20px; }
.sre-hp-town-num { margin: 0; font-size: 16px; }
.sre-hp-town-num span { display: block; font-size: 36px; font-weight: 700; line-height: 1.05; color: var(--sre-blue); letter-spacing: -0.02em; }
.sre-hp-town-pop { margin: 4px 0 12px; color: var(--sre-muted); }
.sre-hp-town-list a { font-weight: 700; }

/* 6. Contact: light band, so it stands apart from the blue theme footer below it. */
.sre-hp-contact { padding: 48px 0 56px; background: var(--sre-surface); border-top: 1px solid var(--sre-line); }
.sre-hp-contact h2 { margin-bottom: 10px; }
.sre-hp-contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.sre-hp-contact-text p { margin: 0 0 18px; font-size: 18px; color: var(--sre-muted); max-width: 520px; }
.sre-hp-contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sre-hp-contact-list li { margin: 0; font-size: 17px; }
.sre-hp-contact-list span { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sre-muted); }
.sre-hp-contact-list a { font-weight: 700; }
.sre-hp-form { padding: 20px 24px; border: 1px solid var(--sre-line); border-radius: 12px; background: #fff; color: var(--sre-ink); }
/* WPForms inside the home page: full-width fields, brand button. */
.sre-hp-form .wpforms-container { margin: 0 !important; }
.sre-hp-form .wpforms-field { padding: 8px 0 !important; }
.sre-hp-form .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
.sre-hp-form .wpforms-field select,
.sre-hp-form .wpforms-field textarea { max-width: 100% !important; width: 100% !important; min-height: 44px; border-radius: 6px; font-size: 16px; }
.sre-hp-form .wpforms-field-name .wpforms-field-row { max-width: 100% !important; }
.sre-hp-form button[type="submit"] {
	min-height: 48px;
	padding: 10px 28px !important;
	border: 2px solid var(--sre-blue) !important;
	border-radius: 6px !important;
	background: var(--sre-blue) !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 700;
	cursor: pointer;
}
.sre-hp-form button[type="submit"]:hover { background: var(--sre-blue-dark) !important; border-color: var(--sre-blue-dark) !important; }
@media (min-width: 900px) {
	.sre-hp-contact-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: 48px; }
}

/* Phones */
@media (max-width: 640px) {
	.sre-hp-hero { padding: 28px 0 22px; }
	.sre-hp-hero h1 { font-size: 30px; margin-bottom: 10px; }
	.sre-hp-intro { font-size: 17px; margin-bottom: 18px; }
	.sre-hp-actions { gap: 10px; }
	.sre-hp-actions .sre-hp-btn { flex: 1 1 100%; min-height: 44px; padding: 8px 16px; font-size: 16px; }
	/* Quick links: label above, chips on one line that scrolls sideways. */
	.sre-hp-quick { margin-top: 22px; padding-top: 14px; gap: 10px; }
	.sre-hp-quick-row { display: block; }
	.sre-hp-quick-label { display: block; width: auto; margin-bottom: 6px; font-size: 12px; }
	.sre-hp-quick ul { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sre-hp-quick ul::-webkit-scrollbar { display: none; }
	.sre-hp-quick li { flex: none; }
	.sre-hp-quick a { min-height: 34px; padding: 4px 12px; font-size: 14px; white-space: nowrap; }
	.sre-hp-num-src { font-size: 12px; }
	.sre-hp-num-label { font-size: 14px; }
	/* Two numbers per row; a third one spans the row. */
	.sre-hp-numbers ul { grid-template-columns: 1fr 1fr; }
	.sre-hp-numbers li { padding: 14px 12px; border-left: 0; border-top: 1px solid var(--sre-line); }
	.sre-hp-numbers li:nth-child(-n+2) { border-top: 0; }
	.sre-hp-numbers li:nth-child(odd):last-child { grid-column: 1 / -1; }
	.sre-hp-num { font-size: 28px; }
	.sre-hp-num-label { font-size: 15px; }
	.sre-hp-map { height: 380px; }
	.sre-hp-featured, .sre-hp-mapsec, .sre-hp-towns { padding: 36px 0; }
}
@media print {
	.sre-hp-quick, .sre-hp-mapsec, .sre-hp-form { display: none !important; }
}
