/* Footer Styles */
/* Using variables defined in variables.css */

.footer {
  background-color: var(--primary-dark);
  color: var(--light-text);
  padding: 3rem 0 1rem;
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  flex: 1;
  min-width: 240px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.company-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--light-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-link.facebook:hover { background-color: #1877F2; }
.social-link.twitter:hover { background-color: #1DA1F2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-link.linkedin:hover { background-color: #0A66C2; }
.social-link.youtube:hover { background-color: #FF0000; }
.social-link.whatsapp:hover { background-color: #25D366; }
.social-link.email:hover { background-color: #EA4335; }

.contact-link {
  display: flex;
  align-items: center;
  color: var(--light-text);
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-icon {
  margin-right: 0.8rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.view-location-btn {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  color: var(--light-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-location-btn:hover {
  background-color: var(--accent);
}

.view-location-btn i {
  margin-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.access-link {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.access-link:hover {
  color: var(--accent);
}

.access-icon {
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* App download area */
.app-download {
  margin-top: 1.5rem;
}

.app-download p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.app-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-buttons img {
  height: auto;
  max-width: 120px;
  transition: opacity 0.3s ease;
}

.app-buttons img:hover {
  opacity: 0.8;
}

/* Quick links section */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-links-section {
  flex: 1;
  min-width: 200px;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* Newsletter form */
.newsletter-form {
  margin-top: 1rem;
}

.newsletter-input-group {
  display: flex;
  position: relative;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

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

.newsletter-input-group button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 1rem;
  border: none;
  background-color: var(--accent);
  color: var(--light-text);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-input-group button:hover {
  background-color: var(--primary-dark);
}

/* Social share buttons */
.social-share-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.share-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-button:hover {
  background-color: var(--accent);
  transform: scale(1.1);
}

.share-options {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.share-options.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.share-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.share-option:hover {
  transform: scale(1.2);
}

.share-option.facebook { background-color: #1877F2; }
.share-option.twitter { background-color: #1DA1F2; }
.share-option.linkedin { background-color: #0A66C2; }
.share-option.whatsapp { background-color: #25D366; }
.share-option.email { background-color: #EA4335; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-section {
    flex: 100%;
    margin-bottom: 2rem;
  }
  
  .quick-links {
    flex-direction: column;
  }
  
  .footer-links-section {
    margin-bottom: 1.5rem;
  }
  
  .access-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Make sure the footer sticks to the bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .footer {
  background-color: var(--primary-dark);
}

[data-theme="dark"] .contact-link {
  color: var(--light-text);
}

[data-theme="dark"] .contact-link:hover {
  color: var(--accent);
}

[data-theme="dark"] .view-location-btn {
  background-color: var(--accent);
  color: var(--light-text);
}

[data-theme="dark"] .view-location-btn:hover {
  background-color: var(--primary-dark);
  border: 1px solid var(--accent);
}
