/* =====================================================================
   ISO Academy Moldova (isoacademy-2026)
   One stylesheet. Token-driven. Components reference tokens ONLY.

   TOC
   1  Tokens (brand + semantic + dark override)
   2  Base and reset
   3  Typography and prose
   4  Layout: container, sections, eyebrows, section heads
   5  Buttons and links
   6  Header and navigation
   7  Mobile menu
   8  Hero
   9  Cards: courses, packages, values, testimonials
   10 Bands: steps, stats, CTA, about, contact
   11 Forms (CF7)
   12 Footer
   13 Utility and a11y
   14 Template add-ons (agent-extended, keep marker)
   15 Responsive (always LAST)
   ===================================================================== */

/* 1 ------------------------------------------------------------ tokens */
:root {
	color-scheme: light dark;

	/* brand tokens: locked, from the client brand sheet + approved swatches. Never flip in dark mode. */
	--brand: #165C7D;        /* steel blue, the one brand color */
	--brand-deep: #0F4560;   /* hover shade */
	--brand-ink: #0B2635;    /* darkest petrol: punctuation sections, footer */
	--accent: #EC8F4C;       /* client-approved warm accent, CTA only */
	--accent-deep: #DD7A33;
	--wash: #DCE7EC;         /* brand pale blue-gray */

	/* semantic tokens: the only thing dark mode overrides */
	--paper: #FFFFFF;
	--paper-2: #F2F7FA;
	--surface: #FFFFFF;
	--ink: #122A38;
	--ink-2: #3D5766;
	--muted: #64798A;
	--line: #D8E4EB;
	--header-bg: rgba(255, 255, 255, 0.88);
	--link: #165C7D;
	--highlight: rgba(22, 92, 125, 0.16);
	--wash-soft: #EEF4F7;
	--shadow-1: 0 1px 2px rgba(11, 38, 53, 0.05), 0 8px 24px rgba(11, 38, 53, 0.08);
	--shadow-2: 0 2px 6px rgba(11, 38, 53, 0.07), 0 18px 44px rgba(11, 38, 53, 0.13);

	/* type, shape, motion */
	--font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--container: 1200px;
	--radius: 14px;      /* cards, panels, images */
	--radius-sm: 9px;    /* buttons, inputs, chips */
	--dur: 0.26s;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme='dark'] {
	--paper: #0B161D;
	--paper-2: #0F1E28;
	--surface: #142430;
	--ink: #E9F1F6;
	--ink-2: #BFD0DA;
	--muted: #8AA2AF;
	--line: #243B49;
	--header-bg: rgba(11, 22, 29, 0.86);
	--link: #7FB3CC;
	--highlight: rgba(127, 179, 204, 0.24);
	--wash-soft: #10222D;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
	--shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* no-JS fallback only; JS always resolves auto to an explicit value */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--paper: #0B161D;
		--paper-2: #0F1E28;
		--surface: #142430;
		--ink: #E9F1F6;
		--ink-2: #BFD0DA;
		--muted: #8AA2AF;
		--line: #243B49;
		--header-bg: rgba(11, 22, 29, 0.86);
		--link: #7FB3CC;
		--highlight: rgba(127, 179, 204, 0.24);
		--wash-soft: #10222D;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	overflow-anchor: none;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html.menu-open { overflow: hidden; }

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

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { padding-left: 1.2em; }

a {
	color: var(--link);
	text-decoration: none;
	transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
a:active { opacity: 0.89; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
button { -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }

.icon { width: 1em; height: 1em; flex: none; }

/* 3 --------------------------------------------------------- typography */
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.16;
	color: var(--ink);
	margin: 0 0 0.5em;
	letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.15rem, 4.8vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* the ONE heading emphasis device: translucent brand highlighter under one word */
h1 u, h2 u, h3 u, .hl {
	text-decoration: none;
	background: linear-gradient(transparent 60%, var(--highlight) 0);
	border-radius: 3px;
	padding: 0 0.08em;
}

.lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--ink-2);
	max-width: 62ch;
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul li { margin-bottom: 0.35em; }
.prose { max-width: 74ch; }

/* 4 ------------------------------------------------------------- layout */
.container {
	width: min(var(--container), 100% - 48px);
	margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 48px); }

.section { padding: clamp(56px, 8.5vw, 128px) 0; }
.section--tight { padding: clamp(40px, 5.5vw, 80px) 0; }
.section--alt { background: var(--paper-2); }

/* dark punctuation sections keep their own local semantics in BOTH themes */
.section--dark {
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(22, 92, 125, 0.55), transparent 60%),
		linear-gradient(165deg, #123B54, var(--brand-ink) 70%);
	--paper: var(--brand-ink);
	--surface: rgba(255, 255, 255, 0.06);
	--ink: #F2F8FB;
	--ink-2: #C9DAE4;
	--muted: #9DB6C4;
	--line: rgba(255, 255, 255, 0.16);
	--link: #A8D3E8;
	--highlight: rgba(220, 231, 236, 0.26);
	color: var(--ink);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand);
	margin: 0 0 14px;
}
.section--dark .eyebrow { color: #A8D3E8; }
.eyebrow::before {
	content: '';
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--accent);
}

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* 5 ------------------------------------------------------------ buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--radius-sm);
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.993); }
.btn .icon { transition: transform var(--dur) var(--ease); }

