/*
 * EC Services — Editorial Yearbook treatment for the /services/ landing.
 *
 * Visual language shared with the editorial pages (exhibiting-education,
 * service-detail):
 *   - Palette: navy #04171A · gold #F9BE17 · green #39DBB0 · warm white
 *   - Display type: Poppins             (--ec-font-display)
 *   - Body type:    Plus Jakarta Sans   (--ec-font-body)
 *
 * Layout grammar:
 *   - Hero band with faint mint grid texture + gold rule + 3 stat callouts
 *   - Editorial section opener (mono eyebrow + hairline rule + display H2 + lead)
 *   - Uniform 3-up service-card grid: 4px gold top-border, 16:10 photo, mono
 *     category tag, Poppins title, one-line blurb, gold pill CTA
 *   - 4-step "How we work" stripe (Design → Fabricate → Install → Support)
 *   - Closing CTA card (navy + green radial + gold pill)
 *
 * Every selector is parented under `.ec-services` so the cascade can't
 * bleed into OneUp/WPBakery component styles.
 */

/* =========================================================================
 *  ROOT WRAPPER + RESET
 * ========================================================================= */
.ec-services {
	font-family: var(--ec-font-body);
	color: var(--ec-navy);
	background: var(--ec-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
}
.ec-services *,
.ec-services *::before,
.ec-services *::after { box-sizing: border-box; }
.ec-services img { max-width: 100%; height: auto; display: block; }
.ec-services a { color: inherit; text-decoration: none; }
.ec-services p { margin: 0 0 1em; }
.ec-services ol, .ec-services ul { margin: 0; padding: 0; list-style: none; }

/* =========================================================================
 *  HERO BAND
 * ========================================================================= */
.ec-services .ec-services-hero,
.ec-services .ec-hero {
	position: relative;
	padding: 110px 24px 96px;
	background: var(--ec-navy);
	color: var(--ec-white);
	text-align: center;
	overflow: hidden;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ec-services .ec-services-hero::before,
.ec-services .ec-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(57,219,176,0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(57,219,176,0.05) 1px, transparent 1px);
	background-size: 80px 80px, 80px 80px;
	background-position: center;
	pointer-events: none;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ec-services .ec-services-hero > *,
.ec-services .ec-hero > * { position: relative; z-index: 1; }
.ec-services .ec-hero-eyebrow {
	font-family: var(--ec-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ec-gold-text);
	margin-bottom: 22px;
}
.ec-services h1.ec-hero-title,
.ec-services .ec-hero-title {
	font-family: var(--ec-font-display) !important;
	font-weight: 700;
	font-size: clamp(40px, 7vw, 88px) !important;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--ec-white) !important;
	margin: 0 auto 24px !important;
	max-width: 960px;
}
.ec-services .ec-hero-title em {
	font-style: italic;
	font-weight: 500;
	color: var(--ec-green-text);
}
.ec-services .ec-hero-sub {
	font-size: 18px;
	line-height: 1.5;
	max-width: 700px;
	margin: 0 auto 44px;
	color: rgba(255,255,255,0.78);
}
.ec-services .ec-hero-stats {
	display: flex;
	gap: 36px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 8px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
}
.ec-services .ec-hero-stats > div {
	min-width: 150px;
}
.ec-services .ec-hero-stats strong {
	display: block;
	font-family: var(--ec-font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--ec-green-text);
	letter-spacing: -0.005em;
	margin-bottom: 4px;
	text-transform: none;
}
.ec-services .ec-services-hero::after,
.ec-services .ec-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 96px;
	height: 3px;
	background: var(--ec-gold);
}

/* =========================================================================
 *  INNER CONTAINER
 * ========================================================================= */
.ec-services .ec-services-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 88px 24px 96px;
	position: relative;
}

/* =========================================================================
 *  SECTION OPENER + UNIFORM SERVICE-CARD GRID
 *
 *  Mirrors the exhibiting-education resource-hub recipe (article.css .ec-edu-*)
 *  re-scoped under .ec-services — article.css is NOT enqueued on /services/,
 *  so the recipe is reproduced here rather than borrowed by class name.
 * ========================================================================= */
.ec-services .ec-svc-intro {
	max-width: 1180px;
	margin: 0 auto;
}
.ec-services .ec-svc-section-tag {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.4rem;
}
.ec-services .ec-svc-eyebrow {
	font-family: var(--ec-font-display);
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--ec-gold-text);
	white-space: nowrap;
}
.ec-services .ec-svc-line {
	flex: 1;
	height: 1px;
	background: var(--ec-rule-dim);
}
.ec-services h2.ec-svc-h2,
.ec-services .ec-svc-h2 {
	font-family: var(--ec-font-display) !important;
	font-weight: 700;
	color: var(--ec-navy) !important;
	font-size: clamp(1.9rem, 4vw, 3rem) !important;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.8rem !important;
}
.ec-services .ec-svc-h2 em {
	font-style: italic;
	font-weight: 600;
	color: var(--ec-green-text);
}
.ec-services .ec-svc-lead {
	color: var(--ec-text-dim);
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 54ch;
	margin: 0 0 2.8rem;
}

.ec-services .ec-svc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.4vw, 2rem);
	max-width: 1180px;
	margin: 0 auto;
	align-items: stretch;
}

.ec-services .ec-svc-card {
	display: flex;
	flex-direction: column;
	background: var(--ec-warm-white);
	border: 1px solid var(--ec-rule-dim);
	border-top: 4px solid var(--ec-gold);
	border-radius: 12px;
	overflow: hidden;
	color: var(--ec-navy);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ec-services .ec-svc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(4,23,26,0.10);
}
.ec-services .ec-svc-card:focus-visible {
	outline: 2px solid var(--ec-green);
	outline-offset: 4px;
}

