/**
 * Footer Styles — Centurion-inspired Layout
 *
 * Newsletter (gold), gold border, main footer (dark), bottom bar.
 * Mobile-first, BEM methodology.
 *
 * @package BuryGolfClub
 * @since   1.0.0
 */

/* ==========================================================================
   Newsletter Section — Gold Accent Background
   ========================================================================== */

/* Centurion-style slim newsletter bar — heading left, form right, single row */
.footer-newsletter {
	background-color: var(--wp--preset--color--gold, #C4A265);
	padding: clamp(1.75rem, 3.5vw, 3rem) 0;
	border-top: none;
}

.footer-newsletter__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
}

.footer-newsletter__heading {
	font-family: 'Gilda Display', var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary, #071428);
	font-size: clamp(1.25rem, 2vw + 0.75rem, 2.25rem);
	margin: 0;
	font-weight: 400;
	line-height: 1.2;
}

@media (min-width: 48rem) {
	.footer-newsletter__heading {
		white-space: nowrap;
	}
}

.footer-newsletter__form {
	width: 100%;
}

.footer-newsletter__field {
	display: flex;
	gap: 1rem;
	align-items: flex-end;
	width: 100%;
}

.footer-newsletter__input-group {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.footer-newsletter__label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--primary, #071428);
	opacity: 0.7;
}

.footer-newsletter__input {
	width: 100%;
	padding: 0.5rem 0;
	border: none;
	border-bottom: 1px solid rgba(7, 20, 40, 0.35);
	border-radius: 0;
	background: transparent;
	font-size: 0.9375rem;
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary, #071428);
	transition: border-color 0.2s ease-out;
}

