/* ===== Divider Line To Page Content ===== */
.separator-line {
  width: 80%;
  height: 1.5px;
  background-color: var(--text);
  margin: 2rem auto;
  display: block;
  flex-shrink: 0; /* Prevent flexbox from squashing it */
}

/* ===== FOOTER BASE STRUCTURE ===== */
/* Main footer container - mobile first approach */
.footer {
  flex-shrink: 0;
  width: 100%;
  color: var(--text);
  font-size: 25px;
  background-color: var(--primary);
  text-align: center;
  position: relative;
}

/* ===== FOOTER CONTENT LAYOUT ===== */
/* Content wrapper with responsive padding */
.footer__content {
  flex: 1;
}

/* Columns container - mobile layout */
.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Space between sections */
}

/* Vertical alignment for mobile */
.footer__vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  margin-bottom: 50px;
}

/* ===== ADDRESS SECTION ===== */
.footer__address div {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.address-text {
  display: flex;
  align-items: center; /* Vertically center text and image */
  gap: 8px; /* Space between image and text */
  font-size: 1rem;
  color: var(--text);
}

.location-icon {
  width: 50px;
  height: auto;
  flex-shrink: 0; /* Prevent shrinking on small screens */
}

/* ===== VISUAL DIVIDER ===== */
.footer__separator {
  width: 80%;
  height: 1px;
  background-color: var(--text);
  margin: 1rem 0;
}

/* ===== OPENING HOURS SECTION ===== */
.footer__opening {
  background-color: var(--primary);
  margin: 0 auto;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
}

/* Hours title with decorative underline */
.hours-title {
  color: var(--text);
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 3px;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.8rem;
}

.hours-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 0.5px;
  background-color: var(--text);
}

/* Hours container with subtle shadow */
.footer__hours {
  background-color: var(--primary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  width: 100%;
  font-size: 1.05rem;
}

/* Hours list grid layout */
.hours-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Individual hour items */
.hours-item {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hours-item:hover {
  background-color: rgba(var(--primary-rgb), 0.7);
  transform: translateY(-2px);
}

.hours-day,
.hours-time {
  font-weight: 500;
  color: var(--text);
  font-size: 1.05rem;
}

/* ===== FOOTER ICONS ===== */
.footer__icon {
  margin-bottom: 0;
}

.cat-location-icon {
  width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-logo-icon {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
}

/* ===== SOCIAL MEDIA ICONS ===== */
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px); /* Responsive gap */
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.footer-social-icon {
  width: 50px;
  height: 50px;
  object-fit: contain; /* Fit inside the box */
  box-sizing: border-box;
}


.footer-social-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(var(--text-rgb), 0.2));
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.2); }
}

/* ===== INTERACTIVE ANIMATIONS ===== */
.address-text:hover,
.footer__opening:hover,
.footer__hours:hover {
  animation: gentleShake 0.8s ease-in-out;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px) rotate(-0.5deg); }
  40% { transform: translateX(2px) rotate(0.5deg); }
  60% { transform: translateX(-1px) rotate(-0.3deg); }
  80% { transform: translateX(1px) rotate(0.3deg); }
}

/* ===== FOOTER BOTTOM BAR ===== */
.footer__bottom {
  padding: 1rem;
  background-color: var(--light);
  text-align: center;
  margin-top: auto;
  width: 100%;
  box-shadow: 0 -1px 3px rgb(0 99 30);
  font-family: 'Sniglet', cursive;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet and Desktop (769px and up) */
@media (min-width: 769px) {
  .footer__content {
    padding: 0;
  }

  .footer__container {
    flex-direction: row;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    align-items: center;
  }

  .footer__separator {
    width: 300px;
  }

  .footer__left {
    text-align: center;
    flex: 1;
  }

  .footer__right {
    text-align: center;
    flex: 1;
  }

  .footer__bottom {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .footer-social-icons {
    gap: 15px; /* Larger gap for desktop */
  }

  .footer-social-icon {
    width: 50px; /* Consistent size */
    height: 50px;
  }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
  .footer {
    min-height: 60dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .footer__bottom {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .footer__opening {
    padding: 1.5rem;
    max-width: 100%;
  }

  .hours-item {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }

  .footer-social-icons {
    gap: clamp(5px, 1.2vw, 8px); /* Smaller gap for small screens */
  }

  .footer-social-icon {
    width: 50px; /* Consistent size */
    height: 50px;
  }
}

/* Small Mobile (600px and below) */
@media (max-width: 600px) {
  .hours-title {
    font-size: 1.2rem;
  }

  .footer__hours {
    max-width: 100%;
  }

  .footer-social-icon {
    width: 48px; /* Slightly smaller for very small screens */
    height: 48px;
  }
}