/**
 * CW Landing Areas — surface-cool band, communities grid (5 across), ZIP lookup card (UI only).
 */

.cw-landing-areas {
	background-color: var(--wp--preset--color--surface-cool, #f8faff);
	color: var(--wp--preset--color--warm-dark, #2d2a26);
	padding-block: clamp(3.5rem, 6vw, 6rem);
	padding-inline: var(--cw-landing-section-pad-x, 1rem);
	box-sizing: border-box;
}

/* Left (intro + community cards) and right (ZIP card) both span the
   full container width now. The left column used to shrink-to-fit
   because the parent grid uses align-items: start; making it 100% so
   the new 4-column card grid can spread across the whole row. */
.cw-landing-areas__left,
.cw-landing-areas__right {
    width: 100%;
}

.cw-landing-areas__inner {
	padding-inline: 0;
}

/* Stacked layout: intro/cards on top, ZIP card below. */
.cw-landing-areas__grid {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vw, 7rem);
	align-items: stretch;
}

@media (max-width: 767.98px) {
	.cw-landing-areas__right {
		margin-top: 32px;
	}
}

.cw-landing-areas__heading {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.cw-landing-areas__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--red, #d7282f);
}

.cw-landing-areas__headline {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* Communities grid: 4 columns at the widest breakpoint, with a clean
   responsive cascade 4 -> 3 -> 2 -> 1. Gap is a touch larger than the
   old grid because each card now carries a title + paragraph. */
.cw-landing-areas__communities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 1100px) {
	.cw-landing-areas__communities {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.cw-landing-areas__communities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.cw-landing-areas__communities {
		grid-template-columns: 1fr;
	}
}

/* Community card: same principle as scope cards (cool surface, 16px
   radius, 24px padding) but with the red accent stripe on the RIGHT
   instead of the top. min-height covers the typical 2–3 line body. */
.cw-landing-areas__community {
	margin: 0;
	padding: 1.5rem;
	border-radius: var(--cw-radius-card, 1rem);
	background-color: var(--wp--preset--color--white, #fff);
	border-left: 3px solid var(--wp--preset--color--red, #d7282f);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 9rem;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-areas__community-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-areas__community-body {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* ZIP lookup card */
.cw-landing-areas__zip-card {
	background-color: var(--wp--preset--color--white, #fff);
	border-radius: 1.5rem;
	border-top: 3px solid var(--wp--preset--color--red, #d7282f);
	padding: 1.5rem;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.4375rem;
	box-sizing: border-box;
}

.cw-landing-areas__zip-head {
	max-width: 37.875rem; /* ~606px from the design */
	flex: 1 1 auto;
}

.cw-landing-areas__zip-form {
	flex: 0 1 26rem;
}

@media (max-width: 960px) {
	.cw-landing-areas__zip-card {
		flex-direction: column;
		align-items: stretch;
	}

	.cw-landing-areas__zip-head,
	.cw-landing-areas__zip-form {
		max-width: 100%;
		flex: 1 1 auto;
	}
}

.cw-landing-areas__zip-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-areas__zip-desc {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-areas__zip-form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cw-landing-areas__zip-label {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-deep, #182a52);
}

.cw-landing-areas__zip-control {
	/* Design: input + button inline (two columns). */
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
}

.cw-landing-areas__zip-input {
	width: 100%;
	flex: 1 1 auto;
	border: 1px solid #e8eaee;
	border-radius: 0.5rem 0 0 0.5rem;
	padding: 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
	box-sizing: border-box;
	background-color: var(--wp--preset--color--white, #fff);
}

.cw-landing-areas__zip-input:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold, #e5b423);
	outline-offset: 2px;
}

.cw-landing-areas__zip-btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 0 0.5rem 0.5rem 0;
	background-color: var(--wp--preset--color--red, #d7282f);
	color: var(--wp--preset--color--white, #fff);
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.cw-landing-areas__zip-btn:hover,
.cw-landing-areas__zip-btn:focus-visible {
	background-color: var(--wp--preset--color--red-deep, #c1080f);
}

.cw-landing-areas__zip-help {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: rgba(45, 42, 38, 0.75);
}

/* ZIP lookup feedback (cw-landing-areas.js) */
.cw-landing-areas__zip-result {
	margin-top: 1rem;
	padding: 0.875rem 1rem;
	border-radius: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
	box-sizing: border-box;
}

.cw-landing-areas__zip-result[hidden] {
	display: none !important;
}

.cw-landing-areas__zip-result--match {
	background: var(--wp--preset--color--surface-cool, #f8faff);
	border-left: 4px solid var(--wp--preset--color--red, #d7282f);
}

.cw-landing-areas__zip-result--no-match,
.cw-landing-areas__zip-result--error {
	background: #f8f8f8;
	border-left: 4px solid rgba(45, 42, 38, 0.35);
}

.cw-landing-areas__zip-result p {
	margin: 0 0 0.5rem;
}

.cw-landing-areas__zip-result p:last-child {
	margin-bottom: 0;
}

.cw-landing-areas__zip-result a {
	color: var(--wp--preset--color--red, #d7282f);
	font-weight: 600;
	text-decoration: none;
}

.cw-landing-areas__zip-result a:hover,
.cw-landing-areas__zip-result a:focus-visible {
	text-decoration: underline;
}

