/**
 * Galustar Footer — frontend v1.0.4
 */

/* Elementor — edge-to-edge full-width footer */
.elementor-widget-shortcode:has(.gft-footer) .elementor-widget-container,
.elementor-widget-shortcode:has(.gft-footer) .elementor-shortcode {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.elementor-section:has(.gft-footer),
.elementor-section:has(.gft-footer) > .elementor-container,
.elementor-element:has(.gft-footer),
.elementor-element:has(.gft-footer) > .e-con,
.elementor-element:has(.gft-footer) > .e-con-inner,
.elementor-element:has(.gft-footer) > .elementor-widget-wrap,
.elementor-location-footer:has(.gft-footer) .e-con-inner,
.elementor-location-footer:has(.gft-footer) .elementor-widget-wrap {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.elementor-location-footer:has(.gft-footer),
.elementor-location-footer:has(.gft-footer) > .e-con,
.elementor-location-footer:has(.gft-footer) > .e-con > .e-con-inner,
.elementor-section:has(.gft-footer),
.elementor-section:has(.gft-footer) > .elementor-container,
.elementor-element:has(.gft-footer),
.elementor-element:has(.gft-footer) > .e-con,
.elementor-element:has(.gft-footer) > .e-con-inner {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.gft-footer {
	--gft-gold: #c6a56a;
	--gft-gold-soft: rgba(198, 165, 106, 0.35);
	--gft-ink: #ffffff;
	--gft-muted: rgba(255, 255, 255, 0.62);
	--gft-line: rgba(255, 255, 255, 0.1);
	--gft-inner-max: 1320px;
	--gft-side: clamp(16px, 4vw, 48px);
	--gft-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	isolation: isolate;
	box-sizing: border-box;
	padding-top: var(--gft-pt, 72px);
	padding-bottom: var(--gft-pb, 36px);
	background: var(--gft-bg, #111);
	color: var(--gft-ink);
	font-family: "Jost", system-ui, sans-serif;
	overflow-x: clip;
}

.gft-footer__decor {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	pointer-events: none;
}

.gft-footer__line {
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gft-gold-soft), transparent);
	opacity: 0.9;
}

.gft-footer__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--gft-inner-max);
	margin-inline: auto;
	padding-inline: var(--gft-side);
	box-sizing: border-box;
}

.gft-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr) minmax(220px, 0.9fr);
	gap: clamp(28px, 4vw, 48px);
	padding-bottom: clamp(32px, 4vw, 44px);
	border-bottom: 1px solid var(--gft-line);
}

.gft-footer__name {
	display: inline-block;
	margin: 0 0 8px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.gft-footer__name:hover {
	color: var(--gft-gold);
}

.gft-footer__logo-link {
	display: inline-block;
	margin-bottom: 12px;
	line-height: 0;
	max-width: 100%;
	--gft-logo-w: auto;
	--gft-logo-h: auto;
}

.gft-footer__logo {
	display: block;
	width: var(--gft-logo-w);
	height: var(--gft-logo-h);
	max-width: 100%;
	object-fit: contain;
}

.gft-footer__tagline {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gft-gold);
}

.gft-footer__text {
	margin: 0 0 20px;
	max-width: 320px;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--gft-muted);
}

.gft-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gft-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	text-decoration: none;
	transition:
		transform 0.35s var(--gft-ease),
		border-color 0.35s ease,
		background 0.35s ease,
		color 0.35s ease;
}

.gft-footer__social-link:hover,
.gft-footer__social-link:focus-visible {
	transform: translateY(-2px);
	border-color: var(--gft-gold-soft);
	background: rgba(198, 165, 106, 0.12);
	color: var(--gft-gold);
}

.gft-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 28px);
}

.gft-footer__col-title {
	margin: 0 0 16px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: #fff;
}

.gft-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gft-links li {
	margin: 0 0 10px;
}

.gft-links a {
	color: var(--gft-muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease, transform 0.3s ease;
}

.gft-links a:hover,
.gft-links a:focus-visible {
	color: var(--gft-gold);
}

.gft-footer__newsletter-text {
	margin: 0 0 18px;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--gft-muted);
}

.gft-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--gft-gold);
	background: var(--gft-gold);
	color: #111;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 0.3s var(--gft-ease),
		box-shadow 0.3s ease,
		background 0.3s ease,
		border-color 0.3s ease;
}

.gft-footer__btn:hover,
.gft-footer__btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(198, 165, 106, 0.28);
	background: var(--gft-gold);
	border-color: var(--gft-gold);
	color: #111;
}

.gft-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: clamp(20px, 3vw, 28px);
}

.gft-footer__copy {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.45);
}

.gft-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.gft-footer__legal a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	font-size: 0.82rem;
	transition: color 0.3s ease;
}

