/* Sale campaigns and the homepage gift card panel (campaign.php, partials/campaign-*.php, partials/gift-panel.php) */

.campaign-teaser,
.campaign-hero,
.gift-panel {
	font-family: var(--sans-serif);
}

.campaign-teaser h1,
.campaign-hero h1,
.gift-panel h2 {
	font-family: var(--sans-serif) !important;
	font-weight: 800;
}

/* ── Buttons, shared by the hero and the gift panel ── */
.campaign-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .375rem;
}

.campaign-button,
.campaign-button:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 1.625rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none !important;
	transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

.campaign-button-red {
	background: var(--red);
	color: var(--white) !important;
}

.campaign-button-red:hover {
	background: var(--pink);
}

.campaign-button-outline {
	border: 1.5px solid currentColor;
	color: var(--primary) !important;
}

.campaign-button-outline:hover {
	background: var(--primary);
	color: var(--white) !important;
}

.campaign-code {
	display: inline-block;
	border: 1.5px dashed currentColor;
	border-radius: 8px;
	padding: 2px 10px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--primary);
}

/* ── Countdown boxes ── */
.campaign-countdown {
	display: flex;
	gap: .875rem;
}

.campaign-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.campaign-countdown-value {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.campaign-countdown-name {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ── Teaser: "Black Friday loading…" ── */
.campaign-teaser {
	background: var(--primary);
	color: var(--white);
}

.campaign-teaser-inner {
	min-height: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	text-align: center;
	padding: 7rem 1.5rem 4rem;
}

.campaign-teaser h1 {
	margin: 0;
	font-size: clamp(2.75rem, 7vw, 4.75rem);
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--white);
}

.campaign-teaser h1 span {
	color: var(--pink);
}

.campaign-teaser .campaign-countdown-value {
	width: 84px;
	height: 84px;
	background: var(--white);
	color: var(--primary);
	font-size: 2.5rem;
}

.campaign-teaser .campaign-countdown-name,
.campaign-teaser-note {
	color: var(--peach);
}

.campaign-teaser-note {
	margin: 0;
	font-size: 1.125rem;
}

/* ── Sale hero: the homepage header while a sale is on ──
   As tall as the normal hero and under the same nav and wave; the photo is a full-height panel
   running to the right edge of the screen. */
.campaign-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: clamp(600px, 75vw, 100vh);
	background: var(--primary);
	color: var(--white);
}

.campaign-hero-waves {
	position: absolute;
	left: -80px;
	bottom: -80px;
	width: 620px;
	height: 420px;
	opacity: .22;
	-webkit-mask-image: radial-gradient(ellipse at 15% 85%, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%);
	mask-image: radial-gradient(ellipse at 15% 85%, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%);
	pointer-events: none;
}

/* The nav and top bar overlap the hero's top ~115px; the text sits in the space below them. Sizes
   follow the window's HEIGHT as well as its width, so on a laptop (a 1440×900 screen leaves the page
   about 790px) the headline, code, countdown and both buttons all fit in the first screen. */
.campaign-hero-inner {
	position: relative;
	z-index: 1;
	padding: calc(115px + 2.5vh) 1.5rem calc(2rem + 3vh);
}

.campaign-hero-text {
	max-width: 42vw;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(12px, 2.4vh, 24px);
}

.campaign-hero-photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 44vw;
	padding: 0 !important; /* Bootstrap pads every child of a .row, which left a dark strip at the edge */
	background: rgba(255, 255, 255, .08);
}

.campaign-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.campaign-hero .divider {
	z-index: 2;
}

.campaign-hero-eyebrow {
	margin: 0;
	font-size: .875rem;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--pink);
}

.campaign-hero h1 {
	margin: 0;
	font-size: clamp(2.75rem, min(5.6vw, 9.5vh), 6.25rem);
	letter-spacing: -0.04em;
	line-height: .95;
	color: var(--white);
}

.campaign-hero h1 span {
	color: var(--peach);
}

.campaign-hero-code {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .8);
}

.campaign-hero .campaign-code {
	padding: 6px 16px;
	border-color: var(--white);
	font-size: 1.25rem;
	letter-spacing: .05em;
	color: var(--white);
}

.campaign-hero-ends {
	display: flex;
	align-items: center;
	gap: 14px;
}

.campaign-hero-ends-label {
	width: 64px;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.25;
	color: rgba(255, 255, 255, .7);
}

/* Glass boxes */
.campaign-hero .campaign-countdown-unit {
	gap: 6px;
}

.campaign-hero .campaign-countdown-value {
	width: clamp(54px, 7.6vh, 68px);
	height: clamp(54px, 7.6vh, 68px);
	border-radius: 14px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .22);
	color: var(--white);
	font-size: 1.875rem;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.campaign-hero .campaign-countdown-name {
	font-size: .6875rem;
	letter-spacing: .14em;
	color: rgba(255, 255, 255, .6);
}

.campaign-hero .campaign-button {
	min-height: 54px;
	padding: 0 1.75rem;
}

.campaign-hero .campaign-button-outline {
	color: var(--white) !important;
}

.campaign-hero .campaign-button-outline:hover {
	background: var(--white);
	color: var(--primary) !important;
}

