/* Footer - Modern Design 2025 */

:root {
  --footer-primary: #0aa5a6;
  --footer-secondary: #14c4c5;
  --footer-dark: #0c0c0c;
  --footer-darker: #080808;
  --footer-light: #ffffff;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #b0b0b0;
  --footer-accent: rgba(10, 165, 166, 0.3);
  --footer-gradient: linear-gradient(
    135deg,
    var(--footer-primary),
    var(--footer-secondary)
  );
  --footer-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Main footer styling */
.site-footer {
  background-color: var(--footer-dark);
  color: var(--footer-text-secondary);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 15% 85%,
      rgba(10, 165, 166, 0.05),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(20, 196, 197, 0.03),
      transparent 30%
    );
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

/* Top border accent */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--footer-gradient);
  z-index: 1;
}

/* Container */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

/* Main footer content */
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

/* Company information section */
.footer-company {
  padding-right: 20px;
}

/* Footer logo/title */
.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--footer-text-primary);
  margin: 0 0 15px;
  position: relative;
  display: inline-block;
}

/* Footer title accent */
.footer-title span {
  color: var(--footer-primary);
}

/* Company description */
.footer-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.8;
}

/* Social media links */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--footer-text-secondary);
  font-size: 1.1rem;
  transition: var(--footer-transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--footer-gradient);
  color: var(--footer-text-primary);
  transform: translateY(-3px);
}

/* Footer navigation columns */
.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-size: 1.2rem;
  color: var(--footer-text-primary);
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
}

.footer-nav-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--footer-primary);
  border-radius: 2px;
}

/* Footer navigation lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  margin-bottom: 12px;
}

.footer-nav-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--footer-transition);
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-nav-link::before {
  content: '›';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: var(--footer-transition);
  color: var(--footer-primary);
}

.footer-nav-link:hover {
  color: var(--footer-text-primary);
  padding-left: 15px;
}

.footer-nav-link:hover::before {
  opacity: 1;
  left: 0;
}

/* Contact information */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  color: var(--footer-primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-text {
  line-height: 1.5;
  font-size: 0.95rem;
}

.contact-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--footer-transition);
}

.contact-link:hover {
  color: var(--footer-text-primary);
}

/* Newsletter form */
.footer-newsletter {
  margin-top: 20px;
}

.newsletter-title {
  font-size: 1.1rem;
  color: var(--footer-text-primary);
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--footer-text-primary);
  border-radius: 30px 0 0 30px;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-button {
  border: none;
  background: var(--footer-gradient);
  color: white;
  padding: 0 20px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: var(--footer-transition);
}

.newsletter-button:hover {
  filter: brightness(1.1);
}

/* Bottom footer bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--footer-text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Secondary navigation */
.footer-secondary-nav {
  display: flex;
  gap: 25px;
}

.footer-secondary-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--footer-transition);
  position: relative;
}

.footer-secondary-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--footer-primary);
  transition: var(--footer-transition);
}

.footer-secondary-link:hover {
  color: var(--footer-text-primary);
}

.footer-secondary-link:hover::after {
  width: 100%;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--footer-gradient);
  color: white;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--footer-transition);
  box-shadow: 0 5px 15px rgba(10, 165, 166, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(10, 165, 166, 0.4);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-company {
    grid-column: span 3;
    max-width: 500px;
  }
}

@media (max-width: 992px) {
  .site-footer {
    padding: 60px 0 30px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-company {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-company {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .footer-secondary-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-nav-column {
    margin-bottom: 30px;
  }

  .footer-secondary-nav {
    gap: 15px;
  }

  .footer-secondary-link {
    font-size: 0.85rem;
  }
}
