/* ============================================
   ALL CSS RULES USED IN components/EndingSection.js
   ============================================ */

/* ========== FOOTER BASE STYLES ========== */
.footer {
  background-color: var(--color-bg-light, #f6f8fd);
  font-family: "Noto Sans Hebrew", "Open Sans", sans-serif;
  font-size: 14px;
  color: #333;
  padding: 40px 20px;
  text-align: right;
  max-width: 100vw;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ========== FOOTER TOP SECTION ========== */
.footer-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
}

.footer-top.rtl {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.footer-top.ltr {
  flex-direction: row;
  justify-content: space-between;
}

/* Flip order for LTR: title/address on left, menu button on right */
.footer-top.ltr .footer-left {
  order: 2; /* Menu button goes to right */
  justify-content: flex-end; /* Align hamburger to the far right */
  align-items: center;
}

.footer-top.ltr .footer-right {
  order: 1; /* Title/address goes to left */
  text-align: left;
}

/* RTL: keep original order (menu on left, address on right) */
.footer-top.rtl .footer-left {
  order: 1; /* Menu button stays on left */
}

.footer-top.rtl .footer-right {
  order: 2; /* Title/address stays on right */
}

/* ========== FOOTER LEFT AND RIGHT ========== */
.footer-left,
.footer-right {
  flex: 1;
}

.footer-left {
  display: flex;
}

.footer-left.rtl {
  justify-content: flex-end;
}

.footer-left.ltr {
  justify-content: flex-end; /* Align hamburger to the right in LTR */
}

.footer-right.he {
  text-align: right;
  font-family: "Noto Sans Hebrew", sans-serif;
}

.footer-right.en {
  text-align: left;
  font-family: "Open Sans", sans-serif;
}

.footer-right strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0063AD;
}

.footer-right p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========== MENU TOGGLE BUTTON ========== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

/* ========== FOOTER MENU ========== */
.footer-menu {
  padding-top: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer-menu[style*="display: flex"] {
  opacity: 1;
  transform: translateY(0);
}

.footer-menu a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: color 0.3s ease;
  font-family: "Noto Sans Hebrew", "Open Sans", sans-serif;
}

.footer-menu a:hover {
  color: #0063AD;
}

.footer-menu a.contact-svg-footer {
  color: #333;
}

.footer-menu a.contact-svg-footer:hover {
  color: #0063AD;
}

/* ========== FOOTER DIVIDER ========== */
.footer-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}

/* ========== FOOTER ICONS ROW ========== */
.footer-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 8px 0px;
}

/* ========== ICON SVG STYLES ========== */
.icon-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

.icon-svg:hover {
  opacity: 0.7;
}

.icon-svg.linkedin {
  background-image: url("https://img.icons8.com/?size=100&id=8808&format=png&color=414141");
}

.icon-svg.instagram {
  background-image: url("https://img.icons8.com/?size=100&id=32309&format=png&color=414141");
}

.icon-svg.facebook {
  background-image: url("https://img.icons8.com/?size=100&id=8818&format=png&color=414141");
}

.icon-svg.email {
  background-image: url("https://img.icons8.com/?size=100&id=12580&format=png&color=000000");
}

.icon-svg.phone {
  background-image: url("https://img.icons8.com/?size=100&id=9659&format=png&color=000000");
}

/* ========== FOOTER BOTTOM ========== */
.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 12px;
}

/* ========== FOOTER LINKS ========== */
.footer-links {
  display: inline-flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 8px;
}

.footer-links a {
  white-space: nowrap;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #333;
}

/* ========== FOOTER CERTIFICATION (ISO LOGO) ========== */
.footer-certification {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  flex-wrap: wrap;
}

.iso-logo {
  max-width: 100px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.iso-logo:hover {
  opacity: 1;
}

.original-logo {
  max-width: 350px;
  height: auto;
  transition: opacity 0.3s ease;
}

.original-logo:hover {
  opacity: 1;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* ========== @media (max-width: 768px) ========== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-column,
  .footer-contact {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-logo {
    margin-bottom: 20px;
  }
}

/* ========== @media (max-width: 480px) ========== */
@media (max-width: 480px) {
  .footer-top {
    flex-wrap: nowrap;
  }
  
  .iso-logo {
    max-width: 100px;
  }
  
  .original-logo {
    max-width: 350px;
  }
  
  .footer-certification {
    margin-top: 15px;
    padding-top: 15px;
    gap: 15px;
  }
}

/* ============================================
   END OF ENDING SECTION CSS
   ============================================ */

