/* Contact and footer have independent rules so legacy RTL overrides cannot
   reintroduce desktop columns on small screens. */
section[id], main[id] { scroll-margin-top: 100px; }

.contact-section {
  background: var(--paper-2);
  padding-block: clamp(64px, 7vw, 112px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  text-align: start;
}

.contact-layout > * { min-width: 0; }

/* Isolate the number/address inside bdi, not the entire Arabic link row. */
html[dir="rtl"] .contact-section a,
html[dir="rtl"] .site-footer a {
  direction: rtl;
  unicode-bidi: normal;
}

.contact-copy h2 {
  max-width: 11em;
  margin: 20px 0 24px;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.025em;
  text-wrap: balance;
}

html[lang="ar"] .contact-copy h2 {
  line-height: 1.3;
  letter-spacing: 0;
}

.contact-copy p {
  max-width: 34em;
  margin: 0;
  color: #50514b;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: background .2s ease;
}

.contact-button:hover { background: var(--ink-soft); }
.contact-channels { border-top: 1px solid var(--line); }

.contact-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 8px 16px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}

.channel-label { grid-column: 1; font-size: .875rem; color: #62635b; }
.channel-value { grid-column: 1; min-width: 0; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.55; }
.channel-value bdi { overflow-wrap: anywhere; }
.channel-arrow { grid-column: 2; grid-row: 1 / 3; color: var(--bronze-deep); font-size: 24px; }
html[dir="rtl"] .channel-arrow { transform: scaleX(-1); }
.contact-location .channel-value { font-size: 1rem; }
a.contact-channel:hover { color: var(--bronze-deep); }

.site-footer {
  background: #10110f;
  color: var(--paper);
  padding-block: clamp(48px, 5vw, 72px) 24px;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .65fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(24px, 3vw, 48px);
  align-items: start;
  text-align: start;
}

.footer-layout > * { min-width: 0; }

/* The approved SVG remains intact. Its viewBox is 2172 x 724 and its ink
   bounds are x=150.48, y=146.5, width=1879.96, height=387.75.
   Position the whole image to align its visible edge with the text below.
   No crop, filter, recolouring, redraw or non-uniform scaling is applied. */
.footer-logo {
  position: relative;
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 2172 / 387.75;
  margin-bottom: 22px;
}

.footer-logo .brand-lockup {
  position: absolute;
  inset-block-start: -37.782076%;
  inset-inline-start: -6.928177%;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 1;
}

html[dir="rtl"] .footer-logo .brand-lockup { inset-inline-start: -6.517495%; }
.footer-summary { max-width: 30em; margin: 0 0 14px; font-size: .9375rem; line-height: 1.75; color: #c3c3b9; }
.footer-direct { display: flex; flex-direction: column; align-items: flex-start; }
.footer-direct a { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; font-size: .9375rem; }
.footer-direct bdi { overflow-wrap: anywhere; }

.footer-links { display: flex; flex-direction: column; align-items: stretch; }
.site-footer h3 { margin: 0 0 20px; font-size: .875rem; font-weight: 500; line-height: 1.6; color: #d0b18b; }
.footer-links a, .footer-documents a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: .9375rem; line-height: 1.6; color: #deded4; overflow-wrap: anywhere; }
.footer-documents { display: flex; flex-direction: column; }
.footer-documents a { flex-wrap: wrap; column-gap: 5px; }
.footer-documents a span { white-space: nowrap; }
.footer-legal p { margin: 16px 0 0; font-size: .875rem; line-height: 1.8; color: #aeb0a5; }
.site-footer a:hover { color: #d0b18b; }
.contact-section a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 5px; }

.footer-baseline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  color: #aeb0a5;
  font-size: .8125rem;
  line-height: 1.75;
  text-align: start;
}

@media (max-width: 1180px) {
  .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-copy h2 { max-width: 14em; }
  .contact-copy p { max-width: 42em; }
}

@media (max-width: 720px) {
  section[id], main[id] { scroll-margin-top: 84px; }
  .contact-section { padding-block: 64px; }
  .contact-copy h2 { font-size: clamp(32px, 8.4vw, 46px); margin: 16px 0 18px; }
  .contact-copy p { font-size: 1rem; line-height: 1.8; }
  .contact-button { width: 100%; margin-top: 24px; }
  .contact-channel { padding-block: 22px; }
  .channel-value { font-size: clamp(16px, 4.65vw, 20px); }
  .site-footer { padding-block: 48px 24px; }
  .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .footer-company, .footer-legal { grid-column: 1 / -1; }
  .footer-company { padding-bottom: 28px; }
  .footer-logo { width: min(100%, 340px); margin-bottom: 20px; }
  .footer-summary { max-width: 100%; }
  .footer-direct a { min-height: 44px; }
  .footer-links { padding-block: 28px; border-top: 1px solid var(--line-light); }
  .site-footer h3 { margin-bottom: 12px; }
  .footer-links a { font-size: .875rem; }
  .footer-legal { padding-top: 28px; border-top: 1px solid var(--line-light); }
  .footer-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .footer-documents a { font-size: .875rem; }
  .footer-legal p { margin-top: 16px; max-width: 100%; }
  .footer-baseline { margin-top: 28px; flex-direction: column; gap: 8px; }
}

@media (max-width: 360px) {
  .footer-layout, .footer-documents { column-gap: 16px; }
}
