/**
 * Home page redesign — scoped entirely under .evh so it never touches the
 * rest of the site's look. Token names and values are copied from the
 * design handoff (docs: theme/design_handoff_homepage/) for pixel-close
 * fidelity; kept as a separate token namespace (--color-*, --navy-*, no
 * "ev-" prefix) so nothing here can collide with or override the sitewide
 * --ev-* tokens in tokens.css that the header/footer/every other page use.
 * Only enqueued on the front page — see inc/enqueue.php.
 */

.evh {
	--color-bg: #f3f2f2;
	--color-surface: #eae9e9;
	--color-text: #201f1d;
	--color-accent: #b68235;
	--color-accent-300: #facb8d;
	--color-accent-700: #7d5411;
	--color-divider: rgba(32, 31, 29, 0.16);
	--navy-900: #182338;
	--navy-800: #1f2c47;
	--navy-700: #2b3a5c;
	--navy-border: rgba(255, 255, 255, 0.14);

	--font-heading: "Cormorant Garamond", serif;
	--font-body: "Lora", serif;

	--space-1: 4.6px;
	--space-2: 9.2px;
	--space-3: 13.8px;
	--space-4: 18.4px;
	--space-6: 27.6px;
	--space-8: 36.8px;

	--radius-sm: 2px;
	--radius-md: 4px;
	--radius-lg: 7px;

	--shadow-sm: 0 1px 2px rgba(45, 43, 43, 0.14);
	--shadow-md: 0 3px 10px rgba(45, 43, 43, 0.16);

	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
}

/*
 * base.css declares color directly on bare h1–h6/p elements (for the
 * sitewide dark-navy pages), and a direct rule on an element always wins
 * over an inherited value regardless of specificity — so these need their
 * own explicit color, not just font-family/size, or they render in the
 * navy theme's near-white heading/muted-paragraph colors here instead.
 */
.evh h1,
.evh h2,
.evh h3,
.evh h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-2);
	color: var(--color-text);
}

.evh h1 { font-size: 42px; }
.evh h2 { font-size: 32px; }
.evh h3 { font-size: 25px; }
.evh h4 { font-size: 20px; }

.evh p { margin: 0 0 var(--space-3); color: var(--color-text); }
.evh a { color: var(--color-accent); text-underline-offset: 3px; }
.evh img { display: block; max-width: 100%; }
.evh .text-muted { color: rgba(32, 31, 29, 0.55); }
.evh :focus { outline: none; }
.evh :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.evh .evh-container {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--space-4);
}

.evh .evh-section {
	padding-block: calc(var(--space-8) * 1.2);
}

.evh .evh-section--surface {
	background: var(--color-surface);
	border-block: 1px solid var(--color-divider);
}

/* "What edgeVelocity Covers" — wall-texture background art, tinted with the
   section's own surface color; the 7 cards on top go navy (below) so they
   read as clear, contrasting tiles against the lighter textured backdrop. */
.evh .evh-section--covers-bg {
	background-image: linear-gradient(rgba(234, 233, 233, 0.82), rgba(234, 233, 233, 0.82)), var(--covers-bg-image);
	background-size: cover;
	background-position: center;
}

/* "Who edgeVelocity Is Built For" — soft abstract background art, tinted
   with the section's own cream so heading/paragraph text and the circular
   photo rows on top stay fully readable. The actual image is a media-library
   upload, not a static theme asset, so its URL is passed in as the
   --audience-bg-image custom property from front-page.php rather than
   hardcoded here. */
.evh .evh-section--audience-bg {
	background-image: linear-gradient(rgba(243, 242, 242, 0.72), rgba(243, 242, 242, 0.72)), var(--audience-bg-image);
	background-size: cover;
	background-position: center;
}

.evh .evh-text-center { text-align: center; }
.evh .evh-heading-center { text-align: center; margin-bottom: var(--space-8); }

.evh .hr {
	height: 1px;
	border: 0;
	margin: var(--space-4) 0;
	background: var(--color-divider);
}

/* Plated photo frame — the sepia/desaturated "old print" treatment used on
   every image slot in the reference. */
.evh .plate {
	filter: sepia(0.22) saturate(0.82) contrast(1.05);
	box-sizing: border-box;
	border: 6px solid var(--color-surface);
	outline: 1px solid var(--color-divider);
	overflow: hidden;
	display: block;
}

.evh .plate img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evh .elev-sm { box-shadow: var(--shadow-sm); }
.evh .elev-md { box-shadow: var(--shadow-md); }

/* Empty image slot placeholder — shown until real photography is supplied;
   never a broken <img>, never an unrelated existing photo reused as a
   stand-in (see docs/content-editorial-guidelines.md). */
