/*==============================================================================
    FILE        : public/assets/css/frontend/footer.css
    PROJECT     : GyanPeeth Academy
    VERSION     : 4.0.0

    Premium Minimal Footer
==============================================================================*/

/*==============================================================================
    ROOT
==============================================================================*/

:root {
  --footer-bg: #0f172a;

  --footer-card: #162033;

  --footer-border: rgba(255, 255, 255, 0.08);

  --footer-text: #cbd5e1;

  --footer-heading: #ffffff;

  --footer-muted: #94a3b8;

  --footer-hover: #2563eb;
}

/*==============================================================================
    FOOTER
==============================================================================*/

.fe-footer {
  position: relative;

  overflow: hidden;

  background: var(--footer-bg);

  color: var(--footer-text);

  margin-top: 90px;
}

/* subtle background */

.fe-footer::before {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(249, 115, 22, 0.06),
      transparent 30%
    );
}

/*==============================================================================
    MAIN
==============================================================================*/

.fe-footer > .fe-container {
  position: relative;

  z-index: 2;

  padding: 70px 0 28px;
}

/*==============================================================================
    GRID
==============================================================================*/

.fe-footer-grid {
  display: grid;

  grid-template-columns:
    1.6fr
    1fr
    1fr
    1.2fr;

  gap: 50px;
}

/*==============================================================================
    COMMON COLUMN
==============================================================================*/

.fe-footer-column {
  min-width: 0;
}

.fe-footer-heading {
  margin: 0 0 22px;

  color: var(--footer-heading);

  font-size: 17px;

  font-weight: 700;

  letter-spacing: 0.3px;
}

/*==============================================================================
    BRAND
==============================================================================*/

.fe-footer-brand {
  max-width: 420px;
}

.fe-footer-logo {
  display: flex;

  align-items: center;

  gap: 16px;

  text-decoration: none;
}

/*==============================================================================
    LOGO
==============================================================================*/

