/*
 * Essence Point Limited site styles.
 * Colours, fonts and the H1/H2 sizes are Elementor Global Variables (--ep-*).
 * Spacing, radii and container width are in the :root block below, because
 * Elementor Free does not output fixed-size variables. Each token exists once.
 * Reusable page classes (button-primary, section-heading...) are Elementor
 * Global Classes. This file covers what Elementor does not render: fonts, the
 * header, the service directory and focus states. Flexbox only.
 */

:root {
	--ep-container: 1240px;
	--ep-radius-control: 8px;
	--ep-radius-card: 14px;
	--ep-radius-media: 20px;
	--ep-radius-pill: 999px;
	--ep-space-1: 4px;
	--ep-space-2: 8px;
	--ep-space-3: 12px;
	--ep-space-4: 16px;
	--ep-space-5: 24px;
	--ep-space-6: 32px;
	--ep-space-7: 48px;
	--ep-space-8: 64px;
	--ep-space-9: 96px;
	--ep-space-10: 128px;
}

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* Base */
body.ep-site {
	margin: 0;
	background: var(--ep-white);
	color: var(--ep-text);
	font-family: var(--ep-font-body), system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.ep-site [hidden] { display: none !important; }

.ep-site a:focus-visible,
.ep-site button:focus-visible,
.ep-site input:focus-visible {
	outline: 3px solid var(--ep-cyan);
	outline-offset: 2px;
}

.ep-site section[id] { scroll-margin-top: 92px; }

/* Service directory */
.ep-directory {
	display: flex;
	flex-direction: column;
	gap: var(--ep-space-5);
	width: 100%;
}

.ep-directory__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.service-filter {
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--ep-line-strong);
	border-radius: var(--ep-radius-pill);
	background: var(--ep-white);
	color: var(--ep-text);
	font-family: var(--ep-font-body), sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .16s, border-color .16s, color .16s;
}

.service-filter:hover {
	border-color: var(--ep-navy);
	background: var(--ep-white);
	color: var(--ep-navy);
}

.service-filter[aria-pressed="true"],
.service-filter[aria-pressed="true"]:hover {
	border-color: var(--ep-navy);
	background: var(--ep-navy);
	color: var(--ep-white);
}

.service-filter__count { opacity: .8; }

.ep-directory__status {
	margin: 0;
	color: var(--ep-muted);
	font-size: 14px;
}

.ep-directory__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ep-space-5);
}

.service-card {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	max-width: calc(50% - 12px);
	overflow: hidden;
	border: 1px solid var(--ep-line);
	border-radius: var(--ep-radius-card);
	background: var(--ep-white);
	box-shadow: 0 1px 2px rgba(16, 42, 86, .06);
	transition: box-shadow .16s, transform .16s;
}

.service-card:hover {
	box-shadow: 0 10px 28px rgba(16, 42, 86, .12);
	transform: translateY(-2px);
}

.service-card--agriculture-energy { --ep-card-color: var(--ep-group-agri); --ep-card-tint: var(--ep-tint-agri); }
.service-card--trade-industrial { --ep-card-color: var(--ep-group-trade); --ep-card-tint: var(--ep-tint-trade); }
.service-card--travel-education { --ep-card-color: var(--ep-group-travel); --ep-card-tint: var(--ep-tint-travel); }
.service-card--legal-property { --ep-card-color: var(--ep-group-legal); --ep-card-tint: var(--ep-tint-legal); }

.service-card__photo {
	display: flex;
	align-items: flex-end;
	box-sizing: border-box;
	height: 176px;
	padding: 14px;
	background: var(--ep-card-tint);
	color: var(--ep-white);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.service-card__image {
	display: block;
	width: 100%;
	height: 176px;
	object-fit: cover;
}

.service-card__bar {
	height: 4px;
	background: var(--ep-card-color);
}

.service-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: var(--ep-space-3);
	padding: 20px 20px 22px;
}

.service-card__meta {
	color: var(--ep-card-color);
	font-size: 12px;
	font-weight: 600;
}

.service-card__title {
	margin: 0;
	color: var(--ep-navy);
	font-family: var(--ep-font-heading), sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.service-card__desc {
	flex-grow: 1;
	margin: 0;
	color: var(--ep-text-2);
	font-size: 15px;
	line-height: 1.65;
}

.service-card__label {
	margin: 0;
	color: var(--ep-navy);
	font-size: 13px;
	font-weight: 600;
}

.service-card__activities {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ep-text-2);
	font-size: 15px;
	line-height: 1.5;
}

