/* AIS Flight Academy — front-end and editor styles on top of theme.json. */

/* ---------------------------------------------------------------------------
 * Page canvas. The navigation bar, hero and footer run edge to edge;
 * section content keeps its own max width.
 * ------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp--custom--header--height) + 1rem);
}

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

body {
	background: var(--wp--preset--color--base);
}

.wp-site-blocks {
	max-width: none;
	margin-inline: auto;
	background: var(--wp--preset--color--base);
	min-height: 100vh;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.aisfa-footer :where(a, button):focus-visible,
.aisfa-menu .sub-menu a:focus-visible,
.aisfa-nav__panel :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--orange);
}

/* ---------------------------------------------------------------------------
 * Header + navigation
 * ------------------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.aisfa-header {
	background: var(--wp--preset--color--contrast);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--orange);
	padding-inline: 0 !important;
}

.aisfa-header :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--orange);
}

.aisfa-footer > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.aisfa-header__bar,
.aisfa-hero__inner,
.aisfa-home-title,
.aisfa-footer__content {
	box-sizing: border-box;
	width: min(100%, calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right)));
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
}

.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}

.aisfa-header__bar {
	min-height: var(--wp--custom--header--height);
	gap: 1.5rem;
}

.aisfa-header__logo {
	line-height: 0;
}

.aisfa-header__logo img {
	display: block;
	height: 40px;
	width: auto;
}

.aisfa-nav {
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--base);
	font-size: 0.875rem;
}

.aisfa-nav__panel {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.aisfa-menu,
.aisfa-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aisfa-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.85rem;
}

.aisfa-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.aisfa-menu a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding-block: 0.5rem;
	display: inline-block;
}

.aisfa-menu > li > a:hover,
.aisfa-menu > li > a:focus-visible,
.aisfa-menu > li.current-menu-item > a,
.aisfa-menu > li.current-menu-ancestor > a,
.aisfa-menu > li.current-menu-parent > a {
	color: var(--wp--preset--color--base);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--orange);
}

.aisfa-submenu-toggle {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0.25rem;
	margin-left: 0.15rem;
	display: inline-flex;
	line-height: 1;
}

.aisfa-submenu-toggle .aisfa-icon {
	width: 0.7rem;
	height: 0.7rem;
	transition: transform 0.2s ease;
}

.aisfa-submenu-toggle[aria-expanded="true"] .aisfa-icon {
	transform: rotate(180deg);
}

.aisfa-menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: -0.4rem;
	min-width: 240px;
	background: var(--wp--preset--color--orange);
	border-radius: 12px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
	padding: 0.4rem;
	display: none;
	z-index: 60;
}

.aisfa-menu .sub-menu a {
	display: block;
	padding: 0.6rem 0.85rem;
	border-radius: 8px;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

.aisfa-menu .sub-menu a:hover,
.aisfa-menu .sub-menu a:focus-visible,
.aisfa-menu .sub-menu .current-menu-item > a {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.aisfa-menu li.is-open > .sub-menu {
	display: block;
}

@media (hover: hover) and (min-width: 1100px) {
	.aisfa-menu li:hover > .sub-menu,
	.aisfa-menu li:focus-within > .sub-menu {
		display: block;
	}

	/* Fills the space between the menu item and the panel so the pointer can cross it. */
	.aisfa-menu .sub-menu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 0.7rem;
	}
}

.aisfa-nav__extra {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.aisfa-lang {
	display: flex;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aisfa-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--wp--preset--color--base);
	border-radius: 50%;
	color: var(--wp--preset--color--base);
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
}

.aisfa-lang a.is-current,
.aisfa-lang a:hover {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
}

.aisfa-nav__cta.wp-element-button {
	white-space: nowrap;
	text-decoration: none;
}

@media (min-width: 1100px) and (max-width: 1439px) {
	.aisfa-header__bar { gap: 0.75rem; }
	.aisfa-nav__panel { gap: 0.65rem; }
	.aisfa-menu { gap: 0.1rem 0.45rem; }
	.aisfa-menu a { font-size: 0.78rem; letter-spacing: 0.01em; }
}

