/**
 * The Apartments at Pearl & Orange — landing page styles.
 *
 * Scoped under #apo-landing, prefixed `apo-`, so nothing collides with Avada.
 * Font family and brand colors are unchanged from the previous version; this
 * revision standardizes typography (single px scale) and fixes the Contact
 * Form 7 styling to target CF7's real, generated markup.
 *
 * TYPE SCALE (desktop): h1 56 · h2 40 · h3 32 · body-lg 18 · body 16 ·
 *                       label 15 · button 15 · small 14
 * All responsive font sizing is handled by reassigning the --fs-* variables
 * inside the two media queries at the bottom — nothing is scattered.
 *
 * NOTES
 *  - 'Roboto Condensed' + 'Open Sans' must be loaded by Avada, or fallbacks apply.
 *  - Full-width color bands assume a WIDE (non-boxed) Avada layout.
 *  - CF7: the two-column layout relies on CF7's default paragraph output and the
 *    field named "address". If the live form differs, adjust the one selector
 *    marked [ADJUST] below.
 */

/* ============================================================  TOKENS  ===== */
#apo-landing {
	/* Fonts (unchanged). */
	--apo-heading-font: 'Roboto', 'Open Sans', sans-serif;
	--apo-body-font: 'Open Sans', sans-serif;

	/* Brand colors (unchanged). */
	--apo-green: #95AB3B;
	--apo-green-dark: #5f6c17;
	--apo-gold: #efb81d;
	--apo-gold-dark: #d9a316;
	--apo-text: #2B2B2B;
	--apo-muted: #5c574f;
	--apo-bg: #ffffff;
	--apo-bg-grey: #F1F3F2;
	--apo-border: #e2e2dc;
	--apo-focus: #0b5fff;

	/* Type scale (px). */
	--fs-h1: 54px;
	--fs-h2: 38px;
	--fs-h3: 32px;
	--fs-body-lg: 18px;
	--fs-body: 16px;
	--fs-label: 15px;
	--fs-button: 15px;
	--fs-small: 16px;

	/* Layout + spacing. */
	--apo-container: 1250px;
	--apo-measure: 940px;          /* Max width of centered body copy.        */
	--apo-gutter: 40px;
	--apo-section-y: 88px;
	--apo-vision-band-y: 56px;     /* Space around the full-bleed image band. */
	--apo-vision-band-h: 560px;    /* Height of the full-bleed image band.    */
	--apo-radius: 8px;
	--apo-gap: 24px;

	font-family: var(--apo-body-font);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--apo-text);
	overflow-x: clip;
}

#apo-landing *,
#apo-landing *::before,
#apo-landing *::after {
	box-sizing: border-box;
}

/* Inner container. */
#apo-landing .apo-container {
	width: 100%;
	max-width: var(--apo-container);
	margin-inline: auto;
	padding-inline: var(--apo-gutter);
}

/* Full-width color bands (viewport breakout). */
#apo-landing .apo-hero,
#apo-landing .apo-vision,
#apo-landing .apo-waitlist {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Shared eyebrow + section heading. */
#apo-landing .apo-eyebrow {
	font-family: var(--apo-heading-font);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apo-green);
	margin: 0 0 12px;
}

#apo-landing .apo-heading {
	font-family: var(--apo-heading-font);
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
	color: var(--apo-green);
	margin: 0 0 20px;
	letter-spacing: normal;
}

/* ==============================================================  HERO  ===== */
#apo-landing .apo-hero {
	position: relative;
	background-color: #2b2b2b;
	background-image: var(--apo-hero-image);
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
}

#apo-landing .apo-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 24, 26, 0.82) 0%, rgba(20, 24, 26, 0.62) 45%, rgba(20, 24, 26, 0.42) 100%);
	z-index: 0;
}

#apo-landing .apo-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1250px;
	min-height: 680px;
	padding-block: 96px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#apo-landing .apo-badge {
	align-self: flex-start;
	background-color: var(--apo-gold);
	color: var(--apo-text);
	font-family: var(--apo-heading-font);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 22px;
	border-radius: 4px;
	margin: 0 0 50px;
}

#apo-landing .apo-hero__title {
	font-family: var(--apo-heading-font);
	font-size: var(--fs-h1);
	font-weight: 700;
	line-height: 1.04;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	max-width: 940px;
}

#apo-landing .apo-hero__rule {
	display: block;
	width: 120px;
	height: 5px;
	background-color: var(--apo-gold);
	margin: 24px 0;
}

#apo-landing .apo-hero__subtitle {
	font-size: var(--fs-body-lg);
	line-height: 1.5;
	color: #eef1ee;
	margin: 0 0 47px;
	max-width: 670px;
}

#apo-landing .apo-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#apo-landing .apo-feature {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-body);
	font-weight: 600;
	color: #fff;
}

