/* Modern Footer Styles */

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-content h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Roboto Slab", serif;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.newsletter-form:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px 0 0 50px;
  background: transparent;
  color: #333;
}

.newsletter-input::placeholder {
  color: #666;
}

.newsletter-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.newsletter-btn i {
  transition: transform 0.3s ease;
}

.newsletter-btn:hover i {
  transform: translateX(3px);
}

/* Main Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
}

.footer-main {
  padding: 4rem 0 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #16a34a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.footer-logo h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  font-family: "Roboto Slab", serif;
}

.brand-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* Footer Sections */
.footer-section h4 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, #16a34a 100%);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
}

.footer-links li a i {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-links li a:hover i {
  opacity: 1;
  transform: translateX(2px);
}

/* Contact Section */
.contact-section .contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item span:first-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a,
.contact-item span:last-child {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-left p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--secondary-color);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-methods span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
}

.payment-icons i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.payment-icons i:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .newsletter-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: 2rem 0;
  }

  .newsletter-content h3 {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 15px;
    padding: 0;
    gap: 0;
  }

  .newsletter-input {
    border-radius: 15px 15px 0 0;
    padding: 1rem;
  }

  .newsletter-btn {
    border-radius: 0 0 15px 15px;
    justify-content: center;
  }

  .footer-main {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 1rem;
  }

  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .newsletter-container {
    padding: 0 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .payment-methods {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}
.footer-section:nth-child(5) {
  animation-delay: 0.5s;
}

/* Hover Effects */
.footer-section:hover h4::after {
  width: 50px;
  transition: width 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.newsletter-input:focus,
.newsletter-btn:focus,
.social-link:focus,
.footer-links a:focus,
.legal-links a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}
