/*
Theme Name: STL Aviators
Theme URI: https://stlaviators.com
Author: STL Aviators
Author URI: https://stlaviators.com
Description: Modern block theme for the STL Aviators flying club. Built for board-friendly editing with Pages, Posts, and an Aircraft custom post type.
Version: 1.4.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stl-aviators
Tags: block-theme, full-site-editing, aviation, club, custom-post-type
*/

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

.stl-full-bleed {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* Prefer modern breakout when supported — avoids nested-layout clipping. */
@supports (width: 100dvw) {
	.stl-full-bleed {
		width: 100dvw;
		max-width: 100dvw;
		margin-left: calc(50% - 50dvw);
		margin-right: calc(50% - 50dvw);
	}
}

.stl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(92vh, 900px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	background-color: #0b0f14;
}

.stl-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.stl-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		115deg,
		rgba(11, 15, 20, 0.82) 0%,
		rgba(11, 15, 20, 0.35) 48%,
		rgba(11, 15, 20, 0.55) 100%
	);
}

.stl-hero__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0b0f14;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.4s ease, transform 8s ease;
}

.stl-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}

.stl-hero__brand-mobile {
	display: none;
}

/* Mobile: brand mark instead of photo rotator. */
@media (max-width: 781px) {
	.stl-hero {
		min-height: auto;
		align-items: center;
		justify-content: center;
		color: #1c2128;
		background-color: #ffffff;
		padding: 1.25rem 1.25rem 1.75rem;
	}

	.stl-hero__media {
		display: none;
	}

	.stl-hero__brand-mobile {
		display: flex;
		position: relative;
		z-index: 1;
		align-items: center;
		justify-content: center;
		width: min(420px, 92vw);
		margin: 0 auto;
	}

	.stl-hero__brand-mobile img {
		display: block;
		width: 100%;
		height: auto;
	}

	.stl-hero__inner {
		display: none;
	}
}

.stl-hero__inner {
	position: relative;
	z-index: 3;
	width: min(1180px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 4.5rem 0 3.5rem;
}

.stl-logo--header {
	display: block;
	height: 88px;
	width: auto;
	max-width: min(200px, 48vw);
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* Mobile home: hero carries the brand — hide header logo to avoid doubling up. */
@media (max-width: 781px) {
	.stl-logo--header {
		height: 56px;
		max-width: min(140px, 42vw);
	}

	body.home .stl-site-header > .alignwide > .wp-block-group:first-child {
		display: none;
	}

	body.home .stl-site-header > .alignwide > .wp-block-group:last-child {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-left: 0;
	}
}

.stl-logo--footer {
	display: block;
	width: min(200px, 70vw);
	height: auto;
	max-height: 140px;
	margin-bottom: 0.85rem;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	background: #fff;
}

.stl-logo--skyline {
	display: block;
	width: min(480px, 92%);
	height: auto;
	margin: 0 0 0.75rem;
	object-fit: contain;
	background: #ffffff;
}

.stl-hero__lead {
	max-width: 34rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	line-height: 1.45;
	font-weight: 300;
	letter-spacing: -0.015em;
	opacity: 0.95;
	margin: 0 0 1.75rem;
}

.stl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.stl-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

/* Shortcode/autop wrappers must not break header flex (logo | nav row). */
.stl-site-header .wp-block-shortcode,
.stl-site-header p:has(> .stl-logo-link),
.stl-site-footer .wp-block-shortcode,
.stl-site-footer p:has(> .stl-logo-link) {
	display: contents;
}

.stl-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: none;
	background: #ffffff;
	color: #5c6672;
	border-bottom: 1px solid rgba(18, 22, 28, 0.08);
	box-shadow: none;
}

/* Mobile header: smaller lockup so logo + menu + login can share one row. */
@media (max-width: 781px) {
	.stl-site-header {
		padding-top: 0.75rem !important;
		padding-bottom: 0.75rem !important;
	}

	.stl-site-header > .alignwide.is-layout-flex {
		row-gap: 0.65rem;
		column-gap: 0.75rem;
		align-items: center;
	}

	.stl-site-header > .alignwide > .wp-block-group:last-child {
		margin-left: auto;
		display: flex;
		align-items: center;
		gap: 0.65rem;
		min-width: 0;
	}

	.stl-site-header .wp-block-button__link {
		padding: 0.55rem 1rem !important;
		font-size: 0.88rem !important;
		white-space: nowrap;
	}
}

/* Narrow phones: if controls wrap, give them a full second row. */
@media (max-width: 400px) {
	.stl-site-header > .alignwide > .wp-block-group:last-child {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-left: 0;
	}
}

/* Mobile overlay: full viewport, padded, left-aligned (WP inherits desktop justify:right). */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	width: 100dvw !important;
	max-width: none !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	padding:
		max(1.25rem, env(safe-area-inset-top, 0px))
		max(1.25rem, env(safe-area-inset-right, 0px))
		max(1.25rem, env(safe-area-inset-bottom, 0px))
		max(1.25rem, env(safe-area-inset-left, 0px)) !important;
	box-sizing: border-box !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	z-index: 100000 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	width: 100% !important;
	max-width: none !important;
	text-align: left !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100% !important;
	align-items: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0;
	text-align: left !important;
	font-size: 1.15rem;
	line-height: 1.35;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	margin-left: auto;
}

