/* Main Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

/* Decorative Wave */
.footer-wave {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--footer-bg);
}

.footer-wave::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%23002B5B' fill-opacity='1' d='M0,25 C240,5 480,45 720,25 C960,5 1200,45 1440,25 L1440,50 L0,50 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* Footer Content Container */
.footer-main {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--prg-container-max-width);
  margin: 0 auto;
  padding: 0 var(--prg-container-gutter);
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.5fr;
  gap: 35px;
  margin-bottom: 40px;
}

/* Footer Columns */
.footer-column h3 {
  color: var(--footer-text);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--footer-accent);
  border-radius: 2px;
}

/* About Section */
.footer-about p {
  line-height: 1.8;
  color: #bdc3c7;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--footer-hover);
  transform: translateX(5px);
}

.footer-links a::before {
  content: '▸';
  color: var(--footer-accent);
  transition: transform 0.3s ease;
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

/* Newsletter Section */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: #95a5a6;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--footer-hover);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--footer-accent);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: #95a5a6;
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  color: #95a5a6;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--footer-hover);
}

/* Disclaimer */
.footer-disclaimer {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-disclaimer p {
  color: #ecf0f1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--footer-accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--footer-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--footer-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-newsletter-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-newsletter-col {
    grid-column: auto;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-legal-links {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Dark Mode Support */
body.dark-mode .site-footer {
  background: #1a1a1a;
}

body.dark-mode .footer-wave::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%231a1a1a' fill-opacity='1' d='M0,25 C240,5 480,45 720,25 C960,5 1200,45 1440,25 L1440,50 L0,50 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

body.dark-mode .footer-column h3 {
  color: #f0f0f0;
}

body.dark-mode .footer-links a,
body.dark-mode .footer-about p {
  color: #ccc;
}

body.dark-mode .footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}