/* Notice card section (sections/notice-card.php). Figma: Book a Visit 83:757 (first
   built from Home 64:139, What's On 64:486 and Book 64:756, which now use other sections).
   Sizes in comments are Figma px at 1440. */

/* With a heading the section starts closer to it (48px); without, 80px above the card.
   The bottom keeps the shared section space (100px), except Book (left-aligned, the
   only one followed by more cards): 72px. */
.pe-notice-card {
	padding-top: clamp(3rem, 5.56vw, 5rem);
}

.pe-notice-card--has-header {
	padding-top: clamp(2rem, 3.33vw, 3rem);
}

.pe-notice-card--left {
	padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* Book: 59px to the light-aqua wave that follows. */
.pe-notice-card:has(+ .pe-wave-divider--shape-aqua-light) {
	padding-bottom: clamp(2.5rem, 4.1vw, 3.6875rem);
}

/* Heading and intro ------------------------------------------------------- */
.pe-notice-card__header {
	margin-bottom: 2rem; /* 32px */
}

.pe-notice-card--center .pe-notice-card__header {
	margin-bottom: 1.6875rem; /* 27px */
	text-align: center;
}

.pe-notice-card__heading {
	margin: 0;
}

/* Nunito 27.2 / 39.5 */
.pe-notice-card__intro {
	margin: 2rem 0 0;
	font-size: var(--pe-text-intro);
	line-height: 1.45;
}

/* Card ---------------------------------------------------------------------- */
/* Default spacing is the Book card: subtitle + text. */
.pe-notice-card__card {
	--pe-notice-icon: clamp(4.5rem, 6.33vw, 5.7rem); /* 91.2px */

	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem; /* 24px */
	padding: clamp(2.5rem, 3.89vw, 3.5rem) clamp(1.25rem, 4.44vw, 4rem); /* 56 64 */
	border-radius: var(--pe-radius-card-lg); /* 50px */
	background: var(--pe-aqua-light);
	text-align: center;
	overflow-wrap: break-word;
}

.pe-notice-card__card > * {
	max-width: 100%;
	margin: 0;
}

/* Home: one bold Nunito line in a 241px-tall card. */
.pe-notice-card__card--text-only {
	--pe-notice-icon: clamp(5rem, 7.92vw, 7.125rem); /* 114px */

	gap: 0.9375rem; /* 15px */
	padding: clamp(2rem, 2.64vw, 2.375rem) clamp(1.25rem, 4.44vw, 4rem) clamp(2rem, 2.5vw, 2.25rem); /* 38 64 36 */
}

.pe-notice-card--aqua .pe-notice-card__card {
	background: var(--pe-aqua);
}

.pe-notice-card__icon {
	width: var(--pe-notice-icon);
	height: auto;
}

/* Nunito 27 / 39 */
.pe-notice-card__subtitle {
	font-size: clamp(1.125rem, 1.875vw, 1.6875rem);
	line-height: 1.45;
}

/* Nunito 20 / 30 */
.pe-notice-card__text {
	font-size: clamp(1rem, 1.39vw, 1.25rem);
	line-height: 1.5;
}

/* Optional buttons under the text (none in the Figma frames). */
.pe-notice-card__card > .pe-notice-card__buttons {
	justify-content: center;
	margin-top: 0.5rem;
}

/* Nunito bold 29 / 37.8 */
.pe-notice-card__card--text-only .pe-notice-card__text {
	font-size: clamp(1.25rem, 2.02vw, 1.816rem);
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.pe-notice-card__card {
		border-radius: 2rem; /* 32px */
	}
}

@media (max-width: 479px) {
	.pe-notice-card__card {
		border-radius: var(--pe-radius-card); /* 24px */
	}
}
