/*
 * EC Contact — Editorial Yearbook treatment for /contact-us/.
 *
 * Shares design tokens, Fraunces display type, and the hero/closing
 * grammar with /services/ + /our-projects/. Contact-specific elements:
 *   - Three channel cards (Call / Email / Visit) with iconography
 *   - Form section with two-column split at desktop
 *   - 3-step "what happens next" stripe
 *
 * Every selector is parented under `.ec-contact` so styles don't leak
 * into OneUp/WPBakery components or other EC pages.
 */

/* =========================================================================
 *  ROOT WRAPPER + RESET
 * ========================================================================= */
.ec-contact {
	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-contact *,
.ec-contact *::before,
.ec-contact *::after { box-sizing: border-box; }
.ec-contact a { color: inherit; text-decoration: none; }
.ec-contact p { margin: 0 0 1em; }
.ec-contact ol, .ec-contact ul { margin: 0; padding: 0; list-style: none; }

/* =========================================================================
 *  HERO BAND  —  identical grammar to /services/
 * ========================================================================= */
.ec-contact .ec-hero,
.ec-contact .ec-contact-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-contact .ec-hero::before,
.ec-contact .ec-contact-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-contact .ec-hero > *,
.ec-contact .ec-contact-hero > * { position: relative; z-index: 1; }
.ec-contact .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-contact h1.ec-hero-title,
.ec-contact .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;
	font-variation-settings: "opsz" 144, "SOFT" 50;
}
.ec-contact .ec-hero-title em {
	font-style: italic;
	font-weight: 500;
	color: var(--ec-green-text);
	font-variation-settings: "opsz" 144, "SOFT" 100;
}
.ec-contact .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-contact .ec-hero-stats {
	display: flex;
	gap: 36px;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
}
.ec-contact .ec-hero-stats > div { min-width: 150px; }
.ec-contact .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-contact .ec-hero::after,
.ec-contact .ec-contact-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 96px;
	height: 3px;
	background: var(--ec-gold);
}

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

/* =========================================================================
 *  CHANNEL CARDS  —  Call / Email / Visit
 *  3-column at desktop. Card has icon, eyebrow label, value, hint, link.
 *  Hover: lift + green underline appears.
 * ========================================================================= */
.ec-contact .ec-contact-channels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0 0 96px;
}
.ec-contact .ec-channel-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 32px 28px;
	background: var(--ec-warm-white);
	border-radius: 10px;
	border-top: 3px solid var(--ec-gold);
	color: var(--ec-navy);
	transition: transform 240ms cubic-bezier(0.22,0.61,0.36,1), box-shadow 240ms ease;
	min-height: 280px;
	overflow: hidden;
}
.ec-contact .ec-channel-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--ec-green);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 320ms cubic-bezier(0.22,0.61,0.36,1);
}
.ec-contact .ec-channel-card[href]:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 56px -22px rgba(4,23,26,0.28);
}
.ec-contact .ec-channel-card[href]:hover::after { transform: scaleX(1); }
.ec-contact .ec-channel-card[href]:focus-visible {
	outline: 2px solid var(--ec-green);
	outline-offset: 4px;
}

.ec-contact .ec-channel-icon {
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 22px;
	color: var(--ec-gold-text);
}
.ec-contact .ec-channel-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ec-text-dim);
	margin-bottom: 10px;
}
.ec-contact .ec-channel-value {
	font-family: var(--ec-font-display);
	font-weight: 700;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ec-navy);
	margin: 0 0 14px;
	word-break: break-word;
	font-variation-settings: "opsz" 96;
}
.ec-contact .ec-channel-hint {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ec-text-dim);
	margin: 0 0 20px;
	flex-grow: 1;
}
.ec-contact .ec-channel-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ec-green-text);
	margin-top: auto;
	transition: gap 220ms ease, color 220ms ease;
}
.ec-contact .ec-channel-link--passive { color: var(--ec-text-dim); }
.ec-contact .ec-channel-card[href]:hover .ec-channel-link {
	color: var(--ec-navy);
	gap: 10px;
}
.ec-contact .ec-channel-link svg { transition: transform 220ms ease; }
.ec-contact .ec-channel-card[href]:hover .ec-channel-link svg { transform: translateX(2px); }