.evh .evh-placeholder {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--space-3);
	background: var(--color-neutral, #ece9e4);
	color: rgba(32, 31, 29, 0.55);
	font-size: 12px;
	letter-spacing: 0.02em;
}

/* — buttons — */
.evh .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	background: transparent;
	border: 1px solid transparent;
	padding: var(--space-3) calc(var(--space-6));
	border-radius: var(--radius-md);
}

.evh .btn-primary {
	background: var(--color-accent-300);
	color: var(--navy-900);
	border-color: var(--color-accent-300);
}

.evh .btn-primary:hover,
.evh .btn-primary:focus-visible {
	background: var(--color-accent);
}

.evh .btn-secondary {
	border-color: var(--navy-border);
	color: #fff;
}

.evh .btn-secondary--light {
	border-color: var(--color-divider);
	color: var(--color-text);
}

.evh .btn-secondary:hover,
.evh .btn-secondary:focus-visible,
.evh .btn-secondary--light:hover,
.evh .btn-secondary--light:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}

.evh .btn-secondary--light:hover,
.evh .btn-secondary--light:focus-visible {
	background: rgba(32, 31, 29, 0.06);
}

.evh .btn-ghost {
	color: var(--color-accent);
	padding-inline: var(--space-1);
	border: none;
}

.evh .btn-ghost:hover,
.evh .btn-ghost:focus-visible {
	background: rgba(182, 130, 53, 0.1);
}

/* — cards ("What edgeVelocity Covers") — navy, for contrast against the
   section's lighter textured background (2026-09-02). Text/link colors are
   explicitly re-asserted here (not inherited) for the same reason the hero
   does it: .evh's global h1-h4/p/a color rules assume a light background and
   would otherwise win on specificity over a plain --color-text inheritance. */
.evh .card {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--navy-900);
	border: 1px solid var(--navy-border);
}

.evh .card-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: #fff;
}

.evh .card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; color: rgba(255, 255, 255, 0.78); }

.evh .card .btn-ghost { color: var(--color-accent-300); }

.evh .card .btn-ghost:hover,
.evh .card .btn-ghost:focus-visible {
	background: rgba(250, 203, 141, 0.12);
}

/* — tags — */
.evh .tag-outline {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 10px;
	border-radius: 3px;
	border: 1px solid var(--color-accent);
	color: var(--color-accent);
}

/* ── Section-specific layout ─────────────────────────────────────────── */

.evh .evh-hero {
	background: var(--navy-900);
	padding: calc(var(--space-8) * 1.4) var(--space-4) calc(var(--space-8) * 1.2);
}

.evh .evh-hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: var(--space-8);
	align-items: center;
}

.evh .evh-hero__kicker {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 15px;
	color: var(--color-accent-300);
	margin-bottom: var(--space-3);
}

.evh .evh-hero__grid h1 {
	color: #fff;
	max-width: 14ch;
}

.evh .evh-hero__grid p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
	max-width: 52ch;
}

.evh .evh-hero__actions {
	display: flex;
	gap: var(--space-3);
	margin-top: var(--space-6);
	flex-wrap: wrap;
}

.evh .evh-hero__media {
	aspect-ratio: 4 / 3;
	border-color: var(--navy-700);
	outline-color: var(--navy-border);
}

/* Hero photo blended into the navy background instead of framed — no
   plate border/outline/sepia. aspect-ratio matches the portrait source
   photo itself (not the 4:3 the plate default uses) and object-fit:contain
   guarantees the full subject shows, never cropped; edges fade via a wide,
   gradual radial mask so the box boundary doesn't read as a seam. */
.evh .evh-hero__media--blend {
	aspect-ratio: 4 / 5;
	border: none;
	outline: none;
	filter: none;
	-webkit-mask-image: radial-gradient(ellipse 65% 68% at center, #000 30%, transparent 85%);
	mask-image: radial-gradient(ellipse 65% 68% at center, #000 30%, transparent 85%);
}

/*
 * mix-blend-mode: lighten (not just the mask) is what actually removes the
 * seam — the photo's own near-black background is rarely pixel-identical
 * to --navy-900, so even a wide mask fade still shows a faint "puddle" of
 * slightly-off dark color in the middle. Lighten makes every image pixel
 * darker than the navy backdrop resolve TO the backdrop's exact color
 * (per channel), not just at the masked edge — so the head's own dark
 * background disappears into the page everywhere, and only content
 * brighter than navy-900 (the lit circuitry, metal highlights) stays
 * visible, reading as if it floats directly on the section background.
 */
.evh .evh-hero__media--blend img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: lighten;
}

.evh .evh-stats {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-divider);
}