.gft-footer__legal a:hover,
.gft-footer__legal a:focus-visible {
	color: var(--gft-gold);
}

/* Hide theme footer when enabled */
body.gft-hide-theme-footer #site-footer,
body.gft-hide-theme-footer .site-footer,
body.gft-hide-theme-footer footer.site-footer,
body.gft-hide-theme-footer .elementor-location-footer {
	display: none !important;
}

@media (min-width: 992px) {
	.gft-footer {
		--gft-inner-max: 1320px;
		--gft-side: clamp(20px, 4vw, 40px);
	}

	.gft-footer__top {
		grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) minmax(160px, 1fr);
		gap: 20px;
		align-items: start;
		padding-bottom: 36px;
	}

	.gft-footer__brand {
		max-width: 280px;
	}

	.gft-footer__name {
		font-size: clamp(1.5rem, 2.2vw, 1.85rem);
	}

	.gft-footer__text {
		max-width: 260px;
		font-size: 0.88rem;
	}

	.gft-footer__columns {
		justify-items: center;
		gap: clamp(20px, 2.5vw, 32px);
	}

	.gft-footer__col-title {
		margin-bottom: 14px;
		font-size: 1rem;
		letter-spacing: 0.06em;
	}

	.gft-links a {
		font-size: 0.75rem;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	.gft-footer__newsletter {
		justify-self: end;
		max-width: 240px;
	}

	.gft-footer__newsletter-text {
		font-size: 0.84rem;
		line-height: 1.6;
	}

	.gft-footer__bottom {
		padding-top: 24px;
	}
}

.elementor-section.elementor-section-boxed > .elementor-container .gft-footer .gft-footer__inner,
.elementor-widget-shortcode .gft-footer .gft-footer__inner,
.elementor-element .gft-footer .gft-footer__inner {
	width: 100%;
	max-width: var(--gft-inner-max);
	margin-inline: auto;
	box-sizing: border-box;
}

@media (max-width: 991px) {
	.gft-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.gft-footer__brand {
		grid-column: 1 / -1;
	}

	.gft-footer__newsletter {
		grid-column: 1 / -1;
	}

	.gft-footer__columns {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.gft-footer {
		--gft-side: 16px;
	}

	.gft-footer__top {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.gft-footer__columns {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.gft-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 479px) {
	.gft-footer__columns {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gft-footer__social-link,
	.gft-footer__btn,
	.gft-links a {
		transition: none;
	}
}

/* ── Scroll to top ── */
.gft-scroll-top {
	--gft-scroll-size: 48px;
	--gft-scroll-offset-x: clamp(16px, 3vw, 28px);
	--gft-scroll-offset-y: clamp(20px, 4vw, 32px);

	position: fixed;
	bottom: var(--gft-scroll-offset-y);
	z-index: 9995;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--gft-scroll-size);
	height: var(--gft-scroll-size);
	padding: 0;
	border: 1px solid rgba(198, 165, 106, 0.45);
	border-radius: 50%;
	background: linear-gradient(135deg, #d4b87a 0%, #b89455 100%);
	color: #111111;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.92);
	transition: opacity 0.35s var(--gft-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		transform 0.35s var(--gft-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		visibility 0.35s var(--gft-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.gft-scroll-top--bottom-right {
	right: var(--gft-scroll-offset-x);
	left: auto;
}

.gft-scroll-top--bottom-left {
	left: var(--gft-scroll-offset-x);
	right: auto;
}

.gft-scroll-top--bottom-center {
	left: calc(50% + var(--gft-scroll-offset-x, 0px));
	right: auto;
	transform: translateX(-50%) translateY(12px) scale(0.92);
}

.gft-scroll-top--bottom-center.is-visible {
	transform: translateX(-50%) translateY(0) scale(1);
}

.gft-scroll-top--bottom-center:active {
	transform: translateX(-50%) translateY(0) scale(0.96);
}

.gft-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.gft-scroll-top:hover,
.gft-scroll-top:focus-visible {
	border-color: #c6a56a;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.22);
	outline: none;
}

.gft-scroll-top:active {
	transform: translateY(0) scale(0.96);
}

.gft-scroll-top__icon {
	display: block;
	width: 20px;
	height: 20px;
}

@media (max-width: 767px) {
	.gft-scroll-top {
		--gft-scroll-size: 44px;
		--gft-scroll-offset-y: calc(16px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.gft-scroll-top {
		transition: opacity 0.2s ease, visibility 0.2s ease;
		transform: none;
	}

	.gft-scroll-top.is-visible {
		transform: none;
	}

	.gft-scroll-top--bottom-center {
		transform: translateX(-50%);
	}

	.gft-scroll-top--bottom-center.is-visible {
		transform: translateX(-50%);
	}
}
