/* wp-content/plugins/ceca-widgets/widgets/event-hero/event-hero.css */

/* Figma 92:473 hero: #5FAFC4 full-bleed band 450px, date 20/30, title 50/60
   Bold, venue 20/30, yellow #F0B43C pill, photo in the 511×449 angular mask
   bleeding 75px past the 1440 canvas (same system as the CTA banner). */

.ceca-event-hero {
	--ceca-eh-bg: #5fafc4;
	--ceca-eh-text: #1a1a1a;
	--ceca-eh-btn: #f0b43c;
	--ceca-eh-pad: max(var(--ceca-gutter, 72px), calc(50vw - var(--ceca-site-width, 1440px) / 2 + var(--ceca-gutter, 72px)));

	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 450px;
	margin-inline: calc(50% - 50vw);
	padding: 60px var(--ceca-eh-pad);
	background: var(--ceca-eh-bg);
}

.ceca-event-hero__content {
	position: relative;
	z-index: 1;
	max-width: 856px;
}

.ceca-event-hero__date {
	margin: 0 0 10px;
	color: var(--ceca-eh-text);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

.ceca-event-hero__title {
	margin: 0 0 10px;
	color: var(--ceca-eh-text);
	font-size: clamp(32px, 3.47vw, 50px);
	font-weight: 700;
	line-height: 1.2;
}

.ceca-event-hero__venue {
	margin: 0 0 40px;
	color: var(--ceca-eh-text);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

.ceca-event-hero .ceca-event-hero__calendar,
.ceca-event-hero .ceca-event-hero__calendar:visited,
.ceca-event-hero .ceca-event-hero__calendar:hover,
.ceca-event-hero .ceca-event-hero__calendar:focus {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 300px;
	background: var(--ceca-eh-btn);
	color: var(--ceca-eh-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.ceca-event-hero .ceca-event-hero__calendar:hover {
	opacity: 0.85;
}

.ceca-event-hero__media {
	position: absolute;
	top: 0;
	right: calc(50vw - var(--ceca-site-width, 1440px) / 2 - 75px);
	width: 511px;
	height: 449px;
	-webkit-mask-image: url('mask.svg');
	mask-image: url('mask.svg');
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.ceca-event-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.ceca-event-hero__media {
		display: none;
	}

	.ceca-event-hero {
		min-height: 0;
		padding: 48px var(--ceca-eh-pad);
	}
}

/* --- mobile design pass (Figma 2372:9636) --------------------------------- */
/* Shape image sits centred ABOVE the text (315×276), then date 16/30,
   title 26/35, venue 18/30 and the calendar pill. */
@media (max-width: 767px) {
	.ceca-event-hero {
		padding: 0 20px 40px;
	}

	/* Design order: masked image FIRST, flush with the band's top edge
	   (Figma 2372:9636 — shape at y0 of the band), then date/title/venue. */
	.ceca-event-hero__media {
		position: static;
		display: block;
		order: -1;
		width: 315px;
		height: 276px;
		max-width: 100%;
		margin: 0 auto 40px;
	}

	.ceca-event-hero__content {
		max-width: none;
	}

	.ceca-event-hero .ceca-event-hero__date {
		font-size: 16px;
		line-height: 30px;
	}

	.ceca-event-hero .ceca-event-hero__title {
		font-size: 26px;
		line-height: 35px;
	}

	.ceca-event-hero .ceca-event-hero__venue {
		font-size: 18px;
		line-height: 30px;
	}
}

/* Critic pass: design-metadata sizes — date 18/30, title 28/35, venue
   18/30 in black, 40px pill 20px under the venue line. */
@media (max-width: 767px) {
	.ceca-event-hero .ceca-event-hero__date {
		font-size: 18px;
		line-height: 30px;
	}

	.ceca-event-hero .ceca-event-hero__title {
		font-size: 28px;
		line-height: 35px;
	}

	.ceca-event-hero .ceca-event-hero__venue {
		margin-bottom: 20px;
		font-size: 18px;
		line-height: 30px;
		color: #000;
	}

	.ceca-event-hero .ceca-event-hero__calendar,
	.ceca-event-hero .ceca-event-hero__calendar:hover,
	.ceca-event-hero .ceca-event-hero__calendar:focus {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		margin-top: 0;
		padding: 5px 22px;
		font-size: 15px;
		line-height: 20px;
	}
}

/* Critic round 2: the mobile design keeps the desktop 20px date; pill
   gets its full 154px footprint (28px side padding). */
@media (max-width: 767px) {
	.ceca-event-hero .ceca-event-hero__date {
		font-size: 20px;
		line-height: 30px;
	}

	.ceca-event-hero .ceca-event-hero__calendar,
	.ceca-event-hero .ceca-event-hero__calendar:hover,
	.ceca-event-hero .ceca-event-hero__calendar:focus {
		padding: 5px 28px;
	}
}

/* --- section tabs (Figma 2372:9636) --------------------------------------- */
/* Full-bleed hairline; tabs on the content grid — 20/30, active black
   with a 3px underline, inactive grey. */

.ceca-eh-tabs {
	margin-inline: calc(50% - 50vw);
	border-bottom: 1px solid #e3e3e3;
	background: #fff;
}

.ceca-eh-tabs__inner {
	display: flex;
	gap: 30px;
	max-width: var(--ceca-site-width, 1440px);
	margin: 0 auto;
	padding: 30px var(--ceca-gutter, 72px) 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.ceca-eh-tabs__inner::-webkit-scrollbar {
	display: none;
}

.ceca-eh-tabs .ceca-eh-tabs__tab,
.ceca-eh-tabs .ceca-eh-tabs__tab:hover,
.ceca-eh-tabs .ceca-eh-tabs__tab:focus {
	flex: none;
	padding-bottom: 10px;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 400;
	color: #767676;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.ceca-eh-tabs .ceca-eh-tabs__tab.is-active {
	color: #000;
	font-weight: 700;
	border-bottom-color: #000;
}

@media (max-width: 767px) {
	/* Rhythm per Figma 2372:9636: ~28px bar→card (desktop keeps 40). */
	.ceca-eh-tabs {
		margin-bottom: 8px;
	}
}