.stl-site-header a {
	color: inherit;
	text-decoration: none;
}

.stl-site-header .wp-block-navigation a {
	color: #5c6672;
}

.stl-site-header .wp-block-navigation a:hover,
.stl-site-header .wp-block-navigation a:focus,
.stl-site-header .wp-block-navigation .current-menu-item > a {
	color: #12161c;
}

.stl-site-header .wp-block-button__link.has-accent-background-color {
	background: var(--wp--preset--color--accent) !important;
	color: #fff !important;
}

.stl-site-header .is-style-outline .wp-block-button__link {
	border: 1px solid rgba(18, 22, 28, 0.22) !important;
	color: #2a3441 !important;
	background: transparent !important;
}

.stl-site-header .is-style-outline .wp-block-button__link:hover {
	border-color: #12161c !important;
	color: #12161c !important;
}

.stl-brand-lockup,
.stl-site-header .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

.stl-band {
	background-color: #f4f5f7;
}

.stl-band--white {
	background-color: #ffffff;
}

.stl-band--deep {
	background-color: #e8eaed;
}

.stl-page-main {
	background-color: #f4f5f7;
}

.stl-event-card {
	background: #ffffff;
	border: 1px solid rgba(28, 33, 40, 0.08);
	border-radius: 16px;
}

.stl-fee-grid,
.stl-airport-grid {
	display: grid;
	gap: 1.25rem;
	align-items: stretch;
}

/* Fleet: airport rows (Creve Coeur pair, then centered Spirit trio). */
.stl-fleet-grid {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	align-items: stretch;
}

.stl-fleet-grid__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0.85rem;
}

.stl-fleet-grid__row > .stl-card {
	flex: 1 1 100%;
	min-width: 0;
}

.stl-airport-grid {
	align-items: stretch;
}

.stl-airport-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 100%;
	padding: 1.5rem;
	border: 1px solid rgba(28, 33, 40, 0.1);
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 1px 0 rgba(28, 33, 40, 0.04);
	color: #1c2128;
}

.stl-airport-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.stl-airport-card__body {
	flex: 1 1 auto;
	margin: 0;
	color: #4a5562;
	line-height: 1.55;
}

@media (min-width: 720px) {
	.stl-airport-card__body {
		min-height: 4.65em; /* keeps both cards’ link rows aligned when copy length differs */
	}
}

.stl-airport-card__link {
	margin: 1.1rem 0 0;
}

.stl-airport-card__link a {
	font-weight: 600;
}

