/* ==========================================================================
   EV Workshop Sections — [evw_about_page] and [evw_contact_page]
   Built on the same tokens as everything else, so the two brand colors in
   EV Workshop > Page Settings drive this too.
   ========================================================================== */

.evw-page {
	color: var(--evw-text);
	font-family: var(--evw-font);
}

/* Themes whose content wrapper is a flex container size it to its content,
   which would stop the sections reaching the window edges. */
.evw-page {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

.evw-page h1,
.evw-page h2,
.evw-page h3,
.evw-page p,
.evw-page a,
.evw-page li,
.evw-page .evw-btn,
.evw-page .evw-eyebrow {
	font-family: var(--evw-font);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.evw-page__hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(96px, 10vw, 152px) clamp(64px, 7vw, 100px);
	background:
		radial-gradient(120% 140% at 80% 6%, var(--evw-t22), transparent 62%),
		linear-gradient(160deg, var(--evw-night-3) 0%, var(--evw-night-2) 45%, var(--evw-night) 100%);
	color: var(--evw-on-dark);
	isolation: isolate;
}

.evw-page__hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--evw-t55), transparent);
}

.evw-page__intro {
	max-width: 780px;
}

.evw-page__intro h1 {
	margin: 10px 0 18px;
	/* Section headings cap at 15ch, which breaks a title this long onto three
	   lines; two reads better here. */
	max-width: 20ch;
	font-size: clamp(36px, 5.4vw, 64px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.035em;
	color: #fff;
}

.evw-page__intro .evw-lead { color: var(--evw-on-dark-muted); }
.evw-page__intro .evw-eyebrow { color: var(--evw-primary-soft); }
.evw-page__intro .evw-actions { margin-top: 30px; }

.evw-page__hero .evw-stats { margin-top: clamp(48px, 6vw, 76px); }

/* The hero carries evw-section--dark, so the buttons, eyebrow and stats pick
   up the dark treatment the other dark sections use. */

/* The story section keeps a little more air above it, since the hero below
   the header already carries the page's opening. */
.evw-page__story {
	padding-top: clamp(48px, 5vw, 76px);
}

.evw-page__story .evw-stats {
	margin-top: clamp(44px, 5vw, 68px);
}

/* --------------------------------------------------------------------------
   Story, photo, gallery
   -------------------------------------------------------------------------- */

.evw-page .evw-prose h2 {
	margin-top: 0;
	font-size: clamp(26px, 3vw, 38px);
	letter-spacing: -.03em;
}

.evw-page__figure {
	margin: 0;
	border-radius: var(--evw-r-xl);
	overflow: hidden;
	box-shadow: var(--evw-sh-2);
	background: var(--evw-paper-2);
}

.evw-page__figure img,
.evw-page__photo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
}

.evw-page__figure--dark {
	margin-top: 28px;
	border: 1px solid var(--evw-line-dark);
	box-shadow: var(--evw-sh-dark);
}

.evw-page__figure--dark img { max-height: 300px; }

.evw-page__links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--evw-line);
}

.evw-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--evw-gap);
}

.evw-gallery__item {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: var(--evw-r-lg);
	overflow: hidden;
	background: var(--evw-paper-2);
	box-shadow: var(--evw-sh-1);
}

.evw-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--evw-slow) var(--evw-ease-out);
}

.evw-gallery__item:hover img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Contact cards
   -------------------------------------------------------------------------- */

.evw-contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--evw-gap);
}

.evw-contact-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(24px, 2.4vw, 32px);
	border: 1px solid var(--evw-line);
	border-radius: var(--evw-r-lg);
	background: var(--evw-paper);
	box-shadow: var(--evw-sh-1);
	transition:
		border-color var(--evw-mid) var(--evw-ease),
		transform var(--evw-mid) var(--evw-ease-out),
		box-shadow var(--evw-mid) var(--evw-ease-out);
}

.evw-contact-card:hover {
	transform: translateY(-3px);
	border-color: var(--evw-t34);
	box-shadow: var(--evw-sh-2);
}

.evw-contact-card h3 {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--evw-muted);
}

.evw-contact-card p {
	margin: 0;
	font-size: clamp(17px, 1.4vw, 19px);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--evw-text);
}

.evw-contact-card .evw-text-link { margin-top: auto; padding-top: 8px; }

.evw-page__note {
	max-width: 62ch;
	margin: 30px auto 0;
	text-align: center;
	color: var(--evw-muted);
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.evw-page__map-section { padding-bottom: clamp(56px, 6vw, 88px); }

.evw-map {
	position: relative;
	margin-top: 10px;
	border-block: 1px solid var(--evw-line);
	background: var(--evw-paper-2);
	line-height: 0;
}

.evw-map iframe {
	display: block;
	width: 100%;
	height: clamp(320px, 46vw, 480px);
	border: 0;
	filter: grayscale(.25) contrast(1.04);
}

.evw-map__actions {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Odds and ends
   -------------------------------------------------------------------------- */

.evw-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Three across reads better than four with five cards in play. */
@media (min-width: 981px) {
	.evw-contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.evw-page .evw-split { grid-template-columns: 1fr; }
	.evw-page__figure img { max-height: 340px; }
}

@media (max-width: 640px) {
	.evw-page__intro .evw-actions .evw-btn { width: 100%; }
	.evw-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
	.evw-gallery__item { border-radius: var(--evw-r); }
	.evw-page__links { gap: 14px; }
}

@media print {
	.evw-page__hero { background: #fff !important; color: #000 !important; }
	.evw-page__intro h1 { color: #000; }
	.evw-map, .evw-single__cta { display: none !important; }
}
