/* eventsmanager.site entry page on pixelite-base5-em. Values match trywpem's main.css so the two sites read as siblings; colors come from the theme's --color-primary (EM green). */

.em-demo-entry {
	--emd-ink: #1d1c21;
	--emd-text: #3f463c;
	--emd-muted: #5b6458;
	--emd-line: #e4e8df;
	--emd-tint: #f4f6f1;
	--emd-green: var(--color-primary, #5c8f30);
	--emd-green-dark: #426d28;
	--emd-green-soft: rgba(92, 143, 48, .12);
	--emd-radius: 16px;
	color-scheme: light;
}

.em-demo-entry .em-demo-nav-buttons { display: flex; align-items: center; }
@media (max-width: 991px) {
	.em-demo-entry .em-demo-nav-buttons { padding: 12px 0 18px; }
}
.em-demo-entry footer .em-demo-credit { font-weight: 600; }
.em-demo-entry footer .h5 { font-size: 1.25rem; }

.emd-page { color: var(--emd-ink); overflow-x: clip; }
.emd-page h1, .emd-page h2, .emd-page h3 { color: var(--emd-ink); }
.emd-page a:not(.btn) { color: var(--emd-green-dark); text-underline-offset: 3px; }
.em-demo-entry :focus-visible { outline: 3px solid var(--emd-green-dark); outline-offset: 3px; border-radius: 4px; }

/* Hero */
.emd-hero {
	/* The theme's header is fixed and overlays the page. */
	padding: 136px 0 80px;
	background:
		radial-gradient(ellipse at 10% 0%, rgba(92, 143, 48, .10), transparent 55%),
		linear-gradient(180deg, #fafafa 0%, var(--emd-tint) 100%);
}
.emd-eyebrow {
	display: inline-block;
	background: var(--emd-green-soft);
	color: var(--emd-green-dark);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
}
.emd-hero h1 {
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	margin-bottom: 20px;
	text-wrap: balance;
}
.emd-lead { font-size: 19px; line-height: 1.55; color: var(--emd-text); max-width: 34em; margin-bottom: 28px; }
.emd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.emd-textlink { font-weight: 700; }

/* Browser frame, as on trywpem */
.emd-browser {
	margin: 0;
	background: #fff;
	border: 1px solid var(--emd-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(29, 28, 33, .12), 0 4px 12px rgba(29, 28, 33, .06);
}
.emd-browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	background: #f3f4f1;
	border-bottom: 1px solid var(--emd-line);
}
.emd-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dcd5; }
.emd-browser-bar b {
	margin-left: 12px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 500;
	color: var(--emd-muted);
	background: #fff;
	border-radius: 999px;
	border: 1px solid var(--emd-line);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Hero index of demo sites */
.emd-index ul { list-style: none; margin: 0; padding: 8px; }
.emd-index li + li { border-top: 1px solid var(--emd-line); }
.emd-index a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px;
	border-radius: 10px;
	text-decoration: none;
	transition: background-color .15s ease;
}
.emd-index a:hover { background: var(--emd-tint); }
.emd-index-icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--emd-tone-bg);
	color: var(--emd-tone-fg);
}
.emd-index-icon svg, .emd-media-icon svg, .emd-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.emd-index-icon svg { width: 20px; height: 20px; }
.emd-index-text { display: flex; flex-direction: column; min-width: 0; }
.emd-index-text strong { color: var(--emd-ink); font-weight: 700; }
.emd-index-text span { color: var(--emd-muted); font-size: 14px; }