.stl-location {
	margin: 0;
	padding: 0;
}

.stl-location--panel {
	padding: 1.75rem 1.5rem;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid rgba(28, 33, 40, 0.08);
}

.stl-location--alt {
	background: #e8eaed;
	border-color: rgba(28, 33, 40, 0.06);
}

.stl-location + .stl-location {
	position: relative;
	margin-top: 3.25rem;
}

.stl-location + .stl-location::before {
	content: "";
	position: absolute;
	top: -1.65rem;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(122, 28, 20, 0.95) 0%,
		rgba(28, 33, 40, 0.22) 32%,
		rgba(28, 33, 40, 0.14) 100%
	);
}

.stl-page-intro {
	max-width: 38rem;
	margin: 0.85rem auto 0 !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink-soft);
}

.stl-location__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.stl-location__intro h2 {
	margin: 0 0 0.75rem;
}

.stl-location__lead {
	max-width: 42rem;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--ink-soft);
}

.stl-location__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.stl-location__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 2rem;
		align-items: start;
	}
}

.stl-location__facts h3 {
	margin: 1.35rem 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.stl-location__facts h3:first-child {
	margin-top: 0;
}

.stl-location__facts ul {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--wp--preset--color--ink-soft);
}

.stl-location__facts li {
	margin: 0.35rem 0;
}

.stl-location__links a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.stl-location__nav-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 1.5rem 0 0;
}

.stl-location__nav-btns .wp-element-button {
	font-size: 0.82rem;
	padding: 0.7rem 1.15rem;
}

.stl-location__btn-secondary {
	background: transparent !important;
	color: #1c2128 !important;
	border: 1px solid rgba(28, 33, 40, 0.28) !important;
}

.stl-location__map {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(28, 33, 40, 0.1);
	background: #e8eaed;
}

.stl-location__map iframe {
	display: block;
	width: 100%;
	height: min(420px, 55vw);
	border: 0;
	filter: grayscale(0.15) contrast(1.05);
}

.stl-location__map-note {
	margin: 0;
	padding: 0.75rem 1rem 1rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

@media (min-width: 720px) {
	.stl-fee-grid,
	.stl-airport-grid {
		grid-template-columns: 1fr 1fr;
	}

	.stl-fleet-grid {
		gap: 1.35rem;
	}

	.stl-fleet-grid__row {
		gap: 1.35rem;
	}

	.stl-fleet-grid__row > .stl-card {
		flex: 1 1 calc(50% - 0.7rem);
		max-width: calc(50% - 0.7rem);
	}
}

@media (min-width: 980px) {
	.stl-fleet-grid {
		gap: 1.6rem;
	}

	.stl-fleet-grid__row {
		gap: 1.6rem;
	}

	.stl-fleet-grid__row > .stl-card {
		flex: 0 1 calc((100% - 3.2rem) / 3);
		max-width: calc((100% - 3.2rem) / 3);
	}
}

.stl-card {
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(28, 33, 40, 0.1);
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 1px 0 rgba(28, 33, 40, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	color: #1c2128;
}

.stl-fleet-grid .stl-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border-radius: 14px;
}

.stl-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(28, 33, 40, 0.12);
}

.stl-card > *:not(.stl-card__media):not(.stl-card__body) {
	padding-left: 1.2rem;
	padding-right: 1.2rem;
}

.stl-card > h3 {
	margin: 1rem 0 0.35rem;
	padding-left: 1.2rem;
	padding-right: 1.2rem;
	font-size: 1.35rem;
}

.stl-card > h3 a,
.stl-card__body h3 a {
	color: #1c2128;
}

.stl-card > p {
	color: #4a5562;
}

.stl-card > p:last-child {
	padding-bottom: 1.25rem;
}

.stl-card__media {
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eaed;
}

.stl-fleet-grid .stl-card__media {
	aspect-ratio: 16 / 11;
}

