/* ==========================================================================
   Erila Haska — design layer (v2)
   Executive navy, warm copper and paper white. Loaded after site.css, so it
   restyles the existing pages without touching their content.
   The Voice of Women in Innovation page uses the VOWI purple palette.
   ========================================================================== */

:root {
	--eh-navy: #0f2238;
	--eh-navy-2: #16304d;
	--eh-navy-3: #0a1828;
	--eh-copper: #a9663a;        /* copper on light backgrounds */
	--eh-copper-lt: #d9a273;     /* copper on navy */
	--eh-paper: #f8f6f2;
	--eh-mist: #eef1f5;
	--eh-line: #dfe3e9;
	--eh-ink: #1b2a3b;
	--eh-ink-soft: #3d4b5c;
	--eh-radius: 14px;
	--eh-shadow: 0 1px 2px rgba(15, 34, 56, .06), 0 14px 34px -18px rgba(15, 34, 56, .28);
	--eh-shadow-lg: 0 2px 4px rgba(15, 34, 56, .06), 0 30px 60px -28px rgba(15, 34, 56, .45);
	--eh-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--eh-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Retune the original tokens */
	--charcoal: var(--eh-navy);
	--ivory: var(--eh-paper);
	--gold: var(--eh-copper);
	--gold-soft: #f3e3d5;
	--stone: var(--eh-mist);
	--burgundy: var(--eh-navy-2);
	--ink-soft: var(--eh-ink-soft);
	--background: var(--eh-paper);
	--foreground: var(--eh-ink);
	--card: #ffffff;
	--card-foreground: var(--eh-ink);
	--primary: var(--eh-navy);
	--primary-foreground: #f4f6f9;
	--secondary: var(--eh-mist);
	--muted: #e9edf2;
	--muted-foreground: #4f5d6d;
	--accent: var(--eh-copper);
	--accent-foreground: #ffffff;
	--border: var(--eh-line);
	--input: var(--eh-line);
	--ring: var(--eh-copper);
	--font-serif-display: var(--eh-serif);
	--shadow-executive: var(--eh-shadow-lg);
	--shadow-gold: 0 18px 42px -22px rgba(169, 102, 58, .55);
	--hero-veil: rgba(10, 24, 40, .72);
}

/* Copper is lighter on navy so it stays readable */
.bg-primary,
footer.bg-primary,
.eh-header {
	--accent: var(--eh-copper-lt);
	--gold: var(--eh-copper-lt);
}

