/* =================== FOOTER =================== */

/* Base footer */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  color: #ffffff;
  margin-top: 4rem;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
  padding: 32px 20px 18px;
  font-size: 0.95rem;
  box-sizing: border-box;
  text-align: left;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* TOP SECTION (BRAND + COLUMNS) */
.footer-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Brand block */
.footer-logo {
  flex: 0 0 35%;
}

.footer-logo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-logo p {
  opacity: 0.78;
  max-width: 360px;
  line-height: 1.6;
}

/* Columns container */
.footer-grid {
  flex: 0 0 60%;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 2rem;
}

/* Single column heading */
.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #00b4d8;
}

/* Links and text blocks
   NOTE: p elements use flex so icon + text stay on one line.
   Anchors keep display:block for column layout AND preserve hover transform. */
.footer-column a,
.footer-column span {
  display: block;
  margin-bottom: 0.4rem;
  color: #e8edf5;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Restore hover animation for links (shift right slightly) */
.footer-column a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Paragraphs (contact lines) use flex for icon alignment */
.footer-column p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
  color: #e8edf5;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

/* Icon styling within paragraphs */
.footer-column p i {
  margin: 0;               /* gap handled by gap property */
  color: #00b4d8;
  min-width: 18px;
  text-align: center;
}

/* BOTTOM BAR */
.footer-bottom {
  max-width: 1100px;
  width: 100%;
  margin: 12px auto 0;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Social icons */
.footer-socials a {
  color: #ffffff;
  margin-right: 12px;
  font-size: 1.15rem;
  opacity: 0.75;
  transition: 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Copyright */
.copy {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ========== RESPONSIVE ========== */

/* Tablets & small laptops */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .footer-logo {
    flex: 1 1 auto;
  }

  .footer-grid {
    flex: 1 1 auto;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.6rem;
  }
}

/* Small mobiles */
@media (max-width: 480px) {
  .footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 24px 16px 14px;
  }

  .footer-main {
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }

  .footer-logo p {
    max-width: 100%;
  }

  .footer-grid {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.1rem;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column p {
    justify-content: center;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    width: 100%;
    text-align: center;
  }

  .copy {
    width: 100%;
    text-align: center;
  }
}