.ec-services .ec-svc-card__media {
	aspect-ratio: 16 / 10;
	background: #e9e4db;
	overflow: hidden;
}
.ec-services .ec-svc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 600ms cubic-bezier(0.22,0.61,0.36,1);
	will-change: transform;
}
.ec-services .ec-svc-card:hover .ec-svc-card__media img {
	transform: scale(1.04);
}
.ec-services .ec-svc-card__fallback {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(57,219,176,0.22), transparent 60%),
		radial-gradient(ellipse at 80% 80%, rgba(249,190,23,0.18), transparent 60%),
		var(--ec-navy);
}

.ec-services .ec-svc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
	padding: clamp(1.4rem, 3vw, 1.9rem);
}
.ec-services .ec-svc-card__tag {
	font-family: var(--ec-font-display);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ec-gold-text);
}
.ec-services h3.ec-svc-card__title,
.ec-services .ec-svc-card__title {
	font-family: var(--ec-font-display) !important;
	font-weight: 600;
	color: var(--ec-navy) !important;
	font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 !important;
}
.ec-services .ec-svc-card__blurb {
	color: var(--ec-text-dim);
	font-size: 0.98rem;
	line-height: 1.6;
	margin: 0;
}
.ec-services .ec-svc-card__cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--ec-font-display);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ec-navy);
	background: var(--ec-gold);
	padding: 0.65rem 1.3rem;
	border-radius: 999px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ec-services .ec-svc-card__cta span { transition: transform 0.18s ease; }
.ec-services .ec-svc-card:hover .ec-svc-card__cta {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(249,190,23,0.30);
	background: #ffca33;
}
.ec-services .ec-svc-card:hover .ec-svc-card__cta span { transform: translateX(3px); }

/* Grid responsive: 3-up → 2-up → 1-up */
@media ( max-width: 960px ) {
	.ec-services .ec-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media ( max-width: 620px ) {
	.ec-services .ec-svc-grid { grid-template-columns: 1fr; }
}
@media ( prefers-reduced-motion: reduce ) {
	.ec-services .ec-svc-card,
	.ec-services .ec-svc-card__media img,
	.ec-services .ec-svc-card__cta,
	.ec-services .ec-svc-card__cta span { transition: none; }
}

/* =========================================================================
 *  CLOSING CTA
 * ========================================================================= */
.ec-services .ec-closing,
.ec-services .ec-services-closing {
	margin-top: 24px;
	padding: 80px 32px 80px;
	background: var(--ec-navy);
	color: var(--ec-white);
	border-radius: 8px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.ec-services .ec-closing::before {
	content: "";
	position: absolute;
	inset: -50% -10% auto auto;
	width: 540px;
	height: 540px;
	background: radial-gradient(circle, var(--ec-green-tint), transparent 60%);
	pointer-events: none;
}
.ec-services .ec-closing > * { position: relative; }
.ec-services .ec-closing-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ec-green-text);
	margin-bottom: 18px;
}
.ec-services .ec-closing .ec-closing-title,
.ec-services h2.ec-closing-title {
	font-family: var(--ec-font-display) !important;
	font-weight: 700;
	font-size: clamp(32px, 4.6vw, 52px) !important;
	line-height: 1.06;
	letter-spacing: -0.02em;
	max-width: 760px;
	margin: 0 auto 18px !important;
	color: var(--ec-white) !important;
}
.ec-services .ec-closing .ec-closing-title em {
	font-style: italic;
	color: var(--ec-green-text) !important;
	font-weight: 500;
}
.ec-services .ec-closing-sub {
	font-size: 17px;
	line-height: 1.55;
	max-width: 600px;
	margin: 0 auto 38px;
	color: rgba(255,255,255,0.78);
}
.ec-services .ec-closing .ec-cta-btn,
.ec-services a.ec-cta-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	padding: 18px 30px !important;
	background: var(--ec-gold) !important;
	color: var(--ec-navy) !important;
	font-family: var(--ec-font-body) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	border-radius: 999px;
	text-decoration: none !important;
	line-height: 1 !important;
	transition: transform 200ms ease, background 200ms ease;
}
.ec-services .ec-cta-btn::after {
	content: "→";
	transition: transform 220ms ease;
	font-weight: 400;
}
.ec-services .ec-cta-btn:hover {
	background: var(--ec-green) !important;
	transform: translateY(-2px);
}
.ec-services .ec-cta-btn:hover::after { transform: translateX(4px); }

/* =========================================================================
 *  RESPONSIVE (hero / closing)
 *
 *  The service-card grid carries its own 3→2→1 breakpoints above.
 * ========================================================================= */
@media ( max-width: 1023px ) {
	.ec-services .ec-services-inner { padding: 56px 20px 72px; }
}
@media ( max-width: 767px ) {
	.ec-services .ec-services-hero,
	.ec-services .ec-hero { padding: 72px 20px 72px; }
	.ec-services .ec-hero-stats { gap: 22px; }
	.ec-services .ec-hero-stats > div { min-width: 130px; }
	.ec-services .ec-closing { padding: 56px 22px 60px; }
}

/* =========================================================================
 *  PRINT
 * ========================================================================= */
@media print {
	.ec-services { color: #000; background: #fff; }
	.ec-services .ec-services-hero,
	.ec-services .ec-hero { background: #fff; color: #000; }
	.ec-services .ec-svc-card { break-inside: avoid; }
	.ec-services .ec-closing { background: #fff; color: #000; }
}