/* ---------- Type ---------- */
body {
	font-family: var(--eh-sans);
	font-size: 16.5px;
	line-height: 1.72;
	color: var(--eh-ink);
	background: var(--eh-paper);
	text-rendering: optimizeLegibility;
}
p, li, a, button, input, textarea, select { font-family: var(--eh-sans); }
h1, h2, h3, h4, h5, h6,
.font-serif-display,
p.font-serif-display, a.font-serif-display, li.font-serif-display {
	font-family: var(--eh-serif);
	font-optical-sizing: auto;
	letter-spacing: -0.015em;
}
h1, h2, h3, h4, h5, h6 { color: var(--eh-ink); font-weight: 450; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4,
.text-primary-foreground h1, .text-primary-foreground h2, .text-primary-foreground h3 { color: inherit; }
h1 { font-weight: 400; line-height: 1.08; }
h1 .text-accent, h2 .text-accent { font-style: italic; }

/* Section kickers (the small uppercase labels with a line) */
.tracking-\[0\.32em\], .tracking-\[0\.3em\], .tracking-\[0\.28em\] { font-weight: 600; }
p.uppercase .h-px, .uppercase > .h-px { width: 28px; height: 2px; }

a { text-underline-offset: 3px; }
::selection { background: rgba(169, 102, 58, .22); }

/* ---------- Header (replaces the in-page menu) ---------- */
main nav[aria-label="Primary"],
div:has(> nav[aria-label="Primary"]) { display: none !important; }

.eh-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid rgba(15, 34, 56, .08);
	font-family: var(--eh-sans);
	--accent: var(--eh-copper);
}
body.admin-bar .eh-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .eh-header { top: 0; } }
.eh-header__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 14px 28px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.eh-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--eh-navy); text-decoration: none; flex-shrink: 0; }
.eh-brand__mark {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--eh-navy); color: #fff;
	font: 500 13px/1 var(--eh-serif); letter-spacing: .04em;
	box-shadow: inset 0 0 0 2px var(--eh-navy), inset 0 0 0 3px var(--eh-copper-lt);
}
.eh-brand__name { font: 500 21px/1 var(--eh-serif); letter-spacing: -.01em; }
.eh-nav { margin-left: auto; }
.eh-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.eh-nav a {
	position: relative; display: block; padding: 8px 0;
	font-size: 13px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
	color: var(--eh-ink-soft); text-decoration: none; transition: color .25s;
}
.eh-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--eh-copper); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.eh-nav a:hover { color: var(--eh-navy); }
.eh-nav a:hover::after, .eh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.eh-nav a[aria-current="page"] { color: var(--eh-navy); font-weight: 600; }
.eh-cta {
	flex-shrink: 0; display: inline-flex; align-items: center;
	padding: 10px 20px; border-radius: 999px;
	background: var(--eh-navy); color: #fff !important;
	font-size: 13px; font-weight: 600; text-decoration: none;
	transition: background-color .25s, transform .25s;
}
.eh-cta:hover { background: var(--eh-copper); transform: translateY(-1px); }

.eh-header .erila-menu-btn {
	margin-left: auto;
	border-color: rgba(15, 34, 56, .2);
	color: var(--eh-navy);
	font-family: var(--eh-sans); font-weight: 600; letter-spacing: .16em;
}
.eh-header .erila-menu-btn:hover { border-color: var(--eh-copper); color: var(--eh-copper); }
@media (max-width: 1279.98px) {
	.eh-nav, .eh-cta { display: none; }
	.eh-header .erila-menu-btn { display: inline-flex; }
}
@media (min-width: 1280px) {
	.eh-header .erila-menu-btn { display: none !important; }
}
@media (min-width: 1280px) and (max-width: 1599.98px) {
	.eh-nav ul { gap: 18px; }
	.eh-nav a { font-size: 12.5px; }
	.eh-header__inner { gap: 20px; padding: 14px 24px; }
	.eh-cta { display: none; }
}
@media (max-width: 640px) {
	.eh-header__inner { padding: 12px 16px; }
	.eh-brand__name { font-size: 19px; }
}

/* Mobile menu panel in the new palette */
.erila-menu__backdrop { background: rgba(10, 24, 40, .55); }
.erila-menu__panel {
	background: #fff; border: 1px solid var(--eh-line); border-radius: 18px;
	color: var(--eh-ink);
}
.erila-menu__kicker, .erila-menu__foot a { color: var(--eh-copper); font-family: var(--eh-sans); }
.erila-menu__kicker span, .erila-menu__link::before { background: var(--eh-copper); }
.erila-menu__link { font-family: var(--eh-serif); font-weight: 400; font-size: 21px; color: var(--eh-ink-soft); }
.erila-menu__link:hover, .erila-menu__link:focus-visible { color: var(--eh-navy); }
.erila-menu__link[data-active="true"] { color: var(--eh-copper); }
.erila-menu__foot { font-family: var(--eh-sans); color: var(--eh-ink-soft); }
.erila-menu__close:hover { border-color: var(--eh-copper); background: rgba(169, 102, 58, .1); color: var(--eh-copper); }

