/* ==== Footer — redesigned ==== */

/* ── Tricolor stripe ── */
.footer-stripe {
  display: flex;
  height: 3px;
}
.footer-stripe__green  { flex: 1; background: #169b62; }
.footer-stripe__white  { flex: 1; background: rgba(247 242 234 / 0.55); }
.footer-stripe__orange { flex: 1; background: #ff883e; }

/* ── Shell ── */
.site-footer {
  background: #2d2826;
  color: #f7f2ea;
  flex-shrink: 0;
}

/* ── Main grid ── */
.footer-main {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid rgba(247 242 234 / 0.08);
}

.footer-main__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

/* ── Brand column ── */
.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
}

.footer-brand__logo img {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 4px;
  opacity: 0.9;
}

.footer-brand__logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7f2ea;
}

.footer-brand__tagline {
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(247 242 234 / 0.55);
}

/* ── Action row: social icons + search + support ── */
.footer-brand__action-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── Social icons in footer ── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 3vw, 1.4rem);
  flex-wrap: nowrap;
}

/* ── Compact search form ── */
.footer-search {
  align-items: center;
  background: rgba(247, 242, 234, 0.07);
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: 999px;
  display: flex;
  gap: 0.2rem;
  padding: 0.22rem 0.38rem 0.22rem 0.65rem;
  transition: border-color 0.15s ease;
}

.footer-search:focus-within {
  border-color: rgba(200, 169, 110, 0.5);
}

.footer-search__input {
  background: none;
  border: none;
  color: rgba(247, 242, 234, 0.78);
  font: inherit;
  font-size: 0.78rem;
  min-width: 0;
  outline: none;
  width: 120px;
}

.footer-search__input::placeholder {
  color: rgba(247, 242, 234, 0.32);
}

.footer-search__btn {
  align-items: center;
  background: none;
  border: none;
  color: rgba(247, 242, 234, 0.45);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  padding: 0.15rem 0.2rem;
  transition: color 0.15s ease;
}

.footer-search__btn:hover,
.footer-search__btn:focus-visible {
  color: rgba(247, 242, 234, 0.9);
}

/* ── Support / Buy-me-a-coffee link ── */
.footer-bmc {
  align-items: center;
  background: rgba(247, 242, 234, 0.07);
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: 999px;
  color: rgba(247, 242, 234, 0.65);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  gap: 0.3rem;
  padding: 0.24rem 0.75rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.footer-bmc:hover,
.footer-bmc:focus-visible {
  background: rgba(200, 169, 110, 0.15);
  border-color: rgba(200, 169, 110, 0.45);
  color: #e8d8b0;
  text-decoration: none;
}

/* Styles for .footer-socials__link live in base.css (shared social component) */

/* ── Nav columns ── */
.footer-col__heading {
  margin: 0 0 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247 242 234 / 0.35);
}

.footer-col__nav {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.footer-col__nav a {
  font-size: 0.87rem;
  color: rgba(247 242 234 / 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col__nav a:hover,
.footer-col__nav a:focus-visible {
  color: #f7f2ea;
}

/* ── Base strip (registration + legal) ── */
.footer-base {
  padding: 0.9rem 0 calc(0.75rem + env(safe-area-inset-bottom));
}

.footer-base__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

/* Registration notice */
.footer-registration {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-reg__badge {
  display: inline-block;
  padding: 0.13rem 0.55rem;
  background: rgba(247 242 234 / 0.07);
  border: 1px solid rgba(247 242 234 / 0.12);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247 242 234 / 0.5);
  white-space: nowrap;
}

.footer-reg__text {
  font-size: 0.67rem;
  color: rgba(247 242 234 / 0.35);
  line-height: 1.4;
}

/* Copyright + version */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.67rem;
  color: rgba(247 242 234 / 0.28);
}

.footer-version {
  color: rgba(247 242 234 / 0.18);
  font-variant-numeric: tabular-nums;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .footer-main {
    padding: 2rem 0 1.5rem;
  }

  /* Brand spans full width, nav cols sit side-by-side below */
  .footer-main__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand__logo {
    justify-content: center;
  }

  .footer-brand__tagline {
    max-width: none;
  }

  .footer-brand__action-row {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  /* Nav columns: centered headings + links */
  .footer-col {
    text-align: center;
  }

  .footer-col__nav {
    align-items: center;
  }

  /* Base strip: stack and centre */
  .footer-base__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }

  .footer-registration {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }
}
