/* ShopApni site footer (parts/footer.php). Loaded on every page.
   Deep green brand base like the header; leaf/lime accents; no gold. */

.sa-footer {
	--f-bg: #16260F;
	--f-bg-2: #1C3014;
	--f-bg-3: #101C0B;
	--f-text: #C9D6C0;
	--f-muted: #8FA384;
	--f-head: #F3F1E7;
	--f-accent: #9BCB4A;
	--f-line: rgba(155, 203, 74, .16);
	background: var(--f-bg);
	color: var(--f-text);
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	width: 100%;
	clear: both;
	overflow-wrap: anywhere;
}
/* Shield from page CSS (old landing pages have bare footer{} / h1-h4{} rules). */
footer.sa-footer { display: block; margin: 0; padding: 0; }
.sa-footer *, .sa-footer *::before, .sa-footer *::after { box-sizing: border-box; }
.sa-footer :where(h2, p, ul) { margin: 0; padding: 0; }
/* Some pages style bare <nav> as their own fixed top bar (e.g. the Soil Guardian profile:
   nav{position:fixed;top:0;height:64px;display:flex;…}, .admin-bar nav{top:32px}), which pulled
   the footer's link columns to the top of the screen (2026-11-19). Footer navs stay in place. */
footer.sa-footer nav {
	position: static; inset: auto; top: auto; left: auto; right: auto; bottom: auto;
	z-index: auto; height: auto; min-height: 0; width: auto; padding: 0; margin: 0;
	background: none; box-shadow: none; border: 0; transform: none;
	justify-content: normal; align-items: normal;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
footer.sa-footer nav.sa-footer-links { display: grid; }
footer.sa-footer nav.sa-legal-row { display: flex; }
.sa-footer ul { list-style: none; }
.sa-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.sa-footer a:hover { color: var(--f-accent); }
.sa-footer a:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; border-radius: 4px; }
.sa-footer svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa-footer svg.sa-fill { fill: currentColor; stroke: none; }

/* Founder band */
.sa-footer-founder {
	max-width: 1240px; margin: 0 auto; padding: 34px clamp(20px, 4vw, 40px);
	display: flex; align-items: center; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap;
	border-bottom: 1px solid var(--f-line);
}
.sa-ff-text { flex: 1 1 420px; min-width: 0; }
.sa-ff-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--f-accent); margin-bottom: 6px; }
.sa-ff-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; color: var(--f-head); }
.sa-ff-sub { margin-top: 6px; color: var(--f-muted); font-size: 14px; }
.sa-ff-actions { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.sa-ff-btn {
	display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 22px; border-radius: 99px;
	background: var(--f-accent); color: #122008 !important; font-weight: 600; font-size: 15px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .2s, background-color .2s;
}
.sa-ff-btn:hover { background: #ADD962; transform: translateY(-2px); }
.sa-ff-link { font-size: 14px; color: var(--f-text); text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(201, 214, 192, .4) !important; }

/* Main area */
.sa-footer-top {
	max-width: 1240px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 40px) 36px;
	display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) { .sa-footer-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr); gap: 56px; } }
.sa-footer-links { display: grid; gap: 30px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sa-footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sa-footer-logo { display: inline-block; font-size: 27px; font-weight: 700; letter-spacing: -.5px; color: #80BB01 !important; margin-bottom: 12px; }
.sa-footer-logo span { color: #fff; }
.sa-footer-tagline { font-size: 14px; color: var(--f-muted); line-height: 1.7; margin-bottom: 20px; max-width: 360px; }

.sa-social-row { display: flex; gap: 10px; margin-bottom: 20px; }
.sa-social-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--f-accent); background: rgba(155, 203, 74, .1); border: 1px solid var(--f-line); transition: background-color .2s, transform .2s; }
.sa-social-btn:hover { background: rgba(155, 203, 74, .22); transform: translateY(-2px); }

.sa-app-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--f-line); color: var(--f-accent); transition: background-color .2s, border-color .2s; }
.sa-app-badge:hover { background: rgba(155, 203, 74, .12); border-color: rgba(155, 203, 74, .45); }
.sa-app-badge svg { width: 22px; height: 22px; }
.sa-app-badge-text { line-height: 1.2; }
.sa-app-eyebrow { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--f-muted); }
.sa-app-name { display: block; font-size: 14px; font-weight: 600; color: var(--f-head); }

.sa-footer-h { font: 600 12px/1.3 'Outfit', system-ui, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--f-head) !important; margin-bottom: 14px !important; padding-bottom: 10px; border-bottom: 1px solid var(--f-line); }
.sa-footer-col li { margin: 0 0 9px; }
.sa-footer-col li a { font-size: 14px; color: var(--f-text); }
.sa-footer-founder-link { color: var(--f-accent) !important; font-weight: 600; }

.sa-contact-list { display: grid; gap: 10px; margin-top: 18px; }
.sa-contact-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--f-text); line-height: 1.45; }
.sa-contact-item svg { color: var(--f-accent); margin-top: 1px; width: 16px; height: 16px; }
.sa-contact-item strong { color: var(--f-head); font-weight: 500; }

/* Bottom bar */
.sa-footer-bottom {
	background: var(--f-bg-3);
	padding: 16px clamp(20px, 4vw, 40px);
	display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
	font-size: 12.5px; color: var(--f-muted);
}
.sa-copy span { color: var(--f-head); font-weight: 500; }
.sa-legal-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sa-legal-row a { color: var(--f-muted); }
.sa-payments { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sa-pay-badge { padding: 3px 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 11.5px; font-weight: 500; color: var(--f-text); }
.sa-trust { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; }
.sa-trust svg { width: 14px; height: 14px; color: var(--f-accent); }
@media (max-width: 560px) {
	.sa-footer-bottom { flex-direction: column; align-items: flex-start; }
	.sa-ff-actions { width: 100%; }
	.sa-ff-btn { width: 100%; justify-content: center; }
}
/* Room for the phone bottom bar (WP Bottom Menu) so it never covers the legal links. */
@media (max-width: 768px) { .sa-footer-bottom { padding-bottom: 84px; } }