/* ---------- Surfaces ---------- */
.bg-primary { background-color: var(--eh-navy); }
section.bg-primary.relative.isolate {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(217, 162, 115, .16), transparent 60%),
		linear-gradient(180deg, var(--eh-navy) 0%, var(--eh-navy-3) 100%);
}
.bg-secondary\/50, .bg-secondary\/40, .bg-secondary\/30, .bg-stone-100 { background-color: var(--eh-mist); }
.bg-ivory { background-color: var(--eh-paper); }
footer.bg-primary { background: var(--eh-navy-3); }

/* Cards */
.bg-card,
.rounded-lg.border,
.rounded-xl.border,
.rounded-2xl.border {
	border-radius: var(--eh-radius);
}
.bg-card {
	background: #fff;
	border-color: var(--eh-line);
	box-shadow: var(--eh-shadow);
	transition: transform .35s ease, box-shadow .35s ease;
}
a.bg-card:hover, article.bg-card:hover, .group.bg-card:hover, li.bg-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--eh-shadow-lg);
}
.bg-card img:first-child { border-top-left-radius: var(--eh-radius); border-top-right-radius: var(--eh-radius); }
.shadow-sm { box-shadow: var(--eh-shadow); }
.rounded-sm { border-radius: 8px; }
.rounded-md { border-radius: 10px; }
.rounded-lg { border-radius: var(--eh-radius); }
.overflow-hidden.rounded-sm, .overflow-hidden.rounded-md { border-radius: 12px; }

/* Photos */
main figure img, main .shadow-executive, main img.shadow-executive { border-radius: 16px; }
.shadow-executive { box-shadow: var(--eh-shadow-lg); }

