/* Compact shared footer: related content stays in adjacent RTL-aware columns. */
.site-footer.footer-compact {
  --footer-line: var(--lux-line, #ffffff24);
  --footer-muted: var(--lux-muted, #b9c0b0);
  --watermark-size: 300px;
  --watermark-position: 95% 50%;
  --watermark-opacity: .018;
  padding: 36px var(--gutter) 20px;
}
.footer-inner { max-width: 1600px; margin-inline: auto; }
.site-footer.footer-compact .footer-main {
  display: grid;
  grid-template-columns: minmax(216px, 1.1fr) minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: start;
  padding-block: 0 30px;
}
.footer-main > * { min-width: 0; }
.footer-main > * + * { border-inline-start: 1px solid var(--footer-line); padding-inline-start: clamp(18px, 2.2vw, 36px); margin-inline-start: clamp(18px, 2.2vw, 36px); }
.footer-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer .brand.brand-lockup.footer-brand {
  --brand-logo-size: 216px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}
.site-footer .brand.brand-lockup.footer-brand .brand-logo { width: var(--brand-logo-size); height: var(--brand-logo-size); }
.site-footer .brand.brand-lockup.footer-brand .brand-logo > img { width: 100%; height: 100%; }
.site-footer .footer-brand .brand-copy { width: 100%; max-width: 100%; align-items: center; gap: 5px; }
.site-footer.footer-compact .footer-brand .brand-ar { font-size: 17px; line-height: 1.8; white-space: normal; }
.site-footer.footer-compact .footer-brand .brand-en { display: block; font-size: 10px; line-height: 1.8; white-space: normal; text-align: center; text-align-last: center; letter-spacing: .02em; color: var(--gold-light); }
.site-footer.footer-compact .footer-invitation { display: inline-flex; align-items: center; gap: 16px; margin-top: 18px; padding: 0; font-size: .875rem; line-height: 1.8; min-height: 44px; }
.site-footer.footer-compact .footer-invitation > span { font-size: 20px; }
.site-footer.footer-compact .footer-invitation .ui-arrow { width: 20px; height: 20px; }
.footer-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 36px); }
.footer-link-group { min-width: 0; }
.site-footer :is(.footer-link-group, .footer-contact) h2 { font-size: .875rem; line-height: 1.8; font-weight: 700; letter-spacing: 0; color: var(--gold-light); margin: 0 0 13px; }
.site-footer .footer-link-group > a,
.site-footer .footer-legal a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 34px; padding-block: 5px; font-size: .8125rem; line-height: 1.8; }
.site-footer :is(.footer-link-group, .footer-contact, .footer-legal) a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-footer :is(.footer-link-group, .footer-contact, .footer-legal) a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer .footer-legal { display: grid; gap: 0; padding: 0; }
.site-footer .footer-service-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border: 0; }
.footer-service-group { min-width: 0; border-bottom: 1px solid var(--footer-line); }
.footer-service-group summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding-block: 7px; cursor: pointer; list-style: none; }
.footer-service-group summary::-webkit-details-marker { display: none; }
.footer-service-group summary > span:first-child { font-size: .8125rem; line-height: 1.8; }
.footer-service-group summary > small { color: var(--footer-muted); font-size: .625rem; }
.footer-group-toggle { font: 20px/1 Arial, sans-serif; color: var(--gold-light); margin-inline-start: auto; transition: transform .2s ease; }
.footer-service-group[open] > summary .footer-group-toggle { transform: rotate(45deg); }
.footer-service-links { display: grid; gap: 2px; padding-block: 4px 12px; }
.site-footer .footer-service-links a { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-height: 36px; padding-block: 5px; font-size: .75rem; line-height: 1.8; }
.site-footer .footer-service-links a small { font-size: .625rem; color: var(--footer-muted); }
.site-footer .footer-contact { display: grid; gap: 12px; align-items: start; justify-items: start; }
.site-footer .footer-contact h2 { margin-bottom: 1px; }
.site-footer .footer-contact > div { display: grid; gap: 0; max-width: 100%; }
.site-footer .footer-contact > div > span { font-size: .6875rem; color: var(--footer-muted); }
.site-footer .footer-contact a { display: inline-flex; min-height: 36px; align-items: center; max-width: 100%; font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
.site-footer .footer-social { display: block; width: 100%; padding: 8px 0 0; border: 0; }
.site-footer .footer-social .social-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 4px; margin: 0; }
.site-footer .footer-social .social-link { min-width: 28px; min-height: 40px; gap: 0; }
.site-footer .footer-social .social-icon { width: 28px; height: 32px; border: 0; background: transparent; border-radius: 0; }
.site-footer .footer-social .social-icon svg { width: 21px; height: 21px; }
.site-footer .footer-social :is(.social-label, .social-corner) { display: none; }
.site-footer .footer-bottom { display: block; padding-top: 18px; border-top: 1px solid var(--footer-line); color: var(--footer-muted); }
.footer-colophon { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 0; font-size: .6875rem; line-height: 1.9; }
.footer-signature { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-footer .footer-colophon .latin { width: auto; margin: 0; font-size: .5rem; letter-spacing: .12em; }
.site-footer .footer-credit { position: static; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--lux-gold-bright, var(--gold-light)); text-decoration: none; white-space: nowrap; }
.footer-credit-label { font: 400 10px/1.6 Arial, sans-serif; letter-spacing: .065em; }
.footer-credit-logo { display: block; width: 94px; height: 32px; flex: 0 0 94px; }
.footer-credit-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-footer .footer-credit:hover .footer-credit-label { text-decoration: underline; text-underline-offset: 4px; }
/* Match the approved credit to the gold icons without changing its artwork. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .footer-credit-logo { background-color: currentColor; -webkit-mask: url("../media/brand/jodfay-solutions-gold.febe12797ede.png") center / contain no-repeat; mask: url("../media/brand/jodfay-solutions-gold.febe12797ede.png") center / contain no-repeat; }
  .footer-credit-logo img { visibility: hidden; }
}
.footer-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-footer :is(a, summary):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 2px; }
body.footer-in-view:not(.modal-open) :is(.auction-launcher, .digital-launcher, .assistant-launcher, .whatsapp-launcher):not(:focus) { visibility: hidden; pointer-events: none; }

/* Zawaya corners frame the supplied marks; brand artwork stays untouched. */
.footer-payments {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 28px;
  padding-block: 24px;
  border-bottom: 1px solid var(--footer-line);
}
.footer-payments-heading { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-payments { border-bottom: 0; }
.footer-payments-symbol { width: 32px; height: 32px; flex: 0 0 32px; stroke: var(--gold-light); stroke-width: 1.2; }
.site-footer .footer-payments h2 { font-size: 1rem; line-height: 1.9; letter-spacing: 0; color: var(--paper); }
.payment-marks { display: grid; grid-template-columns: repeat(10, minmax(0, 88px)); justify-content: end; gap: 8px; list-style: none; padding: 0; margin: 0; }
.payment-mark {
  --payment-cut: 8px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 44px;
  padding: 9px 10px;
  background: var(--gold-light);
  clip-path: polygon(var(--payment-cut) 0, 100% 0, 100% calc(100% - var(--payment-cut)), calc(100% - var(--payment-cut)) 100%, 0 100%, 0 var(--payment-cut));
}
.payment-mark::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: #fff; clip-path: inherit; }
.payment-mark::after { content: ""; position: absolute; inset-inline-end: 4px; bottom: 4px; width: 3px; height: 3px; border-inline-end: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.payment-mark img { display: block; width: 100%; max-width: 64px; height: 24px; object-fit: contain; }


@media (max-width: 1023px) {
  .site-footer.footer-compact .footer-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px 0; }
  .footer-identity { grid-column: 1 / -1; }
  .site-footer .brand.brand-lockup.footer-brand { --brand-logo-size: 152px; gap: 18px; }
  .footer-identity > .footer-invitation { margin-top: 10px; }
  .footer-main > .footer-navigation { border: 0; padding: 0; margin: 0; }
  .footer-payments { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-signature { gap: 15px; }
}
@media (max-width: 760px) {
  .site-footer.footer-compact { padding: 28px var(--gutter) 18px; }
  .site-footer.footer-compact .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; padding-bottom: 24px; }
  .footer-main > * + * { margin-inline-start: 0; padding-inline-start: 0; border: 0; }
  .footer-identity { grid-column: 1 / -1; }
  .site-footer .brand.brand-lockup.footer-brand { --brand-logo-size: 136px; gap: 16px; }
  .site-footer .footer-brand .brand-ar { font-size: 17px; }
  .site-footer .footer-brand .brand-en { font-size: 10px; }
  .site-footer .footer-main > .footer-navigation { grid-column: 1 / -1; gap: 22px; padding-top: 20px; border-top: 1px solid var(--footer-line); }
  .site-footer .footer-main > .footer-policies { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--footer-line); }
  .site-footer .footer-legal { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .site-footer :is(.footer-link-group, .footer-contact) h2 { font-size: .875rem; margin-bottom: 9px; }
  .site-footer .footer-link-group > a, .site-footer .footer-legal a { min-height: 44px; font-size: .8125rem; }
  .footer-service-group summary { min-height: 48px; }
  .site-footer .footer-service-links a { min-height: 44px; }
  .site-footer .footer-main > .footer-contact { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; padding-top: 20px; border-top: 1px solid var(--footer-line); }
  .site-footer .footer-contact > h2, .site-footer .footer-social { grid-column: 1 / -1; }
  .site-footer .footer-contact a { min-height: 44px; font-size: .8125rem; }
  .site-footer .footer-social { padding-top: 4px; }
  .site-footer .footer-social .social-links { gap: 9px; }
  .site-footer .footer-social .social-link { min-width: 44px; min-height: 44px; }
  .site-footer .footer-social .social-icon { width: 44px; height: 44px; }
  .site-footer .footer-social .social-icon svg { width: 23px; height: 23px; }
  .footer-colophon { flex-direction: column; align-items: flex-start; gap: 10px; font-size: .625rem; }
  .footer-signature { width: 100%; justify-content: space-between; gap: 14px; }
  .site-footer .footer-colophon .latin { font-size: 7px; letter-spacing: .08em; }
  .footer-credit-label { font-size: 9px; }
  .footer-credit-logo { width: 80px; height: 28px; flex-basis: 80px; }
  .footer-payments { padding-block: 20px; gap: 16px; }
  .footer-payments-heading { justify-content: center; gap: 10px; }
  .footer-payments-symbol { width: 28px; height: 28px; flex-basis: 28px; }
  .site-footer .footer-payments h2 { font-size: .9375rem; }
  .payment-marks { grid-template-columns: repeat(5, minmax(0, 68px)); justify-content: center; gap: 8px; }
  .payment-mark { height: 40px; padding: 8px 6px; }
  .payment-mark img { max-width: 52px; height: 22px; }
}
@media (max-width: 350px) {
  .footer-navigation, .site-footer .footer-legal { column-gap: 18px; }
  .footer-service-group summary { gap: 5px; }
  .footer-service-group summary > small { display: none; }
  .footer-signature { flex-wrap: wrap; gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-group-toggle, .site-footer .footer-invitation > span { transition: none; }
  .site-footer .footer-invitation:hover > span { transform: none; }
}
