/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  background: #1f2933; /* dark neutral */
  color: #ffffff;
  padding: 4rem 1.5rem 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;            /* stacked rows: 1) logo + slogans  2) nav + app badges */
  gap: 3rem;
  justify-items: center;
  align-items: center;
  text-align: center;
}

/* =====================================================
   BRAND BLOCK — logo stacked on top of the slogan, centered
===================================================== */

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-branding img.logo-footer-nav {
  display: block;
  width: 180px;        /* explicit width: SVGs with only a viewBox have no intrinsic size and
                          would collapse to 0px inside the shrink-to-fit flex column */
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =====================================================
   SLOGAN
===================================================== */

.text-footer-slogan h3 {
  font-size: 2rem;            /* Bebas Neue reads smaller than the old serif at the same size */
  margin-bottom: 0.5rem;
  font-weight: 400;           /* Bebas Neue is single-weight */
}

.text-footer-slogan p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* =====================================================
   FOOTER NAV — two-column Customers / Farmers
===================================================== */

/* Row 2: navigation columns and app store badges share one centered row */
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 5rem;
}

.footer-nav-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem 4.5rem;
}

.footer-nav-col {
  display: flex;
  text-align: left;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.25rem;
}

.footer-nav-col a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-nav-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* App badges stack (App Store above Google Play) beside the links on tablet/desktop */
@media (min-width: 768px) {
  .footer-downloads {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .footer-nav-columns {
    justify-content: center;
    gap: 3rem;
  }

  .footer-nav-col {
    text-align: center;
  }
}

/* =====================================================
   DOWNLOAD LINKS
===================================================== */

.footer-downloads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-downloads img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.footer-downloads img:hover {
  transform: translateY(-2px);
}

/* =====================================================
   LEGAL BAR
===================================================== */

.footer-legal-bar {
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-legal-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-legal-links .separator {
  margin: 0 0.5rem;
  opacity: 0.7;
}

.footer-social {
  margin: 0.75rem 0;
}

.footer-social ion-icon {
  font-size: 1.5rem;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-social ion-icon:hover {
  opacity: 0.7;
}

.footer-copyright {
  margin-bottom: 0.5rem;
  opacity: 0.85;
  color: #ffffff;
}
