/* ==========================================================================
   Petousis Diving Center
   Layout language: full-bleed video hero under a transparent header, centred
   section headings with an orange brush stroke, white shadowed cards,
   light-grey alternating sections, dark multi-column footer.
   ========================================================================== */

@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-greek.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-latin-ext.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--orange: #e8711a;        /* with white text only at >= 19px bold (3:1) */
	--orange-hover: #d4620f;
	--orange-text: #b5520a;   /* orange for small text on white (4.5:1) */
	--navy: #19324c;        /* palette sampled from the promo video */
	--navy-deep: #0f1e35;
	--sea: #30618a;
	--sea-light: #76bde4;
	--ink: #1a2633;
	--muted: #56616d;
	--tint: #f2f6f9;
	--line: #e3e8ef;
	--white: #ffffff;

	--font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: 0.9rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
	--step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);

	--space: clamp(1rem, 0.8rem + 1vw, 1.5rem);
	--section: clamp(4rem, 3rem + 4vw, 7rem);
	--wrap: 82rem;
	--measure: 40rem;
	--radius: 6px;
	--shadow: 0 10px 30px rgb(25 50 76 / 0.08), 0 2px 6px rgb(25 50 76 / 0.05);
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 7rem;
}

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

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

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--navy);
	text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 2px;
}

.wrap {
	width: min(100% - 2 * var(--space), var(--wrap));
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	left: var(--space);
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
}
.skip-link:focus { top: var(--space); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.7rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-size: 1.1875rem;   /* 19px bold: "large text" for contrast */
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button--orange { background: var(--orange); color: var(--white); }
.button--orange:hover { background: var(--orange-hover); }
.button--white { background: var(--white); color: var(--navy); }
.button--white:hover { background: var(--tint); }
.button--outline { border-color: var(--navy); color: var(--navy); }
.button--outline:hover { background: var(--navy); color: var(--white); }
.button--block { width: 100%; }

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin: 2rem 0 0;
}
.button-row--center { justify-content: center; }

