/*
 * Ethical Page Template – front end
 * Layout, spacing and colours only. Font family, font size and line height
 * come from the active theme.
 */
.ept {
	--ept-blue: #0f4f7f;
	--ept-bar: #0a5b9a;
	--ept-accent: #2a6eaf;
	--ept-icon: #2b6cb0;
	--ept-navy: #1d375a;
	--ept-btn: #1a365d;
	--ept-hero-title: #666;
	--ept-hero-bg: #f7f7f7;
	--ept-panel: #f9fafc;
	--ept-card: #f7f7f7;
	--ept-card-border: #205ba9;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.ept *, .ept *::before, .ept *::after { box-sizing: border-box; }
.ept h1, .ept h2, .ept h3, .ept p { margin: 0; }
.ept img { display: block; max-width: 100%; height: auto; }
.ept-hero-grid > *, .ept-split > *, .ept-grid-3 > *, .ept-grid-4 > *,
.ept-media-panel > *, .ept-process > *, .ept-stats > * { min-width: 0; }

.ept-ico { display: block; width: 38px; height: 38px; color: var(--ept-icon); fill: currentColor; }
.ept-topbar { height: 7px; background: var(--ept-bar); }

.ept-container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.ept-inner { padding: 0 19px; }

/* Headings: colour + accent line only */
.ept .ept-h2 { color: var(--ept-blue); }
.ept .ept-h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--ept-accent); margin: 14px 0 22px; }
.ept .ept-h3 { color: var(--ept-blue); }
.ept-lead { max-width: 700px; }

/* Rich text areas (wp_editor output) */
.ept-rich p + p, .ept-rich p + ul, .ept-rich ul + p, .ept-rich p + ol, .ept-rich ol + p { margin-top: 20px; }
.ept-rich ul, .ept-rich ol { margin: 0; padding-left: 1.3em; }