/* Tones for image fallbacks: brand green first, then quieter neighbors. Foregrounds pass 4.5:1 on their backgrounds. */
.emd-tone-0 { --emd-tone-bg: #e7efdf; --emd-tone-fg: #3d6524; }
.emd-tone-1 { --emd-tone-bg: #dfeeea; --emd-tone-fg: #1f5f52; }
.emd-tone-2 { --emd-tone-bg: #f4ead9; --emd-tone-fg: #75501a; }
.emd-tone-3 { --emd-tone-bg: #e4e8f0; --emd-tone-fg: #364766; }
.emd-tone-4 { --emd-tone-bg: #f1e2e4; --emd-tone-fg: #7a2e3a; }

/* Sections */
.emd-section { padding: 80px 0; scroll-margin-top: 80px; }
.emd-tinted { background: var(--emd-tint); }
.emd-h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.emd-section-head { max-width: 46em; margin-bottom: 32px; }
.emd-section-head p { font-size: 18px; color: var(--emd-muted); margin: 0; }
.emd-empty { font-size: 18px; color: var(--emd-muted); }

/* Demo cards */
.emd-cards { list-style: none; display: grid; gap: 24px; padding: 0; margin: 0; }
.emd-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emd-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emd-cards-1 { grid-template-columns: minmax(0, 32em); }
.emd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--emd-line);
	border-radius: var(--emd-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.emd-card:hover { box-shadow: 0 16px 40px rgba(29, 28, 33, .10); transform: translateY(-2px); }
.emd-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--emd-tone-bg);
	color: var(--emd-tone-fg);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.emd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emd-media-icon {
	display: inline-grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .7);
}
.emd-media-icon svg { width: 36px; height: 36px; }
.emd-media-path {
	position: absolute;
	left: 16px;
	bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--emd-tone-fg);
	opacity: .8;
}
.emd-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.emd-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.emd-card-body > p { margin: 0 0 12px; color: #4b5348; line-height: 1.55; }
.emd-card-link { align-self: flex-start; margin-top: auto; }
.emd-card-body > p + .emd-card-link { margin-top: auto; }

/* Theme tiles */
.emd-themes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding: 0; margin: 0; }
.emd-theme-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid transparent;
	border-radius: var(--emd-radius);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.emd-theme-tile:hover { border-color: #c7d8b5; box-shadow: 0 12px 32px rgba(29, 28, 33, .08); }
.emd-theme-shot {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background: #eef1ea;
	border-bottom: 1px solid var(--emd-line);
	overflow: hidden;
}
.emd-theme-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.emd-theme-mark {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--emd-green-soft);
	color: var(--emd-green-dark);
	font-weight: 800;
	font-size: 22px;
}
.emd-theme-text { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.emd-theme-text strong { color: var(--emd-ink); }
.emd-theme-text span { color: var(--emd-muted); font-size: 14px; }

/* Booking flows */
.emd-flows { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; }
.emd-flow {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--emd-line);
	border-radius: var(--emd-radius);
	padding: 20px 22px 22px;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.emd-tinted .emd-flow { border-color: transparent; }
.emd-flow:hover { border-color: #c7d8b5; box-shadow: 0 12px 32px rgba(29, 28, 33, .08); }
.emd-flow-demo {
	display: inline-block;
	background: var(--emd-tone-bg);
	color: var(--emd-tone-fg);
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.emd-flow h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.emd-flow p { margin: 0 0 14px; color: #4b5348; line-height: 1.55; }
.emd-flow-link { margin-top: auto; font-weight: 700; }

/* Trial */
.emd-trial {
	display: flex;
	align-items: center;
	gap: 24px 28px;
	background: #fff;
	border: 1px solid var(--emd-line);
	border-radius: var(--emd-radius);
	padding: 32px 36px;
}
.emd-tinted .emd-trial { border-color: transparent; }
.emd-trial > .emd-icon { align-self: flex-start; }
.emd-trial-text { flex: 1; min-width: 0; }
.emd-trial .emd-h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.emd-trial p { margin: 0; font-size: 18px; color: var(--emd-muted); max-width: 40em; }
.emd-trial-cta { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.emd-icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--emd-green-soft);
	color: var(--emd-green-dark);
}
.emd-icon svg { width: 22px; height: 22px; }

@media (max-width: 1199px) {
	.emd-cards-3, .emd-flows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.emd-hero { padding: 110px 0 56px; }
	.emd-section { padding: 56px 0; }
	.emd-trial { flex-wrap: wrap; }
	.emd-trial-text { flex-basis: calc(100% - 72px); }
	.emd-trial-cta { padding-left: 72px; }
}
@media (max-width: 767px) {
	.emd-cards-3, .emd-cards-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
	.emd-lead { font-size: 17px; }
	.emd-cta .btn { width: 100%; justify-content: center; }
	.emd-trial { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }
	.emd-trial-text { flex-basis: auto; }
	.emd-trial-cta { padding-left: 0; width: 100%; }
	.emd-trial-cta .btn { width: 100%; justify-content: center; }
	.emd-flows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.emd-flow { padding: 18px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.emd-card, .emd-index a, .emd-theme-tile, .emd-flow { transition: none; }
	.emd-card:hover { transform: none; }
}

/* The theme's btn-primary is a light blue that fails contrast with white text, so card buttons use the brand green. */
.emd-page .emd-card-link { background: var(--emd-green-dark); border: 1px solid var(--emd-green-dark); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 8px; }
.emd-page .emd-card-link:hover, .emd-page .emd-card-link:focus-visible { background: #34581f; border-color: #34581f; color: #fff; }

@media (max-width: 575px) {
	.emd-media { aspect-ratio: 16 / 7; }
	.emd-media-icon { width: 60px; height: 60px; border-radius: 16px; }
	.emd-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.emd-theme-text { padding: 10px 12px 12px; }
	.emd-theme-text strong { font-size: 15px; }
	.emd-theme-text span { font-size: 13px; }
}
@media (max-width: 575px) {
	.em-demo-entry footer .row > div + div .h5 { margin-top: 28px; }
}
