/*
 * Text band section (sections/text-band.php). Figma px at 1440, updated frames (page 83:59):
 *   Home intro 83:111 and sensory 83:183, Book "Planning a celebration?" 83:786 and
 *   "Ready before you arrive" 83:798: the band rhythm, 64 above and below, 32 between parts.
 *   Our Facilities sensory 83:370: the aqua band with the wavy cream edge (--waves).
 *   Parties intro 83:460 and Book "A little planning" 83:805 kept their older spacing (below).
 */
.pe-text-band {
	padding-block: clamp(3rem, 4.44vw, 4rem);
}

/* Centred: a column just wide enough for Figma's line breaks (Home lines are 834 and 860px). */
.pe-text-band--center .pe-container {
	max-width: calc(54.375rem + var(--pe-gutter) * 2);
	text-align: center;
}

.pe-text-band__heading {
	margin: 0;
	line-height: 1.163; /* 67px at 1440 (the token is 57.6px there; Figma 58 / 67) */
}

/* Nunito 27.2 / 39.5 at 1440. */
.pe-text-band__body {
	margin-top: 2rem;
	font-size: var(--pe-text-intro);
	line-height: 1.45;
}

.pe-text-band__body > :last-child {
	margin-bottom: 0;
}

/* "Day and time coming soon.": Fredoka 600 30 / 34.5. */
.pe-text-band__highlight {
	margin: 2rem 0 0;
	font-family: var(--pe-font-display);
	font-size: clamp(1.375rem, 2.08vw, 1.875rem);
	font-weight: 600;
	line-height: 1.15;
}

/* Left (Book waiver): 32 between the buttons. Centred (Book celebration): 24. */
.pe-text-band__buttons {
	gap: 2rem;
	margin-top: 2rem;
}

.pe-text-band--center .pe-text-band__buttons {
	justify-content: center;
	gap: 1.5rem;
}

/* 64px tall. The width follows the label, but never under 230px (Book "Read the FAQs"). */
.pe-text-band .pe-button {
	min-width: 14.375rem;
	min-height: 4rem;
}

/* Small print under the buttons: Nunito 24 / 34.8. */
.pe-text-band__note {
	margin: 2rem 0 0;
	font-size: clamp(1.0625rem, 1.67vw, 1.5rem);
	line-height: 1.45;
}

/* Parties intro 83:460, under the peach wave: 50 above, 70 below, 28 to the text. */
.pe-wave-divider--peach-out + .pe-text-band {
	padding-block: clamp(2rem, 3.47vw, 3.125rem) clamp(3rem, 4.86vw, 4.375rem);
}

.pe-wave-divider--peach-out + .pe-text-band .pe-text-band__body {
	margin-top: 1.75rem;
}

/* Book "A little planning" 83:805, the last band, straight on the footer: 74 above and
   below, 24 between parts, and its two 285px buttons 16 apart. */
.pe-text-band--left:last-child {
	padding-block: clamp(3rem, 5.14vw, 4.625rem);
}

.pe-text-band--left:last-child .pe-text-band__body {
	margin-top: 1.5rem;
}

.pe-text-band--left:last-child .pe-text-band__buttons {
	gap: 1rem;
	margin-top: 1.5rem;
}

.pe-text-band--left:last-child .pe-button {
	min-width: 17.8125rem;
}

/* Waves (Our Facilities 83:370): aqua, whatever the Background setting says. The wave
   divider above already shows the first 80.5px of aqua, so 131 above the heading;
   211.5 below the button, of which the cream wave covers the last 179.5. */
.pe-section.pe-text-band--waves {
	overflow: hidden; /* clips the rest of the wave shape */
	padding-block: clamp(4rem, 9.1vw, 8.1875rem) clamp(6rem, 14.69vw, 13.2188rem);
	background: var(--pe-aqua);
}

.pe-text-band--waves .pe-container {
	position: relative;
	z-index: 1;
}

/* The cream shape's wavy top edge, 179.5px above the band's bottom at 1440. Placed
   from the bottom, so the edge stays at the bottom on phones too (as the CTA band). */
.pe-text-band__wave {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: calc(-179.5 / 1440 * 100%); /* a % margin is a share of the width */
}

/* Smallest phones: one full-width button per row. */
@media (max-width: 479px) {
	.pe-text-band .pe-text-band__buttons {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.pe-text-band .pe-button,
	.pe-text-band--left:last-child .pe-button {
		width: 100%;
		min-width: 0;
		min-height: 3.5rem;
	}
}
