/*
 * Footer redesign — styles footer.php's "sf" markup: a cream trust strip,
 * a gold newsletter card overlapping into a dark espresso main area, link
 * columns, and a darker bottom bar. Enqueued after customizer.css so these
 * win over theme.css's / customizer.css's original .footer-main,
 * .footer-bottom and .social-list rules, which still apply underneath
 * (selectors here are kept just specific enough to beat them).
 */
.site-footer.sf {
	--sf-gold: var(--primarycolor);
	--sf-gold-light: #d9ba7c;
	--sf-dark: #1c160c;
	--sf-darker: #130f08;
	--sf-cream: #f8f4ec;
	--sf-cream-line: #ece2cf;
	--sf-text: rgba(255, 255, 255, 0.66);
	--sf-line: rgba(255, 255, 255, 0.09);
	font-size: 1.5rem;
}

/* Trust strip */
.sf .sf-features {
	background: var(--sf-cream);
	border-top: 1px solid var(--sf-cream-line);
	/* Extra bottom room for the newsletter card's negative margin. */
	padding: 50px 0 122px;
}
.sf .sf-features-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.sf .sf-feature {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 22px;
	background: #ffffff;
	border: 1px solid var(--sf-cream-line);
	border-radius: 14px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sf .sf-feature:hover {
	transform: translateY(-4px);
	border-color: #e0cda6;
	box-shadow: 0 16px 32px rgba(46, 36, 18, 0.08);
}
.sf .sf-feature-icon {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2e2412 0%, var(--sf-dark) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(28, 22, 12, 0.18);
}
.sf .sf-feature-icon i {
	display: block;
	width: 28px;
	height: 28px;
	background-color: var(--sf-gold-light);
	-webkit-mask: var(--sf-icon) center / contain no-repeat;
	mask: var(--sf-icon) center / contain no-repeat;
}
.sf .sf-feature-title {
	margin: 3px 0 6px;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1d1d1d;
}
.sf .sf-feature-text {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.55;
	color: #7d7567;
}

/* Main area */
.site-footer.sf .sf-main {
	/* flow-root stops the newsletter card's negative margin collapsing
	   through and dragging this dark background up with it. */
	display: flow-root;
	padding: 0 0 20px;
	color: var(--sf-text);
	background-color: var(--sf-dark);
	background-image:
		radial-gradient(circle at 8% 0%, rgba(184, 146, 74, 0.16), transparent 40%),
		radial-gradient(circle at 95% 100%, rgba(184, 146, 74, 0.1), transparent 38%),
		linear-gradient(180deg, #241c0f 0%, var(--sf-dark) 100%);
}

/* Newsletter card */
.sf .sf-newsletter {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin: -72px 0 0;
	padding: 34px 40px;
	border-radius: 18px;
	background: linear-gradient(120deg, #cba65e 0%, #b8924a 48%, #997332 100%);
	box-shadow: 0 24px 50px rgba(19, 15, 8, 0.35);
}
.sf .sf-newsletter:before,
.sf .sf-newsletter:after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.sf .sf-newsletter:before {
	top: -110px;
	right: -70px;
	width: 280px;
	height: 280px;
	border: 44px solid rgba(255, 255, 255, 0.08);
}
.sf .sf-newsletter:after {
	bottom: -60px;
	left: 32%;
	width: 140px;
	height: 140px;
	background: rgba(255, 255, 255, 0.06);
}
.sf .sf-newsletter-intro {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 18px;
}
.sf .sf-newsletter-icon {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 2.6rem;
}
.sf .sf-newsletter-title {
	margin: 0 0 4px;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}
.site-footer.sf .sf-newsletter-text {
	margin: 0;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}
.sf .sf-newsletter-form {
	position: relative;
	z-index: 1;
	flex: 0 1 520px;
	display: flex;
	padding: 6px;
	background: #ffffff;
	border-radius: 50px;
	transition: box-shadow 0.25s ease;
}
.sf .sf-newsletter-form:focus-within {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.sf .sf-newsletter-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 50px;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-size: 1.5rem;
	color: #1d1d1d;
}
.sf .sf-newsletter-form button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 50px;
	background: var(--sf-dark);
	color: #ffffff;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s ease;
}
.sf .sf-newsletter-form button:hover,
.sf .sf-newsletter-form button:focus {
	background: #000000;
	color: #ffffff;
}
.sf .sf-newsletter-form button i {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}
.sf .sf-newsletter-form button:hover i {
	transform: translateX(3px);
}

/* Columns */
.sf .sf-columns {
	padding-top: 56px;
}
.site-footer.sf .widget-title {
	margin-bottom: 26px;
	padding-bottom: 14px;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
}
.site-footer.sf .widget-title:before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	border-radius: 2px;
	background: var(--sf-gold);
}

.sf .sf-logo {
	margin-bottom: 22px;
}
.sf .sf-logo img,
.sf .sf-logo .custom-logo {
	max-width: 180px;
	height: auto;
}
.site-footer.sf .sf-about-text {
	max-width: 390px;
	margin: 0 0 26px;
	line-height: 1.75;
	color: var(--sf-text);
}
.site-footer.sf .sf-contact li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}
.site-footer.sf .sf-contact li:last-child {
	margin-bottom: 0;
}
.sf .sf-contact-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(184, 146, 74, 0.45);
	background: rgba(184, 146, 74, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	color: var(--sf-gold-light);
}
.sf .sf-contact a {
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.25s ease;
}
.sf .sf-contact a:hover {
	color: var(--sf-gold-light);
}