.aisfa-nav__toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 6px;
	color: var(--wp--preset--color--base);
	font: inherit;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 0.8rem;
	cursor: pointer;
	white-space: nowrap;
}

.aisfa-nav__toggle-bars,
.aisfa-nav__toggle-bars::before,
.aisfa-nav__toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
	transition: transform 0.2s ease;
}

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

.aisfa-nav__toggle-bars::before { top: -6px; }
.aisfa-nav__toggle-bars::after { top: 6px; }

.aisfa-nav__toggle[aria-expanded="true"] .aisfa-nav__toggle-bars { background: transparent; }
.aisfa-nav__toggle[aria-expanded="true"] .aisfa-nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.aisfa-nav__toggle[aria-expanded="true"] .aisfa-nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
	.aisfa-nav__toggle { display: inline-flex; }

	.aisfa-nav__panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		background: var(--wp--preset--color--contrast);
		padding: 1rem clamp(1rem, 3vw, 2rem) 1.5rem;
		max-height: calc(100vh - var(--wp--custom--header--height));
		overflow-y: auto;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
	}

	.aisfa-nav.is-open .aisfa-nav__panel { display: flex; }

	.aisfa-nav__panel,
	.aisfa-nav__panel .aisfa-menu a,
	.aisfa-nav__panel .aisfa-submenu-toggle {
		color: var(--wp--preset--color--base);
	}

	.aisfa-nav__panel .aisfa-lang a {
		border-color: var(--wp--preset--color--base);
		color: var(--wp--preset--color--base);
	}

	.aisfa-nav__panel .aisfa-lang a.is-current,
	.aisfa-nav__panel .aisfa-lang a:hover {
		background: var(--wp--preset--color--orange);
		border-color: var(--wp--preset--color--orange);
		color: var(--wp--preset--color--contrast);
	}

	.aisfa-nav__panel .aisfa-menu > li > a:hover,
	.aisfa-nav__panel .aisfa-menu > li > a:focus-visible,
	.aisfa-nav__panel .aisfa-menu > li.current-menu-item > a,
	.aisfa-nav__panel .aisfa-menu > li.current-menu-ancestor > a,
	.aisfa-nav__panel .aisfa-menu > li.current-menu-parent > a {
		color: var(--wp--preset--color--orange);
		box-shadow: none;
	}

	.aisfa-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.aisfa-menu > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.aisfa-menu a { padding-block: 0.8rem; }

	.aisfa-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		box-shadow: none;
		margin: 0 0 0.75rem;
	}

	.aisfa-nav__panel .aisfa-menu .sub-menu a,
	.aisfa-nav__panel .aisfa-menu .sub-menu a:hover,
	.aisfa-nav__panel .aisfa-menu .sub-menu a:focus-visible,
	.aisfa-nav__panel .aisfa-menu .sub-menu .current-menu-item > a {
		color: var(--wp--preset--color--contrast);
	}

	.aisfa-nav__extra { justify-content: space-between; }
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.aisfa-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: clamp(220px, calc(100vw * 394 / 1366), 420px);
	background: var(--wp--preset--color--light-blue);
	isolation: isolate;
}

.aisfa-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.aisfa-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(38, 43, 85, 0.55) 0%, rgba(38, 43, 85, 0.1) 55%, rgba(38, 43, 85, 0.35) 100%);
	z-index: -1;
}

.aisfa-hero__slides {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.aisfa-hero.is-home {
	height: clamp(460px, 48vw, 640px);
	background: #141414;
}

.aisfa-hero.is-home .aisfa-hero__image {
	object-position: center 62%;
}

.aisfa-hero.is-home::before {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.05) 100%);
}

