/* ==========================================================================
   Services detail page — alternating text/feature-list rows
   ========================================================================== */
.ec-service-detail-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--space-5);
	padding: var(--space-5) 0;
	border-top: 1px solid var(--line);
}
.ec-service-detail-row:last-child {
	border-bottom: 1px solid var(--line);
}
.ec-service-detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-2);
	align-content: center;
}
.ec-service-detail-list li {
	padding-left: var(--space-3);
	position: relative;
	color: var(--concrete);
}
.ec-service-detail-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 8px;
	background: var(--amber);
	border-radius: 1px;
}
@media (max-width: 720px) {
	.ec-service-detail-row {
		grid-template-columns: 1fr;
	}
}
.ec-page-header {
	background: var(--ink-navy);
	color: var(--paper);
	padding: calc(var(--header-h) + var(--space-4)) 0 var(--space-5);
}
.ec-page-header .ec-eyebrow {
	color: var(--amber);
}
.ec-page-header h1 {
	color: var(--white);
	font-size: var(--text-h2);
}
.ec-page-header p {
	color: rgba(247, 245, 240, 0.75);
	max-width: 60ch;
}
.ec-hero {
	position: relative;
	background:
		linear-gradient(180deg, rgba(12, 23, 41, 0.88) 0%, rgba(18, 32, 58, 0.78) 55%, rgba(18, 32, 58, 0.95) 100%),
		url('../img/hero-bg.webp') center center / cover no-repeat;
	color: var(--paper);
	padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-7);
}
.ec-hero-content {
	max-width: 720px;
}
.ec-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--text-eyebrow);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber);
	display: block;
	margin-bottom: var(--space-2);
}
.ec-hero h1 {
	color: var(--white);
}
.ec-hero p.ec-lead {
	color: rgba(247, 245, 240, 0.82);
	max-width: 46ch;
}
.ec-hero-cta {
	display: flex;
	gap: var(--space-2);
	margin: var(--space-4) 0 var(--space-5);
	flex-wrap: wrap;
}
.ec-hero-stat-row {
	display: flex;
	gap: var(--space-6);
	flex-wrap: wrap;
	padding-top: var(--space-4);
	border-top: 1px solid var(--line-dark);
}
.ec-hero-stat-row .ec-card-num {
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--white);
	display: block;
}
.ec-hero-stat-row .ec-card-label {
	font-size: var(--text-small);
	color: rgba(247, 245, 240, 0.7);
}
@media (max-width: 700px) {
	.ec-hero-stat-row {
		gap: var(--space-4);
	}
}

/* ==========================================================================
   Reusable image frame — used wherever a photo sits beside text
   (About teaser on home, About page)
   ========================================================================== */
.ec-hero-visual {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--blueprint);
}
.ec-hero-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ec-stats {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--space-4);
}
.ec-stats-grid {
	padding: var(--space-5) 0;
	text-align: center;
}
.ec-stats-grid .ec-stat-num {
	font-family: var(--font-mono);
	font-size: 2rem;
	font-weight: 700;
	color: var(--ink-navy);
	display: block;
}
.ec-stats-grid .ec-stat-label {
	font-size: var(--text-small);
	color: var(--concrete);
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.ec-section {
	padding: var(--space-7) 0;
}
.ec-section-head {
	max-width: 640px;
	margin: 0 0 var(--space-5);
}

/* ==========================================================================
   Services — dark cards in a single row, matches client reference's
   overall dark tone but keeps consistent card sizing with the rest of site
   ========================================================================== */
.ec-services-dark {
	background: var(--ink-navy);
	color: var(--paper);
}
.ec-services-dark .ec-eyebrow {
	color: var(--amber);
}
.ec-services-dark .ec-section-head p {
	color: rgba(247, 245, 240, 0.7);
}
.ec-services-dark .ec-service-card {
	background: var(--ink-navy-deep);
	border-color: var(--line-dark);
}
.ec-service-card-num {
	color: var(--amber);
	font-size: var(--text-small);
	display: block;
	margin-bottom: var(--space-2);
}
.ec-services-dark .ec-service-card h3 {
	color: var(--white);
}
.ec-services-dark .ec-service-card p {
	color: rgba(247, 245, 240, 0.65);
}
.ec-service-row-tag {
	display: inline-block;
	margin-top: var(--space-2);
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-pill);
	border: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--paper);
}

/* ==========================================================================
   Process
   ========================================================================== */
