/*
 * Site-wide styles: tokens, type, base elements, layout, the shared components every
 * section reuses (buttons, arch photos, cards, decorations, waves), section
 * backgrounds, header and footer. Each section's own styles are in section-{name}.css.
 *
 * The contract for all of this is docs/build-plan.md (§1 tokens, §2 type, §3 components).
 *
 * Units: rem for type and spacing; px only for borders, shadows and breakpoints.
 * Breakpoints: 1024px (nav collapses, 3 → 2 columns), 768px (2 → 1 column),
 * 480px (smallest phones).
 */

/* ==========================================================================
   Tokens
   Colours and fonts are set in theme.json (so the block editor matches) and WordPress
   prints them as --wp--preset--… variables. These short names point at them.
   Change a colour in theme.json, not here.
   ========================================================================== */
:root {
	/* Colours (build-plan §1). */
	--pe-ink: var(--wp--preset--color--ink);                 /* text, primary buttons, footer */
	--pe-muted: var(--wp--preset--color--muted);             /* footer dividers, secondary text */
	--pe-cream: var(--wp--preset--color--cream);             /* page background, text on ink */
	--pe-beige: var(--wp--preset--color--beige);             /* card and photo borders */
	--pe-sage: var(--wp--preset--color--sage);
	--pe-sage-light: var(--wp--preset--color--sage-light);
	--pe-aqua: var(--wp--preset--color--aqua);
	--pe-aqua-light: var(--wp--preset--color--aqua-light);
	--pe-peach: var(--wp--preset--color--peach);
	--pe-peach-light: var(--wp--preset--color--peach-light);
	/* "lilac" is no longer purple: the client's colour list (Nov 2026) replaces every
	   purple with the light sage, so it is now the same colour as --pe-sage. The name
	   stays, because pages store it as their colour choice and files are named after it.
	   Change the colour itself in theme.json. */
	--pe-lilac: var(--wp--preset--color--lilac);
	--pe-yellow: var(--wp--preset--color--yellow);

	/* Accents, taken from the two characters: the girl's hood, the bear's crown and a
	   deeper teal. Use them for prices, badges, ribbons and the coloured word in a
	   heading. --pe-coral-deep and --pe-teal are dark enough for big text on cream;
	   --pe-coral and --pe-sunny are for fills with ink text on top. */
	--pe-coral: var(--wp--preset--color--coral);
	--pe-coral-deep: var(--wp--preset--color--coral-deep);
	--pe-sunny: var(--wp--preset--color--sunny);
	--pe-teal: var(--wp--preset--color--teal);

	/* Shadows that lift things off the page (cards, photos, tickets). */
	--pe-shadow-soft: 0 2px 0 rgb(32 61 54 / 0.05), 0 16px 28px -14px rgb(32 61 54 / 0.28);
	--pe-shadow-lift: 0 2px 0 rgb(32 61 54 / 0.05), 0 26px 40px -16px rgb(32 61 54 / 0.38);

	/* Fonts: Nunito Sans for text, Fredoka for headings (loaded in inc/setup.php). */
	--pe-font-body: var(--wp--preset--font-family--body);
	--pe-font-display: var(--wp--preset--font-family--display);

	/* Type ramp (build-plan §2). clamp( smallest, grows with the screen, Figma size ). */
	--pe-text-h1: clamp(2.5rem, 4.9vw, 4.375rem);        /* 70px */
	--pe-text-h2: clamp(2.125rem, 4.035vw, 3.632rem);    /* 58.1px at 1440 */
	--pe-text-h3: clamp(1.5rem, 2.4vw, 2.156rem);        /* 34.5px */
	--pe-text-lead: clamp(1.125rem, 2.1vw, 1.9rem);      /* 27–31px */
	--pe-text-intro: clamp(1.125rem, 1.89vw, 1.7024rem); /* 27.2px: the line under a heading */
	--pe-text-body: clamp(1rem, 1.6vw, 1.43rem);         /* 22.9px */
	--pe-text-eyebrow: 1.135rem;                         /* 18px */
	--pe-text-button: 1.36rem;                           /* 21.8px */
	--pe-text-nav: 0.94rem;                              /* 15px */

	/* Layout. The content column is 1270px inside a 1440px frame (85px each side). */
	--pe-container: 79.375rem;
	--pe-gutter: clamp(1rem, 5.9vw, 5.3125rem);
	--pe-section-space: clamp(3rem, 7vw, 6.25rem);

	/* Radii. */
	--pe-radius-pill: 999px;
	--pe-radius-card: 1.5rem;     /* 24px */
	--pe-radius-card-lg: 3.125rem; /* 50px */

	/* Header height (98px in Figma). Used to offset anchor links under the sticky header. */
	--pe-header-height: 6.125rem;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: var(--pe-header-height);
}