#apo-landing .apo-feature__icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
}

#apo-landing .apo-feature__icon svg,
#apo-landing .apo-callout__icon svg,
#apo-landing .apo-checklist__icon svg,
#apo-landing .apo-slider__nav svg {
	width: 100%;
	height: 100%;
}

/* ============================================================  VISION  ===== */
#apo-landing .apo-vision {
	background-color: var(--apo-bg-grey);
	padding-block: var(--apo-section-y);
}

/* Centered copy, capped to a comfortable reading measure. */
#apo-landing .apo-vision__text {
	max-width: var(--apo-measure);
	text-align: center;
}

/* Full-bleed media band. The section is already 100vw, so this edge-to-edge
   child spans the viewport with no container padding of its own. */
#apo-landing .apo-vision__media {
	width: 100%;
	margin-block: var(--apo-vision-band-y);
}

#apo-landing .apo-vision__figures {
	text-align: center;
}

#apo-landing .apo-vision__lead {
	font-size: var(--fs-body-lg);
	line-height: 25px;
	color: var(--apo-text);
	margin: 0 0 28px;
}

#apo-landing .apo-vision__body {
	font-size: var(--fs-body);
	line-height: 25px;
	color: var(--apo-muted);
	margin: 0;
}

/* Stat cards. */
#apo-landing .apo-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 960px;
}

#apo-landing .apo-stat {
	background-color: var(--apo-bg);
	border: 1px solid var(--apo-border);
	border-radius: var(--apo-radius);
	padding: 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	text-align: center;
}

#apo-landing .apo-stat__number {
	display: block;
	font-family: var(--apo-heading-font);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1;
	color: var(--apo-gold);
	margin-bottom: 6px;
}

#apo-landing .apo-stat__label {
	display: block;
	font-family: var(--apo-heading-font);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apo-gold);
}

#apo-landing .apo-stat__sublabel {
	display: block;
	font-size: var(--fs-small);
	color: var(--apo-muted);
	margin-top: 4px;
}

/* Image slider. */
#apo-landing .apo-slider {
	position: relative;
	border-radius: var(--apo-radius);
	overflow: hidden;
	background-color: #dfe2df;
}

#apo-landing .apo-slider__viewport {
	overflow: hidden;
}

#apo-landing .apo-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.4s ease;
}

#apo-landing .apo-slide {
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
}

#apo-landing .apo-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

#apo-landing .apo-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background-color: rgba(20, 20, 20, 0.72);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#apo-landing .apo-slider__nav:hover {
	background-color: rgba(20, 20, 20, 0.9);
}

#apo-landing .apo-slider__nav svg {
	width: 22px;
	height: 22px;
}

#apo-landing .apo-slider__nav--prev {
	left: 12px;
}

#apo-landing .apo-slider__nav--next {
	right: 12px;
}

#apo-landing .apo-slider__nav:focus-visible {
	outline: 3px solid var(--apo-gold);
	outline-offset: 2px;
}

/* --- Full-bleed variant (the Vision band) --------------------------------- */
#apo-landing .apo-slider--bleed {
	border-radius: 0;
}

#apo-landing .apo-slider--bleed .apo-slide__img {
	aspect-ratio: auto;
	max-height: none;
	height: var(--apo-vision-band-h);
}

/* Arrows sit further in from the viewport edge and grow slightly, so they
   stay comfortably tappable over an edge-to-edge image. */
#apo-landing .apo-slider--bleed .apo-slider__nav {
	width: 52px;
	height: 52px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#apo-landing .apo-slider--bleed .apo-slider__nav svg {
	width: 26px;
	height: 26px;
}

#apo-landing .apo-slider--bleed .apo-slider__nav--prev {
	left: clamp(12px, 3vw, 48px);
}

#apo-landing .apo-slider--bleed .apo-slider__nav--next {
	right: clamp(12px, 3vw, 48px);
}

/* "2 / 5" counter, bottom-right of the band. */
#apo-landing .apo-slider__count {
	position: absolute;
	right: clamp(12px, 3vw, 48px);
	bottom: 16px;
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background-color: rgba(20, 20, 20, 0.72);
	color: #fff;
	font-family: var(--apo-heading-font);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

/* ==========================================================  WAITLIST  ===== */
#apo-landing .apo-waitlist {
	background-color: var(--apo-bg);
	padding-block: var(--apo-section-y);
}

#apo-landing .apo-waitlist__inner {
	display: grid;
	grid-template-columns: 1.5fr 2.05fr;
	gap: 56px;
	align-items: start;
}

#apo-landing .apo-waitlist__intro {
	font-size: var(--fs-body-lg);
	line-height: 1.6;
	color: var(--apo-text);
	margin: 0 0 24px;
}