.btn--accent { background: var(--accent); color: #14293A; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--line);
}

@media (hover: hover) and (pointer: fine) {
	.btn--accent:hover { background: var(--accent-deep); box-shadow: var(--shadow-1); }
	.btn--primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-1); }
	.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
	.section--dark .btn--ghost:hover { color: #fff; border-color: #fff; }
	.btn:hover .icon--arrow-right { transform: translateX(4px); }
	a:hover { color: var(--brand-deep); }
	.section--dark a:hover { color: #fff; }
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--brand);
}
.link-more .icon { transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
	.link-more:hover .icon { transform: translateX(4px); }
}

/* 6 ------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	isolation: isolate;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 4px 18px rgba(11, 38, 53, 0.06);
}
body.admin-bar .site-header { top: 32px; }

.header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 84px;
}
.site-header.is-scrolled .header__inner { height: 64px; }

.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo-img { height: 56px; width: auto; transition: height var(--dur) var(--ease); }
.site-header.is-scrolled .header__logo-img { height: 44px; }
.header__logo-img--dark { display: none; }
[data-theme='dark'] .header__logo-img--light { display: none; }
[data-theme='dark'] .header__logo-img--dark { display: block; }

/* generic theme-swapped image pair for content areas (hero panel, about) */
.only-dark { display: none; }
[data-theme='dark'] .only-light { display: none; }
[data-theme='dark'] .only-dark { display: block; }

.header__nav { margin-left: auto; }
.nav__list {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--ink-2);
	white-space: nowrap;
}
.nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--brand);
	transition: right var(--dur) var(--ease);
}
.nav__list a.active { color: var(--brand); }
.nav__list a.active::after { right: 0; }
@media (hover: hover) and (pointer: fine) {
	.nav__list a:hover { color: var(--brand); }
	.nav__list a:hover::after { right: 0; }
}

.header__cluster { display: flex; align-items: center; gap: 16px; }
.header__cta { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }

