/* ==========================================================================
   SkyTrade Aviation — Site Footer
   Real grid layout: 5 columns desktop, 2 columns tablet, 1 column mobile.
   Without this file the footer just stacks every <li> in one long column.
   ========================================================================== */

.site-footer {
	background-color: var(--st-navy-light);
	border-top: 1px solid var(--st-navy-mid);
	padding-top: var(--st-space-3xl);
}

.site-footer--has-media {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.site-footer--has-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, 0.88);
	pointer-events: none;
	z-index: 0;
}

.site-footer--has-media > * {
	position: relative;
	z-index: 1;
}

.site-footer > .container.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--st-space-xl) var(--st-space-lg);
	padding-bottom: var(--st-space-2xl);
	align-items: start;
	width: 100%;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--st-space-xl) var(--st-space-lg);
	padding-bottom: var(--st-space-2xl);
	align-items: start;
}

.site-footer__col {
	min-width: 0;
}

.site-footer__heading {
	color: var(--st-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: var(--st-space-md);
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__menu li {
	margin: 0;
	padding: 0;
}

.site-footer__menu a {
	color: var(--st-white-60);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.15s ease;
	line-height: 1.4;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
	color: var(--st-gold);
	outline: none;
}

.site-footer__social {
	display: flex;
	gap: var(--st-space-sm);
	margin-top: var(--st-space-md);
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--st-navy-mid);
	border-radius: 50%;
	color: var(--st-white-60);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	border-color: var(--st-gold);
	color: var(--st-gold);
	outline: none;
}

/* ---- Partners strip (full-width, between columns and bottom bar) ---- */

.site-footer__partners {
	border-top: 1px solid var(--st-navy-mid);
	border-bottom: 1px solid var(--st-navy-mid);
	padding: var(--st-space-xl) 0;
}

.site-footer__partners-label {
	color: var(--st-white-60);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: var(--st-space-lg);
}

.site-footer__partners-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-2xl);
}

.site-footer__partner-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
}

.site-footer__partner-logo img {
	max-height: 100%;
	max-width: 140px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%) brightness(1.6) opacity(0.6);
	transition: filter 0.2s ease;
}

.site-footer__partner-logo:hover img {
	filter: grayscale(0%) brightness(1) opacity(1);
}

/* ---- Bottom bar ---- */

.site-footer__bottom {
	padding: var(--st-space-lg) 0;
	text-align: center;
}

.site-footer__bottom .container {
	color: var(--st-white-20);
	font-size: 11px;
	line-height: 1.6;
	max-width: 900px;
	margin: 0 auto;
}

.site-footer__bottom a {
	color: var(--st-white-20);
	text-decoration: underline;
}

/* ---- Shared legal-document modal (footer + /legal/ page) ---- */

.terms-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.terms-modal[hidden] {
	display: none !important;
}

.terms-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(10, 22, 40, 0.85);
}

.terms-modal__panel {
	position: relative;
	z-index: 1;
	max-width: 560px;
	width: calc(100% - 40px);
	max-height: 80vh;
	overflow-y: auto;
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: var(--st-radius-card);
	padding: var(--st-space-xl);
}

.terms-modal__panel h3 {
	color: var(--st-white);
	font-size: 18px;
	margin-bottom: var(--st-space-md);
	padding-right: var(--st-space-xl);
}

.terms-modal__panel p {
	color: var(--st-white-60);
	font-size: 13px;
	line-height: 1.65;
	margin-bottom: var(--st-space-sm);
}

.terms-modal__close {
	position: absolute;
	top: var(--st-space-md);
	right: var(--st-space-md);
	background: none;
	border: none;
	color: var(--st-white-60);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.terms-modal__close:hover,
.terms-modal__close:focus-visible {
	color: var(--st-white);
	outline: none;
}

/* ---- Responsive ---- */

@media (max-width: 1100px) {
	.site-footer > .container.site-footer__grid,
	.site-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 780px) {
	.site-footer > .container.site-footer__grid,
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.site-footer > .container.site-footer__grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--st-space-lg);
	}

	.site-footer__partners-row {
		gap: var(--st-space-lg);
	}
}
