/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
	overflow: hidden;
	border-radius: 10px;
}

/* ==========================================================================
   Email Signup — Gravity Forms styling
   ID wrapper used so we don't need !important to override GF defaults
   ========================================================================== */

.footer-signup {
	display: flex;
	align-self: center;
	flex: 1;
}

#newsletter-form .gform_wrapper {
	width: 100%;
}

/* GF outputs empty <p> tags via wpautop — hide them */
#newsletter-form p:empty {
	display: none;
}

#newsletter-form form {
	display: flex !important;
	align-items: center !important;
	gap: 0.75rem !important;
	width: 100%;
	grid-template-columns: none !important;
}

#newsletter-form .gform_body {
	flex: 1;
	display: flex;
	align-items: stretch;
}

#newsletter-form .gform_footer,
#newsletter-form .gform_page_footer {
	flex-shrink: 0;
}

#newsletter-form .gform_fields {
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

#newsletter-form .gfield {
	margin: 0;
	flex: 1;
	display: flex;
    width: 100%;
    flex-grow: 1;
}

#newsletter-form .gfield--type-submit {
    flex-grow: 0;
    flex-shrink: 1;
    min-width: fit-content;
}

#newsletter-form .gfield .ginput_container {
    width: 100%;
    height: 100%;
}

#newsletter-form .gfield input[type="email"],
#newsletter-form .gfield input[type="text"] {
	width: 100%;
	height: auto !important;
	max-height: none;
	box-sizing: border-box;
	background: var(--wp--preset--color--tan) !important;
	border: none !important;
	border-radius: 100px !important;
	padding: 0.875rem 1.75rem !important;
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--red);
	outline: none;
}

#newsletter-form .gfield input[type="email"]::placeholder,
#newsletter-form .gfield input[type="text"]::placeholder {
	color: var(--wp--preset--color--red);
}

#newsletter-form .gform_footer,
#newsletter-form .gform_page_footer {
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

#newsletter-form .gform_button,
#newsletter-form button[type="submit"] {
	background: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--red) !important;
	border: none !important;
	border-radius: 100px !important;
	padding: 1rem 2.5rem !important;
	font-family: var(--wp--preset--font-family--md-nichrome) !important;
	font-size: var(--wp--preset--font-size--button) !important;
	font-weight: 700 !important;
	line-height: inherit !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	cursor: pointer;
	white-space: nowrap;
	align-self: stretch;
}

#newsletter-form .gform_button:hover,
#newsletter-form button[type="submit"]:hover {
	background: #fff !important;
	color: var(--wp--preset--color--red) !important;
}


@media (max-width: 768px) {
	.site-footer .is-layout-flex.is-nowrap:has(.footer-signup) {
		flex-wrap: wrap !important;
		justify-content: center !important;
		text-align: center;
	}

	.site-footer .is-layout-flex.is-nowrap:has(.tagline-pill) {
		flex-wrap: wrap !important;
		justify-content: center !important;
	}

	.tagline-pill {
		width: auto;
		text-align: center;
	}

	.footer-signup {
		width: 100%;
	}

	#newsletter-form form {
		display: flex !important;
		flex-direction: row !important;
		gap: 0.75rem !important;
	}

	#newsletter-form .gform_fields {
		gap: 0.75rem !important;
	}

	#newsletter-form .gfield input[type="email"],
	#newsletter-form .gfield input[type="text"] {
		font-size: 16px;
	}
}

@media (max-width: 420px) {
	#newsletter-form form {
		flex-direction: column !important;
	}

	#newsletter-form .gform_fields {
		flex-direction: column !important;
	}

	#newsletter-form .gfield--type-submit {
		width: 100%;
	}

	#newsletter-form button[type="submit"] {
		width: 100%;
	}

	.site-footer .is-layout-flex:has(.footer-signup) > p {
		text-wrap: pretty;
	}

	.site-footer .is-layout-flex.is-nowrap:has(.social-links-custom),
	.site-footer .is-layout-flex.is-nowrap:has(.mysammys-social-links) {
		flex-wrap: wrap !important;
	}

	.social-links-custom svg,
	.mysammys-social-links svg {
		width: 38px !important;
		height: 38px !important;
	}

	.site-footer .is-layout-flex.is-nowrap:has(.tagline-pill) {
		flex-wrap: wrap !important;
		justify-content: center !important;
		text-align: center;
	}

	.site-footer .is-layout-flex.is-nowrap:has(.mysammys-social-links) {
		justify-content: center !important;
	}

	.tagline-pill {
		width: 100%;
		text-align: center;
	}
}

/* ==========================================================================
   Sammy's wordmark — full-bleed 105vw, tinted tan
   ========================================================================== */

.footer-wordmark {
	width: 100%;
	position: relative;
	transform: scale(1.05);
	line-height: 0;
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

.footer-wordmark img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Social icons — custom SVGs
   ========================================================================== */

.social-links-custom {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.social-links-custom a {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.social-links-custom svg {
	width: 50px;
	height: 50px;
	display: block;
}

/* ==========================================================================
   Tagline pill — tan border + tan text
   ========================================================================== */

.tagline-pill {
	border: 2px solid var(--wp--preset--color--tan);
	border-radius: 100px;
	padding: 0.5rem 1.5rem;
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	display: inline-block;
	margin: 0;
}