.evh .evh-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-4);
	padding-block: var(--space-6);
}

.evh .evh-stats__item {
	text-align: center;
	padding-inline: var(--space-3);
	border-left: 1px solid var(--color-divider);
}

.evh .evh-stats__number {
	font-family: var(--font-heading);
	font-size: 34px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--color-accent-700);
}

.evh .evh-stats__label {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
	margin-top: var(--space-1);
}

.evh .evh-audience-row {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: var(--space-8);
	align-items: center;
	margin-block: var(--space-8);
}

.evh .evh-audience-row--reverse {
	grid-template-columns: 1fr 0.8fr;
}

.evh .evh-audience-row--reverse .evh-audience-row__media { order: 2; }
.evh .evh-audience-row--reverse .evh-audience-row__content { order: 1; text-align: right; }
.evh .evh-audience-row--reverse .evh-audience-row__content p { margin-left: auto; }

.evh .evh-audience-row__media {
	aspect-ratio: 4 / 3;
}

.evh .evh-audience-row__content p {
	text-align: justify;
	max-width: 48ch;
}

/* Circular photo + decorative ring, border matched to the section
   background so the edge blends rather than reading as a boxed card —
   opt-in per photo via evh_circle_photo(), not the default plate frame. */
.evh .evh-audience-row__media--circle {
	position: relative;
	width: 300px;
	height: 300px;
	aspect-ratio: auto;
	margin-inline: auto;
	border: none;
	outline: none;
	filter: none;
	overflow: visible;
	background: none;
}

.evh .evh-audience-row__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px dashed var(--color-accent-300);
	opacity: 0.6;
	transform: translate(18px, -18px);
}

.evh .evh-audience-row__ring::before {
	content: "";
	position: absolute;
	inset: 28px;
	border-radius: 50%;
	background: var(--color-accent);
	opacity: 0.12;
}

.evh .evh-audience-row__photo {
	position: absolute;
	inset: 22px;
	width: calc(100% - 44px);
	height: calc(100% - 44px);
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--color-bg);
	box-shadow: var(--shadow-md);
	display: block;
}

.evh .evh-covers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-4);
}

.evh .evh-covers__media {
	aspect-ratio: 16 / 10;
}

.evh .evh-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-6);
}

.evh .evh-article-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.evh .evh-article-card__media {
	aspect-ratio: 3 / 2;
}

.evh .evh-article-card h4 { margin-top: var(--space-1); }

.evh .evh-products__grid {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: var(--space-8);
	align-items: center;
}

.evh .evh-products__media {
	aspect-ratio: 4 / 3;
}

.evh .evh-products__kicker {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent-700);
	margin-bottom: var(--space-2);
}

.evh .evh-products__desc {
	text-align: justify;
	max-width: 54ch;
}

.evh .evh-products__checklist {
	display: grid;
	gap: var(--space-2);
	margin: var(--space-4) 0;
	list-style: none;
	padding: 0;
}

.evh .evh-products__checklist li {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}

.evh .evh-products__checklist li::before {
	content: "\2713";
	color: var(--color-accent-700);
	font-weight: 600;
	flex: none;
}

.evh .evh-cta {
	background: var(--navy-900);
	padding: var(--space-8) var(--space-4);
}

.evh .evh-cta__frame {
	max-width: 960px;
	margin-inline: auto;
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.evh .evh-cta__media {
	aspect-ratio: 16 / 7;
}

.evh .evh-cta__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(24, 35, 56, 0) 40%, rgba(24, 35, 56, 0.92) 100%);
	pointer-events: none;
}

.evh .evh-cta__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: var(--space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.evh .evh-cta__content h3 {
	color: #fff;
	margin: 0;
	max-width: 32ch;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 64em) {
	.evh .evh-hero__grid,
	.evh .evh-audience-row,
	.evh .evh-audience-row--reverse,
	.evh .evh-products__grid {
		grid-template-columns: 1fr;
	}

	.evh .evh-audience-row--reverse .evh-audience-row__media,
	.evh .evh-audience-row--reverse .evh-audience-row__content {
		order: initial;
		text-align: left;
	}

	.evh .evh-audience-row--reverse .evh-audience-row__content p {
		margin-left: 0;
	}

	.evh .evh-stats__grid,
	.evh .evh-covers__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.evh .evh-articles__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 40em) {
	.evh .evh-stats__grid,
	.evh .evh-covers__grid {
		grid-template-columns: 1fr;
	}

	.evh h1 { font-size: 32px; }
	.evh h2 { font-size: 26px; }
}