.stl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.45s ease;
}

.stl-fleet-grid .stl-card:hover .stl-card__media img {
	transform: scale(1.02);
}

.stl-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0.85rem 1rem 1rem;
	min-width: 0;
}

.stl-card__body h3 {
	margin: 0 0 0.3rem;
	font-size: 1.15rem;
	line-height: 1.2;
}

.stl-card__model,
.stl-card__hangar {
	margin: 0;
	color: #4a5562;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.stl-card__model {
	line-height: 1.35;
	font-size: 0.92rem;
}

.stl-card__hangar {
	margin-top: 0.2rem;
	line-height: 1.35;
	font-size: 0.88rem;
}

.stl-card__actions {
	margin: auto 0 0;
	padding-top: 0.7rem;
}

.stl-fleet-grid .stl-card__actions .wp-element-button {
	padding: 0.55rem 1.1rem;
	font-size: 0.9rem;
}

@media (min-width: 720px) {
	.stl-fleet-grid .stl-card {
		border-radius: 18px;
	}

	.stl-fleet-grid .stl-card__media {
		aspect-ratio: 16 / 10;
	}

	.stl-fleet-grid .stl-card__body {
		padding: 1.15rem 1.35rem 1.35rem;
	}

	.stl-fleet-grid .stl-card__body h3 {
		font-size: 1.4rem;
	}

	.stl-fleet-grid .stl-card__model {
		font-size: 1rem;
	}

	.stl-fleet-grid .stl-card__hangar {
		font-size: 0.95rem;
	}

	.stl-fleet-grid .stl-card__actions {
		padding-top: 1rem;
	}

	.stl-fleet-grid .stl-card__actions .wp-element-button {
		padding: 0.7rem 1.35rem;
		font-size: 1rem;
	}
}

@media (min-width: 980px) {
	.stl-fleet-grid .stl-card__body {
		padding: 1.35rem 1.5rem 1.5rem;
	}

	.stl-fleet-grid .stl-card__body h3 {
		font-size: 1.5rem;
	}

	.stl-fleet-grid .stl-card__model {
		font-size: 1.05rem;
	}
}

.stl-aircraft-lead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin: 0 0 1.75rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid rgba(28, 33, 40, 0.1);
}

.stl-aircraft-meta {
	display: grid;
	gap: 0.85rem 1.75rem;
	grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
	margin: 0;
	padding: 0;
	border: 0;
	flex: 1 1 18rem;
}

.stl-aircraft-meta dt {
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.5;
	margin: 0;
	font-weight: 600;
}

