/*
Theme Name: Kite Theme
Theme URI: https://martinkite.local
Author: MartinKite
Author URI: https://martinkite.local
Description: Minimal custom one-page theme for MartinKite, a kite & wingfoil school.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kite-theme
*/

/* -------------------------------------------------------------------- */
/* 1. Reset & tokens                                                     */
/* -------------------------------------------------------------------- */

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

:root {
	--color-navy: #0a3d62;
	--color-navy-dark: #06263d;
	--color-teal: #38ada9;
	--color-sand: #f6b93b;
	--color-white: #ffffff;
	--color-ink: #10171f;
	--color-mist: #f4f7f8;
	--color-border: rgba(10, 61, 98, 0.12);

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--header-h: 64px;
	--container-w: 1180px;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(10, 61, 98, 0.14);
	--ease: cubic-bezier(0.16, 0.84, 0.44, 1);

	color-scheme: light;
}

@media (min-width: 700px) {
	:root { --header-h: 76px; }
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-ink);
	background: var(--color-white);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea { font: inherit; color: inherit; }

.container {
	width: 100%;
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

@media (min-width: 900px) {
	.container { padding-inline: 2rem; }
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 1000;
	background: var(--color-navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 8px 8px;
	transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* -------------------------------------------------------------------- */
/* 2. Buttons                                                            */
/* -------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn--primary {
	background: var(--color-navy);
	color: #fff;
	box-shadow: var(--shadow);
}
.btn--primary:hover, .btn--primary:focus-visible { background: var(--color-navy-dark); transform: translateY(-2px); }
.btn--outline {
	border: 1.5px solid var(--color-navy);
	color: var(--color-navy);
	margin-top: 2rem;
}
.btn--outline:hover, .btn--outline:focus-visible { background: var(--color-navy); color: #fff; }
.btn--whatsapp {
	background: #25d366;
	color: #fff;
	gap: 0.5rem;
	margin-top: 0.85rem;
	width: 100%;
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { background: #1ebe5b; transform: translateY(-2px); }

/* -------------------------------------------------------------------- */
/* 3. Header / nav                                                       */
/* -------------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 100;
	background: transparent;
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	box-shadow: 0 2px 20px rgba(10, 61, 98, 0.08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
	padding-inline: 1.25rem;
}
@media (min-width: 900px) { .site-header__inner { padding-inline: 2rem; } }

.site-header__logo img {
	height: calc(var(--header-h) - 20px);
	width: auto;
}

.site-nav { display: none; }

@media (min-width: 900px) {
	.site-nav { display: block; }
	.site-nav__list { display: flex; gap: 1.75rem; }
	.site-nav__list a,
	.site-nav__list button {
		font-size: 0.92rem;
		font-weight: 600;
		padding-block: 0.4rem;
		border-bottom: 2px solid transparent;
		transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
	}
	.site-nav__list a:hover,
	.site-nav__list a:focus-visible,
	.site-nav__list a.is-active,
	.site-nav__list button:hover,
	.site-nav__list button:focus-visible {
		border-color: var(--color-sand);
	}
}

.lang-switcher { display: none; }
.lang-switcher--desktop {
	display: none;
}
@media (min-width: 900px) {
	.lang-switcher--desktop {
		display: flex;
		gap: 0.5rem;
		font-size: 0.82rem;
		font-weight: 700;
		letter-spacing: 0.02em;
	}
	.lang-switcher--desktop li:not(:last-child)::after {
		content: "|";
		margin-inline-start: 0.5rem;
		color: var(--color-border);
	}
	.lang-switcher--desktop li { display: flex; gap: 0.5rem; }
	.lang-switcher--desktop a { opacity: 0.55; transition: opacity 0.2s var(--ease); }
	.lang-switcher--desktop a:hover, .lang-switcher--desktop a:focus-visible { opacity: 1; }
	.lang-switcher__current { color: var(--color-sand); }
}

.lang-switcher--mobile {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-weight: 700;
}
.lang-switcher--mobile a { opacity: 0.6; }
.lang-switcher--mobile .lang-switcher__current { color: var(--color-sand); }

/* Burger */
.burger {
	position: relative;
	z-index: 110;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
@media (min-width: 900px) { .burger { display: none; } }

.burger__box { position: relative; width: 22px; height: 16px; display: block; }
.burger__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-navy);
	border-radius: 2px;
	transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 7px; }
.burger__line:nth-child(3) { top: 14px; }

/* Once the panel is open its background is navy, so the burger lines (which
   sit above it, same z-index stack) need to switch from navy to white or
   the "X" disappears against the panel. */
.burger[aria-expanded="true"] .burger__line { background: #fff; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100dvh;
	z-index: 105;
	background: var(--color-navy);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 2rem 3rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); }

.mobile-menu__list { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu__list a,
.mobile-menu__list button { font-size: 1.4rem; font-weight: 700; }
.mobile-menu__list a.is-active { color: var(--color-sand); }

@media (min-width: 900px) { .mobile-menu { display: none; } }

/* -------------------------------------------------------------------- */
/* 4. Hero                                                               */
/* -------------------------------------------------------------------- */

.hero { position: relative; height: 200vh; }

.hero__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: var(--color-navy-dark);
}

.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-white);
	opacity: 0;
	will-change: opacity;
}

