/**
 * Site footer (2.0) — lifted from the homepage reference footer block and
 * adapted for WordPress markup (nav menus render as <ul>, so list resets are
 * kept; an empty spacer column matches the reference 6-column grid).
 */

.footer { padding: 0; border-top: 1px solid var(--border); background: #F5EFE6; }
.footer-inner { max-width: 100%; margin: 0 auto; padding: 56px 48px 32px; }
/* Newsletter column narrower (1.5fr + 0.2fr spacer, was 2fr + 0.5fr) — view-cart.html reference. */
.footer-top { display: grid; grid-template-columns: 1.5fr 0.2fr 0.8fr 0.8fr 0.8fr 0.8fr; gap: 32px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--ff-display); font-size: 26px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: var(--ink); max-width: 280px; line-height: 1.6; margin-bottom: 18px; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; align-items: center; }
.footer-social a { display: flex; align-items: center; opacity: 0.85; transition: opacity 0.15s; }
.footer-social a:hover { opacity: 1; }
.footer-social a:hover svg path { fill: var(--mascot); }
.footer-email-wrap { margin-top: 0; }
.footer-email-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.footer-email-sub { font-family: var(--ff-mono); font-size: 14px; color: var(--ink); margin-top: 6px; margin-bottom: 16px; line-height: 1.6; }
.footer-email-form { display: flex; max-width: 450px; }
.footer-email-input { flex: 1; padding: 14px 18px; border: 1px solid rgba(0,0,0,0.15); border-right: none; background: white; font-family: var(--ff-body); font-size: 14px; color: var(--ink); outline: none; box-shadow: 0 6px 20px rgba(28,26,24,0.18); }
.footer-email-input:focus { border-color: var(--fri-yay); }
.footer-subscribe-btn { padding: 14px 24px; background: var(--ink); color: white; border: none; font-family: var(--ff-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background 0.2s; box-shadow: 0 6px 20px rgba(28,26,24,0.18); }
.footer-subscribe-btn:hover { background: var(--mascot); }
/* Menu headings (Shop & Learn, Community, Media, Sell): the prototype's 13px / 700 / 0.08em,
   the same as "Stay in the loop" (#369). nowrap keeps "Shop & Learn" on one line. */
.footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; white-space: nowrap; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
/* Menu links: ink at 65% opacity, full on hover (was solid black). */
.footer-links a { font-size: 13px; color: var(--ink); opacity: 0.65; text-decoration: none; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--mascot); }
/* Paused feature (inc/feature-flags.php): no link, a "Coming Soon" pill like the mega menu's. */
.footer-links a[data-coming-soon] { cursor: default; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-links a[data-coming-soon]:hover { opacity: 0.65; color: var(--ink); }
.footer-links .nav-soon { font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); border: 1px solid rgba(28,26,24,.14); border-radius: 999px; padding: 2px 8px; line-height: 1.4; white-space: nowrap; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal { font-size: 11px; color: var(--stone); max-width: 600px; line-height: 1.6; }
.footer-legal-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-legal-links a { font-size: 11px; color: var(--ink); text-decoration: none; transition: color 0.15s; }
.footer-legal-links a:hover { color: var(--mascot); }

/* ── RESPONSIVE ──
 * Below 900px the brand column spans the full row and the four menu columns
 * sit beneath it as a 2×2 grid; the empty spacer column collapses. */
@media (max-width: 900px) {
  .footer-inner { padding: 48px 32px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 30px; }
  .footer-col-spacer { display: none; }
}
@media (max-width: 560px) {
  .footer-inner { padding: 40px 20px 28px; }
  .footer-top { gap: 28px 20px; }
  .footer-bottom {
    flex-direction: column;
    text-align: left;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-legal-links { flex-wrap: wrap; gap: 14px; }
}

/* TS-FOOTER v3 (design-changes-27-10-2026): Shop & Learn / Community / Media / Sell,
   "Soon" lines, hover = bold with no shift (the hidden bold copy reserves the width). */
/* #349: on wide screens the sign-up column grows a little and the row gets a right margin, so Shop & Learn moves right and Sell moves in. */
.footer-top { grid-template-columns: clamp(380px, 22vw, 480px) repeat(3, minmax(max-content, 1fr)) max-content; gap: 32px; padding-right: clamp(0px, 3vw, 64px); }
.footer-top > .footer-col-spacer { display: none; }
.footer-links a { color: var(--ink); opacity: 1; }
.footer-links a, .footer-legal-links a { display: inline-flex; flex-direction: column; align-items: flex-start; align-self: flex-start; }
.footer-links a::after, .footer-legal-links a::after { content: attr(data-text); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
.footer-links a:hover, .footer-legal-links a:hover { color: var(--ink); opacity: 1; font-weight: 700; }
.footer-links .footer-soon { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--ink); cursor: default; }
.footer-links .footer-soon.wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-links .footer-soon em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: #F5E8E2; border-radius: 3px; padding: 3px 7px; white-space: nowrap; }
/* Match the prototype (become-a-seller.html, 8 Nov): the sign-up box is 380 px at most with an
   18 px / 0.06em Submit, 16 px under the intro line, and each menu <li> is only as tall as its
   link (WordPress wraps links in <li>; their line box added 2–4 px per row). */
.footer-email-form { max-width: 380px; }
.footer-email-input { min-width: 0; }
.footer-subscribe-btn { padding-left: 18px; padding-right: 18px; letter-spacing: 0.06em; }
.footer-brand .footer-email-sub { margin-bottom: 16px; }
.footer-links > li, .footer-legal-links > li { display: flex; margin: 0; padding: 0; }
@media (max-width: 1379px) { .footer-top { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-right: 0; } .footer-top .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