/* Partner-representative callout. */
#apo-landing .apo-callout {
	display: flex;
	gap: 14px;
	background-color: var(--apo-bg-grey);
	border-radius: var(--apo-radius);
	padding: 20px;
	margin: 0 0 28px;
}

#apo-landing .apo-callout__icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 26px;
	height: 26px;
	color: var(--apo-text);
	margin-top: 2px;
}

#apo-landing .apo-callout__title {
	font-family: var(--apo-heading-font);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apo-text);
	margin: 0 0 4px;
}

#apo-landing .apo-callout__text {
	font-size: var(--fs-small);
	line-height: 1.5;
	color: var(--apo-muted);
	margin: 0;
}

/* Checklist. */
#apo-landing .apo-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

#apo-landing .apo-checklist__item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--fs-body);
	color: var(--apo-text);
}

#apo-landing .apo-checklist__icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--apo-gold);
}

/* ---------------------------------------------------------  CF7 form  -----
 * Targets CF7's real generated markup only:
 *   .wpcf7-form                          the <form>
 *   .wpcf7-form > p                      CF7's default one-field-per-paragraph
 *   .wpcf7-form-control-wrap[data-name]  per-field wrapper (data-name = field name)
 *   .wpcf7-submit / .wpcf7-not-valid / .wpcf7-not-valid-tip /
 *   .wpcf7-response-output / .wpcf7-mail-sent-ok / .wpcf7-spinner
 * No custom form structure is assumed or required.
 * ------------------------------------------------------------------------- */
#apo-landing .apo-form {
	background-color: var(--apo-gold);
	border-radius: 10px;
	padding: 32px;
}

/* Two-column grid built from CF7's own paragraphs. */
#apo-landing .apo-form .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 16px;
}

#apo-landing .apo-form .wpcf7-form>p {
	margin: 0;
}

/* Rows that must span the full width:
 *  - the address field  [ADJUST: change "address" if your field name differs]
 *  - any textarea
 *  - the submit button
 *  - any text-only paragraph (e.g. a consent/description line with no field)
 *  - the CF7 response message
 */
#apo-landing .apo-form .wpcf7-form>p:has([data-name="address"]),
#apo-landing .apo-form .wpcf7-form>p:has(textarea),
#apo-landing .apo-form .wpcf7-form>p:has(.wpcf7-submit),
#apo-landing .apo-form .wpcf7-form>p:not(:has(.wpcf7-form-control-wrap)),
#apo-landing .apo-form .wpcf7-response-output {
	grid-column: 1 / -1;
}

#apo-landing .apo-form label {
	display: block;
	font-size: var(--fs-label);
	color: var(--apo-text);
	margin: 0;
	font-family: Roboto;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

/* CF7 wraps each control in this span; give it room under the label. */
#apo-landing .apo-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

#apo-landing .apo-form input[type="text"],
#apo-landing .apo-form input[type="email"],
#apo-landing .apo-form input[type="tel"],
#apo-landing .apo-form input[type="url"],
#apo-landing .apo-form input[type="number"],
#apo-landing .apo-form textarea,
#apo-landing .apo-form select {
	width: 100%;
	font-family: var(--apo-body-font);
	font-size: var(--fs-body);
	line-height: 1.4;
	padding: 12px 14px;
	min-height: 46px;
	color: var(--apo-text);
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 5px;
}

#apo-landing .apo-form textarea {
	min-height: 120px;
	resize: vertical;
}

#apo-landing .apo-form input::placeholder,
#apo-landing .apo-form textarea::placeholder {
	color: #8a8a86;
}

#apo-landing .apo-form input:focus-visible,
#apo-landing .apo-form textarea:focus-visible,
#apo-landing .apo-form select:focus-visible {
	outline: none;
	border-color: var(--apo-text);
	box-shadow: 0 0 0 3px rgba(53, 49, 45, 0.25);
}

/* Submit button. */
#apo-landing .apo-form .wpcf7-submit {
	appearance: none;
	font-family: var(--apo-heading-font);
	padding: 14px 24px;
	min-height: 46px;
	border: 2px solid var(--apo-text);
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	color: #000;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0.64px;
	text-transform: uppercase;
}

#apo-landing .apo-form .wpcf7-submit:hover {
	background-color: var(--apo-text);
	color: var(--apo-gold);
}

#apo-landing .apo-form .wpcf7-submit:focus-visible {
	outline: 3px solid var(--apo-focus);
	outline-offset: 3px;
}

/* Validation + response states, tuned for the gold card. */
#apo-landing .apo-form .wpcf7-not-valid {
	border-color: #8a1c1c;
}

#apo-landing .apo-form .wpcf7-not-valid-tip {
	font-size: var(--fs-small);
	font-weight: 600;
	color: #6d1414;
	margin-top: 6px;
}