.hero__logo { width: min(48vw, 220px); height: auto; }

.hero__scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	animation: hero-bounce 2.2s ease-in-out infinite;
}

@keyframes hero-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(8px); }
}

/* Reduced-motion / static hero: no scroll-pin animation, video stays plainly
   visible (overlay stays at its default opacity: 0 — see .hero__overlay). */
.hero.hero--static { height: 100vh; }
.hero.hero--static .hero__stage { position: relative; }
.hero.hero--static .hero__scroll-hint { animation: none; }

/* -------------------------------------------------------------------- */
/* 5. Section shell + reveal-on-scroll                                  */
/* -------------------------------------------------------------------- */

.site-main { position: relative; z-index: 1; background: var(--color-white); }

.section { padding-block: 4.5rem; position: relative; overflow: clip; }
@media (min-width: 900px) { .section { padding-block: 7rem; } }

.section--alt { background: var(--color-mist); }
.section--soft-blue { background: #eaf3fa; }

.section__title {
	font-size: clamp(1.7rem, 5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--color-navy);
}
.section__subtitle {
	margin-top: 0.75rem;
	max-width: 44ch;
	color: #45566a;
	font-size: 1.02rem;
}
.section__title--on-bg { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.section__subtitle--on-bg { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }

[data-reveal] .section__title,
[data-reveal] .section__subtitle,
[data-reveal-item] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible .section__title,
[data-reveal].is-visible .section__subtitle,
[data-reveal-item].is-visible {
	opacity: 1;
	transform: translateY(0);
}
[data-reveal-item]:nth-child(2) { transition-delay: 0.06s; }
[data-reveal-item]:nth-child(3) { transition-delay: 0.12s; }
[data-reveal-item]:nth-child(4) { transition-delay: 0.18s; }

/* Parallax background (our-offer section) */
.section--parallax { color: #fff; }
.section__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section__bg-img {
	position: absolute;
	inset: -30% 0;
	width: 100%;
	height: 160%;
	object-fit: cover;
}

/* Seixas photo (mobile-only, #spot): shift the visible window down so
   more of the beach shows instead of mostly sky, and use a smaller
   oversize buffer than the other parallax photos (10% less) so it reads
   less zoomed in. The buffer still has to stay bigger than the max
   parallax travel distance — see the matching '#spot' check in main.js's
   initParallax(), which uses a smaller amplitude here to match. */
@media (max-width: 899px) {
	#spot .section__bg-img {
		inset: -22% 0;
		height: 144%;
		object-position: center 90%;
	}
}
/* Light navy tint over the photo — just enough for the white section
   title to stay legible; the offer cards carry their own contrast
   (translucent white + blur, see .section--parallax .offer-card below). */
.section__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 38, 61, 0.3), rgba(6, 38, 61, 0.45));
}

