[data-include="../partials/footer.html"] {
  min-height: 20rem;
}

/* Shared site footer (used by every page) */
.site-footer {
  background: var(--white);
  color: var(--black);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-block: 3rem 2rem;
  text-align: center;
}

.site-footer__nav ul {
  gap: 0.5rem 2rem;
}

.site-footer__nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--red);
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-footer__label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__social ul {
  gap: 1.25rem;
}

.site-footer__social a {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  transform: translateY(-0.3rem) scale(1.08);
}

.site-footer__social img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* light text links to our own social media pages, under the round icons */
.site-footer__social .site-footer__social-links {
  gap: 0.25rem 1.25rem;
  margin-block-start: 0.9rem;
  font-size: 0.85rem;
}

.site-footer__social .site-footer__social-links a {
  display: inline-block;
  width: auto;
  height: auto;
  padding-block: 0.35rem;
  border-radius: 0;
  color: #767676;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__social .site-footer__social-links a:hover,
.site-footer__social .site-footer__social-links a:focus-visible {
  transform: none;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
}

/* free tools: small, light text under the social media */
.site-footer__tools {
  text-align: center;
}

.site-footer__tools-label {
  margin: 0 0 0.3rem;
  color: #767676;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-footer__tools ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.site-footer__tools a {
  display: inline-block;
  padding-block: 0.25rem;
  color: #767676;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__tools a:hover,
.site-footer__tools a:focus-visible {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: min(100%, 36rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-line);
  font-size: 0.8rem;
  color: #555;
}

.site-footer__copy,
.site-footer__powered {
  margin: 0;
}

.site-footer__powered a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer__powered a:hover,
.site-footer__powered a:focus-visible {
  color: var(--red);
}

/* RTL / Arabic */
[dir="rtl"] .site-footer__nav a::after {
  transform-origin: right;
}

[lang="ar"] .site-footer__label {
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- WhatsApp button (fixed, bottom corner) ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--white);  /* white ring keeps the button visible on the red home panel */
  border-radius: 50%;
  background: var(--red);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.wa-float img {
  width: 2rem;
  height: 2rem;
}

/* slow ring that grows and fades, to be noticed (an outline, no shadow) */
.wa-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: wa-ring 3.5s 2s ease-out infinite;
}

.wa-float:hover,
.wa-float:focus-visible {
  border-color: var(--black);
  background: var(--black);
  transform: translateY(-0.25rem) scale(1.06);
}

.wa-float:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

@keyframes wa-ring {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float::after {
    animation: none;
    transition: none;
  }
}

.site-footer__info {
  text-align: center;
}

.site-footer__info-label {
  margin: 0 0 0.3rem;
  color: #767676;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-footer__info ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.site-footer__info a {
  display: inline-block;
  padding-block: 0.25rem;
  color: #767676;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__info a:hover,
.site-footer__info a:focus-visible {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
}