.aisfa-hero.is-home .aisfa-hero__image {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.aisfa-hero.is-home .aisfa-hero__image.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.aisfa-hero.is-home .aisfa-hero__image {
		animation: aisfa-hero-drift 12s ease-in-out infinite alternate;
	}
}

@keyframes aisfa-hero-drift {
	from { transform: scale(1); }
	to { transform: scale(1.06); }
}

.aisfa-hero__inner {
	position: relative;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding-block: clamp(1rem, 3vw, 2.5rem);
}

.aisfa-hero__title {
	color: var(--wp--preset--color--base);
	font-size: clamp(1.5rem, 3.4vw, 2.8rem);
	font-weight: 400;
	text-transform: uppercase;
	margin: 0;
	max-width: 55%;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.aisfa-home-title {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	padding-bottom: 1.15rem;
	padding-inline: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
	background: #f4f2eb;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	box-shadow: inset 0 -4px 0 var(--wp--preset--color--orange);
}

.aisfa-hero__cta {
	margin-left: auto;
	max-width: min(32rem, 40%);
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1rem;
}

.aisfa-hero.is-home .aisfa-hero__cta {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
	align-items: flex-start;
	max-width: min(36rem, 70%);
}

.aisfa-hero.is-home .aisfa-hero__cta-text {
	font-weight: 500;
	letter-spacing: 0.03em;
}

.aisfa-hero__cta-text {
	color: var(--wp--preset--color--base);
	font-size: clamp(1.4rem, 3vw, 2.6rem);
	line-height: 1.15;
	text-transform: uppercase;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.aisfa-hero .wp-element-button { text-decoration: none; }

@media (max-width: 767px) {
	.aisfa-hero { height: auto; min-height: 220px; aspect-ratio: 1366 / 394; }
	.aisfa-hero.is-home { height: auto; aspect-ratio: 3 / 2; min-height: 280px; }
	.aisfa-hero__inner {
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
	}
	.aisfa-hero__title { max-width: 100%; text-align: left; }
	.aisfa-hero__cta { margin-left: 0; max-width: 100%; width: 100%; text-align: left; align-items: flex-start; }
	.aisfa-hero__cta-text { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------------------
 * Content
 * ------------------------------------------------------------------------- */
.aisfa-page :where(h2, h3) { scroll-margin-top: calc(var(--wp--custom--header--height) + 1rem); }

.aisfa-main > :where(.wp-block-post-content, .aisfa-page) { margin-block-start: 0; }
.aisfa-home .wp-block-post-content > section:first-child {
	background: #f4f2eb;
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.aisfa-home .wp-block-post-content > section:first-child > div > div {
	align-items: center;
}

.aisfa-home .wp-block-post-content > section:first-child figure {
	margin: 0;
}

.aisfa-home .wp-block-post-content > section:first-child img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px !important;
}

.aisfa-home .wp-block-post-content > section:first-child h2 {
	margin-top: 0;
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	letter-spacing: -0.02em;
}

.aisfa-home .wp-block-post-content > section:first-child p {
	color: #2b2b2b;
	font-size: 1.05rem;
	line-height: 1.7;
}

.aisfa-home .wp-block-post-content > section:first-child > div > div > div:last-child {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base);
	border-radius: 16px !important;
	padding: 1.35rem 1.35rem 0.85rem !important;
	box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
}

.aisfa-home .wp-block-post-content > section:first-child > div > div > div:last-child :is(h2, h3) {
	color: var(--wp--preset--color--base);
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list {
	margin: 0;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list li {
	margin: 0;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--wp--preset--color--base);
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	font-weight: 600;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list li:last-child a {
	border-bottom: 0;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list a::before {
	content: none;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list a::after {
	content: "→";
	color: var(--wp--preset--color--orange);
	font-size: 1.1rem;
	line-height: 1;
}

.aisfa-home .wp-block-post-content > section:first-child .aisfa-link-list a:hover {
	color: var(--wp--preset--color--orange);
}
.aisfa-home .wp-block-post-content > section + section { padding-top: var(--wp--preset--spacing--40); }
.wp-block-heading:has(+ .aisfa-logos) { text-align: center; }

.aisfa-page ul:not(.aisfa-section-nav ul, .wp-block-gallery, .ff-el-group ul) > li::marker,
.wp-block-post-content ul > li::marker {
	color: var(--wp--preset--color--orange);
}

.wp-block-post-content .wp-block-image img { height: auto; }

.wp-block-post-content :where(.wp-block-table) td,
.wp-block-post-content :where(.wp-block-table) th {
	border-color: var(--wp--preset--color--light-blue);
}

.wp-block-post-content a:where(:not(.wp-element-button)) {
	text-decoration-color: var(--wp--preset--color--orange);
	text-underline-offset: 0.18em;
}

.wp-block-post-content a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 3px;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	list-style-position: outside;
	padding-right: 1rem;
}

.wp-block-details summary::marker { color: var(--wp--preset--color--orange); }
.wp-block-details[open] summary { margin-bottom: 0.5rem; }

/* Section navigation (replaces the scrollspy sidebar) */
.aisfa-with-section-nav { align-items: flex-start !important; }

.aisfa-section-nav-column {
	position: sticky;
	top: calc(var(--wp--custom--header--height) + 1.5rem);
}

.admin-bar .aisfa-section-nav-column { top: calc(var(--wp--custom--header--height) + 1.5rem + 32px); }

.aisfa-section-nav {
	background: var(--wp--preset--color--light-blue);
	border-top-left-radius: 30px;
	border-bottom-right-radius: 30px;
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	font-size: 0.9rem;
}

.aisfa-section-nav__title {
	margin: 0 0 0.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast);
}

.aisfa-section-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aisfa-section-nav a {
	display: block;
	padding: 0.35rem 0 0.35rem 0.75rem;
	border-left: 3px solid transparent;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	line-height: 1.35;
}

.aisfa-section-nav a:hover,
.aisfa-section-nav a[aria-current="true"] {
	border-left-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--orange-dark);
}

@media (max-width: 781px) {
	.aisfa-section-nav-column { position: static; }
}

/* Info boxes */
[data-aisfa="info-box"] .gb-shape {
	width: 72px !important;
	height: 72px !important;
	border-top-left-radius: 14px !important;
	border-bottom-right-radius: 14px !important;
	background-color: var(--wp--preset--color--orange) !important;
	color: var(--wp--preset--color--contrast) !important;
}

[data-aisfa="info-box"] .gb-shape svg {
	width: 26px !important;
	height: 26px !important;
}

/* On the pale yellow panel, invert the button so it stays readable. */
[data-aisfa="info-box"] .wp-element-button {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--orange);
}

[data-aisfa="info-box"] .wp-element-button:hover,
[data-aisfa="info-box"] .wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 767px) {
	[data-aisfa="info-box"] .gb-shape {
		width: 52px !important;
		height: 52px !important;
		border-top-left-radius: 10px !important;
		border-bottom-right-radius: 10px !important;
	}

	[data-aisfa="info-box"] .gb-shape svg {
		width: 20px !important;
		height: 20px !important;
	}
}

[data-aisfa="info-box"] ul {
	list-style: none;
	padding-left: 0;
}

[data-aisfa="info-box"] ul li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.25rem;
}

[data-aisfa="info-box"] ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--orange);
}