/* -------------------------------------------------------------------- */
/* 6. Our offer                                                          */
/* -------------------------------------------------------------------- */

.offer-grid {
	margin-top: 2.5rem;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}
@media (min-width: 600px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }

.offer-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.75rem 1.5rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: rgba(10, 61, 98, 0.08);
	color: var(--color-navy);
	margin-bottom: 1rem;
}
.offer-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.offer-card__text { font-size: 0.92rem; color: #526175; }

/* Offer cards that open a lesson popup (kite / wingfoil) render as
   <button> instead of <article> — reset button quirks so they still lay
   out and read like the plain cards. */
.offer-card--clickable { display: block; width: 100%; text-align: left; cursor: pointer; }
.offer-card__cta {
	display: inline-block;
	margin-top: 0.85rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--color-navy);
}

/* Our offer sits on the parallax photo — half-transparent cards so the
   image reads through, blurred so text stays legible over any part of it. */
.section--parallax .offer-card {
	background: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* -------------------------------------------------------------------- */
/* 6b. The Spot                                                          */
/* -------------------------------------------------------------------- */

/* 20% taller than the default .section padding on mobile, so more of the
   background photo shows before the box — desktop keeps the normal
   section height (via the 900px .section rule further up). */
@media (max-width: 899px) {
	#spot.section { padding-block: 5.4rem; }
}

.spot-box {
	max-width: 640px;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius);
	padding: 2rem 1.75rem;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
@media (min-width: 700px) { .spot-box { padding: 2.75rem; } }

.spot-box__points {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.95rem;
	color: #33455a;
}
.spot-box__points li { padding-left: 1.3rem; position: relative; }
.spot-box__points li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.5em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--color-teal);
}
.spot-box__points strong { display: block; color: var(--color-navy); }

.spot-box__note {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(10, 61, 98, 0.15);
	font-size: 0.88rem;
	color: #45566a;
}
.spot-box__note strong { display: block; color: var(--color-navy); margin-bottom: 0.2rem; }

/* -------------------------------------------------------------------- */
/* 7. Team                                                               */
/* -------------------------------------------------------------------- */

.team-grid {
	margin-top: 2.5rem;
	margin-inline: auto;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	max-width: 760px;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { gap: 8rem; } }

.team-card { text-align: center; }
.team-card__photo {
	width: 160px; height: 160px;
	margin-inline: auto;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { margin-top: 1.1rem; font-weight: 700; font-size: 1.05rem; }
.team-card__role { color: var(--color-teal); font-size: 0.85rem; font-weight: 600; margin-top: 0.2rem; }
.team-card__bio {
	margin-top: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	text-align: left;
	font-size: 0.9rem;
	color: #526175;
}
.team-card__bio li { padding-left: 1.2rem; position: relative; }
.team-card__bio li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.5em;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--color-teal);
}

/* -------------------------------------------------------------------- */
/* 8. Pricing (kite / wingfoil lessons)                                  */
/* -------------------------------------------------------------------- */

.pricing-grid {
	margin-top: 2.5rem;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured { border-color: var(--color-sand); box-shadow: var(--shadow); }
.pricing-card__badge {
	position: absolute;
	top: -0.7rem;
	left: 1.75rem;
	background: var(--color-sand);
	color: var(--color-navy-dark);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
}
.pricing-card__name { font-size: 1.15rem; font-weight: 700; }
.pricing-card__price { display: flex; align-items: baseline; gap: 0.4rem; }
.pricing-card__amount { font-size: 1.9rem; font-weight: 800; color: var(--color-navy); }
.pricing-card__unit { font-size: 0.85rem; color: #6b7a8d; }
.pricing-card__features { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; flex-grow: 1; }
.pricing-card__features li { padding-left: 1.4rem; position: relative; }
.pricing-card__features li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.45em;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--color-teal);
}

