/* Footer Base */
footer {
  background-color: #4f4f4f; /* primary bg color */
  color: #f8f9fa; /* light text */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl; /* ensures right-to-left layout */
  text-align: right; /* all text aligned to right */
}

/* Container */
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Section Grid */
footer .grid {
  display: grid;
  gap: 3rem; /* 12 */
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  footer .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Logo */
footer img {
  height: 56px; /* h-14 */
  margin-bottom: 1.5rem;
}

/* Text */
footer p {
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 1.5rem;
  color: rgba(248, 249, 250, 0.7); /* text-primary-foreground/70 */
  font-size: 0.9375rem; /* ~15px */
  text-align: right;
}

/* Social Icons */
footer .flex.items-center.gap-4 a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(0, 180, 216, 0.2);
  color: #00b4d8;
  transition: all 0.3s ease;
  text-decoration: none;
}

footer .flex.items-center.gap-4 a:hover,
footer .flex.items-center.gap-4 a:focus {
  background-color: #00b4d8;
  color: #fff;
  outline: none;
}

/* Links */
footer a {
  text-decoration: none;
  color: rgba(248, 249, 250, 0.7);
  transition: color 0.3s ease;
  text-align: right;
}

footer a:hover,
footer a:focus {
  color: #00b4d8;
  outline: none;
}

/* Section Headers */
footer h4 {
  font-family: serif;
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 1.5rem;
  color: #f8f9fa;
  text-align: right;
}

/* Lists */
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

footer ul li {
  margin-bottom: 0.75rem;
}

/* Bottom Bar */
footer .border-t {
  border-top: 1px solid rgba(248, 249, 250, 0.1);
  padding-top: 2rem;
}

footer .flex.justify-between.items-center p {
  font-size: 0.875rem; /* text-sm */
  color: rgba(248, 249, 250, 0.5);
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  footer .flex.flex-col.md\:flex-row {
    flex-direction: column;
    gap: 1rem;
    text-align: right;
  }
}

.footer-logo {
  height: 80px;      /* הגדלה */
  width: auto;       /* שומר על יחס התמונה */
  max-width: 100%;
}