.lang-switch {
	display: inline-flex;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.lang-switch a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.lang-switch a.active { background: var(--brand); color: #fff; }

.header__burger {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.header__burger span {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7 -------------------------------------------------------- mobile menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 55;
	padding: 120px 24px 40px;
	background: var(--paper);
	display: flex;
	flex-direction: column;
	gap: 28px;
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
	padding-bottom: max(40px, env(safe-area-inset-bottom));
}
.mobile-menu.is-open { opacity: 1; transform: none; }

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.mobile-menu__list a {
	display: block;
	padding: 13px 4px;
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.mobile-menu__list a.active { color: var(--brand); }
.mobile-menu__cta { align-self: flex-start; }
.mobile-menu__meta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	color: var(--ink-2);
}
.mobile-menu__phone, .mobile-menu__mail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--ink-2);
}

/* 8 --------------------------------------------------------------- hero */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(720px 420px at 88% 8%, rgba(220, 231, 236, 0.55), transparent 65%),
		radial-gradient(560px 380px at -6% 90%, rgba(22, 92, 125, 0.1), transparent 60%),
		var(--paper);
}
[data-theme='dark'] .hero {
	background:
		radial-gradient(720px 420px at 88% 8%, rgba(22, 92, 125, 0.35), transparent 65%),
		radial-gradient(560px 380px at -6% 90%, rgba(22, 92, 125, 0.18), transparent 60%),
		var(--paper);
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding: clamp(56px, 8vw, 116px) 0;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__panel {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-2);
	padding: clamp(24px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: center;
	text-align: center;
}
.hero__panel-logo { width: min(240px, 60%); height: auto; }
.hero__chips { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: var(--wash-soft);
	color: var(--ink-2);
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
}
.chip .icon { color: var(--brand); font-size: 1.15em; }

/* 9 -------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
		border-color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
	.card--link:hover {
		transform: translateY(-4px);
		box-shadow: var(--shadow-2);
		border-color: transparent;
	}
}

.card__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--wash-soft);
	color: var(--brand);
	font-size: 22px;
}
.section--dark .card__icon { background: rgba(255, 255, 255, 0.1); color: #A8D3E8; }

.course-card { position: relative; }
.course-card h3 { margin: 0; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a::after { content: ''; position: absolute; inset: 0; }
.course-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.course-card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--muted);
	font-size: 0.88rem;
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.course-card__meta .icon { color: var(--brand); }
.course-card .link-more { margin-top: 2px; }

.card--cta {
	border-style: dashed;
	border-color: var(--brand);
	background: transparent;
	align-items: flex-start;
	justify-content: center;
}
.card--cta p { color: var(--ink-2); margin: 0; }

.package-card { position: relative; }
.package-card__badge {
	position: absolute;
	top: -12px;
	right: 20px;
	background: var(--accent);
	color: #14293A;
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
}
.package-card--featured { border-color: var(--brand); box-shadow: var(--shadow-1); }
.package-card h3 { margin: 0; }
.package-card__tagline { color: var(--muted); font-size: 0.92rem; margin: 0; }
.package-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 0.94rem;
	color: var(--ink-2);
}
.package-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.package-card ul .icon { color: var(--brand); margin-top: 4px; }
.package-card .btn { margin-top: auto; }

.testimonial-card { gap: 16px; }
.testimonial-card__quote { color: var(--brand); font-size: 26px; }
.testimonial-card p { margin: 0; color: var(--ink-2); }
.testimonial-card footer { margin-top: auto; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.testimonial-card .badge-sample {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px dashed var(--line);
	border-radius: 999px;
	padding: 2px 10px;
}

.value-card { text-align: left; }
.value-card h3 { margin: 0; font-size: 1.08rem; }
.value-card p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

/* 10 -------------------------------------------------------------- bands */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 34px; }
.step-card::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: -14px;
	left: 22px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1rem;
	color: var(--brand);
	background: var(--paper);
	border: 1.5px solid var(--brand);
	border-radius: 999px;
	padding: 6px 13px;
}
.section--alt .step-card::before { background: var(--paper-2); }
.step-card h3 { margin: 0; font-size: 1.12rem; }
.step-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .lead { margin-inline: auto; margin-bottom: 1.8em; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.about-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.about-split__media {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--wash-soft);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	padding: clamp(28px, 4vw, 56px);
}
.about-split__media img { width: min(300px, 70%); height: auto; }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.fact {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--wash-soft);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink-2);
}
.fact .icon { color: var(--brand); }

.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--brand); font-size: 20px; margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; }
.contact-list a { color: var(--ink-2); }
.contact-list span.small { color: var(--muted); font-size: 0.88rem; }