/* Partner logos. The band matches the white logo tiles. */
.aisfa-home section:has(.aisfa-logos) {
	background-color: var(--wp--preset--color--base);
}

.aisfa-logos.wp-block-gallery {
	align-items: center;
	justify-content: center;
}

.aisfa-logos.wp-block-gallery .wp-block-image img {
	object-fit: contain !important;
	max-height: 70px;
}

/* Testimonials (homepage) */
.aisfa-testimonials {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.aisfa-testimonial {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	margin: 0;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--light-blue);
}

.aisfa-testimonial__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.aisfa-testimonial blockquote {
	margin: 0;
	font-size: 1.1rem;
	font-style: italic;
	color: var(--wp--preset--color--contrast);
}

.aisfa-testimonial blockquote p { margin: 0 0 0.35rem; }

.aisfa-testimonial figcaption {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grey);
}

.aisfa-testimonial figcaption a { color: inherit; }

/* Graduate stories (reviews page) */
.aisfa-stories {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.aisfa-story {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.aisfa-story.is-reversed { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.aisfa-story.is-reversed .aisfa-story__media { order: 2; }

.aisfa-story__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-top-left-radius: 50px;
	border-bottom-right-radius: 50px;
}

.aisfa-story__title { margin-top: 0; }

.aisfa-story__quote {
	margin: 0 0 1rem;
	padding-left: 1rem;
	border-left: 4px solid var(--wp--preset--color--orange);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--wp--preset--color--contrast);
}

.aisfa-story__quote p { margin: 0 0 0.25rem; }
.aisfa-story__quote cite { font-size: 0.875rem; font-style: normal; color: var(--wp--preset--color--grey); }
.aisfa-story .wp-element-button { text-decoration: none; display: inline-block; }

@media (max-width: 781px) {
	.aisfa-story,
	.aisfa-story.is-reversed { grid-template-columns: minmax(0, 1fr); }
	.aisfa-story.is-reversed .aisfa-story__media { order: 0; }
	.aisfa-story__media { max-width: 320px; }
}

/* Quick links list (home intro) */
.aisfa-link-list {
	list-style: none;
	padding-left: 0;
}

.aisfa-link-list li { margin-bottom: 0.4rem; }

.aisfa-link-list a {
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.aisfa-link-list a::before {
	content: "›";
	color: var(--wp--preset--color--orange);
	font-weight: 700;
	margin-right: 0.5rem;
}

.aisfa-link-list a:hover { color: var(--wp--preset--color--orange-dark); }

/* Map */
.aisfa-map iframe {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--grey-light);
}

.aisfa-map p { font-size: 0.875rem; margin-top: 0.5rem; }

/* Video */
.wp-block-video video { width: 100%; border-radius: 10px; }

/* ---------------------------------------------------------------------------
 * Footer. Black band, content aligned with the page column.
 * Yellow accents follow the black-on-yellow airport signs.
 * ------------------------------------------------------------------------- */
.aisfa-footer {
	position: relative;
	color: var(--wp--preset--color--base);
	margin-top: 0;
	padding: 0 !important;
	background: var(--wp--preset--color--contrast);
}

.aisfa-footer__shell {
	position: relative;
}

.aisfa-footer__content {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding-block: clamp(2rem, 4vw, 3rem);
}

.aisfa-footer__logo {
	display: inline-block;
	line-height: 0;
	width: fit-content;
}

.aisfa-footer__logo img {
	display: block;
	height: 44px;
	width: auto;
}

.aisfa-footer a {
	color: inherit;
	text-decoration: none;
}

.aisfa-footer__feature {
	width: 100%;
	box-sizing: border-box;
	background: #f4f2eb;
	color: var(--wp--preset--color--contrast);
	text-align: center;
	padding: clamp(2rem, 4vw, 3rem) var(--wp--style--root--padding-left);
}

.aisfa-footer__feature .aisfa-rotator {
	width: min(100%, 40rem);
	margin-inline: auto;
}

.aisfa-footer__feature h2 {
	margin: 0 0 0.55rem;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 500;
	line-height: 1.3;
}

.aisfa-footer__bar {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem 2rem;
	align-items: start;
	color: var(--wp--preset--color--base);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.aisfa-footer__contact {
	display: grid;
	gap: 0.85rem;
}

.aisfa-footer__bar a:hover { color: var(--wp--preset--color--orange); }

.aisfa-footer__name { font-weight: 600; }

.aisfa-footer__meta { text-align: right; }

.aisfa-footer__bar p { margin: 0; }

.aisfa-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.2rem;
}

.aisfa-contact__label {
	display: inline-block;
	width: 1.15rem;
	color: var(--wp--preset--color--orange);
	font-weight: 700;
}

.aisfa-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aisfa-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--contrast);
	transition: color 0.2s ease, transform 0.2s ease;
}

