/*
Theme Name: Epona (editor proof)
Theme URI: https://staging-epona.made-digital.co.uk/
Author: Made Digital
Author URI: https://www.made-digital.co.uk/
Description: A classic theme written by hand for Epona's WordPress editor proof. No page builder, no bought theme, no CSS or JavaScript framework, no third-party request for a visitor. Case studies, resources and team members are fixed forms, so the words change and the layout cannot.
Version: 0.4.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epona
*/

/* ------------------------------------------------------------------ tokens
   The ink is the navy on Epona's current site (#1E2A38, read from eponacares.com on 24 Oct); the blues are ours until
   Epona's brand files arrive. One place to change: every rule below reads these. */
:root {
	--ep-ink: #1e2a38;
	--ep-ink-soft: #4a5a70;
	--ep-blue: #1d5bd6;
	--ep-blue-deep: #133f99;
	--ep-sky: #eef4fc;
	--ep-sky-2: #f6f9fe;
	--ep-line: #d9e3f1;
	--ep-white: #ffffff;
	--ep-copper: #c1652f;
	--ep-radius: 14px;
	--ep-radius-s: 10px;
	--ep-shadow: 0 1px 2px rgba(30, 42, 56, 0.06), 0 8px 24px rgba(30, 42, 56, 0.06);
	--ep-wrap: 1200px;
	--ep-read: 720px;
	--ep-gutter: clamp(16px, 4vw, 40px);
	--ep-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ep-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ep-white);
	color: var(--ep-ink);
	font: 400 1.0625rem/1.65 var(--ep-font);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ep-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ep-blue-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ep-blue); outline-offset: 3px; border-radius: 4px; }
.ep-skip { position: absolute; left: -9999px; top: 8px; background: var(--ep-ink); color: var(--ep-white); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.ep-skip:focus { left: 8px; }
.ep-wrap { width: min(var(--ep-wrap), 100% - 2 * var(--ep-gutter)); margin-inline: auto; }
.ep-read { width: min(var(--ep-read), 100% - 2 * var(--ep-gutter)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ------------------------------------------------------------------ buttons */
.ep-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 48px; padding: 0 1.35em; border-radius: var(--ep-radius-s);
	font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1;
	border: 1.5px solid transparent; transition: background-color 0.2s var(--ep-ease), color 0.2s var(--ep-ease), transform 0.2s var(--ep-ease);
}
.ep-btn--primary { background: var(--ep-blue); color: var(--ep-white); }
.ep-btn--primary:hover { background: var(--ep-blue-deep); color: var(--ep-white); transform: translateY(-1px); }
.ep-btn--primary:focus-visible { outline-color: var(--ep-ink); }
.ep-btn--ghost { background: var(--ep-white); color: var(--ep-blue); border-color: var(--ep-line); }
.ep-btn--ghost:hover { border-color: var(--ep-blue); color: var(--ep-blue-deep); }
.ep-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75em 0 0; }

/* ------------------------------------------------------------------ header */
.ep-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--ep-line); backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .ep-header { top: 32px; }
.ep-header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.ep-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ep-ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.ep-brand svg { width: 30px; height: 30px; }
.ep-nav { margin-left: auto; }
.ep-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.ep-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ep-ink); text-decoration: none; font-weight: 500; }
.ep-nav a:hover, .ep-nav .current-menu-item > a { background: var(--ep-sky); color: var(--ep-blue-deep); }
.ep-nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--ep-line); border-radius: 8px; background: var(--ep-white); color: var(--ep-ink); font: 600 0.95rem var(--ep-font); }

@media (max-width: 860px) {
	.ep-header__row { flex-wrap: wrap; gap: 12px; min-height: 64px; }
	.ep-nav-toggle { display: inline-flex; align-items: center; }
	.ep-header__cta { display: none; }
	.ep-nav { display: none; flex-basis: 100%; margin: 0 0 12px; }
	.ep-nav.is-open { display: block; }
	.ep-nav ul { flex-direction: column; }
	.ep-nav a { padding: 12px; }
	.admin-bar .ep-header { top: 46px; }
}