/* -------------------------------------------------------------------- */
/* 9. Instagram / news                                                   */
/* -------------------------------------------------------------------- */

.admin-notice {
	margin-top: 1.5rem;
	padding: 0.9rem 1.1rem;
	border: 1px dashed var(--color-sand);
	border-radius: 8px;
	font-size: 0.85rem;
	color: #7a5b00;
	background: rgba(246, 185, 59, 0.1);
}

.instagram-grid {
	margin-top: 2.5rem;
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .instagram-grid { grid-template-columns: repeat(4, 1fr); } }

.instagram-grid__item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	position: relative;
}
.instagram-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.instagram-grid__item:hover img, .instagram-grid__item:focus-visible img { transform: scale(1.06); }

/* -------------------------------------------------------------------- */
/* 10. Location & contact                                                */
/* -------------------------------------------------------------------- */

.location-grid {
	margin-top: 2.5rem;
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.location-info__list { display: flex; flex-direction: column; gap: 1rem; font-size: 0.95rem; }
.location-info__list strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-teal); margin-bottom: 0.15rem; }
.location-info__list a:hover, .location-info__list a:focus-visible { text-decoration: underline; }

.map-embed {
	position: relative;
	margin-top: 1.75rem;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-mist);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form__title { font-size: 1.1rem; font-weight: 700; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: #45566a; }
.form-field input, .form-field textarea {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
	outline: none;
	border-color: var(--color-teal);
	box-shadow: 0 0 0 3px rgba(56, 173, 169, 0.2);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.form-notice--success { background: rgba(56, 173, 169, 0.12); color: #1c6f6a; }
.form-notice--error { background: rgba(214, 69, 65, 0.12); color: #a3312d; }

/* -------------------------------------------------------------------- */
/* 11. Footer                                                            */
/* -------------------------------------------------------------------- */

.site-footer { background: var(--color-navy-dark); color: rgba(255, 255, 255, 0.75); padding-block: 3rem; text-align: center; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.site-footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer__tagline { font-size: 0.9rem; }
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__social a { color: #fff; opacity: 0.75; transition: opacity 0.2s var(--ease); }
.site-footer__social a:hover, .site-footer__social a:focus-visible { opacity: 1; }
.site-footer__copy { font-size: 0.78rem; opacity: 0.6; }

/* -------------------------------------------------------------------- */
/* 12. Motion & input preferences                                       */
/* -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__scroll-hint { animation: none; }
	*, *::before, *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
	[data-reveal] .section__title,
	[data-reveal] .section__subtitle,
	[data-reveal-item] {
		opacity: 1;
		transform: none;
	}
}

/* Parallax transform is applied inline by JS; the rule above just stops
   it from being requested for anyone browsing with reduced motion (see
   assets/js/main.js). */

/* -------------------------------------------------------------------- */
/* 13. Lesson popups (kite / wingfoil)                                  */
/* -------------------------------------------------------------------- */

.lesson-modal[hidden] { display: none; }
.lesson-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: block;
}
.lesson-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 38, 61, 0.55);
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}
.lesson-modal.is-open .lesson-modal__backdrop { opacity: 1; }

.lesson-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 900px);
	max-height: 88vh;
	overflow-y: auto;
	margin: 6vh auto;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2.5rem 1.25rem;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (min-width: 700px) { .lesson-modal__dialog { padding: 3rem; } }
.lesson-modal.is-open .lesson-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }

.lesson-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--color-navy);
	transition: background-color 0.2s var(--ease);
}
.lesson-modal__close:hover, .lesson-modal__close:focus-visible { background: var(--color-mist); }