/* HERO */
.ept-hero { max-width: 1247px; margin: 22px auto 0; background: var(--ept-hero-bg); padding: 0 45px 20px; }
.ept-hero-grid { display: grid; grid-template-columns: 426px 1fr; gap: 98px; align-items: start; }
.ept .ept-hero-title { color: var(--ept-hero-title); text-transform: uppercase; padding-top: 10px; }
.ept-hero-text { margin: 26px 0 22px; }
.ept .ept-hero-btn {
	position: relative; display: block; width: 100%;
	background: var(--ept-btn); color: #fff; text-decoration: none;
	border-radius: 3px; padding: 44px 60px 24px 38px; transition: background .2s;
}
.ept .ept-hero-btn:hover, .ept .ept-hero-btn:focus { background: #122a4a; color: #fff; text-decoration: none; }
.ept-hero-btn svg { position: absolute; right: 48px; top: 24px; width: 17px; height: 17px; }
.ept-hero-media { padding-top: 45px; }
.ept-hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ept-slider-dot { width: 12px; height: 3px; background: #777; margin: 13px auto 0; }

/* Sections */
.ept-section { padding: 100px 0 180px; }
.ept-section.ept-first { padding-top: 127px; }
.ept-panel { background: var(--ept-panel); padding: 47px 40px 125px; }

/* Intro with image */
.ept-split { display: grid; grid-template-columns: 1fr 509px; gap: 57px; align-items: start; margin-top: 10px; }
.ept-split .ept-h3 { margin: 12px 0 28px; }
.ept-split img { width: 100%; }
.ept-rounded { border-radius: 5px; }

/* Icon grids */
.ept-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 40px; }
.ept-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.ept-item .ept-ico { margin-bottom: 18px; }
.ept-item .ept-h3 { margin-bottom: 26px; }
.ept-cats { margin-top: 40px; row-gap: 62px; }
.ept-cats .ept-ico { margin-bottom: 22px; }
.ept-cats .ept-h3 { margin-bottom: 22px; }

/* Media + text panels */
.ept-media-panel { display: grid; grid-template-columns: 489px 1fr; gap: 50px; align-items: start; }
.ept-media-panel.ept-reverse { grid-template-columns: 1fr 489px; }
.ept-media-panel img { width: 100%; }
.ept-media-panel .ept-h3 { margin: -6px 0 12px; }
.ept-media-panel.ept-reverse .ept-h3 { margin: -10px 0 18px; }
.ept-split.ept-no-media, .ept-media-panel.ept-no-media { grid-template-columns: 1fr; }

/* Cards */
.ept-cards { margin-top: 26px; }
.ept-card { background: var(--ept-card); border-left: 3px solid var(--ept-card-border); padding: 44px 28px 42px; }
.ept-card .ept-h3 { margin-bottom: 22px; }

/* Process */
.ept-process { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 42px; row-gap: 112px; align-items: start; }
.ept-process .ept-intro .ept-h2 { margin-top: -6px; }
.ept .ept-step-title { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 18px; }
.ept-step-num {
	flex: 0 0 29px; height: 29px; margin-top: .15em; border-radius: 3px;
	background: var(--ept-blue); color: #fff; font-weight: 600; font-size: .6em;
	display: flex; align-items: center; justify-content: center;
}
.ept-process > :nth-child(4) { grid-column: 2; }

/* Figures */
.ept-stats-panel { background: var(--ept-panel); padding: 72px 40px 118px; }
.ept-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.ept-stat-num { font-weight: 800; color: var(--ept-blue); }
.ept-stat-label { margin-top: 12px; }

/* CTA */
.ept-cta { background: var(--ept-navy); color: #fff; border-radius: 5px; text-align: center; padding: 86px 40px 70px; margin: 71px 0 80px; }
.ept .ept-cta h2 { color: #fff; margin-bottom: 12px; }
.ept-cta p { max-width: 650px; margin: 0 auto; }
.ept .ept-cta-btn {
	display: inline-block; background: #fff; color: var(--ept-navy); font-weight: 600;
	text-decoration: none; border-radius: 4px; padding: 13px 26px; margin: 30px 0 40px; transition: background .2s;
}
.ept .ept-cta-btn:hover, .ept .ept-cta-btn:focus { background: #e8edf4; color: var(--ept-navy); text-decoration: none; }
.ept .ept-cta-contact { max-width: none; opacity: .95; }
.ept .ept-cta-contact a { color: #fff; text-decoration: none; }
.ept .ept-cta-contact a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.ept-hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
	.ept-split { grid-template-columns: 1fr 1fr; gap: 40px; }
	.ept-media-panel, .ept-media-panel.ept-reverse { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 991px) {
	.ept-hero { padding: 24px 32px 32px; margin-top: 16px; }
	.ept-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.ept .ept-hero-title { padding-top: 0; }
	.ept .ept-hero-btn { max-width: 426px; }
	.ept-hero-media { padding-top: 0; }
	.ept-section { padding: 72px 0 96px; }
	.ept-section.ept-first { padding-top: 80px; }
	.ept-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
	.ept-cats { row-gap: 48px; }
	.ept-grid-3 { grid-template-columns: 1fr 1fr; gap: 40px; }
	.ept-panel { padding: 44px 32px 72px; }
	.ept-split, .ept-media-panel, .ept-media-panel.ept-reverse { grid-template-columns: 1fr; gap: 32px; }
	.ept-media-panel.ept-reverse img { order: -1; }
	.ept-media-panel .ept-h3, .ept-media-panel.ept-reverse .ept-h3 { margin-top: 0; }
	.ept-process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
	.ept-process .ept-intro { grid-column: 1 / -1; }
	.ept-process > :nth-child(4) { grid-column: auto; }
	.ept-stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.ept-stats-panel { padding: 56px 32px 64px; }
	.ept-cta { padding: 64px 32px 52px; margin: 56px 0 64px; }
}
@media (max-width: 640px) {
	.ept-container { padding: 0 16px; }
	.ept-inner { padding: 0; }
	.ept-hero { padding: 20px 16px 24px; margin-top: 0; }
	.ept-hero-text { margin: 18px 0 20px; }
	.ept .ept-hero-btn { padding: 36px 56px 22px 24px; }
	.ept-hero-btn svg { right: 22px; top: 26px; }
	.ept-section { padding: 56px 0 72px; }
	.ept-section.ept-first { padding-top: 56px; }
	.ept-panel { padding: 36px 20px 52px; margin: 0 -16px; }
	.ept-grid-3, .ept-grid-4, .ept-process { grid-template-columns: 1fr; gap: 36px; }
	.ept-cats { row-gap: 40px; }
	.ept-cats .ept-ico, .ept-item .ept-ico { margin-bottom: 12px; }
	.ept-cats .ept-h3, .ept-item .ept-h3 { margin-bottom: 12px; }
	.ept-card { padding: 30px 22px; }
	.ept-stats-panel { padding: 48px 20px; margin: 0 -16px; }
	.ept-stat-label { margin-top: 6px; }
	.ept-cta { padding: 52px 20px 40px; margin: 48px 0; }
	.ept-cta-contact span { display: block; }
	.ept-cta-contact .ept-sep { display: none; }
}
