/**
 * Shigatse Travels — global footer + pre-footer CTA
 * Light Himalayan-trekking-company style + burgundy brand CTA.
 */

.st-footer {
	position: relative;
	margin-top: auto;
	font-family: var(--st-font);
}

/* ── Pre-footer CTA ── */
.st-prefooter {
	position: relative;
	overflow: hidden;
	padding: clamp(3.25rem, 7vw, 5.5rem) 0;
	background:
		radial-gradient(ellipse 70% 90% at 12% 20%, rgb(196 160 82 / 0.14), transparent 55%),
		radial-gradient(ellipse 55% 70% at 92% 80%, rgb(92 24 34 / 0.45), transparent 50%),
		linear-gradient(145deg, #6e1c28 0%, var(--st-accent) 42%, var(--st-accent-2) 100%);
	color: #fff;
}

.st-prefooter::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px);
	background-size: 100% 2.75rem;
	opacity: 0.35;
	pointer-events: none;
}

.st-prefooter-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2.25rem;
}

@media (min-width: 900px) {
	.st-prefooter-inner {
		grid-template-columns: 1fr 1fr;
		gap: clamp(2rem, 4vw, 3.5rem);
		align-items: center;
	}
}

.st-prefooter-eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgb(255 255 255 / 0.72);
}

.st-prefooter-title {
	margin: 0 0 0.9rem;
	max-width: 18ch;
	font-family: var(--st-font-display);
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: var(--st-heading-ls);
	color: #fff;
}

.st-prefooter-lead {
	margin: 0;
	max-width: 36rem;
	font-size: var(--st-text-sm);
	line-height: 1.8;
	color: rgb(255 255 255 / 0.78);
}

.st-prefooter-aside {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.st-prefooter-contacts {
	display: grid;
	gap: 0.75rem;
}

.st-prefooter-contact {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.95rem 1.1rem;
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 14px;
	text-decoration: none;
	color: #fff;
	backdrop-filter: blur(8px);
	transition: background var(--st-duration), border-color var(--st-duration);
}

.st-prefooter-contact:hover {
	background: rgb(255 255 255 / 0.12);
	border-color: rgb(255 255 255 / 0.28);
}

.st-prefooter-contact-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.58);
}

.st-prefooter-contact-value {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.st-prefooter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.15rem;
	padding: 0.9rem 1.6rem;
	border-radius: var(--st-radius-pill);
	background: #fff;
	color: var(--st-accent);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform var(--st-duration) var(--st-ease), box-shadow var(--st-duration);
	box-shadow: 0 10px 28px rgb(20 18 16 / 0.18);
}

.st-prefooter-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgb(20 18 16 / 0.22);
}

/* ── Main footer (light, trekking-company style) ── */
.st-footer-main {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #f7f2ea;
	background-image:
		url("../branding/deco/about_deco-2.png"),
		url("../branding/deco/about_deco-1.png");
	background-repeat: no-repeat, no-repeat;
	background-position: left -6% bottom -10%, right -4% top 18%;
	background-size: min(36vw, 22rem) auto, min(30vw, 18rem) auto;
	color: var(--st-ink);
	padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem);
}

.st-footer-main > .st-m-container {
	position: relative;
	z-index: 1;
}

.st-footer-brand-row {
	display: grid;
	gap: 1.25rem;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid rgb(20 18 16 / 0.1);
}

@media (min-width: 720px) {
	.st-footer-brand-row {
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 2rem;
	}
}

.st-footer-logo {
	display: inline-block;
}

.st-footer-logo-img {
	max-height: 3.5rem;
	width: auto;
	filter: none;
}

.st-footer-tag {
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-footer-desc {
	font-size: var(--st-text-sm);
	line-height: 1.7;
	color: var(--st-muted);
	max-width: 40rem;
}

.st-footer-desc p {
	margin: 0;
}

.st-footer-grid {
	display: grid;
	gap: 2rem 1.75rem;
}

@media (min-width: 640px) {
	.st-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.st-footer-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem 2.5rem;
	}
}

.st-footer-col-title {
	display: block;
	margin-bottom: 0.9rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgb(20 18 16 / 0.45);
}

.st-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.st-footer-col a {
	color: var(--st-ink);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.45;
	transition: color var(--st-duration);
}

.st-footer-col a:hover {
	color: var(--st-accent);
}

.st-footer-contact-list {
	margin-top: 1rem !important;
	padding-top: 1rem;
	border-top: 1px solid rgb(20 18 16 / 0.1);
}

.st-footer-contact-list a {
	font-weight: 600;
}

.st-footer-office {
	margin: 0.85rem 0 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--st-accent);
}

/* ── Trust row ── */
.st-footer-trust {
	display: grid;
	gap: 1.75rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgb(20 18 16 / 0.1);
}

@media (min-width: 900px) {
	.st-footer-trust {
		grid-template-columns: 1.4fr 1fr 1fr;
		align-items: end;
		gap: 2rem;
	}
}

