/* Selvacrafts footer — newsletter strip + dark 4-col footer.
 * Ported from selvacrafts-theme-1 theme.css (FOOTER) + homepage.css (NEWSLETTER).
 * Markup: templates/footers/selvacrafts-footer.php */

/* ============================== NEWSLETTER ============================== */
.sc-news {
	background: var(--accent-tint);
	padding: clamp(48px, 6vw, 76px) 0;
}

.sc-news .news-inner {
	text-align: center;
	max-width: 620px;
	margin-inline: auto;
}

.sc-news .news-title {
	font-family: var(--font-display);
	font-weight: var(--dw);
	font-size: calc(clamp(28px, 3.4vw, 42px) * var(--disp-scale));
	line-height: 1.05;
	margin-bottom: 14px;
	color: var(--ink);
}

.sc-news .news-sub {
	font-size: 16px;
	color: var(--ink);
	margin-bottom: 28px;
	text-wrap: pretty;
}

.sc-news .news-form-area {
	margin-bottom: 14px;
}

.sc-news .news-form {
	display: flex;
	gap: 12px;
	max-width: 440px;
	width: 100%;
	/* without this the form shrinks to its content's
	                       * intrinsic width — the input falls back to its
	                       * browser-default `size=20` (~200px) and the
	                       * whole flex container collapses to that.
	                       * Symptom: in column mode the input + JOIN
	                       * button sit centred at ~200px wide instead of
	                       * stretching to the available container width. */
	margin: 0 auto;
	align-items: stretch;
	box-sizing: border-box;
}

.sc-news .news-form input[type="email"],
.sc-news .news-form input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 50px;
	min-height: 50px;
	padding: 0 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--control-radius);
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	background: var(--surface);
	color: var(--ink);
	box-sizing: border-box;
}

.sc-news .news-form input:focus {
	outline: none;
	border-color: var(--accent);
}

.sc-news .news-form button,
.sc-news .news-form .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 28px;
	font-family: inherit;
	font-weight: 600;
	font-size: 13.5px;
	letter-spacing: var(--btn-ls);
	text-transform: var(--btn-tt);
	border-radius: var(--btn-radius);
	background: var(--ink);
	color: #ffffff;
	border: 1px solid var(--ink);
	cursor: pointer;
	transition: .22s ease;
	line-height: 1;
	box-sizing: border-box;
}

.sc-news .news-form button:hover,
.sc-news .news-form .btn:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.sc-news .news-fine {
	color: var(--ink);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (max-width: 480px) {
	.sc-news .news-form {
		flex-direction: column;
	}

	/* In column mode `flex: 1` stretches the main axis (vertical), not the
	 * cross axis. Without an explicit width the email input falls back to
	 * the browser's default `size` (~20ch ≈ 200px) and looks collapsed next
	 * to the full-width JOIN button. Force both controls to 100% so the
	 * stacked pair lines up edge-to-edge. */
	.sc-news .news-form input[type="email"],
	.sc-news .news-form input[type="text"],
	.sc-news .news-form button,
	.sc-news .news-form .btn {
		width: 100%;
	}
}

/* ============================== FOOTER ============================== */
.sc-site-foot {
	background: var(--foot-bg);
	color: var(--foot-ink);
}

.sc-site-foot .foot-top {
	padding: clamp(48px, 6vw, 76px) 0 40px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
}

.sc-site-foot .foot-brand {
	min-width: 0;
}

.sc-site-foot .foot-logo {
	display: inline-flex;
}

.sc-site-foot .foot-img {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: .92;
}

.sc-site-foot .foot-tag {
	font-size: 14px;
	color: var(--foot-ink2);
	margin: 14px 0 18px;
	max-width: 30ch;
}

.sc-site-foot .foot-social {
	display: flex;
	gap: 14px;
}

.sc-site-foot .foot-social a {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(233, 224, 210, 0.25);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: .2s ease;
	color: var(--foot-ink);
	text-decoration: none;
}

.sc-site-foot .foot-social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

/* Lucide icons (mail, etc.) are stroke-based — let stroke inherit
 * currentColor and DO NOT force fill, or they render as filled blobs.
 * The Instagram glyph from selvacrafts_emall_icon('insta') is fill-based
 * so it gets its own rule below. */
.sc-site-foot .foot-social a svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.sc-site-foot .foot-social a.insta svg {
	fill: currentColor;
	stroke: none;
}

.sc-site-foot .foot-h {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--foot-ink);
	font-family: var(--font-body);
}

.sc-site-foot .foot-col a {
	display: block;
	font-size: 14px;
	color: var(--foot-ink2);
	text-decoration: none;
	padding: 6px 0;
	transition: .18s ease;
}

.sc-site-foot .foot-col a:hover {
	color: var(--foot-ink);
	padding-left: 4px;
}

.sc-site-foot .foot-bottom {
	padding: 22px 0;
	border-top: 1px solid rgba(233, 224, 210, 0.14);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sc-site-foot .foot-copy {
	color: var(--foot-ink2);
	font-size: 11px;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0;
}

.sc-site-foot .pay {
	display: flex;
	gap: 8px;
}

.sc-site-foot .pay span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--foot-ink2);
	border: 1px solid rgba(233, 224, 210, 0.20);
	padding: 4px 8px;
	border-radius: 4px;
}

@media (max-width: 991px) {
	.sc-site-foot .foot-top {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.sc-site-foot .foot-top {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.sc-site-foot .foot-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}