/**
 * J Martin Skincare — Footer styles
 */

.jmartin-site-footer {
	background: var(--jmartin-olive-footer);
	color: var(--jmartin-white);
	padding: 3rem 0 0;
}

.jmartin-footer-top {
	display: grid;
	gap: 2.5rem;
	padding: 0 1.25rem 2.5rem;
	max-width: var(--jmartin-wide);
	margin-inline: auto;
}

.jmartin-footer-brand .jmartin-site-logo img {
	height: 64px;
	margin-bottom: 1.25rem;
}

.jmartin-footer-brand p {
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
	max-width: 400px;
	margin: 0 0 1.5rem;
}

.jmartin-footer-social {
	display: flex;
	gap: 0.75rem;
}

.jmartin-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: var(--jmartin-white);
	transition: background 0.2s ease;
}

.jmartin-footer-social a:hover {
	background: rgba(255, 255, 255, 0.15);
	opacity: 1;
}

.jmartin-footer-links-title {
	font-family: var(--jmartin-font-body);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	display: none;
}

.jmartin-footer-quick-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
}

.jmartin-footer-quick-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0 1rem;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.3);
	min-width: 80px;
}

.jmartin-footer-quick-link:last-child {
	border-right: none;
}

.jmartin-footer-quick-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: var(--jmartin-white);
}

.jmartin-footer-quick-link span {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.9);
}

.jmartin-footer-newsletter {
	margin: 0 1.25rem 2rem;
	max-width: var(--jmartin-wide);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.jmartin-footer-newsletter__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: var(--jmartin-olive-light);
	border-radius: var(--jmartin-radius-md);
	padding: 1.5rem;
}

.jmartin-footer-newsletter__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: var(--jmartin-white);
}

.jmartin-footer-newsletter__content {
	flex: 1;
}

.jmartin-footer-newsletter__content h3 {
	font-family: var(--jmartin-font-body);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--jmartin-white);
}

.jmartin-footer-newsletter__form {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.jmartin-footer-newsletter__form input {
	flex: 1;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
	color: var(--jmartin-white);
	padding: 0.5rem 0;
	font-family: var(--jmartin-font-body);
	font-size: 0.875rem;
	outline: none;
}

.jmartin-footer-newsletter__form input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.jmartin-footer-newsletter__submit {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--jmartin-white);
	border: none;
	color: var(--jmartin-olive-dark);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jmartin-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding: 1.25rem;
	text-align: center;
}

.jmartin-footer-bottom p {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
	.jmartin-footer-top {
		text-align: center;
	}

	.jmartin-footer-brand .jmartin-site-logo {
		justify-content: center;
	}

	.jmartin-footer-brand p {
		margin-inline: auto;
	}

	.jmartin-footer-social {
		justify-content: center;
	}

	.jmartin-footer-links-title {
		display: block;
	}

	.jmartin-footer-quick-links {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding-bottom: 0.5rem;
	}

	.jmartin-footer-newsletter__inner {
		flex-direction: column;
		text-align: center;
	}

	.jmartin-footer-newsletter__form {
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.jmartin-footer-top {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		padding: 0 2rem 3rem;
	}

	.jmartin-footer-links-title {
		display: none;
	}

	.jmartin-footer-quick-links {
		justify-content: flex-end;
	}
}