.st-footer-trust-label {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(20 18 16 / 0.42);
}

.st-footer-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
}

.st-footer-partner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 3.25rem;
	padding: 0.4rem;
	background: #fff;
	border: 1px solid rgb(20 18 16 / 0.1);
	border-radius: 10px;
	text-decoration: none;
}

.st-footer-partner img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.st-footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.st-footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgb(20 18 16 / 0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--st-ink);
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--st-duration), border-color var(--st-duration), color var(--st-duration);
}

.st-footer-social:hover {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: #fff;
}

.st-footer-enquiry {
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--st-accent);
	text-decoration: none;
	border: none;
	border-bottom: 1px solid rgb(139 36 50 / 0.28);
	padding: 0 0 0.1rem;
	background: none;
	font-family: inherit;
	cursor: pointer;
}

.st-footer-enquiry:hover {
	border-bottom-color: var(--st-accent);
}

/* ── Bottom bar ── */
.st-footer-bar {
	background: #efe8dc;
	padding: 1.05rem 0;
	border-top: 1px solid rgb(20 18 16 / 0.08);
}

.st-footer-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1.5rem;
}

.st-footer-copy,
.st-footer-note {
	margin: 0;
	font-size: var(--st-text-xs);
	color: rgb(20 18 16 / 0.5);
}

.st-footer-note {
	color: rgb(20 18 16 / 0.4);
}

/* ── Back to top ── */
.st-back-top {
	position: fixed;
	right: 1.15rem;
	bottom: 1.15rem;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--st-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 28px rgb(139 36 50 / 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background var(--st-duration);
}

.st-back-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.st-back-top:hover {
	background: var(--st-accent-2);
}

/* ── Pre-footer form card (production) ── */
.st-prefooter-inner.st-pf--form-card {
	align-items: stretch;
}

@media (min-width: 900px) {
	.st-prefooter-inner.st-pf--form-card {
		align-items: center;
	}
}

.st-pf-aside-note {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.72);
}

.st-pf-aside-note a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / 0.35);
}

.st-pf-aside-note a:hover {
	border-bottom-color: #fff;
}

.st-pf-card {
	padding: 1.35rem 1.25rem 1.4rem;
	background: #fff;
	border-radius: var(--st-radius, 10px);
	box-shadow: 0 16px 40px rgb(20 18 16 / 0.18);
	color: var(--st-ink);
	container-type: inline-size;
	container-name: st-pf-card;
}

.st-pf-form-grid,
.st-pf-card .st-pf-form-grid,
.wpcf7 .st-pf-form-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 1fr;
}

@container st-pf-card (min-width: 420px) {
	.st-pf-form-grid,
	.wpcf7 .st-pf-form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.st-pf-form-full,
	.wpcf7 .st-pf-form-full {
		grid-column: 1 / -1;
	}
}

/* Fallback when container queries unsupported */
@supports not (container-type: inline-size) {
	@media (min-width: 1100px) {
		.st-pf-form-grid,
		.wpcf7 .st-pf-form-grid {
			grid-template-columns: 1fr 1fr;
		}

		.st-pf-form-full,
		.wpcf7 .st-pf-form-full {
			grid-column: 1 / -1;
		}
	}
}

.st-pf-form-grid label,
.wpcf7 .st-pf-form-grid label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--st-muted);
}

.st-pf-input,
.wpcf7 .st-pf-input,
.st-prefooter .wpcf7 input[type="text"],
.st-prefooter .wpcf7 input[type="email"],
.st-prefooter .wpcf7 input[type="tel"],
.st-prefooter .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.65rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgb(20 18 16 / 0.14);
	border-radius: 10px;
	background: #fff;
	font-family: var(--st-font);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--st-ink);
}

.st-prefooter .wpcf7 textarea,
.st-pf-input[rows],
textarea.st-pf-input {
	min-height: 5.5rem;
	resize: vertical;
}

.st-pf-input:focus,
.wpcf7 .st-pf-input:focus,
.st-prefooter .wpcf7 input:focus,
.st-prefooter .wpcf7 textarea:focus {
	outline: none;
	border-color: rgb(139 36 50 / 0.45);
	box-shadow: 0 0 0 3px rgb(139 36 50 / 0.12);
}

.st-pf-submit,
.wpcf7 .st-pf-submit,
.st-prefooter .wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
	width: 100%;
	min-height: 2.85rem;
	padding: 0.75rem 1.35rem;
	border: none;
	border-radius: var(--st-radius-pill);
	background: var(--st-accent);
	color: #fff;
	font-family: var(--st-font);
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--st-duration);
}

.st-pf-submit:hover,
.wpcf7 .st-pf-submit:hover,
.st-prefooter .wpcf7 input[type="submit"]:hover {
	background: var(--st-accent-2);
}

.st-pf-card .st-pf-submit {
	margin-top: 0.15rem;
}