/* 11 -------------------------------------------------------------- forms */
.form-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
	padding: clamp(24px, 3.4vw, 40px);
}
.form p { margin: 0; }
.form label {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.92rem;
	margin: 18px 0 6px;
}
.form input[type='text'],
.form input[type='email'],
.form input[type='tel'],
.form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	scroll-margin-top: 120px;
	transition: border-color var(--dur) var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form textarea { min-height: 120px; resize: vertical; }

.form .wpcf7-checkbox, .form .wpcf7-radio { display: grid; gap: 10px; margin-top: 4px; }
.choices--2col .wpcf7-checkbox { grid-template-columns: 1fr 1fr; }
.form .wpcf7-list-item { margin: 0; }
.form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.95rem;
	cursor: pointer;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form .wpcf7-list-item input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.form .wpcf7-list-item label:has(input:checked) {
	border-color: var(--brand);
	background: var(--wash-soft);
}
.form .consent .wpcf7-list-item label { border: 0; padding: 4px 0; font-size: 0.86rem; color: var(--muted); font-weight: 400; }

.form .wpcf7-not-valid { border-color: #C4472F; }
.form .wpcf7-not-valid-tip { color: #C4472F; font-size: 0.84rem; margin-top: 5px; display: block; }
[data-theme='dark'] .form .wpcf7-not-valid-tip { color: #F09A84; }
.form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 13px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 0.92rem;
}
.form .wpcf7-spinner { margin: 0 0 0 12px; }
.form .form__submit { margin-top: 26px; }

.form-fallback { display: flex; flex-direction: column; gap: 10px; }

/* honeypot: visually gone, still in the DOM for bots */
.isa-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* 12 ------------------------------------------------------------- footer */
.site-footer {
	background:
		radial-gradient(720px 380px at 90% -20%, rgba(22, 92, 125, 0.5), transparent 60%),
		linear-gradient(170deg, #10384F, var(--brand-ink) 62%);
	color: #C9DAE4;
	padding: clamp(52px, 6vw, 84px) 0 28px;
	font-size: 0.94rem;
}
.site-footer a { color: #C9DAE4; }
@media (hover: hover) and (pointer: fine) {
	.site-footer a:hover { color: #fff; }
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1.4fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(32px, 4vw, 52px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__logo { display: inline-block; margin-bottom: 16px; }
.footer__logo-img { height: 72px; width: auto; }
.footer__tagline { max-width: 34ch; color: #9DB6C4; }
.footer__contact { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer__contact .icon { color: #A8D3E8; margin-top: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-size: 17px;
}
.footer__col h4 {
	color: #fff;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.footer__prefs {
	display: flex;
	flex-wrap: wrap;
	gap: 22px 44px;
	padding: 22px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	align-items: center;
}
.footer__pref { display: flex; align-items: center; gap: 14px; }
.footer__pref-label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9DB6C4; }

.theme-toggle {
	display: inline-flex;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.theme-toggle button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: #C9DAE4;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: 999px;
	cursor: pointer;
}
.theme-toggle button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.16); color: #fff; }

.lang-switch--footer, .lang-switch--mobile { border-color: rgba(255, 255, 255, 0.25); }
.lang-switch--mobile { border-color: var(--line); }
.lang-switch--footer a { color: #C9DAE4; }
.lang-switch--footer a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	padding-top: 24px;
	font-size: 0.86rem;
	color: #9DB6C4;
}
.footer__copy { margin: 0; }
.footer__legal { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer__credit { margin: 0 0 0 auto; }
.footer__credit .nld { font-weight: 700; color: #fff; }
.footer__top {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: transparent;
	color: #C9DAE4;
	cursor: pointer;
	font-size: 16px;
}

/* 13 ------------------------------------------------------------ utility */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	background: var(--brand);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
}

.error-404 { text-align: center; padding: clamp(64px, 10vw, 140px) 0; }
.error-404 .error-404__code {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(6rem, 18vw, 12rem);
	line-height: 1;
	color: var(--wash);
	margin: 0;
}
[data-theme='dark'] .error-404 .error-404__code { color: #1C3646; }
.error-404 h1 { margin-top: 0.2em; }
.error-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* 14 ----------------------------------- template add-ons (marker, keep) */
/* ISA-TEMPLATE-ADDONS: agent-authored template-specific rules go below this line only. */

/* back link (single course) */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--muted);
	margin-bottom: 24px;
}
.back-link .icon { transform: rotate(180deg); transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
	.back-link:hover { color: var(--brand); }
	.back-link:hover .icon { transform: rotate(180deg) translateX(4px); }
}

/* centered facts row (about page) */
.facts--center { justify-content: center; }

/* generic check list (course topics and outcomes) */
.check-list {
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--ink-2);
}
.check-list li { display: flex; gap: 11px; align-items: flex-start; }
.check-list .icon { color: var(--brand); font-size: 1.1em; margin-top: 5px; flex: none; }

/* single course: intro + two-column layout with sticky aside */
.course-intro { margin-top: 20px; }
.course-intro p:last-child { margin-bottom: 0; }
.course-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(32px, 4.5vw, 64px);
	align-items: start;
	margin-top: clamp(36px, 5vw, 60px);
}
.course-note { color: var(--muted); font-size: 0.95rem; }
.course-cert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--wash-soft);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	color: var(--ink-2);
	font-size: 0.95rem;
	font-weight: 600;
	margin: 10px 0 0;
}
.course-cert .icon { color: var(--brand); font-size: 1.3em; margin-top: 2px; flex: none; }
.course-aside { position: sticky; top: 96px; }
.course-aside .form-panel { display: flex; flex-direction: column; gap: 14px; }
.course-aside h3 { margin: 0; }
.course-aside p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.course-aside .btn { width: 100%; }
.aside-chips { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* packages page: anchored full cards */
.package-card { scroll-margin-top: 120px; }
.package-card__pitch { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.package-card__bestfor {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
	color: var(--muted);
}
.package-card__bestfor strong { color: var(--ink-2); }

/* testimonials: role on its own line */
.testimonial-card__role { display: block; font-weight: 400; }

/* legal pages: muted updated line */
.legal-updated { color: var(--muted); font-size: 0.92rem; margin: -0.6em 0 2.2em; }

/* add-on responsive tweaks */
@media (max-width: 1024px) {
	.course-layout { grid-template-columns: 1fr; }
	.course-aside { position: static; }
}

/* ISA-TEMPLATE-ADDONS-END */

/* 15 -------------------------------------------- responsive (keep LAST) */
@media (max-width: 1080px) {
	.header__nav { display: none; }
	.header__burger { display: flex; }
	.header__cluster .lang-switch { display: none; }
	.header__inner { gap: 16px; }
	.header__cta { margin-left: auto; }
}

@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__panel { max-width: 460px; }
	.about-split { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.container { width: min(var(--container), 100% - 40px); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.container { width: min(var(--container), 100% - 32px); }
	.header__inner { height: 72px; }
	.site-header.is-scrolled .header__inner { height: 60px; }
	.header__logo-img { height: 44px; }
	.site-header.is-scrolled .header__logo-img { height: 40px; }
	.header__cta { min-height: 42px; padding: 0 14px; font-size: 0.88rem; }
	.header__cta .icon { display: none; }

	.grid--3, .grid--2 { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: 1fr; }
	.hero__ctas .btn { width: 100%; }
	.cta-band__actions .btn { width: 100%; }
	.choices--2col .wpcf7-checkbox { grid-template-columns: 1fr; }

	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.footer__prefs { flex-direction: column; align-items: flex-start; gap: 16px; }
	.footer__bottom { flex-direction: column; align-items: center; text-align: center; }
	.footer__credit { margin-left: 0; }
	.footer__copy { order: 10; }
}

@media (max-width: 420px) {
	.container { width: min(var(--container), 100% - 24px); }
	.btn { padding: 0 18px; }
	.header__logo-img { height: 40px; }
}