/* Buttons and links */
a.bg-accent, button.bg-accent, .bg-accent.rounded-full, a.bg-accent.rounded-sm, a.bg-accent.rounded-md {
	background: var(--eh-navy); color: #fff; border-radius: 999px;
	transition: background-color .25s, transform .25s;
}
a.bg-accent:hover, button.bg-accent:hover { background: var(--eh-copper); transform: translateY(-1px); }
.bg-primary a.bg-accent, .bg-primary button.bg-accent { background: var(--eh-copper-lt); color: var(--eh-navy-3); }
.bg-primary a.bg-accent:hover { background: #fff; }
span.bg-accent, div.bg-accent { background-color: var(--accent); }

/* Bullet dots and thin lines in copper */
.h-px.bg-accent { height: 2px; }

/* ---------- Home ---------- */
/* Hero: the stage photo on the right, the quote on the left */
.eh-page-home main > section:first-of-type { min-height: 0; }
.eh-page-home main > section:first-of-type > img {
	opacity: .9;
	object-position: center 22%;
}
.eh-page-home main > section:first-of-type > .bg-gradient-to-b {
	background: linear-gradient(90deg, var(--eh-navy-3) 0%, rgba(10, 24, 40, .94) 40%, rgba(10, 24, 40, .55) 70%, rgba(10, 24, 40, .25) 100%);
}
@media (min-width: 1024px) {
	.eh-page-home main > section:first-of-type > img {
		left: auto; right: 0; width: 46%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	}
	.eh-page-home main > section:first-of-type > .bg-gradient-to-b {
		background: linear-gradient(90deg, var(--eh-navy-3) 0%, var(--eh-navy) 50%, rgba(15, 34, 56, 0) 75%);
	}
	.eh-page-home main > section:first-of-type h1 { max-width: 13em; font-size: clamp(38px, 3.5vw, 54px); }
	.eh-page-home main > section:first-of-type > div.relative.z-10:last-child > * { max-width: 54%; }
	.eh-page-home main > section:first-of-type > div.relative.z-10:last-child { min-height: 640px; max-width: 1200px; }
}
.eh-page-home main > section:first-of-type h1 { line-height: 1.14; }

/* Impact numbers: a clean proof strip */
.eh-page-home main > section:nth-of-type(2) { background: var(--eh-navy-3); }
.eh-page-home main > section:nth-of-type(2) .grid > div {
	text-align: left;
	border: 0;
	border-top: 2px solid rgba(217, 162, 115, .55);
	border-radius: 0;
	background: transparent;
	padding: 22px 4px 8px;
}
.eh-page-home main > section:nth-of-type(2) .grid > div > div:first-child { font-weight: 400; }

/* ---------- Inner page headers ---------- */
main > section.bg-primary.relative.isolate:first-child h1 { max-width: 18em; }

/* ---------- Voice of Women in Innovation page: VOWI colours ---------- */
.eh-page-women-in-innovation {
	--eh-v-deep: #2e1452;
	--eh-v-mid: #4b2a7a;
	--eh-v-lav: #a98be8;
	--eh-v-lav-2: #b49ae8;
	--eh-v-soft: #dccff7;
	--eh-v-ground: #f8f6fc;
	--charcoal: var(--eh-v-deep);
	--ivory: var(--eh-v-ground);
	--gold: var(--eh-v-mid);
	--burgundy: var(--eh-v-deep);
	--stone: #efe9fb;
	--background: var(--eh-v-ground);
	--foreground: #1f1233;
	--primary: var(--eh-v-deep);
	--secondary: #efe9fb;
	--accent: var(--eh-v-mid);
	--border: #e3d9f6;
	--ring: var(--eh-v-lav);
	--ink-soft: #3d2f55;
	background: var(--eh-v-ground);
}
.eh-page-women-in-innovation h1, .eh-page-women-in-innovation h2,
.eh-page-women-in-innovation h3, .eh-page-women-in-innovation h4 { color: #1f1233; }
.eh-page-women-in-innovation .bg-primary,
.eh-page-women-in-innovation footer.bg-primary,
.eh-page-women-in-innovation section[style*="--burgundy"] {
	--accent: var(--eh-v-lav-2);
	--gold: var(--eh-v-lav-2);
}
.eh-page-women-in-innovation .bg-primary,
.eh-page-women-in-innovation section[style*="--burgundy"] { background: var(--eh-v-deep) !important; }
.eh-page-women-in-innovation footer.bg-primary { background: #220e3e !important; }
.eh-page-women-in-innovation .bg-primary h2,
.eh-page-women-in-innovation section[style*="--burgundy"] h2 { color: #fff; }
.eh-page-women-in-innovation .bg-secondary\/50 { background: #f1ecfb; }
.eh-page-women-in-innovation .eh-header { --eh-copper: var(--eh-v-mid); }
.eh-page-women-in-innovation .eh-nav a::after { background: var(--eh-v-lav); }
.eh-page-women-in-innovation .eh-brand__mark,
.eh-page-women-in-innovation .eh-cta { background: var(--eh-v-deep); }
.eh-page-women-in-innovation .eh-brand__mark { box-shadow: inset 0 0 0 2px var(--eh-v-deep), inset 0 0 0 3px var(--eh-v-lav); }
.eh-page-women-in-innovation .eh-cta:hover { background: var(--eh-v-mid); }
.eh-page-women-in-innovation a.bg-accent { background: var(--eh-v-deep); }
.eh-page-women-in-innovation ::selection { background: rgba(169, 139, 232, .3); }

/* ---------- Footer ---------- */
footer.bg-primary { font-size: 14.5px; }
footer.bg-primary a:hover { color: var(--eh-copper-lt); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.bg-card, .eh-cta, a.bg-accent { transition: none; }
}

/* Certifications list: thin dividers, no empty filler cell */
ul:has(> .cert-item) { background: transparent !important; gap: 0 !important; }
.cert-item { border-bottom: 1px solid var(--eh-line); }
@media (min-width: 640px) and (max-width: 1023.98px) {
	.cert-item:not(:nth-child(2n)) { border-right: 1px solid var(--eh-line); }
}
@media (min-width: 1024px) {
	.cert-item:not(:nth-child(3n)) { border-right: 1px solid var(--eh-line); }
}
