/*
 * Home "Our Work": boxed band around the existing portfolio Loop Grid (inc/home-work.php).
 *
 * Only the frame is styled here — the cards are the shared loop item #2722 and keep their own CSS.
 * Selectors start at `.e-con.work-band` and name the band's own classes, so they reach (0,4,0)+ and
 * beat the Elementor Kit's `.elementor-kit-N h2/p/.elementor-button` rules without touching anything
 * outside this section. Elementor containers take padding and gaps from custom properties, so those
 * are set as properties, not as `padding`/`gap`.
 *
 * The approved mockup was drawn about 1056px wide; sizes keep its proportions at the real 1180px box,
 * matching the Testimonials box directly above.
 */

.e-con.work-band {
	--wk-navy: #170d3d;
	--wk-cyan: #0aa3d6;
	--wk-teal: #07708f;  /* #0AA3D6 darkened for small text on lavender (WCAG AA) */
	--wk-muted: #5a5a72;
	--wk-head: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wk-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--title-highlight: #0b84ac; /* the heading's existing .title-highlight span */
}

/* ---------- The box ---------- */
.e-con.work-band > .e-con.work-box {
	--padding-top: 52px;
	--padding-right: 48px;
	--padding-bottom: 40px;
	--padding-left: 48px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--align-items: stretch;
	width: 100%;
	max-width: 1180px; /* the homepage's content width, like the boxed sections around it */
	margin: 0 auto;
	background: #f0f1ff;
	border: 1px solid #e0e2f1;
	border-radius: 20px;
}

/* ---------- Heading area ---------- */
.e-con.work-band .work-eyebrow .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: var(--wk-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: left;
	color: var(--wk-teal);
}
.e-con.work-band .work-eyebrow .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 26px;
	height: 2px;
	background: var(--wk-cyan);
}
.e-con.work-band .e-con.work-head {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	column-gap: 48px;
	row-gap: 16px;
	align-items: end;
	margin: 0 0 34px;
}
.e-con.work-band .e-con.work-head > .elementor-widget { width: auto; max-width: none; margin: 0; }
.e-con.work-band .work-title .elementor-heading-title {
	margin: 0;
	font-family: var(--wk-head);
	font-size: 54px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-align: left;
	text-transform: none;
	color: var(--wk-navy);
}
.e-con.work-band .work-title .title-highlight { display: block; }
.e-con.work-band .work-intro,
.e-con.work-band .work-intro p {
	margin: 0;
	max-width: 440px;
	font-family: var(--wk-body);
	font-size: 16px;
	line-height: 1.8;
	text-align: left;
	color: var(--wk-muted);
}
.e-con.work-band .work-intro { padding-bottom: 4px; }

/* ---------- Grid: the Loop Grid's own columns and gaps are its Elementor settings ---------- */
.e-con.work-band .work-grid { width: 100%; margin: 0; }
/* Tablet (2 columns): an odd last card sits centred in its row instead of hanging left.
   nth-of-type, not nth-child: the Loop Grid puts a <style> element before the items. */
@media (min-width: 768px) and (max-width: 1024px) {
	.e-con.work-band .work-grid .elementor-loop-container > .e-loop-item:last-of-type:nth-of-type(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - var(--grid-column-gap, 24px)) / 2);
	}
}

/* ---------- Footer ---------- */
.e-con.work-band .e-con.work-foot {
	--padding-top: 24px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--flex-direction: row;
	--flex-wrap: nowrap;
	--justify-content: space-between;
	--align-items: center;
	--gap: 28px;
	--row-gap: 20px;
	--column-gap: 28px;
	margin-top: 32px;
	border-top: 1px solid #d8daea;
}
.e-con.work-band .e-con.work-foot > .elementor-widget { width: auto; max-width: none; margin: 0; }
.e-con.work-band .work-foot-copy { flex: 1 1 auto; min-width: 0; }
.e-con.work-band .work-foot-copy p { margin: 0; }
/* By position, not class: the copy is edited in the visual editor, which can drop classes. */
.e-con.work-band .work-foot-copy p:first-child {
	font-family: var(--wk-head);
	font-size: 23px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -.01em;
	color: var(--wk-navy);
}
.e-con.work-band .work-foot-copy p + p {
	margin-top: 6px;
	font-family: var(--wk-body);
	font-size: 14px;
	line-height: 1.7;
	color: var(--wk-muted);
}
.e-con.work-band .work-all { flex: none; }
.e-con.work-band .work-all .elementor-button,
.e-con.work-band .work-all .elementor-button:visited,
.e-con.work-band .work-all .elementor-button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 13px 24px;
	border: 0;
	border-radius: 9px;
	background: var(--wk-cyan);
	box-shadow: none;
	color: #fff;
	font-family: var(--wk-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background-color .2s;
}
.e-con.work-band .work-all .elementor-button:hover { background: #0b84ac; color: #fff; }
.e-con.work-band .work-all .elementor-button-text::after {
	/* lucide arrow-up-right, drawn in currentColor */
	content: "";
	display: inline-block;
	width: 17px;
	height: 17px;
	margin-left: 9px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.e-con.work-band .work-all .elementor-button:focus { outline: none; }
.e-con.work-band .work-all .elementor-button:focus-visible { outline: 3px solid var(--wk-cyan); outline-offset: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.e-con.work-band > .e-con.work-box { --padding-top: 44px; --padding-right: 32px; --padding-bottom: 34px; --padding-left: 32px; }
	.e-con.work-band .work-title .elementor-heading-title { font-size: 46px; }
	.e-con.work-band .e-con.work-head { column-gap: 32px; }
}

/* ---------- Phone: heading and copy stack, footer stacks ---------- */
@media (max-width: 767px) {
	.e-con.work-band > .e-con.work-box { --padding-top: 30px; --padding-right: 18px; --padding-bottom: 24px; --padding-left: 18px; border-radius: 16px; }
	.e-con.work-band .work-eyebrow .elementor-heading-title { font-size: 11px; letter-spacing: .12em; margin-bottom: 18px; }
	.e-con.work-band .e-con.work-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
	.e-con.work-band .work-title .elementor-heading-title { font-size: 36px; line-height: 1.12; letter-spacing: -.017em; }
	.e-con.work-band .work-intro,
	.e-con.work-band .work-intro p { font-size: 15px; }
	.e-con.work-band .e-con.work-foot { --flex-direction: column; --align-items: flex-start; --gap: 18px; --row-gap: 18px; --padding-top: 22px; margin-top: 26px; }
	.e-con.work-band .work-foot-copy p:first-child { font-size: 21px; }
}
@media (max-width: 379px) {
	.e-con.work-band > .e-con.work-box { --padding-right: 14px; --padding-left: 14px; }
	.e-con.work-band .work-title .elementor-heading-title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
	.e-con.work-band .work-all .elementor-button { transition: none; }
}