.service-card__activities li {
	display: flex;
	gap: 10px;
}

.service-card__tick {
	color: var(--ep-card-color);
	font-weight: 700;
}

/* Same look as the button-secondary Global Class, which Elementor only loads on pages whose own elements use it. */
.ep-site .service-card__enquire {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--ep-navy);
	border-radius: var(--ep-radius-control);
	background: transparent;
	color: var(--ep-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.ep-site .service-card__enquire:hover {
	background: var(--ep-navy);
	color: var(--ep-white);
}

.service-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.service-card__value {
	margin: 0;
	color: var(--ep-navy);
	font-size: 14px;
	font-weight: 500;
}

.service-card__link { align-self: flex-start; }

.service-card__soon {
	align-self: flex-start;
	margin: 0;
	padding: 10px 16px;
	border: 1.5px dashed var(--ep-line-strong);
	border-radius: var(--ep-radius-control);
	background: var(--ep-soft);
	color: var(--ep-text-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

/* Detailed layout (Our Businesses page): one wide card per row, photo beside the text. */
.ep-directory--detailed .service-card {
	flex: 1 1 100%;
	flex-direction: row;
	flex-wrap: wrap;
	max-width: none;
}

.ep-directory--detailed .service-card:hover { transform: none; }

.ep-directory--detailed .service-card__image,
.ep-directory--detailed .service-card__photo {
	flex: 1 1 340px;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 260px;
}

.ep-directory--detailed .service-card__bar { display: none; }

.ep-directory--detailed .service-card__body {
	flex: 2 1 520px;
	min-width: 0;
	gap: 14px;
	padding: 28px 32px 30px;
	border-top: 4px solid var(--ep-card-color);
}

.ep-directory--detailed .service-card__title { font-size: 21px; }

.ep-directory--detailed .service-card__desc { flex-grow: 0; }

.service-card__details {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.service-card__col {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

@media (max-width: 767px) {
	.ep-directory--detailed .service-card__body { padding: 22px 20px 24px; }
	.ep-directory--detailed .service-card__image,
	.ep-directory--detailed .service-card__photo { flex-basis: 100%; min-height: 200px; max-height: 240px; }
}

.ep-directory__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ep-space-3);
	padding: var(--ep-space-6);
	border: 1px dashed var(--ep-line-strong);
	border-radius: var(--ep-radius-card);
	background: var(--ep-white);
}

.ep-directory__empty-title {
	margin: 0;
	color: var(--ep-navy);
	font-family: var(--ep-font-heading), sans-serif;
	font-size: 19px;
	font-weight: 700;
}

.ep-directory__empty-text {
	margin: 0;
	color: var(--ep-text-2);
}

/* Search box */
.service-search-field { width: 100%; }

.service-search-field__label {
	display: block;
	margin-bottom: 6px;
	color: var(--ep-text-2);
	font-size: 13px;
	font-weight: 600;
}

.service-search-field__box {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--ep-line-strong);
	border-radius: var(--ep-radius-control);
	background: var(--ep-white);
	color: var(--ep-muted);
}

.service-search-field__box:focus-within {
	outline: 3px solid var(--ep-cyan);
	outline-offset: 2px;
}

.ep-site input.service-search {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ep-text);
	font-family: var(--ep-font-body), sans-serif;
	font-size: 16px;
}

.ep-site input.service-search::placeholder { color: var(--ep-muted); opacity: 1; }

@media (max-width: 599px) {
	.service-card { max-width: 100%; }
}

/* Blog post cards: [ep_blog_posts] on the Blog page and homepage. */
.ep-posts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ep-space-5);
	width: 100%;
}

.ep-post-card {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid var(--ep-line);
	border-radius: var(--ep-radius-card);
	background: var(--ep-white);
	box-shadow: 0 1px 2px rgba(16, 42, 86, .06);
	transition: box-shadow .16s;
}

@media (min-width: 1000px) {
	.ep-post-card { max-width: calc(33.333% - 16px); }
}

.ep-post-card:hover { box-shadow: 0 10px 28px rgba(16, 42, 86, .12); }

.ep-post-card__media { display: block; }

.ep-post-card__image {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}

.ep-post-card__body {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	gap: var(--ep-space-3);
	padding: 22px 22px 24px;
}