/* ------------------------------------------------------------------ the homepage hero (the one designed section) */
.ep-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ep-sky-2) 0%, var(--ep-white) 78%); border-bottom: 1px solid var(--ep-line); }
.ep-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(56px, 9vw, 128px); }
.ep-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--ep-line); border-radius: 999px; background: var(--ep-white); color: var(--ep-blue-deep); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; }
.ep-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ep-blue); box-shadow: 0 0 0 4px rgba(29, 91, 214, 0.15); }
.ep-hero__title { max-width: 15ch; margin-bottom: 0.4em; }
.ep-hero__lead { max-width: 46ch; color: var(--ep-ink-soft); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.ep-hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
.ep-hero__art svg { width: 100%; height: 100%; }
/* The dots arrive ONCE and then stay still (WCAG 2.2.2 Pause, Stop, Hide: nothing moves on its own for more than
   5 seconds without a pause control). The whole entrance is over in under 1.5 s; reduced motion shows the still. */
.ep-hero__art .ep-dot { transform-origin: center; transform-box: fill-box; animation: ep-arrive 0.9s var(--ep-ease) both; }
.ep-hero__art .ep-dot:nth-child(3n) { animation-delay: 0.15s; }
.ep-hero__art .ep-dot:nth-child(3n+1) { animation-delay: 0.3s; }
@keyframes ep-arrive { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
	.ep-hero__grid { grid-template-columns: 1fr; gap: 8px; padding-block: 28px 56px; }
	.ep-hero__art { max-width: 220px; justify-self: center; order: -1; }
	.ep-hero__title { max-width: none; }
}

/* ------------------------------------------------------------------ bands, cards, lists */
.ep-band { padding-block: clamp(48px, 7vw, 96px); }
.ep-band--sky { background: var(--ep-sky-2); border-block: 1px solid var(--ep-line); }
.ep-band__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ep-band__head p { margin: 0; color: var(--ep-ink-soft); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ep-card { display: flex; flex-direction: column; background: var(--ep-white); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); overflow: hidden; transition: transform 0.25s var(--ep-ease), border-color 0.25s var(--ep-ease); }
.ep-card:hover { transform: translateY(-2px); border-color: #c3d3ea; }
.ep-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ep-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ep-card__meta { margin: 0; color: var(--ep-blue-deep); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ep-card__title { margin: 0; font-size: 1.2rem; }
.ep-card__title a { color: var(--ep-ink); text-decoration: none; }
.ep-card__title a::after { content: ""; position: absolute; inset: 0; }
.ep-card { position: relative; }
.ep-card__text { margin: 0; color: var(--ep-ink-soft); font-size: 0.975rem; }
.ep-empty { padding: 28px; border: 1px dashed var(--ep-line); border-radius: var(--ep-radius); color: var(--ep-ink-soft); background: var(--ep-white); }

/* ------------------------------------------------------------------ single pages and the fixed-field layouts */
.ep-page-head { padding-block: clamp(40px, 6vw, 80px) 24px; background: var(--ep-sky-2); border-bottom: 1px solid var(--ep-line); }
.ep-page-head .ep-card__meta { margin-bottom: 10px; }
.ep-content { padding-block: 40px 72px; }
.ep-content > * + * { margin-top: 1.1em; }
.ep-content img { border-radius: var(--ep-radius-s); }
.ep-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.ep-facts li { padding: 16px 18px; border: 1px solid var(--ep-line); border-radius: var(--ep-radius-s); background: var(--ep-white); }
.ep-facts b { display: block; color: var(--ep-ink-soft); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ep-story h2 { font-size: 1.35rem; margin-top: 1.6em; }
.ep-quote { margin: 40px 0 0; padding: 28px 30px; border-left: 4px solid var(--ep-blue); border-radius: 0 var(--ep-radius) var(--ep-radius) 0; background: var(--ep-sky); font-size: 1.2rem; }
.ep-quote p { margin: 0 0 0.5em; }
.ep-quote cite { color: var(--ep-ink-soft); font-size: 0.95rem; font-style: normal; font-weight: 600; }
.ep-person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.ep-person img { border-radius: var(--ep-radius); aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 600px) { .ep-person { grid-template-columns: 1fr; } .ep-person img { max-width: 160px; } }
.ep-notice { margin: 0 0 24px; padding: 14px 16px; border-radius: var(--ep-radius-s); background: #fff6ec; border: 1px solid #f1d3b5; color: #7a3d12; font-size: 0.95rem; }

/* ------------------------------------------------------------------ footer */
.ep-footer { padding-block: 40px; background: var(--ep-ink); color: #d6deea; font-size: 0.95rem; }
.ep-footer a { color: var(--ep-white); }
.ep-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.ep-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ consent (shows only when a tracker is registered) */
.ep-consent { position: fixed; inset: auto 16px 16px 16px; z-index: 60; max-width: 560px; margin-inline: auto; padding: 18px 20px; border: 1px solid var(--ep-line); border-radius: var(--ep-radius); background: var(--ep-white); box-shadow: 0 12px 40px rgba(30, 42, 56, 0.18); }
.ep-consent[hidden] { display: none; }
.ep-consent p { margin: 0 0 12px; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