.ec-process {
	background: var(--ink-navy-deep);
	color: var(--paper);
}
.ec-process .ec-section-head p {
	color: rgba(247, 245, 240, 0.7);
}
.ec-process-step {
	border-top: 2px solid var(--amber);
	padding-top: var(--space-2);
}
.ec-process-step .ec-step-num {
	font-family: var(--font-mono);
	color: var(--amber);
	font-size: 1.5rem;
	display: block;
	margin-bottom: var(--space-1);
}
.ec-process-step h3 {
	color: var(--white);
}
.ec-process-step p {
	color: rgba(247, 245, 240, 0.65);
	font-size: var(--text-small);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.ec-project-card {
	overflow: hidden;
	padding: 0; /* image needs to reach the card edge, body gets its own padding below */
}
.ec-project-card img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.ec-project-body {
	padding: var(--space-3);
}
.ec-project-meta {
	display: flex;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--text-small);
	color: var(--blueprint);
	margin-top: var(--space-2);
	flex-wrap: wrap;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.ec-testimonials-section {
	padding-top: calc(var(--space-7) + var(--space-3));
}
.ec-testimonial-card {
	background: var(--paper);
	padding: var(--space-4);
}
.ec-testimonial-card .ec-quote {
	color: var(--ink);
	margin-bottom: var(--space-4);
	line-height: 1.7;
}
.ec-testimonials-grid.ec-grid {
	gap: var(--space-4);
}
.ec-testimonial-person {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}
.ec-testimonial-person img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}
.ec-testimonial-person .ec-person-name {
	font-weight: 600;
	font-size: var(--text-small);
}
.ec-testimonial-person .ec-person-role {
	font-size: var(--text-small);
	color: var(--concrete);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.ec-faq {
	max-width: 760px;
	margin: 0 auto;
}
.ec-faq-section-head {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.ec-faq-item {
	border-bottom: 1px solid var(--line);
}
.ec-faq-question {
	width: 100%;
	text-align: left;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: var(--space-3) 0 !important;
	font-family: var(--font-body) !important;
	font-weight: 600;
	font-size: var(--text-body);
	color: var(--ink) !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.ec-faq-question .ec-faq-icon {
	font-family: var(--font-mono);
	color: var(--amber);
}
.ec-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}
.ec-faq-item.is-open .ec-faq-answer {
	max-height: 400px;
}
.ec-faq-answer p {
	padding-bottom: var(--space-3);
	margin: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.ec-contact {
	background: var(--paper);
}
.ec-contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--space-6);
}
.ec-contact-grid > * {
	min-width: 0; /* grid items default to min-width:auto, letting wide content (like a form field) force the track wider than the viewport */
}
.ec-contact-info-item {
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--line);
}
.ec-contact-info-item h4 {
	font-size: var(--text-eyebrow);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blueprint);
	margin-bottom: var(--space-1);
}
.ec-contact-form-wrap {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: var(--space-4);
	max-width: 100%;
	overflow-x: hidden;
}
/* Forminator sometimes sets its own fixed widths on inputs/selects -
   force everything inside the form wrapper to respect the container. */
.ec-contact-form-wrap form,
.ec-contact-form-wrap input,
.ec-contact-form-wrap select,
.ec-contact-form-wrap textarea,
.ec-contact-form-wrap button {
	max-width: 100% !important;
	box-sizing: border-box !important;
}
@media (max-width: 900px) {
	.ec-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Trust strip — credentials row under the stats bar
   ========================================================================== */
.ec-trust-strip {
	background: var(--paper);
	padding: var(--space-3) 0 var(--space-5);
	text-align: center;
}
.ec-trust-strip-label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-eyebrow);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--concrete);
	margin-bottom: var(--space-2);
}
.ec-trust-strip-items {
	display: flex;
	justify-content: center;
	gap: var(--space-5);
	flex-wrap: wrap;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink-navy);
	opacity: 0.55;
	letter-spacing: 0.03em;
}

/* ==========================================================================
   Why choose us — value prop cards
   ========================================================================== */
.ec-value-card {
	text-align: center;
}
.ec-value-card h3 {
	font-size: 1.05rem;
}

/* ==========================================================================
   CTA banner — full width push before the final contact section
   ========================================================================== */
.ec-cta-banner {
	background: var(--amber);
	padding: var(--space-5) 0;
}
.ec-cta-banner-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}
.ec-cta-banner h2 {
	color: var(--white);
	margin-bottom: var(--space-1);
	font-size: 1.6rem;
}
.ec-cta-banner p {
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}
.ec-cta-banner .ec-btn-primary {
	background: var(--white);
	color: var(--amber-dark);
}
.ec-cta-banner .ec-btn-primary:hover {
	background: var(--ink);
	color: var(--white);
}
@media (max-width: 700px) {
	.ec-cta-banner-inner {
		flex-direction: column;
		text-align: center;
	}
}

/* ==========================================================================
   Project filter tabs — Projects page only
   ========================================================================== */
.ec-project-filters {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
	margin-bottom: var(--space-4);
}
.ec-filter-btn {
	background: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: var(--space-1) var(--space-3);
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 600;
	color: var(--concrete);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ec-filter-btn:hover {
	border-color: var(--ink-navy);
	color: var(--ink);
}
.ec-filter-btn.is-active {
	background: var(--ink-navy);
	border-color: var(--ink-navy);
	color: var(--white);
}
.ec-project-card.is-hidden {
	display: none;
}

/* ==========================================================================
   Process steps on a light background — used on the 6 service sub-pages,
   where .ec-process-step sits in a plain white section instead of the
   dark .ec-process section it was originally designed for.
   ========================================================================== */
.ec-process-light .ec-process-step h3 {
	color: var(--ink);
}
.ec-process-light .ec-process-step p {
	color: var(--concrete);
}
