/*
Theme Name: Urban Prairie
Theme URI: https://liveaturbanprairie.com
Author: Gro Investment Group
Description: Coming-soon landing page for Urban Prairie Apartments in Fargo, ND. Brand colors and Mundial type are built in; the hero, overview, and waitlist sections are editable blocks, and waitlist signups are stored under the Waitlist menu.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: urban-prairie
*/

/* ---------- Brand utilities (colors, fonts, and sizes live in theme.json) ---------- */

/* Brand "Headline 2": Bold, all caps, wide tracking. Paragraph style "Eyebrow". */
.is-style-eyebrow {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1.3;
}

/* Brand "Headline 3": Mundial Hair. Paragraph/heading style "Hair". */
.is-style-hair {
	font-weight: 100;
	letter-spacing: 0;
}

/* Small uppercase labels (fact labels, form labels) */
.is-style-label {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------- Hero ---------- */

/* Slanted bottom edge, echoing the diagonal panels in the brand ad strip. */
.up-hero.wp-block-cover {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
	padding-bottom: calc(4vw + var(--wp--preset--spacing--60));
}

/* Content lines up with the page's wide column, left-aligned. The container is not
   positioned, so the wordmark can sit in the hero's top-left corner. */
.up-hero .wp-block-cover__inner-container {
	position: static;
	width: 100% !important; /* core sets width:auto for positioned cover content */
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
}
/* Doubled class beats the editor's constrained-layout auto margins. */
.up-hero.up-hero .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin-left: 0 !important;
}

/* Higher priority than the content rule above, so the wordmark stays in the top-left corner. */
.up-hero.up-hero .wp-block-cover__inner-container > .up-wordmark {
	position: absolute;
	z-index: 2;
	top: var(--wp--preset--spacing--40);
	left: max(20px, calc((100% - var(--wp--style--global--wide-size)) / 2));
	margin: 0 !important;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.up-hero h1 {
	text-shadow: 0 1px 24px rgb(0 0 0 / 0.25);
}

@media (max-width: 781px) {
	.up-hero .wp-block-cover__inner-container {
		text-align: center;
	}
	.up-hero .wp-block-buttons {
		justify-content: center;
	}
	.up-hero.up-hero .wp-block-cover__inner-container > .up-wordmark {
		left: 50%;
		transform: translateX(-50%);
		white-space: nowrap;
		font-size: 15px;
	}
}

/* ---------- Image with brand panel (image style "Brand frame") ---------- */

/* A dusty-blue rectangle offset behind the image's bottom-left corner. */
.wp-block-image.is-style-brand-frame {
	position: relative;
	isolation: isolate;
	padding: 0 0 40px 30px;
}
.wp-block-image.is-style-brand-frame::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	top: 40px;
	bottom: 0;
	width: 85%;
	background: var(--wp--preset--color--dusty-blue);
}
@media (min-width: 782px) {
	.wp-block-image.is-style-brand-frame {
		padding: 0 0 60px 50px;
	}
	.wp-block-image.is-style-brand-frame::before {
		top: 60px;
	}
}
.wp-block-image.is-style-brand-frame img {
	width: 100%;
	height: auto;
	display: block;
}

/* Quick facts under the overview */
.up-facts .is-style-hair {
	font-size: clamp(20px, 1.7vw, 24px);
	line-height: 1.3;
	margin-top: 6px;
}

/* ---------- Waitlist form (rendered by [urban_prairie_waitlist]) ---------- */

.up-form {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr 1fr;
}
.up-form .up-field--full,
.up-form .up-consent,
.up-form .up-actions,
.up-form .up-status {
	grid-column: 1 / -1;
}
@media (max-width: 600px) {
	.up-form {
		grid-template-columns: 1fr;
	}
}
.up-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.up-form .up-required {
	color: var(--wp--preset--color--olive);
}
.up-form input[type="text"],
.up-form input[type="email"],
.up-form input[type="tel"],
.up-form select {
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	padding: 0 16px;
	border: 1px solid #c9c6bd;
	border-radius: 0;
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px;
}
.up-form input:focus,
.up-form select:focus {
	outline: 2px solid var(--wp--preset--color--olive);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--olive);
}
.up-form .up-consent label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}
.up-form .up-consent input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--wp--preset--color--olive);
	flex-shrink: 0;
}
.up-form .up-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.up-form button {
	min-width: 260px;
	height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: 5px;
	background: var(--wp--preset--color--olive);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.up-form button:hover,
.up-form button:focus-visible {
	background: var(--wp--preset--color--olive-dark);
}
@media (max-width: 600px) {
	.up-form button {
		width: 100%;
		min-width: 0;
	}
}
.up-status {
	margin: 0;
	padding: 12px 16px;
	border-left: 4px solid var(--wp--preset--color--navy);
	background: rgb(51 65 74 / 0.06);
	font-size: 15px;
}
.up-status--error {
	border-left-color: #b3261e;
	background: rgb(179 38 30 / 0.06);
}

/* ---------- General ---------- */

/* Decorative overhangs (hero slant, image stripe) must never cause sideways scrolling. */
.wp-site-blocks {
	overflow-x: clip;
}

:where(a, button, input, select, summary):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