.fe-footer-logo-box {
  width: 60px;

  height: 60px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  border-radius: 18px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.fe-footer-logo-img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.fe-footer-logo-fallback {
  display: none;

  width: 100%;

  height: 100%;

  align-items: center;

  justify-content: center;

  color: #fff;

  font-size: 22px;

  font-weight: 800;
}

.fe-footer-logo-fallback.show {
  display: flex;
}

/*==============================================================================
    BRAND TEXT
==============================================================================*/

.fe-footer-logo-content {
  display: flex;

  flex-direction: column;
}

.fe-footer-logo-title {
  color: #fff;

  font-size: 22px;

  font-weight: 800;
}

.fe-footer-logo-subtitle {
  margin-top: 4px;

  color: var(--footer-muted);

  font-size: 13px;
}

/*==============================================================================
    DESCRIPTION
==============================================================================*/

.fe-footer-description {
  margin: 24px 0 28px;

  color: var(--footer-muted);

  line-height: 1.8;

  font-size: 15px;
}
/*==============================================================================
    SOCIAL LINKS
==============================================================================*/

.fe-footer-social {
  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;
}

.fe-social {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 14px;

  text-decoration: none;

  color: #cbd5e1;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.3s ease;
}

.fe-social i {
  font-size: 18px;

  transition: transform 0.3s ease;
}

.fe-social:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.fe-social:hover i {
  transform: scale(1.15);
}

/*==============================================================================
    REAL BRAND COLORS
==============================================================================*/

.fe-social.facebook:hover {
  background: #1877f2;

  border-color: #1877f2;

  color: #fff;
}

.fe-social.youtube:hover {
  background: #ff0000;

  border-color: #ff0000;

  color: #fff;
}

.fe-social.telegram:hover {
  background: #229ed9;

  border-color: #229ed9;

  color: #fff;
}

.fe-social.whatsapp:hover {
  background: #25d366;

  border-color: #25d366;

  color: #fff;
}

/* Instagram */

.fe-social.instagram {
  position: relative;

  overflow: hidden;
}

.fe-social.instagram::before {
  content: "";

  position: absolute;

  inset: 0;

  opacity: 0;

  transition: 0.3s;

  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.fe-social.instagram:hover {
  border-color: transparent;
}

.fe-social.instagram:hover::before {
  opacity: 1;
}

.fe-social.instagram i {
  position: relative;

  z-index: 2;
}

.fe-social.instagram:hover i {
  color: #fff;
}

/*==============================================================================
    FOOTER LINKS
==============================================================================*/

.fe-footer-links {
  margin: 0;

  padding: 0;

  list-style: none;
}

.fe-footer-links li {
  margin-bottom: 14px;
}

.fe-footer-links li:last-child {
  margin-bottom: 0;
}

.fe-footer-links a {
  display: inline-flex;

  align-items: center;

  position: relative;

  text-decoration: none;

  color: var(--footer-muted);

  font-size: 15px;

  transition: all 0.3s ease;
}

.fe-footer-links a::before {
  content: "";

  width: 0;

  height: 2px;

  margin-right: 0;

  border-radius: 20px;

  background: #2563eb;

  transition: 0.3s;
}

.fe-footer-links a:hover {
  color: #fff;

  transform: translateX(6px);
}

.fe-footer-links a:hover::before {
  width: 12px;

  margin-right: 8px;
}

/*==============================================================================
    FOOTER HEADING
==============================================================================*/

.fe-footer-heading {
  position: relative;

  padding-bottom: 12px;

  margin-bottom: 22px;
}

.fe-footer-heading::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: 0;

  width: 42px;

  height: 3px;

  border-radius: 30px;

  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/*==============================================================================
    DARK MODE
==============================================================================*/

[data-theme="dark"] .fe-footer {
  background: #020817;
}

[data-theme="dark"] .fe-social {
  background: rgba(255, 255, 255, 0.04);

  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .fe-footer-links a {
  color: #94a3b8;
}

[data-theme="dark"] .fe-footer-links a:hover {
  color: #ffffff;
}
/*==============================================================================
    CONTACT
==============================================================================*/

.fe-footer-contact {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.fe-footer-contact li {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  list-style: none;
}

.fe-contact-icon {
  width: 42px;

  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #cbd5e1;

  transition: all 0.3s ease;
}

.fe-footer-contact li:hover .fe-contact-icon {
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
    Brand Hover Colors
--------------------------------------------------------------*/

.fe-contact-icon.phone:hover,
.fe-footer-contact li:hover .phone {
  color: #3b82f6;

  border-color: #3b82f6;
}

.fe-contact-icon.email:hover,
.fe-footer-contact li:hover .email {
  color: #f97316;

  border-color: #f97316;
}

.fe-contact-icon.whatsapp:hover,
.fe-footer-contact li:hover .whatsapp {
  color: #25d366;

  border-color: #25d366;
}

.fe-footer-contact small {
  display: block;

  margin-bottom: 4px;

  color: var(--footer-muted);

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.6px;
}

.fe-footer-contact a {
  text-decoration: none;

  color: var(--footer-text);

  font-weight: 600;

  transition: 0.3s;

  word-break: break-word;
}

.fe-footer-contact a:hover {
  color: #fff;
}

/*==============================================================================
    FOOTER BOTTOM
==============================================================================*/

.fe-footer-bottom {
  margin-top: 60px;

  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;
}

.fe-footer-bottom-left p {
  margin: 0;

  font-size: 14px;

  color: var(--footer-muted);
}

.fe-footer-bottom-left strong {
  color: #fff;
}

.fe-footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 22px;
}

.fe-footer-bottom-links a {
  text-decoration: none;

  color: var(--footer-muted);

  font-size: 14px;

  transition: 0.3s;
}

.fe-footer-bottom-links a:hover {
  color: #fff;
}

.fe-footer-bottom-right {
  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 14px;

  color: var(--footer-muted);
}

.fe-footer-bottom-right strong {
  color: #fff;

  font-weight: 600;
}

.fe-footer-bottom-right .fa-heart {
  color: #ef4444;
}

/*==============================================================================
    RESPONSIVE
==============================================================================*/

@media (max-width: 1200px) {
  .fe-footer-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 40px;
  }
}

@media (max-width: 768px) {
  .fe-footer {
    margin-top: 70px;
  }

  .fe-footer > .fe-container {
    padding: 50px 0 24px;
  }

  .fe-footer-grid {
    grid-template-columns: 1fr;

    gap: 34px;
  }

  .fe-footer-brand {
    max-width: 100%;
  }

  .fe-footer-bottom {
    margin-top: 40px;

    text-align: center;

    flex-direction: column;

    justify-content: center;
  }

  .fe-footer-bottom-links {
    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;
  }
}

@media (max-width: 576px) {
  .fe-footer-logo-box {
    width: 52px;

    height: 52px;

    border-radius: 16px;
  }

  .fe-footer-logo-title {
    font-size: 20px;
  }

  .fe-footer-logo-subtitle {
    font-size: 12px;
  }

  .fe-social {
    width: 40px;

    height: 40px;
  }

  .fe-contact-icon {
    width: 40px;

    height: 40px;
  }
}

/*==============================================================================
    ACCESSIBILITY
==============================================================================*/

.fe-footer a:focus-visible {
  outline: 2px solid #3b82f6;

  outline-offset: 3px;

  border-radius: 8px;
}

/*==============================================================================
    REDUCED MOTION
==============================================================================*/

@media (prefers-reduced-motion: reduce) {
  .fe-footer * {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}

/*==============================================================================
    PRINT
==============================================================================*/

@media print {
  .fe-footer {
    display: none !important;
  }
}
