/* ==========================================================================
   FreshMart custom footer (child theme)
   Everything is scoped to .fmf-footer so it cannot affect the rest of the site.
   ========================================================================== */

/* Neutralise any spacing/background the parent puts on its footer wrapper. */
#colophon.site-footer {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	width: 100%;
	clear: both;
}

.fmf-footer {
	--fmf-primary: #2e7d32;
	--fmf-primary-dark: color-mix(in srgb, var(--fmf-primary) 70%, #000);
	--fmf-accent: #f9a825;
	--fmf-bg: #11261a;
	--fmf-bg2: #163021;
	--fmf-text: #b8c6bb;
	background: var(--fmf-bg);
	color: var(--fmf-text);
	font-size: 14px;
	line-height: 1.7;
	text-align: left;
	position: relative;
}
.fmf-footer *, .fmf-footer *::before, .fmf-footer *::after { box-sizing: border-box; }
.fmf-footer a { color: var(--fmf-text); text-decoration: none; transition: color .2s, transform .2s; }
.fmf-footer a:hover { color: var(--fmf-accent); }
.fmf-footer ul { list-style: none; margin: 0; padding: 0; }
.fmf-footer li { margin: 0; }
.fmf-footer p { margin: 0; }
.fmf-footer h3, .fmf-footer h4 { text-transform: none; letter-spacing: normal; }
.fmf-icon { display: block; flex-shrink: 0; }
.fmf-container { width: 100%; max-width: 1230px; margin: 0 auto; padding: 0 20px; }

/* ---------- Feature strip ---------- */
.fmf-features { background: var(--fmf-bg2); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fmf-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.fmf-feature { display: flex; align-items: center; gap: 14px; }
.fmf-feature strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.fmf-feature small { display: block; font-size: 12.5px; color: #9fb0a3; }
.fmf-feature__icon {
	flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	background: color-mix(in srgb, var(--fmf-accent) 16%, transparent); color: var(--fmf-accent);
}

/* ---------- Newsletter ---------- */
.fmf-news { background: linear-gradient(110deg, var(--fmf-primary) 0%, var(--fmf-primary-dark) 100%); color: #fff; }
.fmf-news__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 30px; padding-bottom: 30px; }
.fmf-news h3 { margin: 0 0 4px; font-size: 24px; color: #fff; font-weight: 700; }
.fmf-news p { color: rgba(255, 255, 255, .85); }
.fmf-news__form { flex: 0 1 520px; width: 100%; }
.fmf-news__form form { display: flex; gap: 8px; background: #fff; border-radius: 50px; padding: 5px; margin: 0; }
.fmf-news__form input[type="email"], .fmf-news__form input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; height: 44px; outline: 0; box-shadow: none; }
.fmf-news__form button, .fmf-news__form input[type="submit"] { border: 0; border-radius: 50px; background: #1b3a1d; color: #fff; font-weight: 600; padding: 0 26px; height: 44px; cursor: pointer; }

/* ---------- Main columns ---------- */
.fmf-main { padding: 56px 0 34px; }
.fmf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 40px; }
.fmf-logo { margin-bottom: 14px; }
.fmf-logo a { color: #fff; font-size: 24px; font-weight: 700; }
.fmf-logo img { max-height: 48px; width: auto; }
.fmf-footer .fmf-about { margin-bottom: 18px; }
.fmf-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.fmf-contact .fmf-icon { color: var(--fmf-accent); margin-top: 3px; }

.fmf-title {
	margin: 0 0 20px; padding: 0 0 12px; position: relative;
	color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: default;
}
.fmf-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--fmf-accent); }
.fmf-links li { margin-bottom: 10px; }
.fmf-links a { display: inline-block; }
.fmf-links a:hover { transform: translateX(4px); }

.fmf-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.fmf-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.fmf-social a:hover { background: var(--fmf-accent); color: #1b1b1b; transform: translateY(-3px); }

.fmf-call { display: block; font-size: 22px; font-weight: 700; color: var(--fmf-accent) !important; margin-bottom: 8px; }
.fmf-note { margin-bottom: 14px !important; }
.fmf-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 50px;
	background: #25d366; color: #fff !important; font-weight: 600;
}
.fmf-btn:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ---------- Bottom bar ---------- */
.fmf-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .22); }
.fmf-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.fmf-copy { font-size: 13px; }
.fmf-legal__list { display: flex; gap: 18px; flex-wrap: wrap; }
.fmf-legal__list a { font-size: 13px; }
.fmf-pay { display: flex; gap: 6px; flex-wrap: wrap; }
.fmf-pay li { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #e3ece5; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .05); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.fmf-grid { grid-template-columns: repeat(3, 1fr); }
	.fmf-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.fmf-features__grid { grid-template-columns: repeat(2, 1fr); }
	.fmf-news__inner { flex-direction: column; align-items: stretch; text-align: center; }
	.fmf-news__form { flex: auto; }
}

/* ---------- Phone: link columns become accordions ---------- */
@media (max-width: 640px) {
	.fmf-container { padding-left: 14px; padding-right: 14px; }
	.fmf-features__grid { gap: 18px 12px; padding-top: 22px; padding-bottom: 22px; }
	.fmf-feature { flex-direction: column; text-align: center; gap: 8px; }
	.fmf-feature strong { font-size: 14px; }
	.fmf-feature small { font-size: 12px; line-height: 1.4; }
	.fmf-main { padding: 34px 0 20px; }
	.fmf-grid { grid-template-columns: 1fr; gap: 0; }
	.fmf-col--brand { padding-bottom: 24px; }
	.fmf-col--menu, .fmf-col--help { border-top: 1px solid rgba(255, 255, 255, .1); }
	.fmf-title { margin: 0; padding: 16px 28px 16px 0; cursor: pointer; }
	.fmf-title::after {
		left: auto; right: 2px; bottom: auto; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-radius: 0; background: none;
		border-right: 2px solid var(--fmf-accent); border-bottom: 2px solid var(--fmf-accent);
		transform: rotate(45deg); transition: transform .2s;
	}
	.fmf-title[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
	.fmf-col--menu .fmf-links, .fmf-col--help .fmf-panel { display: none; padding-bottom: 16px; }
	.fmf-col.is-open .fmf-links, .fmf-col.is-open .fmf-panel { display: block; }
	.fmf-bottom__inner { flex-direction: column; text-align: center; }
	.fmf-legal__list, .fmf-pay { justify-content: center; }
	.fmf-news__form form { flex-direction: column; border-radius: 18px; }
	.fmf-news__form button { width: 100%; }
}