#apo-landing .apo-form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	font-size: var(--fs-body);
	color: var(--apo-text);
	background-color: rgba(255, 255, 255, 0.85);
	border: 2px solid rgba(53, 49, 45, 0.35);
	border-radius: 5px;
}

#apo-landing .apo-form .wpcf7-mail-sent-ok {
	color: #14532a;
	background-color: #eaf6ee;
	border-color: #1f7a3d;
}

#apo-landing .apo-form .wpcf7-spinner {
	margin: 0 0 0 8px;
}

#apo-landing .apo-form__fallback {
	font-size: var(--fs-body);
	font-weight: 600;
	color: var(--apo-text);
}

/* --- Add to the CF7 section of assets/css/landing-page.css --- */

/* Address row spans full width (class:apo-full is added in the CF7 form). */
#apo-landing .apo-form .wpcf7-form>p:has(.apo-full) {
	grid-column: 1 / -1;
}

/* Required-field asterisk, readable on the gold card. */
#apo-landing .apo-form .apo-req {
	color: #8a1c1c;
	font-weight: 700;
}

/* Footer row: consent text on the left, submit on the right, divider above. */
#apo-landing .apo-form .wpcf7-form>.apo-form-footer {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #000000;
}

#apo-landing .apo-form .apo-form-footer>p {
	margin: 0;
}

#apo-landing .apo-form .apo-consent {
	flex: 1 1 240px;
	font-size: var(--fs-small);
	line-height: 1.45;
	color: #000000;
}

/* Outlined submit (transparent on the gold card) to match the design. */
#apo-landing .apo-form .wpcf7-submit {
	flex: 0 0 auto;
	background-color: transparent;
}

#apo-landing .apo-form .wpcf7-submit:hover {
	background-color: var(--apo-text);
	color: var(--apo-gold);
}

/* On mobile the footer stacks and the button goes full width
   (works with the existing @media (max-width: 767px) block). */
@media (max-width: 767px) {
	#apo-landing .apo-form .apo-form-footer {
		flex-direction: column;
		align-items: stretch;
	}

	#apo-landing .apo-form .apo-consent {
		flex: 1 1 auto;
	}
}

/* Screen-reader-only utility (fallback if the theme lacks it). */
#apo-landing .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================  TABLET  =====
 * <= 1024px: scale display type down; layout stays two-column.
 */
@media (max-width: 1024px) {
	#apo-landing {
		--fs-h1: 44px;
		--fs-h2: 32px;
		--fs-h3: 30px;
		--fs-body-lg: 17px;
		--apo-section-y: 64px;
		--apo-gutter: 28px;
		--apo-measure: 780px;
		--apo-vision-band-y: 44px;
		--apo-vision-band-h: 440px;
	}

	#apo-landing .apo-badge{
		font-size: 14px;
	}

	#apo-landing .apo-waitlist__inner {
		gap: 36px;
	}
}

/* ==========================================================  MOBILE  =====
 * <= 767px: stack all two-column layouts to a single column.
 */
@media (max-width: 767px) {
	#apo-landing {
		--fs-h1: 34px;
		--fs-h2: 26px;
		--fs-h3: 28px;
		--fs-body-lg: 16px;
		--apo-section-y: 48px;
		--apo-vision-band-y: 32px;
		--apo-vision-band-h: 300px;
	}

	#apo-landing .apo-hero__inner {
		min-height: 440px;
		padding-block: 64px;
	}

	#apo-landing .apo-slider--bleed .apo-slider__nav {
		width: 44px;
		height: 44px;
	}

	#apo-landing .apo-slider--bleed .apo-slider__nav svg {
		width: 22px;
		height: 22px;
	}

	#apo-landing .apo-slider__count {
		bottom: 12px;
		font-size: 13px;
	}

	#apo-landing .apo-waitlist__inner {
		grid-template-columns: 1fr;
	}

	#apo-landing .apo-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Form collapses to one column. */
	#apo-landing .apo-form {
		padding: 24px;
	}

	#apo-landing .apo-form .wpcf7-form {
		grid-template-columns: 1fr;
	}

	#apo-landing .apo-form .wpcf7-submit {
		width: 100%;
	}
	#apo-landing .apo-badge{
		font-size: 12px;
	}
}

/* <= 479px: single-column stat cards. */
@media (max-width: 479px) {
	#apo-landing .apo-stats {
		grid-template-columns: 1fr;
	}
	#apo-landing .apo-badge{
		font-size: 10px;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {

	#apo-landing .apo-slider__track,
	#apo-landing .apo-slider__nav,
	#apo-landing .apo-form .wpcf7-submit,
	#apo-landing .apo-feature__icon {
		transition: none;
	}
}

/* Lightbox */
.apo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba( 0, 0, 0, 0.85 );
}

.apo-lightbox.is-open {
	display: flex;
}

.apo-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}

.apo-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}