/* ==========================================================
   FoodLoot — Canonical Site Footer
   Used on every page. Single source of truth.
   Expects --emerald, --em-light to be defined in the host page :root.
   ========================================================== */

footer {
  background: var(--emerald, #00615F);
  padding: 0 6% 36px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 80px;
}
footer * {
  box-sizing: border-box;
}
footer p,
footer h2,
footer h3,
footer h4,
footer ul,
footer li {
  margin: 0;
  padding: 0;
}
footer ul {
  list-style: none;
}
footer > div {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CTA strip ── */
.footer-cta {
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-cta-text {
  flex: 1;
  min-width: 280px;
}
.footer-cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, .14);
  border-radius: 100px;
}
.footer-cta-h {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.6px;
  line-height: 1.18;
  margin: 0 0 8px;
}
.footer-cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  max-width: 420px;
  line-height: 1.55;
  margin: 0;
}

/* ── App store buttons ── */
.footer-store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .2s, background .2s;
}
.footer-store-btn:hover {
  transform: translateY(-2px);
  background: #111;
}
.footer-store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}
.footer-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.footer-store-btn-small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}
.footer-store-btn-big {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-top: 1px;
}

/* ── Link grid ── */
.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.fl img {
  height: 84px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}
.fdesc {
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
  max-width: 280px;
  line-height: 1.75;
  margin: 0;
}

/* ── Social icons ── */
.fsocials {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.fsocials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .2s, transform .2s, color .2s;
}
.fsocials a:hover {
  background: #fff;
  color: var(--emerald, #00615F);
  transform: translateY(-2px);
}
.fsocials svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Address / contact ── */
.fcontact {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.75;
}
.fcontact p {
  margin: 0;
}
.fcontact a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s;
}
.fcontact a:hover {
  color: #fff;
}

/* ── Link columns ── */
.fcol h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin: 0 0 18px;
}
.fcol a {
  display: block;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 12px;
  transition: color .2s, transform .2s;
}
.fcol a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* ── Bottom strip ── */
.fbot {
  margin: 28px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
}
.fem {
  color: var(--em-light, #e8f4f3);
  font-weight: 700;
  opacity: .95;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .fg {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .fg > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 0 5% 28px;
  }
  .footer-cta {
    gap: 20px;
    padding: 40px 0 32px;
    margin-bottom: 32px;
  }
  .footer-cta-h { font-size: 22px; }
  .footer-cta-sub { font-size: 13px; }
  .footer-store-row { width: 100%; }
  .footer-store-btn { padding: 10px 16px; gap: 10px; }
  .footer-store-btn svg { width: 22px; height: 22px; }
  .footer-store-btn-big { font-size: 14px; }
  .fg { gap: 32px 24px; padding-bottom: 32px; }
  .fl img { height: 64px; }
  .fdesc { font-size: 13px; line-height: 1.65; }
  .fbot {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 12px;
  }
  .fcol h4 { font-size: 11px; }
  .fcol a { font-size: 14px; }
}