.aisfa-footer .aisfa-social--feature a {
	color: var(--wp--preset--color--base);
}

.aisfa-social a:hover {
	color: var(--wp--preset--color--contrast);
	transform: scale(1.08);
}

.aisfa-social--feature .aisfa-icon {
	width: clamp(2.1rem, 3.2vw, 2.75rem);
	height: clamp(2.1rem, 3.2vw, 2.75rem);
}

.aisfa-social--inline {
	justify-content: flex-end;
	gap: 0.7rem;
	margin-top: 0.55rem;
}

.aisfa-social--inline a { color: var(--wp--preset--color--base); }
.aisfa-footer .aisfa-social a:hover,
.aisfa-social--inline a:hover { color: var(--wp--preset--color--orange); transform: none; }
.aisfa-social--inline .aisfa-icon { width: 1.1rem; height: 1.1rem; }

/* Quote rotator, centered above the contact details. */
.aisfa-rotator { margin: 0; }

.aisfa-rotator__item {
	margin: 0;
	animation: aisfa-fade 0.8s ease;
}

.aisfa-rotator__item[hidden] { display: none; }

.aisfa-footer__feature .aisfa-rotator blockquote {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(0.95rem, 1.35vw, 1.125rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
}

.aisfa-footer__feature .aisfa-rotator blockquote p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.aisfa-footer__feature .aisfa-rotator figcaption {
	margin: 0.35rem 0 0.55rem;
	color: var(--wp--preset--color--grey);
	font-size: 0.8125rem;
	font-style: normal;
}

.aisfa-footer__feature .wp-element-button {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	background-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.aisfa-footer__feature .wp-element-button:hover,
.aisfa-footer__feature .wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 992px) {
	.aisfa-footer__bar { grid-template-columns: 1fr 1fr; }
	.aisfa-footer__meta { text-align: left; }
	.aisfa-social--inline { justify-content: flex-start; }
}

@media (max-width: 600px) {
	.aisfa-footer__feature h2 { font-size: 1rem; }

	.aisfa-social--feature { gap: 0.65rem; }
	.aisfa-social--feature .aisfa-icon { width: 1.65rem; height: 1.65rem; }

	.aisfa-footer__bar {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

@keyframes aisfa-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ---------------------------------------------------------------------------
 * Forms (Fluent Forms)
 * ------------------------------------------------------------------------- */
.fluentform .ff-el-input--label label,
.fluentform .ff-el-form-check label,
.fluentform .ff-el-section-break .ff-el-section-title {
	font-weight: 500;
	color: inherit;
}

.fluentform .ff-el-form-control {
	background: var(--wp--preset--color--light-blue);
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
}

.fluentform .ff-el-form-control:focus {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
}

.fluentform .ff-el-section-break .ff-el-section-title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.fluentform .ff-el-section-break hr { border-color: var(--wp--preset--color--light-blue); }

.fluentform .ff-btn-submit {
	background-color: var(--wp--preset--color--orange) !important;
	border-radius: var(--wp--custom--radius--button) !important;
	color: var(--wp--preset--color--contrast) !important;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.fluentform .ff-el-form-check-inline {
	display: inline-block;
	margin-right: 1.5rem;
}

.fluentform .ff-el-form-check-input { accent-color: var(--wp--preset--color--orange); }

.fluentform .ff-el-is-error .ff-el-form-control { border-color: #b3261e; }
.fluentform .text-danger { color: #b3261e; }

.aisfa-form-card {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-top-left-radius: 40px;
	border-bottom-right-radius: 40px;
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.aisfa-form-card a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--base);
}

.aisfa-form-card a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--orange);
}

.aisfa-not-found { text-align: center; }
