/* Footer Styles */
.footer {
  position: relative;
  width: 100%;
  background: white;
  color: #333;
  font-family: 'Barlow', sans-serif;
  min-height: auto;
  margin-top: auto;
}

/* Amber Glow Background */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    125% 125% at 50% 10%,
    #ffffff 40%,
    #f59e0b 100%
  );
  background-size: 100% 100%;
}

.footer > * {
  position: relative;
  z-index: 1;
}

/* Footer Content */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 40px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Company Info */
.company-info .footer-logo {
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.company-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #6f4e37;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(111, 78, 55, 0.1);
  border-radius: 50%;
  color: #6f4e37;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(111, 78, 55, 0.2);
  transform: translateY(-2px);
}

/* Quick Links & Contact Info */
.footer-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #3c2414;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: #6f4e37;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #3c2414;
}

/* Contact Info */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #6f4e37;
  font-size: 1rem;
}

.contact-item svg {
  color: #f59e0b;
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid rgba(111, 78, 55, 0.1);
  background: rgba(60, 36, 20, 0.05);
  text-align: center;
  position: relative;
  z-index: 1;
}

.copyright {
  font-size: 0.9rem;
  color: #6f4e37;
  margin: 0;
  text-align: center;
  width: 100%;
  font-weight: 400;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #d36f39;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

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

.scroll-to-top:hover {
  background: #bc3507;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top {
  font-size: 24px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 20px 20px;
  }

  .company-info {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }

  .footer-logo-img {
    height: 35px;
  }
}

@media (max-width: 768px) {
  .footer {
    min-height: auto;
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 20px;
    max-width: 100%;
    display: block;
  }

  .footer-section {
    margin-bottom: 32px;
    text-align: center;
  }

  .company-info {
    text-align: center;
    margin-bottom: 32px;
  }

  .footer-section-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .contact-item {
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .social-links {
    justify-content: center;
    margin-top: 20px;
  }

  .footer-bottom {
    text-align: center;
    padding: 20px 20px;
    margin-top: 0;
  }

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

@media (max-width: 480px) {
  .footer {
    overflow-x: hidden;
  }

  .footer-content {
    padding: 24px 16px 16px;
    gap: 24px;
    display: block;
  }

  .footer-section {
    margin-bottom: 24px;
  }

  .company-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
  }

  .footer-logo-img {
    height: 32px;
  }

  .footer-section-title {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .footer-link {
    font-size: 0.9rem;
  }

  .contact-item {
    font-size: 0.9rem;
    margin-bottom: 10px;
    justify-content: center;
    text-align: center;
  }

  .contact-item svg {
    width: 14px;
    height: 14px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .footer-bottom {
    padding: 16px 16px;
    margin-top: 0;
  }

  .copyright {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 320px) {
  .footer {
    overflow-x: hidden;
  }

  .footer-content {
    padding: 20px 12px 12px;
    gap: 20px;
    display: block;
  }

  .footer-section {
    margin-bottom: 20px;
  }

  .company-description {
    font-size: 0.85rem;
    text-align: center;
  }

  .footer-section-title {
    font-size: 0.95rem;
  }

  .footer-link,
  .contact-item {
    font-size: 0.85rem;
  }

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

  .footer-bottom {
    padding: 12px 12px;
  }

  .copyright {
    font-size: 0.75rem;
  }
}

/* Ensure footer is always visible */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Additional mobile fixes */
@media (max-width: 600px) {
  .footer {
    position: relative;
    clear: both;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-content {
    width: 100%;
    box-sizing: border-box;
  }
}
