/* FejlFix v18.82: one accessible, responsive footer across the site. */
.footer.footer-v1882 {
  background: radial-gradient(ellipse at 0 0, #193a2b 0, transparent 60%), #0d2119;
  color: #f4f8f5;
  padding: 54px 0 26px;
  border-top: 1px solid #2a4938;
}

.footer.footer-v1882 .footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr);
  gap: clamp(36px, 6vw, 88px);
  padding-bottom: 38px;
}

.footer.footer-v1882 .footer-identity { min-width: 0; }
.footer.footer-v1882 .footer-brand { display: inline-flex; }
.footer.footer-v1882 .brand-logo {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer.footer-v1882 .footer-tagline {
  margin: 22px 0 10px;
  color: #f4f8f5;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.footer.footer-v1882 .footer-description {
  max-width: 29ch;
  margin: 0;
  color: #bdcec3;
  font-size: 1rem;
  line-height: 1.65;
}

.footer.footer-v1882 .footer-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #bfef7c;
  color: #102a1d;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .16s ease;
}

.footer.footer-v1882 .footer-start:hover { background: #d0fa9a; }

/* v18.86: compact profile links, shared by the footer and contact page. */
.footer.footer-v1882 .footer-social { margin-top: 24px; }
.footer.footer-v1882 .footer-social > p {
  margin: 0 0 10px;
  color: #c6d8cc;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
}

.ff-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ff-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #536e5f;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #e3eee7;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.ff-social-link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ff-social-link:hover {
  border-color: #bfef7c;
  background: #254533;
  color: #d0fa9a;
}
.ff-social-link:focus-visible { outline: 3px solid #bfef7c; outline-offset: 4px; }

.footer.footer-v1882 .footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 28px;
  padding-top: 4px;
}

.footer.footer-v1882 .footer-link-group { min-width: 0; }
.footer.footer-v1882 .footer-link-group h2 {
  margin: 0 0 14px;
  color: #f4f8f5;
  font-family: Inter, system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .015em;
}

.footer.footer-v1882 .footer-link-group ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer.footer-v1882 .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  padding: 5px 0;
  color: #c6d8cc;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 5px;
  overflow-wrap: break-word;
  transition: color .16s ease;
}

.footer.footer-v1882 .footer-nav a:hover {
  color: #d0fa9a;
  text-decoration: underline;
}

.footer.footer-v1882 .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 0;
  padding-top: 19px;
  border-top: 1px solid #304b3c;
  color: #bdcec3;
  font-size: .875rem;
  line-height: 1.6;
}

/* Replace the old generated emoji strapline with the actual footer content. */
.footer.footer-v1882 .footer-bottom span:last-child::after { content: none; }
.footer.footer-v1882 .footer-copyright { white-space: nowrap; }
.footer.footer-v1882 .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 24px;
  margin: 0;
}

.footer.footer-v1882 .footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #d4e0d8;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 5px;
}

.footer.footer-v1882 .footer-legal a:hover {
  color: #f4f8f5;
  text-decoration: underline;
}

.footer.footer-v1882 .footer-independence-wrap { padding-top: 12px; }
.footer.footer-v1882 .footer-independence-note {
  max-width: 1040px;
  margin: 0;
  color: #aebfb3;
  font-size: .8125rem;
  line-height: 1.75;
}

.footer.footer-v1882 a:focus-visible {
  outline: 3px solid #bfef7c;
  outline-offset: 5px;
  border-radius: 4px;
}
.footer.footer-v1882 .footer-start:focus-visible { outline-color: #f4f8f5; }

@media (max-width: 1000px) {
  .footer.footer-v1882 .footer-main { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.7fr); gap: 32px; }
  .footer.footer-v1882 .footer-nav { gap: 20px; }
}

@media (max-width: 760px) {
  .footer.footer-v1882 { padding: 38px 0 24px; }
  .footer.footer-v1882 .footer-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 28px; }
  .footer.footer-v1882 .brand-logo { width: 164px; }
  .footer.footer-v1882 .footer-tagline { margin-top: 18px; font-size: 1.375rem; }
  .footer.footer-v1882 .footer-description { max-width: 40ch; }
  .footer.footer-v1882 .footer-nav { padding-top: 0; gap: 24px; }
  .footer.footer-v1882 .footer-nav a, .footer.footer-v1882 .footer-legal a { min-height: 44px; }
}

@media (max-width: 540px) {
  .footer.footer-v1882 .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .footer.footer-v1882 .footer-link-group:last-child { grid-column: 1 / -1; }
  .footer.footer-v1882 .footer-link-group:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
  .footer.footer-v1882 .footer-link-group h2 { margin-bottom: 8px; }
  .footer.footer-v1882 .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 22px; }
  .footer.footer-v1882 .footer-legal { gap: 4px 20px; }
  .footer.footer-v1882 .footer-independence-wrap { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer.footer-v1882 .footer-start, .footer.footer-v1882 .footer-nav a, .ff-social-link { transition: none; }
}