/* ── Header: transparent over the hero, white once scrolled ───────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	box-shadow: 0 1px 0 var(--line);
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.has-hero .site-header {
	position: fixed;
	inset: 0 0 auto;
	background: transparent;
	box-shadow: none;
	color: var(--white);
}
.has-hero .site-header.is-scrolled,
.has-hero .site-header.is-open {
	background: var(--white);
	box-shadow: 0 1px 0 var(--line), var(--shadow);
	color: var(--ink);
}
.admin-bar.has-hero .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-hero .site-header { top: 46px; } }

.utility {
	font-size: var(--step--1);
	border-bottom: 1px solid rgb(25 50 76 / 0.08);
}
.has-hero .site-header:not(.is-scrolled):not(.is-open) .utility { border-color: rgb(255 255 255 / 0.2); }
.utility__inner {
	display: flex;
	justify-content: flex-end;
	gap: 1.75rem;
	padding-block: 0.55rem;
}
.utility a { text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }
.utility__hours { opacity: 0.85; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space);
	min-height: 5.25rem;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo,
.custom-logo {
	width: auto;
	height: clamp(2.9rem, 2.4rem + 1.6vw, 3.9rem);
}

/* Two logo versions; show the one that suits the header background. */
.site-header__logo--light { display: none; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .site-header__logo--light { display: block; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .site-header__logo--dark { display: none; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.site-nav .menu {
	display: flex;
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav .menu a {
	display: block;
	padding-block: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { border-bottom-color: var(--orange); }

/* Dropdown: second-level items open on hover or keyboard focus. */
.site-nav .menu > li { position: relative; }
.site-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin: 0 0 0.2em 0.45em;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 10;
	min-width: 13rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	visibility: hidden;
	opacity: 0;
	transform: translateY(0.4rem);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: none;
}
.site-nav .sub-menu a {
	padding: 0.55rem 1rem;
	border-bottom: 0;
}
.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a { color: var(--orange-text); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 700;
	color: inherit;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.4rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 66rem) {
	.utility__hours { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		inset: 100% 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 0.5rem var(--space) 1.5rem;
		background: var(--white);
		color: var(--ink);
		box-shadow: var(--shadow);
	}
	.js .site-nav:not(.is-open) { display: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a {
		padding-block: 0.85rem;
		font-size: var(--step-1);
		border-bottom: 1px solid var(--line);
	}
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.site-nav .sub-menu a { padding: 0.85rem 0 0.85rem 1.25rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 34rem) {
	.utility__inner { justify-content: center; gap: 1.25rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: clamp(36rem, 100svh, 60rem);
	padding-block: 10rem 5rem;
	color: var(--white);
	text-align: center;
	background: linear-gradient(160deg, var(--sea), var(--navy) 60%, var(--navy-deep));
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}
.hero__video,
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(15 30 53 / 0.55), rgb(15 30 53 / 0.3) 35%, rgb(15 30 53 / 0.55));
}

.hero__title {
	max-width: 18ch;
	margin: 0 auto 1.5rem;
	font-size: var(--step-4);
	font-weight: 800;
	line-height: 1.08;
	color: var(--white);
	text-shadow: 0 2px 24px rgb(0 0 0 / 0.3);
}
.hero__accent {
	display: block;
	color: var(--orange);
}

.hero__lead {
	max-width: 46rem;
	margin-inline: auto;
	font-size: var(--step-1);
	line-height: 1.6;
	text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
}

.hero__toggle {
	position: absolute;
	right: var(--space);
	bottom: var(--space);
	padding: 0.5rem 0.9rem;
	border: 1px solid rgb(255 255 255 / 0.55);
	border-radius: var(--radius);
	background: rgb(15 30 53 / 0.45);
	color: var(--white);
	font: inherit;
	font-size: var(--step--1);
	font-weight: 600;
	cursor: pointer;
}
.hero__toggle:hover { background: rgb(15 30 53 / 0.7); }

/* ── Inner-page banner ────────────────────────────────────────────────── */

.banner {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) clamp(3rem, 2.5rem + 3vw, 5rem);
	text-align: center;
	color: var(--white);
	background: linear-gradient(160deg, var(--sea), var(--navy) 65%);
}
.banner--image {
	background: linear-gradient(rgb(15 30 53 / 0.55), rgb(15 30 53 / 0.65)), var(--banner-image) center / cover;
}
.banner__title {
	margin: 0;
	font-size: var(--step-4);
	font-weight: 800;
	color: var(--white);
}
.banner__kicker { margin-bottom: 0.75rem; font-weight: 600; }
.banner__kicker a { color: var(--white); }
.banner .squiggle { margin-top: 0.9rem; }

/* ── Section scaffolding ──────────────────────────────────────────────── */

.section { padding-block: var(--section); }
.section--snug { padding-bottom: calc(var(--section) / 2); }
.section--tint { background: var(--tint); }

.heading {
	max-width: 46rem;
	margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.5rem);
	text-align: center;
}
.heading__title {
	margin: 0;
	font-size: var(--step-3);
	font-weight: 600;
}
.heading__lead {
	margin: 1.25rem 0 0;
	color: var(--muted);
	font-size: var(--step-1);
}

.squiggle {
	width: 5.25rem;
	height: auto;
	margin: 0.6rem auto 0;
	fill: none;
	stroke: var(--orange);
	stroke-width: 4.5;
	stroke-linecap: round;
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.cards {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--navy);
}
.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background: linear-gradient(160deg, var(--sea), var(--navy));
}
.card__placeholder img { width: 55%; opacity: 0.35; }

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.card__body p { color: var(--muted); }
.card__title {
	font-size: var(--step-2);
	font-weight: 700;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--orange-text); }
.card__action { margin: auto 0 0; padding-top: 0.5rem; }

/* Course cards */
.courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.course-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.course-card__depth-bg {
	display: block;
	height: 100%;
	background: linear-gradient(170deg,
		color-mix(in oklab, var(--sea-light), var(--navy-deep) calc(var(--d) * 85%)),
		color-mix(in oklab, var(--sea), var(--navy-deep) calc(30% + var(--d) * 70%)));
}
.course-card__depth {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	font-size: var(--step--1);
	font-weight: 700;
}
/* Training page: certifying agency badge (the logo has a white background, so it sits on a white plate) */
.agency-badge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto clamp(1.5rem, 1rem + 2vw, 2.5rem);
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
}
.agency-badge img { width: clamp(150px, 30vw, 200px); height: auto; }
.agency-badge__text { color: var(--navy); font-weight: 700; text-align: center; }

/* Training page: category filter and compact category headers */
.course-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.course-filter__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.course-filter__item:hover { border-color: var(--navy); }
.course-filter__item[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.course-filter__count {
	min-width: 1.6em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: var(--tint);
	color: var(--muted);
	font-size: 0.8em;
	text-align: center;
}
.course-filter__item[aria-current="true"] .course-filter__count { background: rgb(255 255 255 / 0.18); color: var(--white); }
@media (max-width: 40rem) {
	/* One swipeable row instead of a tall stack of wrapped chips. */
	.course-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-inline: calc(var(--space) * -1);
		padding: 0.25rem var(--space);
		overflow-x: auto;
		scrollbar-width: none;
	}
	.course-filter__item { flex: none; }
}

.course-group + .course-group { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.course-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--line);
}
.course-group__title { margin: 0; font-size: var(--step-2); font-weight: 600; }
.course-group__desc { margin: 0; color: var(--muted); font-size: var(--step--1); }
.course-group[hidden] { display: none; }
.course-card .card__title { font-size: var(--step-1); }
.course-card__meta {
	display: flex;
	gap: 1.5rem;
	margin: auto 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	font-size: var(--step--1);
}
.course-card__meta dt { color: var(--muted); }
.course-card__price { margin-left: auto; text-align: right; }
.course-card__price dd { color: var(--orange-text); }
.course-card__meta dd { margin: 0; font-weight: 700; color: var(--navy); }

/* ── Wave band: a photo strip with wavy edges ─────────────────────────── */

