/* ============================
   ALFARM ENHANCEMENTS CSS
   ============================ */

/* --- SCROLL ANIMATIONS --- */
.alfarm-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.alfarm-fade-in.alfarm-visible {
  opacity: 1;
  transform: translateY(0);
}
.alfarm-fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.alfarm-fade-in-left.alfarm-visible {
  opacity: 1;
  transform: translateX(0);
}
.alfarm-fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.alfarm-fade-in-right.alfarm-visible {
  opacity: 1;
  transform: translateX(0);
}
/* Staggered delays for lists */
.alfarm-delay-1 { transition-delay: 0.1s; }
.alfarm-delay-2 { transition-delay: 0.2s; }
.alfarm-delay-3 { transition-delay: 0.3s; }
.alfarm-delay-4 { transition-delay: 0.4s; }

/* --- ENHANCED FOOTER --- */
.alfarm-footer-enhanced {
  background-color: #1A1A1A !important;
  color: #FFFFFF;
  padding: 48px 16px 0 !important;
  border-top: 4px solid #ED1C24 !important;
}
@media (min-width: 576px) {
  .alfarm-footer-enhanced { padding: 56px 80px 0 !important; }
}
@media (min-width: 1366px) {
  .alfarm-footer-enhanced { padding: 56px 160px 0 !important; }
}
.alfarm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .alfarm-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}
.alfarm-footer-brand p {
  color: #B0B0B0;
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 320px;
}
.alfarm-footer-brand img {
  max-height: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.alfarm-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.alfarm-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
}
.alfarm-footer-socials a:hover {
  background: #ED1C24;
  transform: scale(1.1);
}
.alfarm-footer-socials a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.alfarm-footer-col h4 {
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #FFFFFF;
  position: relative;
  padding-bottom: 12px;
}
.alfarm-footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: #ED1C24;
  border-radius: 2px;
}
.alfarm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.alfarm-footer-col ul li {
  margin-bottom: 12px;
}
.alfarm-footer-col ul li a {
  color: #B0B0B0;
  text-decoration: none;
  font-size: 14px;
  font-family: Poppins, Helvetica, sans-serif;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.alfarm-footer-col ul li a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}
.alfarm-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.alfarm-footer-contact-item img {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}
.alfarm-footer-contact-item span {
  color: #B0B0B0;
  font-size: 14px;
  font-family: Poppins, Helvetica, sans-serif;
  line-height: 1.5;
}
.alfarm-footer-contact-item a {
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.2s;
}
.alfarm-footer-contact-item a:hover {
  color: #FFFFFF;
}
.alfarm-footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .alfarm-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.alfarm-footer-bottom span {
  color: #707070;
  font-size: 13px;
  font-family: Poppins, Helvetica, sans-serif;
}
.alfarm-footer-bottom a {
  color: #ED1C24;
  text-decoration: none;
}

/* --- NUMBER COUNTER ANIMATION --- */
@keyframes alfarm-count-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.alfarm-number-animated {
  animation: alfarm-count-in 0.6s ease-out forwards;
}

/* --- SMOOTH HOVER on pharmacy cards --- */
.MuiAccordion-root {
  transition: box-shadow 0.3s ease, transform 0.15s ease !important;
}
.MuiAccordion-root:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  transform: translateY(-1px);
}