body {
	margin: 0;
	font-family: var(--pe-font-body);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--pe-ink);
	background: var(--pe-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 1rem;
	font-family: var(--pe-font-display);
	font-weight: 600;
	color: var(--pe-ink);
}

h1 { font-size: var(--pe-text-h1); line-height: 1.02; }
h2 { font-size: var(--pe-text-h2); line-height: 1.15; }
h3 { font-size: var(--pe-text-h3); line-height: 1.2; }

p {
	margin: 0 0 1rem;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

/* One visible focus style for every link and button (keyboard users only). */
:focus-visible {
	outline: 3px solid var(--pe-aqua);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pe-skip-link {
	position: absolute;
	top: -10rem;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	border-radius: var(--pe-radius-pill);
	background: var(--pe-ink);
	color: var(--pe-cream);
	font-weight: 700;
	text-decoration: none;
}

.pe-skip-link:focus {
	top: 1rem;
}

/* ==========================================================================
   Type utilities (build-plan §2). Use them when the HTML tag and the look differ,
   e.g. <p class="pe-h2"> or a card title <h3 class="pe-h3">.
   ========================================================================== */
.pe-h1,
.pe-h2,
.pe-h3 {
	margin: 0 0 1rem;
	font-family: var(--pe-font-display);
	font-weight: 600;
}

.pe-h1 { font-size: var(--pe-text-h1); line-height: 1.02; }
.pe-h2 { font-size: var(--pe-text-h2); line-height: 1.15; }
.pe-h3 { font-size: var(--pe-text-h3); line-height: 1.2; }

/* The coloured word in a heading. Editors type stars around it: Enjoy time *together*
   (pe_accent() in inc/helpers.php turns the stars into this). */
.pe-accent {
	font-style: normal;
	color: var(--pe-coral-deep);
}

/* On the darker bands coral is hard to read, so the word goes cream-on-ink instead. */
.pe-bg-sage .pe-accent,
.pe-bg-aqua .pe-accent,
.pe-bg-lilac .pe-accent,
.pe-bg-yellow .pe-accent,
.pe-cta-band .pe-accent {
	color: var(--pe-ink);
	text-decoration: underline wavy var(--pe-cream) 0.08em;
	text-underline-offset: 0.12em;
}

/* Hero tagline, section sub-heading. */
.pe-lead {
	font-size: var(--pe-text-lead);
	line-height: 1.45;
}

/* Card text and other body copy at the Figma size. */
.pe-body {
	font-size: var(--pe-text-body);
	line-height: 1.45;
}

/* Small capitals above a heading: PARTIES & EVENTS. */
.pe-eyebrow {
	margin: 0 0 0.5rem;
	font-size: var(--pe-text-eyebrow);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.pe-container {
	width: 100%;
	max-width: calc(var(--pe-container) + var(--pe-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--pe-gutter);
}

.pe-section {
	position: relative;
	padding-block: var(--pe-section-space);
}

/* Long text (Simple page, posts, pages with no sections). */
.pe-prose {
	max-width: calc(45rem + var(--pe-gutter) * 2);
	padding-block: var(--pe-section-space);
	font-size: 1.125rem;
	line-height: 1.6;
}

.pe-prose h1 { margin-bottom: 2rem; }
.pe-prose h2 { margin-top: 2.5rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pe-prose h3 { margin-top: 2rem; font-size: clamp(1.375rem, 2vw, 1.75rem); }
.pe-prose a { text-underline-offset: 0.15em; }
.pe-prose ul,
.pe-prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.pe-prose li + li { margin-top: 0.35rem; }

/* ==========================================================================
   Section settings: backgrounds (cream is the page background, "default").
   ========================================================================== */
.pe-bg-peach { background: var(--pe-peach); }
.pe-bg-peach-light { background: var(--pe-peach-light); }
.pe-bg-aqua-light { background: var(--pe-aqua-light); }
.pe-bg-aqua { background: var(--pe-aqua); }
.pe-bg-sage { background: var(--pe-sage); }
.pe-bg-yellow { background: var(--pe-yellow); }
.pe-bg-lilac { background: var(--pe-lilac); }

/* ==========================================================================
   Section settings: Space above / below. "Small" is half the theme's section space,
   "None" removes the padding on that side, so two sections can sit closer together.
   Many sections set their own padding in section-{name}.css, which loads after this
   file, and the strongest of those rules has three classes. Repeating .pe-section
   gives these rules four, so the client's choice always wins (no !important needed).
   ========================================================================== */
.pe-section.pe-section.pe-section.pe-space-top-small { padding-top: calc(var(--pe-section-space) / 2); }
.pe-section.pe-section.pe-section.pe-space-top-none { padding-top: 0; }
.pe-section.pe-section.pe-section.pe-space-bottom-small { padding-bottom: calc(var(--pe-section-space) / 2); }
.pe-section.pe-section.pe-section.pe-space-bottom-none { padding-bottom: 0; }

/* ==========================================================================
   Buttons: <a class="pe-button pe-button--primary"> (pe_button() prints these).
   Sizes: default 58px tall (header), --lg 67px (hero), --xl 76px (CTA band, promos).
   ========================================================================== */
.pe-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.375rem;
	margin-top: 1.75rem;
}

.pe-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.625rem;
	padding: 0.5rem 1.75rem;
	border: 1.36px solid var(--pe-ink);
	border-radius: var(--pe-radius-pill);
	font-family: var(--pe-font-body);
	font-size: var(--pe-text-button);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	/* A chunky, pressable button: a solid "side" under it (--pe-button-side) plus a soft
	   shadow. Hover lifts it, pressing pushes it down onto the page. */
	--pe-button-side: #0f241f;

	box-shadow: 0 0.3rem 0 var(--pe-button-side), 0 0.75rem 1rem -0.4rem rgb(32 61 54 / 0.35);
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pe-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 calc(0.3rem + 2px) 0 var(--pe-button-side), 0 1rem 1.25rem -0.4rem rgb(32 61 54 / 0.4);
}

.pe-button:active {
	transform: translateY(0.25rem);
	box-shadow: 0 0.05rem 0 var(--pe-button-side), 0 0.25rem 0.5rem -0.25rem rgb(32 61 54 / 0.3);
}

.pe-button:focus-visible {
	outline: 3px solid var(--pe-aqua);
	outline-offset: 3px;
}

.pe-button--lg { min-height: 4.2rem; padding-inline: 2.35rem; }
.pe-button--xl { min-height: 4.77rem; padding-inline: 3.5rem; }

/* In the hero Figma draws the outline button smaller than the primary next to it:
   263 × 62 against 194 × 67 for "Book a visit". */
.pe-button--outline.pe-button--lg { min-height: 3.86rem; padding-inline: 1.68rem; }

/* Dark pill, cream text. */
.pe-button--primary {
	background: var(--pe-ink);
	color: var(--pe-cream);
}

.pe-button--primary:hover {
	background: color-mix(in srgb, var(--pe-ink) 85%, var(--pe-cream));
	border-color: color-mix(in srgb, var(--pe-ink) 85%, var(--pe-cream));
}

/* Cream pill, ink outline. */
.pe-button--outline {
	--pe-button-side: var(--pe-ink);

	background: var(--pe-cream);
	color: var(--pe-ink);
}

/* Coral pill for the one button that should shout: "Buy this pass", "Book this party". */
.pe-button--coral {
	--pe-button-side: #a8402f;

	border-color: var(--pe-coral-deep);
	background: var(--pe-coral);
	color: var(--pe-ink);
}

.pe-button--coral:hover {
	background: color-mix(in srgb, var(--pe-coral) 88%, white);
}

.pe-button--outline:hover {
	background: var(--pe-beige);
}

@media (prefers-reduced-motion: reduce) {
	.pe-button,
	.pe-button:hover {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Arch photo: <div class="pe-arch"><img></div> (pe_arch_image() prints these).
   The top corners are a half circle: a huge radius is scaled down by the browser to
   half the width. Set the shape with a modifier or `aspect-ratio` in the section CSS.
   ========================================================================== */
.pe-arch {
	position: relative;
	overflow: hidden;
	/* A thick pale frame, like a printed photo, with a soft shadow under it. */
	border: 0.375rem solid #fffaf0;
	border-radius: var(--pe-arch-radius, 999px) var(--pe-arch-radius, 999px) 0 0;
	background: var(--pe-beige);
	box-shadow: 0 0 0 1.5px var(--pe-beige), var(--pe-shadow-soft);
	aspect-ratio: 4 / 3;
}

.pe-arch > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shapes from Figma (width / height). */
.pe-arch--hero { aspect-ratio: 738 / 674; }    /* home hero */
.pe-arch--card { aspect-ratio: 400 / 370; }    /* feature cards */
.pe-arch--split { aspect-ratio: 600 / 500; }   /* photo and text */
.pe-arch--gallery { aspect-ratio: 402 / 300; } /* gallery */

/* The hero photo floats a little above the page. */
.pe-arch--shadow {
	box-shadow: 0 0 0 1.5px var(--pe-beige), var(--pe-shadow-lift);
}

/* ==========================================================================
   Card: a cream panel with a beige border. Colour modifiers for info cards.
   ========================================================================== */
.pe-card {
	padding: 2rem;
	border: 1px solid var(--pe-beige);
	border-radius: var(--pe-radius-card);
	background: var(--pe-cream);
	/* A light line along the top edge and a soft shadow: the card looks moulded. */
	box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.55), var(--pe-shadow-soft);
}

/* Coloured cards keep the beige border, as in Figma. Note: "aqua" is the light
   aqua (the first card colour in the design); "aqua-deep" is the full aqua. */
.pe-card--aqua { background: var(--pe-aqua-light); }
.pe-card--aqua-deep { background: var(--pe-aqua); }
.pe-card--peach { background: var(--pe-peach); }
.pe-card--peach-light { background: var(--pe-peach-light); }
.pe-card--lilac { background: var(--pe-lilac); }
.pe-card--sage { background: var(--pe-sage); }
.pe-card--yellow { background: var(--pe-yellow); }

/* ==========================================================================
   Sticker: a round, tilted badge for one short offer.
   <a class="pe-sticker"><span class="pe-sticker__text">Buy 4<br>get 1 free</span></a>
   Set its size with --pe-sticker-size and place it in the section's CSS.
   ========================================================================== */
.pe-sticker {
	--pe-sticker-size: 9rem;

	/* Flex, not grid: text that is a little too wide then spills evenly on both sides
	   and stays in the middle, instead of sliding to the right. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--pe-sticker-size);
	height: var(--pe-sticker-size);
	margin: 0;
	padding: 0;
	border: 0.2rem solid #fffaf0;
	border-radius: 50%;
	background: #f7e5a6; /* soft yellow, the client's colour for the offer badge only */
	/* The dashed ring just inside the edge, like a stamped sticker. */
	outline: 2px dashed rgb(32 61 54 / 0.45);
	outline-offset: -0.7rem;
	box-shadow: var(--pe-shadow-soft);
	color: var(--pe-ink);
	font-family: var(--pe-font-display);
	font-size: calc(var(--pe-sticker-size) * 0.11);
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap; /* line breaks come from the field, never from wrapping */
	text-decoration: none;
	rotate: -9deg;
	transition: rotate 0.25s ease, scale 0.25s ease;
}

a.pe-sticker:hover {
	rotate: 4deg;
	scale: 1.06;
}

@media (prefers-reduced-motion: reduce) {
	.pe-sticker {
		transition: none;
	}
}

/* ==========================================================================
   Decorations and waves (pe_decoration(), pe_wave()).
   ========================================================================== */

/* Flowers, circles, balloons, icons. Not positioned here: give it your own class
   with position: absolute and a width in the section CSS. */
.pe-decoration {
	display: block;
	height: auto;
	max-width: none;
	pointer-events: none;
	user-select: none;
}

/* A full-width layered wave. Keeps its shape as the screen narrows. */
.pe-wave {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* ==========================================================================
   Logo (text): "Peekaboo Erina" with "KIDS CAFE" centred underneath.
   Used in the header and, larger and in cream, in the footer.
   ========================================================================== */
.pe-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

/* The name with the tagline centred under it. */
.pe-logo__text {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

/* The characters' faces either side of the name. They tilt towards it, and nod when
   the logo is hovered. */
.pe-logo__mascot {
	width: auto;
	height: clamp(2.6rem, 3.6vw, 3.4rem);
	filter: none;
	transition: rotate 0.25s ease, translate 0.25s ease;
}

.pe-logo__mascot--bear { rotate: -6deg; }
.pe-logo__mascot--pink { rotate: 6deg; }

.pe-logo:hover .pe-logo__mascot--bear { rotate: 4deg; translate: 0 -0.15rem; }
.pe-logo:hover .pe-logo__mascot--pink { rotate: -4deg; translate: 0 -0.15rem; }

/* Small laptops: the menu needs the room, so the faces step out of the header logo. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.pe-header .pe-logo__mascot {
		display: none;
	}
}

/* Small phones: just the bear, so the logo and the menu button both fit. */
@media (max-width: 479px) {
	.pe-header .pe-logo__mascot--pink {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pe-logo__mascot {
		transition: none;
	}
}

.pe-logo__name {
	font-family: var(--pe-font-display);
	font-size: clamp(2rem, 2.784vw + 0.218rem, 2.724rem); /* 43.6px at 1440 */
	font-weight: 600;
	line-height: 1.1;
}

.pe-logo__tagline {
	margin-top: 0.25rem;
	padding-left: 0.27em; /* balances the letter-spacing after the last letter */
	font-size: clamp(0.75rem, 0.817vw + 0.227rem, 0.9625rem); /* 15.4px at 1440 */
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.27em;
	text-transform: uppercase;
}

.pe-logo__img {
	max-height: 4.3rem;
	width: auto;
}

/* ==========================================================================
   Header (98px tall, cream). Logo · menu · "Book a visit" button.
   ========================================================================== */
.pe-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pe-cream);
	transition: box-shadow 0.2s ease;
}

.admin-bar .pe-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.pe-header.is-scrolled {
	box-shadow: 0 2px 12px rgb(32 61 54 / 0.08);
}

.pe-header__inner {
	display: flex;
	align-items: center;
	max-width: 90rem;
	min-height: var(--pe-header-height);
	margin-inline: auto;
	/* Figma centres the row 4px below the middle of the bar: 8px more space on top. */
	padding-top: 0.5rem;
	/* 96px left, 89px right at 1440 (Figma). */
	padding-inline: clamp(1rem, 6.67vw, 6rem) clamp(1rem, 6.18vw, 5.5625rem);
}

.pe-header__logo {
	flex-shrink: 0;
	padding-block: 0.25rem;
}

.pe-header__menu {
	display: flex;
	flex: 1;
	align-items: center;
}

.pe-menu {
	display: flex;
	/* Five links since "Play passes" was added (Nov 2026), so the gaps are smaller than
	   in Figma: 44px between the words at 1440, 16px at 1024. If the faces go back in
	   the logo, drop the two maximums to about 2.125rem and 3rem to make room. */
	gap: clamp(1rem, 6.75vw - 3.32rem, 2.75rem);
	margin: 0;
	/* The first link starts 72px after the logo at 1440, 16px at 1024. */
	margin-left: clamp(1rem, 13.46vw - 7.6rem, 4.5rem);
	/* Always keep some air before the "Book a visit" button. */
	margin-right: 1.5rem;
	padding: 0;
	list-style: none;
}

.pe-menu a {
	font-size: var(--pe-text-nav);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.pe-menu a:hover,
.pe-menu .current-menu-item > a,
.pe-menu .current_page_item > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.pe-header__button {
	flex-shrink: 0;
	margin-left: auto;
}

.pe-header__toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--pe-ink);
	cursor: pointer;
}

/* Three bars made from one span and its two pseudo-elements. */
.pe-header__toggle-bars,
.pe-header__toggle-bars::before,
.pe-header__toggle-bars::after {
	display: block;
	width: 1.5rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.pe-header__toggle-bars {
	position: relative;
	margin-inline: auto;
}

.pe-header__toggle-bars::before,
.pe-header__toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.pe-header__toggle-bars::before { top: -0.45rem; }
.pe-header__toggle-bars::after { top: 0.45rem; }

/* Open: the bars become a cross. */
.pe-header__toggle[aria-expanded="true"] .pe-header__toggle-bars { background: transparent; }
.pe-header__toggle[aria-expanded="true"] .pe-header__toggle-bars::before { transform: translateY(0.45rem) rotate(45deg); }
.pe-header__toggle[aria-expanded="true"] .pe-header__toggle-bars::after { transform: translateY(-0.45rem) rotate(-45deg); }

/* Under 1024px the menu collapses into a panel. (At 1024 the desktop row still fits.) */
@media (max-width: 1023px) {
	:root {
		--pe-header-height: 4.5rem;
	}

	.pe-header__inner {
		padding-top: 0;
	}

	.pe-header__toggle {
		display: block;
	}

	/* The menu becomes a full-width panel under the header, opened by the button (nav.js). */
	.pe-header__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		max-height: calc(100vh - var(--pe-header-height));
		overflow-y: auto;
		/* Same side padding as the header row, so the links line up with the logo. */
		padding: 1.5rem clamp(1rem, 6.18vw, 5.5625rem) 2rem clamp(1rem, 6.67vw, 6rem);
		border-top: 1px solid var(--pe-beige);
		background: var(--pe-cream);
		box-shadow: 0 12px 16px rgb(32 61 54 / 0.08);
	}

	.pe-header__menu.is-open {
		display: flex;
	}

	.pe-menu {
		flex-direction: column;
		gap: 0;
		margin-left: 0;
	}

	.pe-menu a {
		display: block;
		padding-block: 0.75rem;
		font-size: 1.125rem;
	}

	.pe-menu li + li {
		border-top: 1px solid var(--pe-beige);
	}

	.pe-header__button {
		align-self: flex-start;
		margin-left: 0;
	}
}

/* ==========================================================================
   Footer (218px tall). Row 1: logo · Footer menu. Row 2: the second-row menu.
   Light sage with dark green text since the client's colour list of Nov 2026 (it was
   dark green with cream text). The wave above it, assets/img/wave-shape-ink.svg, is
   filled with the same colour so the band above melts into the footer: if you change
   the footer colour, change the fill in that file too.
   ========================================================================== */
.pe-footer {
	position: relative;
	background: var(--pe-sage);
	color: var(--pe-ink);
}

/* 48px top and bottom, 85px each side, 32px between the rows. */
.pe-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 90rem;
	margin-inline: auto;
	padding: 3rem clamp(1rem, 5.9vw, 5.3125rem);
}

/* The logo is a 354px box; the links start 60px after it, level with its top. */
.pe-footer__top {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem 3.75rem;
}

.pe-footer__logo {
	flex: 0 0 auto;
	min-width: 22.125rem; /* 354px */
}

/* Same size as the header logo, with a little more space above "KIDS CAFE". */
.pe-footer .pe-logo__tagline { margin-top: 0.45rem; }

.pe-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

/* Nunito 18 / 18.5, 26px apart in row 1 and 32px in row 2. */
.pe-footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pe-footer__bottom .pe-footer__menu {
	column-gap: 2rem;
}

.pe-footer__menu a {
	display: block; /* so the 18.5px line height sets the row height */
	font-size: 1.125rem;
	line-height: 1.03;
	text-decoration: none;
	white-space: nowrap;
}

.pe-footer__menu a:hover,
.pe-footer__menu .current-menu-item > a,
.pe-footer__menu .current_page_item > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* The copyright line isn't in the Figma footer, so it sits quietly at the end of
   the second row. */
.pe-footer__legal {
	margin: 0 0 0 auto;
	font-size: 0.8125rem;
	opacity: 0.7;
}

@media (max-width: 1023px) {
	.pe-footer__top {
		flex-direction: column;
	}

	.pe-footer__logo {
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.pe-footer__inner {
		padding-block: 2.5rem;
	}

	/* One link per line is easier to tap on a phone. */
	.pe-footer__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.9rem;
	}

	.pe-footer__legal {
		margin-left: 0;
	}
}