.wave-band {
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 260' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 360 0 720 80 1080 40 S 1440 20 1440 20 V 220 C 1080 260 720 180 360 220 S 0 245 0 245 Z'/%3E%3C/svg%3E");
	height: clamp(9rem, 18vw, 17rem);
	background: linear-gradient(100deg, var(--sea-light), var(--sea) 50%, var(--navy));
	-webkit-mask: var(--wave) center / 100% 100% no-repeat;
	mask: var(--wave) center / 100% 100% no-repeat;
}
.wave-band__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Split section (text + callouts) ──────────────────────────────────── */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: center;
}
.split__title { font-size: var(--step-3); font-weight: 600; }
.split__text p { color: var(--muted); font-size: var(--step-1); max-width: 34rem; }
.split__text .button-row { margin-top: 1.5rem; }

.callouts {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.callout {
	justify-self: start;
	max-width: 90%;
	padding: 1rem 1.4rem;
	background: var(--white);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	font-weight: 600;
	color: var(--navy);
}
.callout--right {
	justify-self: end;
	border-left: 0;
	border-right: 4px solid var(--orange);
}
@media (max-width: 52rem) {
	.split { grid-template-columns: 1fr; }
	.callout, .callout--right { justify-self: stretch; max-width: none; }
}

/* ── Underwater works grid ────────────────────────────────────────────── */

.works {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.works__item {
	padding: 1.5rem 1.6rem;
	background: var(--white);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.works__title { font-size: var(--step-1); }
.works__item p { margin: 0; color: var(--muted); }

.projects-empty { text-align: center; color: var(--muted); }

/* ── Closing CTA band ─────────────────────────────────────────────────── */

.cta-band {
	padding-block: var(--section);
	background: var(--white);
	text-align: center;
}
.cta-band .heading { margin-bottom: 1.5rem; }
.cta-band__phone {
	margin: 0;
	font-size: var(--step-3);
	font-weight: 800;
	color: var(--navy);
}
.cta-band__phone a { text-decoration: none; }
.cta-band__phone a:hover { color: var(--orange-text); }
.cta-band .button-row { margin-top: 1.5rem; }

/* ── Content ──────────────────────────────────────────────────────────── */

.prose > * { max-width: var(--measure); }
.prose--center { text-align: center; }
.prose--center > * { margin-inline: auto; }
.prose > * + h2 { margin-top: 2em; }
.prose h2 { font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange-text); font-weight: 700; }
.prose a:not(.button) { color: var(--orange-text); }
.prose img { border-radius: var(--radius); }
.lead {
	font-size: var(--step-1);
	line-height: 1.6;
	color: var(--muted);
}

.course {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: start;
}
.course__facts { position: sticky; top: 8rem; }
.course__facts dl { margin: 0 0 1.5rem; }
.course__facts dl > div { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.course__facts dt { font-size: var(--step--1); color: var(--muted); }
.course__facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.course__next { margin: 1rem 0 0; font-size: var(--step--1); color: var(--muted); text-align: center; }
.course__next a { color: var(--orange-text); font-weight: 700; }
@media (max-width: 52rem) {
	.course { grid-template-columns: 1fr; }
	.course__facts { position: static; }
}

.post-list { list-style: none; padding: 0; }
.post-list li + li { margin-top: 2.5rem; }
.post-list__date { color: var(--muted); font-size: var(--step--1); }

/* ── Contact form ─────────────────────────────────────────────────────── */

.contact-form {
	display: grid;
	gap: 1.1rem;
	margin-top: 2rem;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--navy); }
.field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1.1rem;
}
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1.5px solid #c5ced8;
	border-radius: var(--radius);
	background: var(--white);
	font: inherit;
	color: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--sea);
	box-shadow: 0 0 0 3px rgb(232 113 26 / 0.35);
}
.field--check {
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.75rem;
}
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--orange); }
.field--check label { font-weight: 400; font-size: var(--step-0); color: var(--ink); }
.field--trap { position: absolute; left: -9999px; }
.contact-form .button { justify-self: start; }

.notice {
	margin: 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid;
	border-radius: var(--radius);
	background: var(--tint);
}
.notice--ok { border-color: #2f9e6a; }
.notice--error { border-color: #c2412d; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
	padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	background: var(--navy);
	color: rgb(255 255 255 / 0.8);
	font-size: var(--step--1);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .button:hover { text-decoration: none; }
.site-footer .brand { margin-bottom: 1.5rem; }
.site-footer .brand__logo { height: 4rem; }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(2rem, 1rem + 3vw, 4rem);
	padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.site-footer__heading {
	margin-bottom: 1.1rem;
	font-size: var(--step-1);
	color: var(--white);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer__social { display: flex; gap: 1.25rem; }

.site-footer__legal {
	padding-block: 1.25rem;
	background: var(--navy-deep);
}
.site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal-menu { display: flex; gap: 1.5rem; }
.site-footer__legal-menu li + li { margin-top: 0; }

@media (max-width: 62rem) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