.ep-site .ep-post-card__meta {
	margin: 0;
	color: var(--ep-group-travel);
	font-size: 13px;
	font-weight: 600;
}

.ep-site .ep-post-card__title {
	margin: 0;
	font-family: var(--ep-font-heading), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.ep-site .ep-post-card__title a {
	color: var(--ep-navy);
	text-decoration: none;
}

.ep-site .ep-post-card__title a:hover { color: var(--ep-blue); }

.ep-site .ep-post-card__excerpt {
	flex-grow: 1;
	margin: 0;
	color: var(--ep-text-2);
	font-size: 15px;
	line-height: 1.65;
}

.ep-site .ep-post-card__link {
	align-self: flex-start;
	color: var(--ep-blue);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ep-site .ep-post-card__link:hover { color: var(--ep-navy); }

.ep-posts__empty { margin: 0; color: var(--ep-muted); }

/* Single blog posts (Blocksy's post template, restyled to match the site). */
.ep-site.single-post .entry-header .page-title,
.ep-site.single-post h1 {
	color: var(--ep-navy);
	font-family: var(--ep-font-heading), sans-serif;
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.01em;
}

.ep-site.single-post .entry-meta { color: var(--ep-muted); font-size: 14px; }

.ep-site.single-post .entry-content {
	color: var(--ep-text-2);
	font-size: 17px;
	line-height: 1.75;
}

.ep-site.single-post .entry-content h2 {
	margin-top: 1.6em;
	color: var(--ep-navy);
	font-family: var(--ep-font-heading), sans-serif;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	line-height: 1.25;
}

.ep-site.single-post .entry-content a { color: var(--ep-blue); }

.ep-site.single-post .entry-content ol,
.ep-site.single-post .entry-content ul { padding-left: 1.3em; }

.ep-site.single-post .entry-content li { margin-bottom: .45em; }

.ep-site.single-post .ct-featured-image img,
.ep-site.single-post .entry-content img { border-radius: var(--ep-radius-media); }

.ep-site.single-post .wp-block-quote,
.ep-site.single-post .ep-post-note {
	padding: 18px 22px;
	border-left: 4px solid var(--ep-red);
	border-radius: 0 var(--ep-radius-card) var(--ep-radius-card) 0;
	background: var(--ep-soft);
	color: var(--ep-text);
	font-size: 15px;
}

/* Fluent Forms (Contact and Partnerships), matched to the site's buttons and inputs. */
.ep-site .fluentform .ff-el-group { margin-bottom: 18px; }

.ep-site .fluentform .ff-el-input--label label,
.ep-site .fluentform .ff-el-input--label {
	color: var(--ep-navy);
	font-family: var(--ep-font-body), sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.ep-site .fluentform .ff-el-form-control {
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--ep-line-strong);
	border-radius: var(--ep-radius-control);
	background: var(--ep-white);
	color: var(--ep-text);
	font-family: var(--ep-font-body), sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
}

.ep-site .fluentform textarea.ff-el-form-control { min-height: 110px; }

.ep-site .fluentform .ff-el-form-control:focus {
	border-color: var(--ep-navy);
	outline: 3px solid var(--ep-cyan);
	outline-offset: 2px;
}

.ep-site .fluentform .ff-el-form-check label,
.ep-site .fluentform .ff_t_c {
	color: var(--ep-text-2);
	font-size: 15px;
	line-height: 1.55;
}

.ep-site .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--ep-red-action); }

.ep-site .fluentform .error,
.ep-site .fluentform .text-danger {
	color: var(--ep-red-action-hover);
	font-size: 14px;
}

.ep-site .fluentform .ff-btn-submit {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--ep-radius-control);
	background-color: var(--ep-red-action) !important;
	color: var(--ep-white) !important;
	font-family: var(--ep-font-body), sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	opacity: 1;
}

.ep-site .fluentform .ff-btn-submit:hover,
.ep-site .fluentform .ff-btn-submit:focus-visible { background-color: var(--ep-red-action-hover) !important; opacity: 1; }

.ep-site .ff-message-success {
	padding: 20px;
	border: 1px solid var(--ep-line);
	border-left: 4px solid var(--ep-group-agri);
	border-radius: var(--ep-radius-card);
	background: var(--ep-soft);
	color: var(--ep-text);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.ep-site *,
	.ep-site { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.service-card:hover { transform: none; }
}
