/* =========================================================
   Badr Al Safaa Medical Centre — Site footer (all pages)
   Built from Figma file "Badr-Al-Safaa", frame "DesktopFooter" (698:42972)
   Loads after style.css (and any page CSS). The same footer markup is used
   on every page: brand · working hours · campus contact · legal bar.
   ========================================================= */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }

.site-footer.site-footer--v2 { position: relative; background: #121110; border-top: 1px solid #332b24; padding: 64px 0 0; font-family: var(--f-sans); }
.site-footer--v2::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(1024px, 100%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.4), rgba(212,175,55,0));
}
.site-footer--v2 .footer-grid {
  display: grid; grid-template-columns: 465px 260px 363px; grid-template-rows: auto; justify-content: space-between;
  gap: 48px; min-height: 262px; padding-bottom: 48px; border-bottom: 0;
}
.site-footer--v2 .footer-brand, .site-footer--v2 .footer-col { grid-column: auto; }

/* Brand column */
.site-footer--v2 .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 23px; padding-right: 24px; }
.site-footer--v2 .footer-brand__logo img { width: 204px; height: 60px; }
.site-footer--v2 .footer-brand__text { max-width: 388px; padding-right: 0; font-size: 14px; line-height: 22.75px; color: #877f75; }
.site-footer--v2 .footer-brand__nhra {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 6px;
  background: rgba(38,36,34,0.8); border: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; line-height: 15px; color: rgba(255,255,255,0.8); white-space: nowrap;
}
.site-footer--v2 .footer-brand__nhra img { width: 14px; height: 14px; }
.site-footer--v2 .socials { display: flex; gap: 8px; padding-top: 4px; }
.site-footer--v2 .socials a { width: 32px; height: 32px; border-radius: 8px; background: #262422; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.site-footer--v2 .socials a:hover { background: #34302c; }
.site-footer--v2 .socials img { width: 16px; height: 16px; }

/* Column titles */
.site-footer--v2 .footer-col { display: flex; flex-direction: column; gap: 16px; }
.site-footer--v2 .footer-col__title { font-family: var(--f-sans); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; }

/* Working hours */
.site-footer--v2 .hours { display: flex; flex-direction: column; gap: 12px; }
.site-footer--v2 .hours__row { display: flex; flex-direction: column; padding-bottom: 0; border-bottom: 0; }
.site-footer--v2 .hours__row + .hours__row { padding-top: 10px; border-top: 1px solid #26211c; }
.site-footer--v2 .hours__row--last { gap: 2px; }
.site-footer--v2 .hours__label { font-weight: 400; font-size: 12px; line-height: 16px; color: #877f75; }
.site-footer--v2 .hours__time { padding-top: 0 !important; font-weight: 600; font-size: 12px; line-height: 16px; color: #e6ca65; }
.site-footer--v2 .hours__open { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; line-height: 16px; color: #34d399; }
.site-footer--v2 .hours__open i { width: 4px; height: 4px; border-radius: 50%; background: #34d399; }

/* Campus contact */
.site-footer--v2 .contact-list { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.site-footer--v2 .contact-list li { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 16px; color: #877f75; }
.site-footer--v2 .contact-list li.contact-list__address { align-items: flex-start; line-height: 16.5px; padding-bottom: 14px; }
.site-footer--v2 .contact-list__address img { margin-top: 2px; }
.site-footer--v2 .contact-list img { width: 14px; height: 14px; flex-shrink: 0; }
.site-footer--v2 .contact-list a { color: inherit; transition: color .2s; }
.site-footer--v2 .contact-list a:hover { color: #e6ca65; }

/* Legal bar */
.site-footer--v2 .footer-legal { background: #0d0c0b; border-top: 1px solid #26211c; }
.site-footer--v2 .footer-legal__inner { min-height: 68px; padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer--v2 .footer-bottom__copy { width: auto; padding-right: 0; font-size: 12px; line-height: 19.5px; color: #877f75; white-space: nowrap; }
.site-footer--v2 .footer-bottom__links { display: flex; align-items: center; gap: 20px; font-size: 12px; line-height: 16px; }
.site-footer--v2 .footer-bottom__links a { color: #877f75; }
.site-footer--v2 .footer-bottom__links a:hover { color: #e6ca65; }
.site-footer--v2 .footer-bottom__links span { color: #3d362e; }

/* Floating WhatsApp button (all pages) */
.wa-float {
  position: fixed; right: 38px; bottom: 24px; z-index: 60; width: 64px; height: 64px; border-radius: 9999px;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 0 rgba(255,255,255,0.2); transition: transform .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; opacity: .4; animation: wa-ping 2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }
.wa-float img { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-3px); }
@keyframes wa-ping { 75%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
body .to-top { right: 48px; bottom: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .site-footer--v2 .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer--v2 .footer-legal__inner { padding: 16px 0; flex-wrap: wrap; }
  .site-footer--v2 .footer-bottom__copy { white-space: normal; }
}
@media (max-width: 960px) {
  .site-footer--v2 .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer--v2 .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer.site-footer--v2 { padding-top: 40px; }
  .site-footer--v2 .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-bottom: 0; }
  .site-footer--v2 .footer-brand { gap: 16px; padding-right: 0; padding-bottom: 28px; }
  .site-footer--v2 .footer-brand__logo img { width: 129px; height: 38px; }
  .site-footer--v2 .footer-brand__text { font-size: 14px; line-height: 19.5px; }
  .site-footer--v2 .footer-brand__nhra { font-size: 10px; padding: 4px 10px; }
  .site-footer--v2 .footer-brand__text br { display: none; }
  .site-footer--v2 .footer-col { gap: 8px; padding: 20px 0 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .site-footer--v2 .footer-col__title { font-size: 11px; }
  .site-footer--v2 .hours { gap: 6px; }
  .site-footer--v2 .hours__row, .site-footer--v2 .hours__row--last { flex-direction: row; justify-content: space-between; gap: 12px; }
  .site-footer--v2 .hours__row + .hours__row { padding-top: 0; border-top: 0; }
  .site-footer--v2 .hours__time { font-weight: 500; color: var(--gold); }
  .site-footer--v2 .hours__open i { display: none; }
  .site-footer--v2 .contact-list { gap: 8px; }
  .site-footer--v2 .contact-list li.contact-list__address { padding-bottom: 0; }
  .site-footer--v2 .footer-legal { background: transparent; border-top: 0; }
  .site-footer--v2 .footer-legal__inner { flex-direction: column; justify-content: center; gap: 4px; padding: 20px 0 32px; border-top: 1px solid rgba(255,255,255,0.1); }
  .site-footer--v2 .footer-bottom__copy { font-size: 10px; line-height: 15px; color: #9ca3af; text-align: center; }
  .site-footer--v2 .footer-bottom__links { gap: 12px; font-size: 9.5px; flex-wrap: wrap; justify-content: center; }
  .site-footer--v2 .footer-bottom__links a, .site-footer--v2 .footer-bottom__links span { color: #9ca3af; }
  .wa-float { right: 20px; bottom: 20px; width: 53px; height: 53px; }
  .wa-float img { width: 26px; height: 26px; }
  body .to-top { right: 24px; bottom: 84px; }
}

/* Arabic (right-to-left) */
html[dir="rtl"] .site-footer--v2 .footer-pay span { transform: scaleX(-1); }
html[dir="rtl"] .site-footer--v2 .footer-pay:hover span { transform: scaleX(-1) translateX(2px); }
