/* ==========================================================================
   SHARED FOOTER — Desktop + Tablet + Mobile
   ========================================================================== */

.site-footer,
.contact-footer {
  padding: 56px 24px 0;
  color: #fff;
  background: url('../assets/footer-bg.jpg') center / cover no-repeat #0f3d2b;
}

/* ── CTA Card ── */

.footer-cta {
  max-width: var(--page-shell, 980px);
  margin: 0 auto 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 20px;
  background:
    url('../assets/footer-cta-bg.png') center / cover no-repeat,
    linear-gradient(135deg, rgba(220, 245, 233, 0.95) 0%, rgba(237, 252, 244, 0.88) 50%, rgba(255, 255, 255, 0.82) 100%);
  color: #121414;
  position: relative;
  overflow: hidden;
}

.footer-cta h2 {
  font-family: 'InterVariable', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #121414;
}

.footer-cta p {
  color: rgba(18, 20, 20, 0.58);
  max-width: 480px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.footer-cta .btn-dark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'InterVariable', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #121414;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-cta .btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-cta .btn-dark img {
  width: 16px;
  height: 16px;
}

/* ── Footer Body ── */

.footer-card {
  max-width: var(--page-shell, 980px);
  margin: 0 auto;
  padding-bottom: 0;
}

/* Main content: brand left + columns right */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 28px;
}

/* Left: brand block */
.footer-brand img {
  width: 128px;
  height: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 330px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.footer-contact a {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.footer-email {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.18s ease;
}

.footer-email:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-socials a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* Right: link columns */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-links > div {
  min-width: 0;
}

.footer-links h4 {
  display: block;
  margin: 0 0 16px;
  color: #39d17f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.footer-links a,
.footer-links span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.footer-links a .footer-link-badge-hiring,
.footer-links a .footer-link-badge-new {
  background: #ffffff;
  color: #16ab6d !important;
  border: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  height: 24px;
  padding: 0 14px;
  border-radius: 6px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 9px;
}

@media (max-width: 640px) {
  .footer-links a .footer-link-badge-hiring,
  .footer-links a .footer-link-badge-new {
    font-size: 7px;
    min-width: 26px;
    height: 10px;
    padding: 0 5px;
    border-radius: 2.5px;
  }
}

/* Bottom bar */
.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-meta a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .site-footer,
  .contact-footer {
    padding: 40px 20px 0;
  }

  .footer-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 28px;
    gap: 20px;
    margin-bottom: 32px;
  }

  .footer-cta p {
    max-width: 400px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .site-footer,
  .contact-footer {
    padding: 28px 16px 0;
  }

  .footer-cta {
    padding: 28px 20px;
    border-radius: 16px;
    gap: 16px;
    margin-bottom: 28px;
  }

  .footer-cta h2 {
    font-size: 1.35rem;
  }

  .footer-cta p {
    font-size: 0.84rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand img {
    width: 110px;
    margin-bottom: 10px;
  }

  .footer-brand p {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
  }

  .footer-contact a {
    font-size: 13px;
  }

  .footer-email {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .footer-socials svg {
    width: 22px;
    height: 22px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-links h4 {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .footer-links a,
  .footer-links span {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-bottom {
    padding: 14px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 12px;
  }

  .footer-meta {
    justify-content: center;
    gap: 14px;
  }

  .footer-meta a {
    font-size: 12px;
  }
}