/* =========================================================================
 *  FORM SECTION
 * ========================================================================= */
.ec-contact .ec-contact-form-section {
	margin: 0 0 96px;
	padding: 64px 48px;
	background: var(--ec-warm-white);
	border-radius: 12px;
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 56px;
	align-items: start;
}
.ec-contact .ec-contact-form-header { padding-top: 4px; }
.ec-contact .ec-contact-form-header .ec-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ec-gold-text);
	margin-bottom: 14px;
}
.ec-contact h2.ec-contact-form-title,
.ec-contact .ec-contact-form-title {
	font-family: var(--ec-font-display) !important;
	font-weight: 700;
	font-size: clamp(34px, 4vw, 52px) !important;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--ec-navy) !important;
	margin: 0 0 18px !important;
	max-width: 360px;
	font-variation-settings: "opsz" 96, "SOFT" 50;
}
.ec-contact .ec-contact-form-title em {
	font-style: italic;
	color: var(--ec-green-text);
	font-weight: 500;
}
.ec-contact .ec-contact-form-sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ec-text-dim);
	margin: 0;
	max-width: 380px;
}

/* Form fields — large editorial inputs */
.ec-contact .ec-contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ec-contact .ec-form-row { display: flex; flex-direction: column; gap: 8px; }
.ec-contact .ec-form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ec-contact .ec-form-row--split > div { display: flex; flex-direction: column; gap: 8px; }
.ec-contact .ec-form-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ec-text-dim);
}
.ec-contact .ec-form-input {
	width: 100%;
	padding: 14px 18px;
	font-family: var(--ec-font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ec-navy);
	background: var(--ec-white);
	border: 1px solid var(--ec-rule-dim);
	border-radius: 8px;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}
.ec-contact .ec-form-input::placeholder {
	color: rgba(4,23,26,0.36);
}
.ec-contact .ec-form-input:focus {
	outline: none;
	border-color: var(--ec-green-text);
	box-shadow: 0 0 0 3px var(--ec-green-tint);
}
.ec-contact .ec-form-textarea { resize: vertical; min-height: 130px; }
.ec-contact .ec-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 8px;
}
.ec-contact .ec-form-actions .ec-cta-btn { margin: 0; }
.ec-contact .ec-form-aside {
	font-size: 13px;
	color: var(--ec-text-dim);
	margin: 0;
	max-width: 340px;
}
.ec-contact .ec-form-aside a {
	color: var(--ec-navy);
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}
.ec-contact .ec-form-aside a:hover { color: var(--ec-green-text); }

/* CF7 form gets a similar visual treatment when present */
.ec-contact .ec-contact-form--cf7 input[type="text"],
.ec-contact .ec-contact-form--cf7 input[type="email"],
.ec-contact .ec-contact-form--cf7 input[type="tel"],
.ec-contact .ec-contact-form--cf7 textarea {
	width: 100% !important;
	padding: 14px 18px !important;
	font-family: var(--ec-font-body) !important;
	font-size: 15px !important;
	border: 1px solid var(--ec-rule-dim) !important;
	border-radius: 8px !important;
	background: var(--ec-white) !important;
	color: var(--ec-navy) !important;
	margin-bottom: 14px !important;
}
.ec-contact .ec-contact-form--cf7 input[type="submit"] {
	background: var(--ec-gold) !important;
	color: var(--ec-navy) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 16px 28px !important;
	font-family: var(--ec-font-body) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
}

/* =========================================================================
 *  PROCESS STRIPE — "What happens next"
 * ========================================================================= */