.site-footer.sf .sf-links .menu li {
	margin: 0 0 12px;
	font-size: 1.5rem;
}
.site-footer.sf .sf-links .menu li:last-child {
	margin-bottom: 0;
}
.sf .sf-links .menu li a {
	display: inline-flex;
	align-items: center;
	line-height: 24px;
	color: var(--sf-text);
	transition: color 0.25s ease;
}
.sf .sf-links .menu li a:before {
	content: "";
	width: 0;
	height: 1px;
	margin-right: 0;
	background: var(--sf-gold-light);
	transition: width 0.25s ease, margin-right 0.25s ease;
}
.sf .sf-links .menu li a:hover {
	color: var(--sf-gold-light);
	text-decoration: none;
}
.sf .sf-links .menu li a:hover:before {
	width: 12px;
	margin-right: 8px;
}

.site-footer.sf ul.sf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}
.site-footer.sf ul.sf-social li {
	margin: 0;
}
.site-footer.sf ul.sf-social li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--sf-line);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.site-footer.sf ul.sf-social li a:before {
	font-size: 1.6rem;
}
.site-footer.sf ul.sf-social li a:hover {
	background: var(--sf-gold);
	border-color: var(--sf-gold);
	color: #ffffff;
	transform: translateY(-3px);
}
.sf .sf-label {
	display: block;
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.sf .sf-apps {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.sf .sf-apps img {
	max-width: 140px;
	height: auto;
}

/* Bottom bar */
.site-footer.sf .sf-bottom {
	padding: 20px 0;
	border-top: 1px solid var(--sf-line);
	background: var(--sf-darker);
}
.sf .sf-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
}
.site-footer.sf .sf-copyright {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}
.sf .sf-copyright a {
	color: var(--sf-gold-light);
}
.sf .sf-copyright a:hover {
	color: #ffffff;
}
.sf .sf-payments {
	display: flex;
	align-items: center;
	gap: 12px;
}
.sf .sf-payments span {
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}
.sf .sf-payments img {
	width: auto;
	height: 26px;
}

@media (min-width: 992px) {
	/* Link columns share the space; Connect sizes to its one-row icon set. */
	.sf .sf-columns > .sf-links {
		flex: 1 1 0;
		max-width: none;
	}
	.sf .sf-columns > .sf-connect {
		flex: 0 0 auto;
		width: auto;
		max-width: none;
	}
}
@media (max-width: 1199px) {
	.sf .sf-features-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 991px) {
	.sf .sf-newsletter {
		flex-direction: column;
		align-items: stretch;
		padding: 30px;
	}
	.sf .sf-newsletter-form {
		flex-basis: auto;
	}
	.site-footer.sf .sf-about {
		margin-bottom: 40px;
	}
}
@media (max-width: 767px) {
	.sf .sf-features {
		padding: 34px 0 100px;
	}
	.sf .sf-features-grid {
		gap: 12px;
	}
	.sf .sf-feature {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		padding: 20px 12px;
		text-align: center;
	}
	.sf .sf-feature-icon {
		flex-basis: auto;
		width: 50px;
		height: 50px;
	}
	.sf .sf-feature-icon i {
		width: 24px;
		height: 24px;
	}
	.sf .sf-feature-title {
		margin-top: 0;
		font-size: 1.3rem;
	}
	.sf .sf-feature-text {
		font-size: 1.25rem;
	}
	.sf .sf-newsletter {
		margin-top: -64px;
		padding: 26px 20px;
		border-radius: 16px;
	}
	.sf .sf-newsletter-icon {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
		font-size: 2.2rem;
	}
	.sf .sf-newsletter-title {
		font-size: 2rem;
	}
	.sf .sf-newsletter-form input[type="email"] {
		padding: 0 14px;
	}
	.sf .sf-newsletter-form button {
		padding: 0 18px;
	}
	.sf .sf-columns {
		padding-top: 40px;
	}
	.site-footer.sf .sf-about {
		margin-bottom: 24px;
	}
	/* theme.js turns each .widget into an accordion row below 768px. */
	.site-footer.sf .widget {
		margin-bottom: 0;
		border-top: 1px solid var(--sf-line);
	}
	.site-footer.sf .widget-title {
		margin: 0;
		padding: 17px 0;
		font-size: 1.45rem;
	}
	.site-footer.sf .widget-title:before {
		display: none;
	}
	.site-footer.sf .widget-title ~ * {
		margin: 0 0 20px;
	}
	.sf .sf-apps {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.sf .sf-bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}