/* Below desktop: the offer, then the photo edge to edge beneath it. */
@media (max-width: 991.98px) {
	.campaign-hero {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.campaign-hero-inner {
		padding: 7rem 1.5rem 2.5rem;
	}

	.campaign-hero-text {
		max-width: none;
	}

	.campaign-hero-photo {
		position: relative;
		width: 100%;
		height: 340px;
	}
}

@media (max-width: 575.98px) {
	.campaign-teaser .campaign-countdown-value {
		width: 64px;
		height: 64px;
		font-size: 1.75rem;
	}

	.campaign-hero-ends {
		flex-direction: column;
		align-items: flex-start;
	}

	.campaign-hero-ends-label {
		width: auto;
	}

	.campaign-hero .campaign-countdown-value {
		width: 60px;
		height: 60px;
		font-size: 1.625rem;
	}

	.campaign-hero .campaign-button {
		min-height: 46px;
		padding: 0 .75rem;
	}
}

/* ── Gift card panel: edge to edge ── */
.gift-panel {
	position: relative;
	overflow: hidden;
	background: var(--secondary);
	color: var(--primary);
}

.gift-panel-stripes {
	position: absolute;
	right: -60px;
	top: -60px;
	width: 560px;
	height: 380px;
	opacity: .45;
	-webkit-mask-image: radial-gradient(ellipse at 85% 15%, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 70%);
	mask-image: radial-gradient(ellipse at 85% 15%, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 70%);
	pointer-events: none;
}

.gift-panel-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 56px;
	padding: 4.5rem 1.5rem;
}

.gift-panel-photo {
	position: relative;
	flex: none;
	width: 440px;
	height: 480px;
	border-radius: 28px;
	overflow: hidden;
	background: var(--peach);
	box-shadow: 0 20px 44px rgba(35, 31, 32, .22);
}

.gift-panel-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gift-panel-text {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.gift-panel-eyebrow {
	margin: 0;
	font-size: .8125rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--red);
}

.gift-panel h2 {
	margin: 0;
	font-size: clamp(2.25rem, 4.2vw, 3.375rem);
	letter-spacing: -0.035em;
	line-height: 1.02;
	color: inherit;
}

.gift-panel-lede {
	margin: 0;
	max-width: 440px;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: #4A3F43;
}

/* While a sale with gift cards is on */
.gift-panel-dark {
	background: var(--primary);
	color: var(--white);
}

.gift-panel-dark .gift-panel-stripes {
	opacity: .28;
}

.gift-panel-dark .gift-panel-eyebrow {
	color: var(--pink);
}

.gift-panel-dark .gift-panel-lede {
	color: rgba(255, 255, 255, .72);
}

.gift-panel-offer p {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--white);
}

.gift-panel-offer b {
	margin-right: .5rem;
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--pink);
}

.gift-panel-offer .gift-panel-code {
	margin-top: 10px;
	font-size: 1.0625rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}

.gift-panel-dark .campaign-code {
	color: var(--white);
	padding: 5px 14px;
	font-size: 1.125rem;
}

.gift-panel-dark .campaign-button-outline {
	color: var(--white) !important;
}

.gift-panel-dark .campaign-button-outline:hover {
	background: var(--white);
	color: var(--primary) !important;
}

@media (max-width: 991.98px) {
	.gift-panel-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		padding: 3rem 1.5rem;
	}

	.gift-panel-photo {
		width: 100%;
		height: 280px;
	}
}

/* Phones: the two buttons side by side, a little smaller (hero and gift panel) */
@media (max-width: 575.98px) {
	.campaign-buttons {
		flex-wrap: nowrap;
		gap: .5rem;
		width: 100%;
	}

	.campaign-button,
	.campaign-button:is(:hover, :focus) {
		flex: 1 1 0;
		justify-content: center;
		min-height: 46px;
		padding: 0 .75rem;
		font-size: .875rem;
		white-space: nowrap;
	}
}

/* A sale price: the full price as normal, the offer beneath it in the site's red. */
.sale-price {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
}

.sale-price-offer {
	color: var(--red);
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
}

.sale-price-offer b {
	font-weight: inherit;
}

.coming-up-body .sale-price-offer,
.whats-on-price .sale-price-offer {
	font-size: .75rem;
}

.class_details .sale-price-was {
	font-weight: 700;
}

.class_details .sale-price-offer {
	font-size: .9375rem;
}

.sale-badge {
	display: inline-block;
	padding: .3rem .7rem;
	border-radius: 2rem;
	background: var(--primary);
	color: var(--white);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.sale-ribbon {
	position: absolute;
	top: 48px;
	right: -60px;
	z-index: 2;
	width: 240px;
	padding: 6px 0;
	transform: rotate(45deg);
	background: var(--red);
	color: var(--white);
	text-align: center;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

/* Homepage strip and What's On page cards */
.coming-up-photo .sale-badge {
	position: absolute;
	left: .625rem;
	bottom: .625rem;
}

/* Class listing cards: the badge sits with "Most popular" */
.class-card-badges {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	margin: 1rem;
	width: auto !important;
	height: auto !important;
}

/* What's On page cards */
.whats-on-photo {
	overflow: hidden;
}

.whats-on-sale-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
}

/* Inside Bootstrap's .ratio every child is stretched to fill it; the badges and flag are not. */
.ratio > .class-card-badges {
	top: 0;
	left: 0;
}

.ratio > .sale-ribbon {
	top: 48px;
	left: auto;
	width: 240px;
	height: auto;
}

/* Class listing cards: "View class" keeps its place beside a two-line sale price */
article .bottom p:last-child {
	white-space: nowrap;
}

/* Gift Cards page: a list inside the centred intro sits centred as a block, bullets beside their text */
.gift-cards-about ul {
	display: inline-block;
	margin: 0 auto;
	padding-left: 1.25rem;
	text-align: left;
}
