/**
 * Site-wide footer (Figma redesign)
 */

.gc-site-footer {
	--gc-ft-bg: #0a121e;
	--gc-ft-ink: #ffffff;
	--gc-ft-muted: #94a3b8;
	--gc-ft-line: rgba(148, 163, 184, 0.22);
	--gc-ft-pink: #d6509f;
	--gc-ft-max: 1200px;
	--gc-ft-pad: 24px;
	background: var(--gc-ft-bg);
	color: var(--gc-ft-muted);
	font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
	width: 100%;
	margin: 0;
	padding: 0;
}

.gc-site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

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

.gc-site-footer__inner {
	width: 100%;
	max-width: var(--gc-ft-max);
	margin: 0 auto;
	padding: clamp(2.75rem, 5vw, 4rem) var(--gc-ft-pad) 2rem;
	box-sizing: border-box;
}

.gc-site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.65fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.gc-site-footer__main-right {
	min-width: 0;
}

.gc-site-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 1rem;
}

.gc-site-footer__logo img {
	display: block;
	width: min(100%, 240px);
	height: auto;
}

.gc-site-footer__desc {
	margin: 0 0 1.35rem;
	max-width: 28ch;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--gc-ft-muted);
	font-weight: 500;
}

.gc-site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.gc-site-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0 !important;
}

.gc-site-footer__social:hover {
	background: rgba(214, 80, 159, 0.18);
	border-color: rgba(214, 80, 159, 0.45);
	color: #fff !important;
}

.gc-site-footer__play {
	display: inline-block;
	margin-top: 1.1rem;
	line-height: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.gc-site-footer__play img {
	display: block;
	width: 155px;
	height: auto;
	max-width: 100%;
}

.gc-site-footer__play:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.gc-site-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
}

.gc-site-footer__col-title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gc-ft-ink);
	letter-spacing: 0.01em;
}

.gc-site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.gc-site-footer__links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--gc-ft-muted);
	line-height: 1.4;
}

.gc-site-footer__newsletter {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	max-width: 34rem;
}

.gc-site-footer__newsletter-title {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gc-ft-ink);
}

.gc-site-footer__newsletter-text {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--gc-ft-muted);
}

.gc-site-footer__form {
	display: flex;
	align-items: stretch;
	width: 100%;
	border-radius: 0.65rem;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.55);
}

.gc-site-footer__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: #fff;
	padding: 0.9rem 1rem;
	font-size: 0.92rem;
	font-family: inherit;
}

.gc-site-footer__input::placeholder {
	color: #64748b;
}

.gc-site-footer__submit {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	background: var(--gc-ft-pink);
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
	font-family: inherit;
	padding: 0.9rem 1.25rem;
	transition: background 0.2s ease;
}

.gc-site-footer__submit:hover {
	background: #c23d8c;
}

.gc-site-footer__bottom {
	border-top: 1px solid var(--gc-ft-line);
}

.gc-site-footer__bottom-inner {
	width: 100%;
	max-width: var(--gc-ft-max);
	margin: 0 auto;
	padding: 1.05rem var(--gc-ft-pad);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.82rem;
	color: var(--gc-ft-muted);
}

.gc-site-footer__powered {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.gc-site-footer__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #4ade80;
	flex-shrink: 0;
}

/* Hide legacy Elementor footer + old legal bar when new footer is active */
body.gc-new-footer .elementor-location-footer,
body.gc-new-footer footer#colophon:not(.gc-site-footer),
body.gc-new-footer .gc-footer-legal {
	display: none !important;
}

@media (max-width: 1024px) {
	.gc-site-footer__top {
		grid-template-columns: 1fr;
	}

	.gc-site-footer__newsletter {
		max-width: 100%;
	}
}

/* Mobile footer — match Figma (desktop unchanged) */
@media (max-width: 767px) {
	.gc-site-footer__inner {
		padding: 2.5rem 1.25rem 1.75rem;
	}

	.gc-site-footer__top {
		display: flex;
		flex-direction: column;
		gap: 2rem;
		align-items: stretch;
	}

	.gc-site-footer__brand {
		text-align: left;
	}

	.gc-site-footer__desc {
		max-width: none;
	}

	.gc-site-footer__main-right {
		display: flex;
		flex-direction: column;
		gap: 2.25rem;
		width: 100%;
	}

	/* Figma order: newsletter above link columns */
	.gc-site-footer__newsletter {
		order: 1;
		margin-top: 0;
		max-width: 100%;
	}

	.gc-site-footer__nav {
		order: 2;
		display: flex;
		flex-direction: column;
		gap: 1.75rem;
		grid-template-columns: none;
	}

	/* Figma column order: Products → Company → Legal → Contact */
	.gc-site-footer__col:nth-child(1) {
		order: 1; /* Products */
	}
	.gc-site-footer__col:nth-child(4) {
		order: 2; /* Company */
	}
	.gc-site-footer__col:nth-child(2) {
		order: 3; /* Legal terms */
	}
	.gc-site-footer__col:nth-child(3) {
		order: 4; /* Contact */
	}

	.gc-site-footer__col-title {
		margin-bottom: 0.85rem;
	}

	.gc-site-footer__links {
		gap: 0.65rem;
	}

	/* Keep email + Subscribe side-by-side like Figma */
	.gc-site-footer__form {
		flex-direction: row;
		align-items: stretch;
	}

	.gc-site-footer__input {
		padding: 0.85rem 0.95rem;
		font-size: 0.9rem;
	}

	.gc-site-footer__submit {
		width: auto;
		padding: 0.85rem 1.1rem;
		white-space: nowrap;
	}

	/* Bottom bar: stacked left, content unchanged */
	.gc-site-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;
		padding-top: 1.15rem;
		padding-bottom: 1.15rem;
	}
}

@media (max-width: 780px) and (min-width: 768px) {
	.gc-site-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	/* Bottom stack only — form stays row from 767 rule above */
	.gc-site-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
