/* =========================================
   Footer
   ========================================= */
.c-footer {
  background: linear-gradient(135deg, #02040a 0%, #050a14 40%, #081226 100%);
  padding: 0;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.c-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%,
      black 30%,
      transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%,
      black 30%,
      transparent 70%);
}

.c-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--desktop-px);
}

/* Brand Section */
.c-footer__brand-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.c-footer__brand {
  flex: 1;
  max-width: 400px;
}

.c-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.c-footer__logo-img {
  height: 75px;
  width: auto;
  display: block;
}

.c-footer__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.c-footer__social {
  display: flex;
  gap: 1rem;
}

.c-footer__social-item {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
}

.c-footer__social-item:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(16, 117, 189, 0.3);
}

.c-footer__newsletter {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.c-footer__newsletter-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.c-footer__newsletter-text {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.c-footer__newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.4rem;
}

.c-footer__newsletter-hint {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.c-footer__newsletter-arrow {
  display: inline-block;
  color: var(--color-primary);
  animation: footerArrowBounce 1.2s ease-in-out infinite;
}

@keyframes footerArrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

.c-footer__newsletter-submit {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.c-footer__newsletter-submit:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Nav Grid */
.c-footer__nav-grid {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); */
  grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
  padding: 4rem 0;
}

@media (max-width: 1024px) {
  .c-footer__nav-grid {
    grid-template-columns: 1fr;
  }
}

.c-footer__nav-col {
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.c-footer__nav-col:first-child {
  padding-left: 0;
}

.c-footer__nav-col:last-child {
  border-right: none;
  padding-right: 0;
}

.c-footer__nav-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.c-footer__nav-links li {
  margin-bottom: 0.75rem;
}

.c-footer__nav-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: all 0.3s ease;
}

.c-footer__nav-links a:hover {
  color: var(--color-white);
  transform: translateX(5px);
  display: inline-block;
}

.c-footer__contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}

.c-footer__contact-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.c-footer__contact-row i {
  color: var(--color-primary);
  width: 18px;
  text-align: center;
}

/* Legal Bar */
.c-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.c-footer__legal-left {
  color: rgba(255, 255, 255, 0.3);
}

.c-footer__legal-right {
  display: flex;
  gap: 2rem;
}

.c-footer__legal-right a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s;
}

.c-footer__legal-right a:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .c-footer__inner {
    padding: 0 var(--mobile-px);
  }

  .c-footer__brand-section {
    flex-direction: column;
    gap: 2.5rem;
  }

  .c-footer__brand,
  .c-footer__newsletter {
    max-width: 100%;
  }

  .c-footer__nav-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.5rem 0 2rem;
  }

  .c-footer__nav-col {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
  }

  /* .c-footer__nav-col:nth-child(odd) {
    padding-left: 0;
  }

  .c-footer__nav-col:nth-child(even) {
    padding-right: 0;
  } */

  .c-footer__legal {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .c-footer__legal-right {
    /* flex-direction: column; */
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .c-footer__nav-grid {
    grid-template-columns: 1fr;
  }

  .c-footer__nav-col {
    padding: 1.5rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .c-footer__newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
  }

  .c-footer__newsletter-hint {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }
}