@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── CSS TOKENS ── */
:root {
  --cc-yellow:  #FFD93D;
  --cc-ink:     #111827;
  --cc-paper:   #F5F7FA;
  --cc-leaf:    #22C55E;
  --cc-slate:   #6B7280;
  --cc-white:   #FFFFFF;
  --cc-border:  #E5E7EB;
  --cc-radius:  8px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

.footer {
  background: var(--cc-white);
  border-top: 1px solid var(--cc-border);
  color: var(--cc-slate);
  padding: 4rem 2rem 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ─────────────────────────────────────────
   FOOTER LINKS (TOP SECTION)
───────────────────────────────────────── */

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cc-border);
}

.footer-col h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--cc-ink);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin: 0;
}

.footer-col ul a {
  color: var(--cc-slate);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--cc-yellow);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   FOOTER MIDDLE (EMAIL + SOCIALS)
───────────────────────────────────────── */

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--cc-border);
  flex-wrap: wrap;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cc-ink);
}

.footer-email input {
  padding: 0.65rem 1rem;
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  background: var(--cc-paper);
  color: var(--cc-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 200px;
}

.footer-email input::placeholder {
  color: var(--cc-slate);
}

.footer-email input:focus {
  outline: none;
  border-color: var(--cc-yellow);
  box-shadow: 0 0 0 3px rgba(255, 217, 61, 0.18);
}

.footer-email button {
  background: var(--cc-yellow);
  color: var(--cc-ink);
  border: none;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  border-radius: var(--cc-radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s, transform 0.2s;
}

.footer-email button:hover {
  background: #f5cc28;
  transform: translateY(-2px);
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  color: var(--cc-slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--cc-yellow);
  background: var(--cc-paper);
  color: var(--cc-yellow);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   FOOTER BOTTOM
───────────────────────────────────────── */

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cc-slate);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--cc-slate);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--cc-yellow);
  text-decoration: underline;
}

/* =========================================
   FOOTER INFO MODAL
========================================= */

.cc-footer-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

.cc-footer-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cc-footer-modal {
    width: 90%;
    max-width: 480px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);

    border: 1px solid var(--cc-border);
    border-radius: 22px;

    padding: 2rem;

    text-align: center;

    box-shadow:
        0 25px 60px rgba(17,24,39,0.18);

}

/* Animation */
.cc-footer-modal-overlay.show .cc-footer-modal {
    animation: footerModalBounce 0.6s cubic-bezier(.17,.89,.32,1.49);
}

@keyframes footerModalBounce {

    0% {
        transform: scale(0.4);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    80% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

.cc-footer-modal h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cc-ink);

    margin-bottom: 1rem;
}

.cc-footer-modal p {
    color: var(--cc-slate);
    line-height: 1.8;
    font-size: 0.95rem;

    margin-bottom: 2rem;
}

.cc-footer-modal-btn {
    border: none;
    background: var(--cc-yellow);
    color: var(--cc-ink);

    padding: 0.9rem 2rem;

    border-radius: 10px;

    font-weight: 700;
    cursor: pointer;

    transition: all 0.2s;
}

.cc-footer-modal-btn:hover {
    transform: translateY(-2px);
}

.cc-footer-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    border: none;
    background: transparent;

    font-size: 1.2rem;
    cursor: pointer;

    color: var(--cc-slate);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-middle {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .footer-email {
    flex-direction: column;
  }

  .footer-email input {
    width: 100%;
    min-width: auto;
  }

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

@media (max-width: 480px) {
  .footer {
    padding: 2rem 1rem 1.25rem;
  }

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

  .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}
