/******************** Footer Styles ********************/
.site-footer {
  width: 100%;
  background: var(--color-text-global);
  color: #fff;
  font-family: var(--font-family-fredoka);
  direction: rtl;
  margin-top: 3rem;
}

.site-footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

/* ---------- Brand column ---------- */
.site-footer__col--brand {
  align-items: flex-start;
  gap: 1.25rem;
}

.site-footer__logo {
  display: inline-block;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.site-footer__logo:hover {
  transform: translateY(-2px);
}

.site-footer__logo-img {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
}

.site-footer__tagline {
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32ch;
}

/* ---------- Shared heading ---------- */
.site-footer__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-family-fredoka);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 0.5rem;
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---------- Menu column ---------- */
.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__menu a {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--font-size-text);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__menu a:hover {
  color: var(--color-accent) !important;
  transform: translateX(-4px);
  opacity: 1 !important;
}

/* ---------- Branches column ---------- */
.site-footer__branches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.site-footer__branch {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-right: 3px solid var(--color-accent);
}

.site-footer__branch-name {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: var(--font-size-text);
  color: #fff;
}

.site-footer__branch-unit--divided {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__branch-unit-label {
  margin: 0 0 0.15rem;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.site-footer__branch-unit-subtitle {
  margin: 0 0 0.4rem;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.site-footer__branch-hours {
  margin: 0;
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.site-footer__branch-phone {
  margin: 0.5rem 0 0;
  font-size: var(--font-size-small);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.site-footer__branch-phone span {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__branch-phone a {
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  unicode-bidi: plaintext;
}

.site-footer__branch-phone a:hover {
  color: #fff !important;
  opacity: 1 !important;
}

/* ---------- Bottom bar ---------- */
.site-footer__bottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.9rem 1.5rem;
}

.site-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__copyright,
.site-footer__credit {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-family-fredoka);
}

.site-footer__credit a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.25rem;
}

.site-footer__credit a:hover {
  color: #fff !important;
  opacity: 1 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .site-footer__col--brand .site-footer__tagline {
    max-width: 48ch;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 2rem;
  }

  .site-footer__container {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1.75rem;
  }

  .site-footer__col {
    align-items: center;
    text-align: center;
  }

  .site-footer__heading {
    align-self: center;
  }

  .site-footer__heading::after {
    right: 50%;
    transform: translateX(50%);
  }

  .site-footer__menu {
    align-items: center;
  }

  .site-footer__menu a:hover {
    transform: none;
  }

  .site-footer__branches {
    width: 100%;
  }

  .site-footer__branch {
    text-align: right;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
/******************** End of Footer Styles ********************/