.ec-contact .ec-contact-process {
	padding: 24px 0 56px;
	border-top: 1px solid var(--ec-rule-dim);
}
.ec-contact .ec-contact-process-header {
	text-align: center;
	margin: 56px 0;
}
.ec-contact .ec-contact-process-header .ec-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ec-gold-text);
	margin-bottom: 14px;
}
.ec-contact h2.ec-contact-process-title,
.ec-contact .ec-contact-process-title {
	font-family: var(--ec-font-display) !important;
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 44px) !important;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--ec-navy) !important;
	margin: 0 auto !important;
	max-width: 680px;
	font-variation-settings: "opsz" 96;
}
.ec-contact .ec-contact-process-title em {
	font-style: italic;
	color: var(--ec-green-text);
	font-weight: 600;
}
.ec-contact .ec-contact-process-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.ec-contact .ec-contact-process-step {
	position: relative;
	padding-top: 8px;
	list-style: none; /* kill native <ol> "1.2.3." markers — client feedback 2026-06-30 (contact + quote) */
}
.ec-contact .ec-contact-process-step + .ec-contact-process-step::before {
	content: "";
	position: absolute;
	left: -24px;
	top: 24px;
	width: 1px;
	height: 56px;
	background: var(--ec-rule-dim);
}
.ec-contact .ec-contact-process-num {
	font-family: var(--ec-font-display);
	font-weight: 900;
	font-size: 56px;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--ec-gold-text);
	margin-bottom: 18px;
	font-variation-settings: "opsz" 96;
}
.ec-contact h3.ec-contact-process-step-title,
.ec-contact .ec-contact-process-step-title {
	font-family: var(--ec-font-display) !important;
	font-size: 24px !important;
	font-weight: 700;
	color: var(--ec-navy) !important;
	margin: 0 0 8px !important;
	letter-spacing: -0.01em;
}
.ec-contact .ec-contact-process-step-desc {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ec-text-dim);
	margin: 0;
}

/* =========================================================================
 *  CLOSING CTA
 * ========================================================================= */
.ec-contact .ec-closing,
.ec-contact .ec-contact-closing {
	margin-top: 24px;
	padding: 80px 32px;
	background: var(--ec-navy);
	color: var(--ec-white);
	border-radius: 8px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.ec-contact .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-contact .ec-closing > * { position: relative; }
.ec-contact .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-contact h2.ec-closing-title,
.ec-contact .ec-closing .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: 720px;
	margin: 0 auto 18px !important;
	color: var(--ec-white) !important;
}
.ec-contact .ec-closing .ec-closing-title em {
	font-style: italic;
	color: var(--ec-green-text) !important;
	font-weight: 500;
}
.ec-contact .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-contact .ec-closing .ec-cta-btn,
.ec-contact 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;
	border: 0;
	transition: transform 200ms ease, background 200ms ease;
	cursor: pointer;
}
.ec-contact .ec-cta-btn::after {
	content: "→";
	transition: transform 220ms ease;
	font-weight: 400;
}
.ec-contact .ec-cta-btn:hover {
	background: var(--ec-green) !important;
	transform: translateY(-2px);
}
.ec-contact .ec-cta-btn:hover::after { transform: translateX(4px); }

/* =========================================================================
 *  RESPONSIVE
 * ========================================================================= */
@media ( max-width: 1023px ) {
	.ec-contact .ec-contact-inner { padding: 56px 20px 72px; }
	.ec-contact .ec-contact-channels {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 72px;
	}
	.ec-contact .ec-channel-card { min-height: 0; padding: 28px 28px 24px; }
	.ec-contact .ec-contact-form-section {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 48px 28px;
		margin-bottom: 72px;
	}
	.ec-contact .ec-contact-process-steps { grid-template-columns: 1fr; gap: 36px; }
	.ec-contact .ec-contact-process-step + .ec-contact-process-step::before { display: none; }
}
@media ( max-width: 767px ) {
	.ec-contact .ec-hero,
	.ec-contact .ec-contact-hero { padding: 72px 20px 72px; }
	.ec-contact .ec-hero-stats { gap: 22px; }
	.ec-contact .ec-hero-stats > div { min-width: 130px; }
	.ec-contact .ec-form-row--split { grid-template-columns: 1fr; }
	.ec-contact .ec-closing { padding: 56px 22px 60px; }
	/* Aside contact links (phone / email) stack vertically at mobile.
	 * Inline siblings with multi-line bounding boxes overlap at 375px. */
	.ec-contact .ec-form-aside a {
		display: block;
		margin-top: 2px;
	}
}

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