.footer-newsletter__input:focus-visible {
	outline: none;
	border-bottom-color: var(--wp--preset--color--primary, #071428);
}

.footer-newsletter__input::placeholder {
	color: rgba(7, 20, 40, 0.45);
	font-size: 0.875rem;
}

.footer-newsletter__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 1.25rem;
	border: 1.5px solid var(--wp--preset--color--primary, #071428);
	border-radius: 9999px;
	background: var(--wp--preset--color--primary, #071428);
	color: var(--wp--preset--color--cream, #F5F0E6);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--body);
	white-space: nowrap;
}

.footer-newsletter__submit:hover {
	background: transparent;
	color: var(--wp--preset--color--primary, #071428);
}

.footer-newsletter__submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.footer-newsletter__submit-arrow {
	display: flex;
	transition: transform 0.2s ease-out;
	order: -1;
}

.footer-newsletter__submit:hover .footer-newsletter__submit-arrow {
	transform: translateX(3px);
}

/* Fluent Forms overrides inside newsletter */
.footer-newsletter .fluentform .ff-el-input--content input[type="email"] {
	border: none;
	border-bottom: 1px solid rgba(7, 20, 40, 0.35);
	border-radius: 0;
	padding: 0.5rem 0;
	background: transparent;
	color: var(--wp--preset--color--primary, #071428);
	font-size: 0.9375rem;
}

.footer-newsletter .fluentform .ff-el-input--content input[type="email"]:focus {
	border-bottom-color: var(--wp--preset--color--primary, #071428);
	outline: none;
	box-shadow: none;
}

.footer-newsletter .fluentform .ff_submit_btn_wrapper button {
	background: var(--wp--preset--color--primary, #071428);
	color: var(--wp--preset--color--cream, #F5F0E6);
	border: 1.5px solid var(--wp--preset--color--primary, #071428);
	border-radius: 9999px;
	padding: 0.5rem 1.25rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.footer-newsletter .fluentform .ff_submit_btn_wrapper button:hover {
	background: transparent;
	color: var(--wp--preset--color--primary, #071428);
}

@media (min-width: 48rem) {
	.footer-newsletter__inner {
		flex-direction: row;
		align-items: center;
		text-align: left;
		gap: 3rem;
	}

	.footer-newsletter__heading {
		flex-shrink: 0;
	}

	.footer-newsletter__form {
		flex: 1;
	}
}

/* ==========================================================================
   Gold Border (Separator)
   ========================================================================== */

.site-footer__gold-border {
	height: 3px;
	background-color: var(--wp--preset--color--gold, #C4A265);
}

/* ==========================================================================
   Main Footer (Dark Background)
   ========================================================================== */

.site-footer__main {
	background-color: var(--wp--preset--color--primary, #071428);
	color: var(--wp--preset--color--cream, #F5F0E6);
	padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3rem);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	text-align: center;
}

/* ==========================================================================
   Footer Navigation — Two Columns
   ========================================================================== */

.footer-nav {
	order: 1;
}

.footer-nav__columns {
	display: flex;
	gap: clamp(2rem, 4vw, 3rem);
	justify-content: center;
}

.footer-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-nav__item {
	margin-bottom: 0.875rem;
}

.footer-nav__link {
	position: relative;
	display: inline-block;
	color: var(--wp--preset--color--cream, #F5F0E6);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: 0.03em;
	transition: color 0.2s ease-out;
}

.footer-nav__link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--gold, #C4A265);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.footer-nav__link:hover::after,
.footer-nav__link:focus-visible::after {
	transform: scaleX(1);
}

.footer-nav__link:hover,
.footer-nav__link:focus {
	color: var(--wp--preset--color--gold, #C4A265);
}

/* ==========================================================================
   Footer Brand / Logo (Centre)
   ========================================================================== */

.site-footer__brand {
	order: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.site-footer__logo-link {
	display: block;
	text-decoration: none;
}

.site-footer__logo {
	width: 120px;
	height: auto;
	transition: opacity 0.2s ease-out;
}

.site-footer__logo-link:hover .site-footer__logo {
	opacity: 1;
}

.site-footer__logo-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
	color: var(--wp--preset--color--cream, #F5F0E6);
	font-weight: 400;
	line-height: 1.2;
	display: block;
}

.site-footer__logo-link:hover .site-footer__logo-text {
	color: var(--wp--preset--color--gold, #C4A265);
}

.site-footer__established {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--gold, #C4A265);
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
}

/* ==========================================================================
   Footer Info (Contact) — Right-Aligned
   ========================================================================== */

.footer-info {
	order: 3;
}

.footer-info__contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-info__address {
	font-style: normal;
	color: var(--wp--preset--color--gold, #C4A265);
	opacity: 0.8;
	line-height: 1.7;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.footer-info__phone {
	color: var(--wp--preset--color--gold, #C4A265);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-top: 0.25rem;
	transition: color 0.2s ease-out;
}

.footer-info__phone:hover,
.footer-info__phone:focus {
	color: var(--wp--preset--color--cream, #F5F0E6);
}

.footer-info__email {
	position: relative;
	display: inline-block;
	color: var(--wp--preset--color--gold, #C4A265);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	opacity: 0.6;
	transition: color 0.2s ease-out, opacity 0.2s ease-out;
}

.footer-info__email::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--gold, #C4A265);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.footer-info__email:hover::after,
.footer-info__email:focus-visible::after {
	transform: scaleX(1);
}

.footer-info__email:hover,
.footer-info__email:focus {
	color: var(--wp--preset--color--cream, #F5F0E6);
	opacity: 1;
}

/* ==========================================================================
   Social Links Row — Right-Aligned
   ========================================================================== */

.site-footer__social-row {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(245, 240, 230, 0.12);
}

.social-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1.5rem;
}

.social-links__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	border: none;
	padding: 0.25rem;
	transition: color 0.2s ease-out, transform 0.2s ease-out;
}

.social-links__icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	stroke: none;
}

.site-footer .social-links__link {
	color: var(--wp--preset--color--gold, #C4A265);
	opacity: 0.6;
}

.site-footer .social-links__link:hover,
.site-footer .social-links__link:focus {
	color: var(--wp--preset--color--cream, #F5F0E6);
	opacity: 1;
	transform: translateY(-1px);
}

.site-footer .social-links__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold, #C4A265);
	outline-offset: 4px;
}

/* ==========================================================================
   Bottom Bar (Darker)
   ========================================================================== */

.site-footer__bottom {
	background-color: var(--wp--preset--color--primary-deep, #071428);
	padding: 1.25rem 0;
}

.site-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

/* ==========================================================================
   Bottom Bar — Inner Layout
   ========================================================================== */

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
}

.footer-bottom__partners {
	order: 1;
}

.footer-bottom__legal {
	order: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

/* ==========================================================================
   Partner Logos
   ========================================================================== */

.footer-partners__logos {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-partners__logo {
	max-height: 36px;
	width: auto;
	opacity: 0.6;
	filter: brightness(0) invert(1);
	transition: opacity 0.2s ease-out;
}

.footer-partners__logo:hover {
	opacity: 1;
}

/* ==========================================================================
   Copyright & Legal Links
   ========================================================================== */

.footer-bottom__copyright {
	font-size: 0.75rem;
	color: var(--wp--preset--color--gold, #C4A265);
	opacity: 0.6;
	margin: 0;
}

.footer-bottom__links {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-bottom__links a {
	color: var(--wp--preset--color--gold, #C4A265);
	opacity: 0.6;
	text-decoration: none;
	font-size: 0.75rem;
	transition: opacity 0.2s ease-out, color 0.2s ease-out;
}

.footer-bottom__links a:hover,
.footer-bottom__links a:focus {
	opacity: 1;
	color: var(--wp--preset--color--cream, #F5F0E6);
}

.footer-bottom__links a:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	opacity: 1;
}

/* ==========================================================================
   Desktop Layout (768px+)
   ========================================================================== */

@media (min-width: 48rem) {
	.site-footer__inner {
		grid-template-columns: 2fr 1fr 1fr;
		gap: 3rem;
		align-items: start;
		text-align: left;
	}

	.footer-info__contact {
		text-align: right;
		align-items: flex-end;
	}

	.site-footer__social-row {
		justify-content: center;
	}

	.footer-nav__columns {
		justify-content: flex-start;
	}

	.site-footer__bottom-inner {
		flex-direction: row;
		justify-content: space-between;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.footer-bottom__legal {
		flex-direction: row;
		gap: 0.5rem;
		align-items: center;
	}

	.footer-bottom__copyright::after {
		content: "|";
		margin-left: 0.5rem;
		opacity: 0.3;
		color: var(--wp--preset--color--gold, #C4A265);
	}
}

/* ==========================================================================
   Large Desktop (1024px+)
   ========================================================================== */

@media (min-width: 64rem) {
	.site-footer__inner {
		grid-template-columns: 2fr 1fr 1.5fr;
	}

	.footer-nav__columns {
		gap: 4rem;
	}
}

/* ==========================================================================
   Reduced Motion — Footer Underlines
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.footer-nav__link::after,
	.footer-info__email::after {
		transition: none;
	}
}
