/* Footer Section Styles */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 80px 0 calc(30px + env(safe-area-inset-bottom));
  font-family: var(--font-secondary);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Instagram Section */
.instagram {
  padding: 60px 0;
  background: var(--white);
  text-align: center;
}

.instagram .section-header h3 {
  color: var(--dark-color);
  font-size: 32px;
  margin-bottom: 10px;
}

.instagram .section-header p {
  color: var(--primary-color);
  font-size: 16px;
}

.insta-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.insta-post {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  /* Square layout is cleaner for Instagram previews */
  max-height: 220px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insta-post:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(158, 109, 78, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-post:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay i {
  color: var(--white);
  font-size: 30px;
}

/* Newsletter Section */
.newsletter {
  padding: 60px 0;
  background: var(--light-color);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h3 {
  color: var(--dark-color);
  font-size: 32px;
  margin-bottom: 15px;
}

.newsletter p {
  color: var(--text-color);
  margin-bottom: 30px;
}

.newsletter form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-family: var(--font-secondary);
  font-size: 14px;
}

.newsletter button {
  border-radius: 0 30px 30px 0;
  padding: 15px 30px;
}

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

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  font-family: var(--font-primary);
  color: var(--white);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column li a:hover {
  color: var(--secondary-color);
}

.footer-column .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-column i[class^="fas"] {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* Copyright Section */
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.payment-methods i {
  font-size: 24px;
  margin-left: 15px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  color: var(--white);
}

.payment-methods i:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .insta-gallery {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on tablet */
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .newsletter form {
    flex-direction: column;
  }

  .newsletter input {
    border-radius: 30px;
    margin-bottom: 10px;
  }

  .newsletter button {
    border-radius: 30px;
    width: 100%;
  }

  .copyright {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .payment-methods {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    /* 2-column grid */
    gap: 30px 20px;
  }

  .footer-column:first-child {
    grid-column: span 2;
    /* About Us takes full width */
  }

  .footer-column:last-child {
    grid-column: span 2;
    /* Contact Us takes full width */
    margin-top: 10px;
  }

  .insta-gallery {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on mobile to keep a tight row */
    gap: 8px;
    margin-top: 20px;
  }

  .footer-column h4 {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .footer-column h4::after {
    bottom: -5px;
  }
}