/* Custom Footer Manager Frontend Styles */
/*
 * Global Color Palette for iced-espresso-astra-child
 * Define your theme's colors here using CSS custom properties (variables)
 *
 * Usage: var(--color-primary), var(--color-bg), etc.
 */

/* Instagram Section Styles */
.custom-footer .instagram-section {
  background-color: #f4f6f8;
  padding: 60px 0;
  margin-bottom: 0;
  text-align: center;
}

.custom-footer .instagram-header {
  margin-bottom: 40px;
}

.custom-footer .instagram-title {
  font-family: "FreightTextPro", serif !important;
  font-weight: 600 !important;
  font-size: 16px;
  color: var(--color-morning-steel-blue);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-footer .instagram-subtitle {
  font-family: "FreightTextProv", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 44px;
  color: var(--color-payne-gray);
  margin: 0;
  font-weight: 400;
}

.custom-footer .instagram-gallery {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

.custom-footer .instagram-item {
  position: relative;
  height: 238px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
}

.custom-footer .instagram-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.custom-footer .instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.custom-footer .instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.4); */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
}

.custom-footer .instagram-caption {
  font-family: "Avenir", "Helvetica Neue", Arial, sans-serif !important;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  max-width: 90%;
}

.custom-footer .instagram-item:hover .instagram-image {
  transform: scale(1.08);
}

.custom-footer .instagram-item:hover .instagram-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Responsive design for Instagram section */
@media (max-width: 1024px) {
  .custom-footer .instagram-gallery {
    gap: 6px;
    padding: 0 15px;
  }

  .custom-footer .instagram-item {
    height: 200px;
  }

  .custom-footer .instagram-caption {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .custom-footer .instagram-gallery {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
  }

  .custom-footer .instagram-item {
    height: 180px;
    flex: 1 1 calc(33.333% - 6px);
    min-width: calc(33.333% - 6px);
  }

  .custom-footer .instagram-title {
    font-size: 20px;
  }

  .custom-footer .instagram-subtitle {
    font-size: 14px;
  }

  .custom-footer .instagram-caption {
    font-size: 13px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .custom-footer .instagram-gallery {
    gap: 6px;
    padding: 0 10px;
  }

  .custom-footer .instagram-item {
    height: 160px;
    flex: 1 1 calc(50% - 3px);
    min-width: calc(50% - 3px);
  }

  .custom-footer .instagram-section {
    padding: 40px 10px;
  }

  .custom-footer .instagram-caption {
    font-size: 12px;
    padding: 8px;
  }
}

/* Footer headings with FreightTextPro font */
.custom-footer h4,
.site-footer.custom-footer h4,
.custom-footer .quick-links h4,
.custom-footer .region-language h4,
.custom-footer .distributor-login h4 {
  font-family: "Avenir", serif !important;
  font-weight: 600 !important;
  font-size: 18px;
  color: var(--color-payne-gray);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-footer .quick-links {
  display: flex;
  gap: 50px;
  flex: 0.7;
}

.custom-footer .quick-links-col {
  flex: 1;
  min-width: 0;
}

.custom-footer .quick-links-col h4 {
  margin-bottom: 2px;
}

.custom-footer .quick-links .footer-col {
  flex: 1;
}

/* Footer links and lists with Avenir font */
.custom-footer ul,
.custom-footer li,
.custom-footer a,
.custom-footer select,
.custom-footer button,
.custom-footer .copyright,
.custom-footer .footer-links,
.site-footer.custom-footer ul,
.site-footer.custom-footer li,
.site-footer.custom-footer a,
.site-footer.custom-footer select,
.site-footer.custom-footer button,
.site-footer.custom-footer .copyright,
.site-footer.custom-footer .footer-links,
.custom-footer .quick-links ul,
.custom-footer .quick-links li,
.custom-footer .quick-links a,
.custom-footer .region-select select,
.custom-footer .language-select select,
.custom-footer .login-btn,
.custom-footer .restricted-access,
.custom-footer .restricted-access a {
  font-family: "Avenir", "Helvetica Neue", Arial, sans-serif !important;
}

/* Quick links styling */
.custom-footer .quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-footer .quick-links li {
  margin-bottom: 8px;
}

.custom-footer .quick-links a {
  color: var(--color-payne-gray);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.custom-footer .quick-links a:hover {
  color: var(--color-payne-gray);
}

/* Region and Language selects */
.custom-footer .region-select select,
.custom-footer .language-select select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  color: var(--color-payne-gray);
  margin-bottom: 10px;
}

/* Distributor login button */
.custom-footer .login-btn {
  background: var(--color-payne-gray);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.custom-footer .login-btn:hover {
  background: #555;
}

.custom-footer .restricted-access {
  margin-top: 10px;
  font-size: 13px;
}

.custom-footer .restricted-access a {
  color: var(--color-payne-gray);
  text-decoration: none;
}

.custom-footer .restricted-access a:hover {
  color: var(--color-payne-gray);
}

/* Footer bottom styling */
.custom-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto;
  gap: 40px;
  padding-bottom: 40px;
  padding-top: 15px;
}

.custom-footer .copyright {
  font-size: 13px;
  color: var(--color-payne-gray);
}

.custom-footer .footer-links {
  display: flex;
  gap: 20px;
}

.custom-footer .footer-links a {
  font-size: 13px;
  color: var(--color-payne-gray);
  text-decoration: none;
}

.custom-footer .footer-links a:hover {
  color: var(--color-payne-gray);
}

/* Responsive design */
@media (max-width: 768px) {
  .custom-footer .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .custom-footer .footer-links {
    flex-direction: row;
    gap: 10px;
  }

  .custom-footer h4,
  .site-footer.custom-footer h4,
  .custom-footer .quick-links h4,
  .custom-footer .region-language h4,
  .custom-footer .distributor-login h4 {
    font-size: 14px;
  }

  .custom-footer .quick-links-col {
    flex: 0.7;
  }
}

/* General footer layout (if not already defined) */
.custom-footer {
  background: #f8f8f8;
}

.custom-footer .footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.custom-footer .logo-links {
  flex: 0.1;
}

.custom-footer .footer-logo {
  max-width: 150px;
  height: auto;
}

@media (max-width: 768px) {
  .custom-footer .footer-main {
    flex-direction: column;
    gap: 30px;
    padding-bottom: 20px;
  }

  .custom-footer {
    padding: 20px;
  }

  .custom-footer .footer-col {
    width: 100%;
  }
}