/* ===== Footer ===== */
.footer {
  background: #071416;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 0;
  position: relative;
  overflow: hidden;
}

/* Decorative top glow line */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), rgba(246,156,82,0.6), var(--orange), transparent);
}

/* Layered ambient glows */
.footer::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(246,156,82,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(84,182,191,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand section */
.footer__brand {
  text-align: center;
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s var(--ease);
}
.footer__logo:hover { transform: scale(1.03); }
.footer__logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange), #e8873a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  box-shadow: 0 6px 24px rgba(246,156,82,0.35);
  position: relative;
}
.footer__logo-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(246,156,82,0.15);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.footer__tagline {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: var(--space-lg);
  letter-spacing: 3px;
  position: relative;
  padding-bottom: var(--space-md);
}

.footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  padding: 9px 0;
  transition: all 0.3s var(--ease);
  position: relative;
}

.footer__link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.footer__link:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer__link:hover::before {
  width: 16px;
}

/* Contact */
.footer__contact p {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s var(--ease);
}
.footer__contact p:hover { color: rgba(255,255,255,0.7); }

.footer__contact p i {
  color: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}
.footer__contact p:hover i { transform: scale(1.2); }

.footer__contact a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--orange);
}

/* Newsletter */
.footer__newsletter-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s var(--ease);
  background: rgba(255,255,255,0.02);
}

.footer__newsletter:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246,156,82,0.1), 0 0 30px rgba(246,156,82,0.05);
}

.footer__newsletter input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.footer__newsletter .btn {
  border-radius: 0;
  padding: 14px 22px;
  font-size: 13px;
  white-space: nowrap;
}

/* Social */
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Branded color hover effects */
.footer__social a:hover {
  transform: translateY(-4px);
  color: var(--white);
}
.footer__social a[aria-label="Facebook"]:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 8px 24px rgba(24,119,242,0.35); }
.footer__social a[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; box-shadow: 0 8px 24px rgba(220,39,67,0.35); }
.footer__social a[aria-label="YouTube"]:hover { background: #FF0000; border-color: #FF0000; box-shadow: 0 8px 24px rgba(255,0,0,0.3); }
.footer__social a[aria-label="LinkedIn"]:hover { background: #0A66C2; border-color: #0A66C2; box-shadow: 0 8px 24px rgba(10,102,194,0.35); }
.footer__social a[aria-label="Pinterest"]:hover { background: #E60023; border-color: #E60023; box-shadow: 0 8px 24px rgba(230,0,35,0.3); }
.footer__social a[aria-label="Reddit"]:hover { background: #FF4500; border-color: #FF4500; box-shadow: 0 8px 24px rgba(255,69,0,0.3); }
.footer__social a[aria-label="Twitter/X"]:hover { background: var(--white); border-color: var(--white); color: var(--black) !important; box-shadow: 0 8px 24px rgba(255,255,255,0.2); }

/* Back to top button */
.footer__back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 6px 24px rgba(246,156,82,0.4);
}
.footer__back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.footer__back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(246,156,82,0.5);
}

/* Bottom Bar */
.footer__bottom {
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
  position: relative;
}

.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.2);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--orange);
}

/* ===== Footer Responsive ===== */
@media (max-width: 900px) {
  .footer { padding-top: var(--space-2xl); }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer__back-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 16px; }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__heading {
    font-size: 22px;
  }

  .footer__brand { padding-bottom: var(--space-xl); margin-bottom: var(--space-xl); }
  .footer__logo-text { font-size: 22px; }

  .footer__bottom-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__back-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 14px; }
}