.stl-aircraft-meta dd {
	margin: 0.15rem 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.stl-aircraft-lead__action {
	margin: 0;
	flex: 0 0 auto;
}

.stl-aircraft-toc {
	margin: 0.35rem 0 2.25rem;
	padding: 1rem 1.15rem 1.1rem;
	border: 1px solid rgba(28, 33, 40, 0.1);
	border-radius: 2px;
	background: rgba(28, 33, 40, 0.025);
	max-width: 36rem;
}

.stl-aircraft-toc__title {
	margin: 0 0 0.55rem;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	opacity: 0.5;
}

.stl-aircraft-toc__list {
	display: grid;
	gap: 0.35rem 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: stl-toc;
}

.stl-aircraft-toc__list li {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	margin: 0;
	counter-increment: stl-toc;
}

.stl-aircraft-toc__list li::before {
	content: counter(stl-toc, decimal-leading-zero);
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0.4;
	font-variant-numeric: tabular-nums;
}

.stl-aircraft-toc__list a {
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35;
	border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.stl-aircraft-toc__list a:hover,
.stl-aircraft-toc__list a:focus-visible {
	border-bottom-color: currentColor;
}

.stl-aircraft-specs {
	margin: 2.5rem 0 3.5rem;
	padding-top: 1.5rem;
	padding-bottom: 1rem;
	border-top: 1px solid rgba(28, 33, 40, 0.1);
}

.single-aircraft main.wp-block-group {
	padding-bottom: clamp(4.5rem, 9vw, 7rem) !important;
}

.stl-aircraft-specs__note {
	margin: 0.35rem 0 1.25rem;
	max-width: 42rem;
	font-size: 0.95rem;
	line-height: 1.45;
	opacity: 0.72;
}

.stl-aircraft-specs__list {
	display: grid;
	gap: 0.85rem 1.75rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid rgba(28, 33, 40, 0.1);
}

.stl-aircraft-specs__list dt {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.55;
	margin: 0;
	font-weight: 600;
}

.stl-aircraft-specs__list dd {
	margin: 0.2rem 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.stl-wb {
	margin: 2rem 0 2.5rem;
	padding: 1.5rem 0 0;
	border-top: 1px solid rgba(28, 33, 40, 0.1);
}

.stl-wb .nlavtitle {
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
}

.stl-wb .nlavprof,
.stl-wb .nlavsmbtn {
	border-radius: 999px;
	cursor: pointer;
}

.stl-wb__disclaimer {
	margin-top: 1.75rem;
	max-width: 48rem;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.82;
}

.stl-wb__disclaimer p {
	margin: 0 0 0.75rem;
}

.stl-wb__credit {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	opacity: 0.55;
}

.stl-wb--unavailable {
	padding: 1rem 0;
}

.stl-site-footer {
	background: #2a313a;
	color: rgba(244, 245, 247, 0.82);
	padding: 3.5rem 0 2rem;
}

.stl-site-footer a {
	color: inherit;
}

.stl-site-footer a:hover {
	color: #fff;
}

/* Keep this gradient CTA band as designed — do not restyle with the light palette. */
.stl-cta-band {
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse at 18% 0%, rgba(201, 74, 42, 0.28), transparent 52%),
		linear-gradient(135deg, #1a1f27 0%, #222831 55%, #3a1f18 100%);
	color: #fff;
	padding: clamp(3rem, 7vw, 5rem) 0;
}

/* Nested inside constrained page content — break out to the viewport. */
.wp-block-post-content .stl-cta-band.stl-full-bleed,
.entry-content .stl-cta-band.stl-full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Page-level sibling (Locations template, front page, etc.) — always edge to edge. */
main > .stl-cta-band,
.stl-page-main > .stl-cta-band {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.stl-cta-band a.wp-element-button,
.stl-cta-band .wp-block-button__link {
	background: #fff;
	color: #1a1f27;
}

.stl-cta-band a.wp-element-button[style*="transparent"],
.stl-cta-band .wp-block-button__link[style*="transparent"] {
	background: transparent;
	color: inherit;
}

.wp-block-button__link,
.wp-element-button {
	border-radius: 999px !important;
}

.is-style-outline .wp-block-button__link {
	border: 1px solid rgba(28, 33, 40, 0.28) !important;
	background: transparent !important;
	color: #1c2128 !important;
}

.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--accent) !important;
}

.stl-hero .wp-block-button__link.wp-element-button:not([style*="transparent"]) {
	background: #fff;
	color: #1c2128;
}

.stl-hero .wp-block-button__link.wp-element-button:not([style*="transparent"]):hover {
	background: #f4f5f7;
	color: #1c2128;
}

.stl-site-header .wp-block-button__link.has-signal-background-color,
.stl-site-header .has-signal-background-color {
	background: var(--wp--preset--color--accent) !important;
}

@media (prefers-reduced-motion: no-preference) {
	.stl-hero__lead,
	.stl-hero__actions {
		animation: stl-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.stl-hero__actions {
		animation-delay: 0.1s;
	}

	.stl-fleet-grid .stl-card,
	.stl-fee-grid > *,
	.stl-airport-grid > * {
		animation: stl-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stl-hero__slide {
		transition: none;
		transform: none;
	}
}

@keyframes stl-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
