/* ============================================================
   BITES — Animated Footer
   Yellow recruitment panel + deep green footer
   ============================================================ */

/* ── Recruitment Panel ───────────────────────────────────── */
.recruitment {
  background-color: var(--bites-yellow);
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 10vw, 140px) clamp(80px, 12vw, 160px);
  z-index: 2;
}

.recruitment__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-page-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: end;
}

.recruitment__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
  position: relative;
}

.recruitment__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: var(--ls-section);
  color: var(--bites-green);
}

.recruitment__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--bites-green);
  max-width: 40ch;
}

.recruitment__cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--bites-green);
  color: var(--bites-green);
  background: transparent;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: flex-start;
  transition: background-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out);
}

.recruitment__cta:hover {
  background-color: var(--bites-green);
  color: var(--bites-yellow);
  transform: translateY(-2px);
}

/* ── Character Illustration ──────────────────────────────── */
.recruitment__character {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  /* The character extends below into the footer */
  margin-bottom: -10vw;
  will-change: transform;
}

.recruitment__character-img {
  width: clamp(250px, 30vw, 450px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

/* Character blink animation via CSS */
.recruitment__character-eyes {
  animation: charBlink 6s ease-in-out infinite;
}

@keyframes charBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.05); }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: var(--bites-green);
  color: var(--bites-ivory);
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(32px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-page-x);
}

.footer__top {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid rgba(243, 240, 227, 0.15);
}

/* ── Footer Logo ─────────────────────────────────────────── */
.footer__logo {
  display: flex;
  align-items: center;
  align-self: flex-start;
}

.footer__logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ── Footer Columns ──────────────────────────────────────── */
.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bites-yellow);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer__col-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--bites-ivory);
  opacity: 0.7;
  padding-block: 4px;
  transition: opacity var(--dur-fast) ease,
              color var(--dur-fast) ease;
}

.footer__col-link:hover {
  opacity: 1;
  color: var(--bites-yellow);
}

/* ── Footer Social ───────────────────────────────────────── */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-start;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 227, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) ease,
              background-color var(--dur-fast) ease;
}

.footer__social-link:hover {
  border-color: var(--bites-yellow);
  background-color: rgba(255, 195, 41, 0.1);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--bites-ivory);
}

/* ── Footer Bottom ───────────────────────────────────────── */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3vw, 32px);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  opacity: 0.5;
  transition: opacity var(--dur-fast) ease;
}

.footer__legal-link:hover {
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .recruitment__inner {
    grid-template-columns: 1fr;
    padding-inline: var(--space-page-x-mobile);
    text-align: center;
  }

  .recruitment__content {
    align-items: center;
  }

  .recruitment__character {
    margin-bottom: -8vw;
  }

  .recruitment__character-img {
    width: clamp(200px, 50vw, 300px);
  }

  .footer__inner {
    padding-inline: var(--space-page-x-mobile);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__logo-badge {
    grid-column: 1 / -1;
  }

  .footer__social {
    flex-direction: row;
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
