/* --------------------------------------------------------------------------
   Footer
   A responsive footer with four columns on desktop and stacked blocks on
   mobile. Administrative details such as RNA are kept small and subtle.
   -------------------------------------------------------------------------- */

footer,
.flambart-main-footer {
  background: linear-gradient(110deg, var(--flambart-blue-dark) 0%, var(--flambart-blue-dark) 72%, #1d2435 100%);
  color: var(--flambart-cream);
  padding: clamp(1.9rem, 3.4vw, 2.85rem) clamp(1.25rem, 4vw, 2rem) clamp(0.95rem, 2vw, 1.35rem);
  margin-top: clamp(1.75rem, 4vw, 3.25rem);
}

.flambart-footer-grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 2.25rem);
  max-width: var(--flambart-content-max);
  margin: 0 auto;
  padding: 0;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.8fr) minmax(160px, 0.85fr) minmax(220px, 1fr);
  align-items: start;
}

.flambart-footer-grid a {
  color: rgba(247, 242, 232, 0.94);
  font-size: 1rem;
  line-height: 1.45;
}

.flambart-footer-grid a:hover,
.flambart-footer-grid a:focus {
  color: var(--flambart-red);
}

.flambart-footer-about h2,
.flambart-footer-col h3 {
  margin-top: 0;
}

.flambart-footer-about h2 {
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  line-height: 1.16;
  margin: 0 0 0.62rem;
  max-width: 430px;
  color: var(--flambart-cream);
}

.flambart-footer-about p,
.flambart-footer-address p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(247, 242, 232, 0.92);
}

.flambart-footer-about p {
  max-width: 430px;
}

.flambart-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-style: normal;
}

.flambart-footer-col h3 {
  color: var(--flambart-rope);
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.38rem;
}

.flambart-footer-address {
  font-style: normal;
}

.flambart-footer-final-row {
  width: 100%;
  max-width: var(--flambart-content-max);
  margin: clamp(0.95rem, 1.8vw, 1.35rem) auto 0;
  padding-top: clamp(0.65rem, 1vw, 0.8rem);
  border-top: 1px solid rgba(247, 242, 232, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.flambart-footer-final-baseline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: rgba(247, 242, 232, 0.94);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.35;
}

.flambart-footer-final-mark,
.flambart-footer-final-mark-fallback {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
}

.flambart-footer-final-mark img,
.flambart-footer-final-mark-fallback img,
.flambart-main-footer img,
.site-footer img,
footer img {
  max-width: min(100%, 14rem);
  height: auto;
}

.flambart-footer-final-mark img,
.flambart-footer-final-mark-fallback img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.flambart-footer-final-legal {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  font-size: 0.84rem;
}

.flambart-footer-final-legal a {
  color: rgba(247, 242, 232, 0.82);
  white-space: nowrap;
}

.flambart-footer-bottom {
  margin-top: 1.35rem;
  font-size: 0.75rem;
  color: rgba(247, 242, 232, 0.7);
  text-align: center;
}

.flambart-footer-bottom a {
  color: inherit;
  margin: 0 0.5rem;
}

@media (min-width: 981px) {
  footer .flambart-footer-grid,
  .flambart-main-footer .flambart-footer-grid {
    grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.8fr) minmax(160px, 0.85fr) minmax(220px, 1fr);
  }
}

@media (max-width: 780px) {
  footer,
  .flambart-main-footer {
    padding: 2rem var(--flambart-mobile-pad, 1.15rem) 1.35rem;
    margin-top: 2rem;
  }

  .flambart-footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flambart-footer-about h2 {
    font-size: clamp(1.45rem, 8vw, 1.85rem);
    margin-bottom: 0.55rem;
  }

  .flambart-footer-about p,
  .flambart-footer-address p,
  .flambart-footer-col a {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .flambart-footer-col {
    gap: 0.42rem;
  }

  .flambart-footer-col h3 {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
  }

  .flambart-footer-final-row {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .flambart-footer-final-baseline {
    display: block;
    width: 100%;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .flambart-footer-final-mark,
  .flambart-footer-final-mark-fallback {
    display: none;
  }

  .flambart-footer-final-legal {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
    gap: 0.45rem 0.7rem;
  }

  .flambart-footer-bottom {
    margin-top: 1.5rem;
  }
}
