/* Mobile / tablet layout fixes for the exported Readdy build (desktop-only grids, no mobile menu). */
#elm-burger {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(201,169,97,.8); background: rgba(255,255,255,.12); color: #C9A961; font-size: 24px; cursor: pointer; flex: 0 0 auto;
}
@media (max-width: 1023px) {
  #elm-burger { display: flex; }
  nav { z-index: 55; }
  nav:not(.fixed) { position: relative; }
  nav > div.max-w-7xl { position: relative; flex-wrap: nowrap; }
  nav > div.max-w-7xl > :nth-child(2) { display: none !important; }
  nav > div.max-w-7xl > a:first-child span { font-size: 1.15rem; white-space: nowrap; }
  
  html.elm-open nav > div.max-w-7xl > :nth-child(2) {
    display: flex !important; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0 !important;
    background: #fff; padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.15);
    max-height: calc(100vh - 70px); overflow-y: auto; z-index: 70;
  }
  html.elm-open nav > div.max-w-7xl > :nth-child(2) > * {
    color: #2B2B2B !important; padding: 13px 4px !important; border-bottom: 1px solid #eee; text-align: start; font-size: 15px !important;
  }
  html.elm-open nav > div.max-w-7xl > :nth-child(2) > a:last-child {
    margin-top: 12px; border: 0; text-align: center; background: #C9A961; color: #fff !important; border-radius: 10px;
  }
  html.elm-open nav > div.max-w-7xl > :nth-child(2) button { border-color: #C9A961 !important; color: #C9A961 !important; }
  html.elm-open #elt-bar { display: none !important; }
}


@media (max-width: 767px) {
  .grid-cols-3:not([class*="md:grid-cols"]):not([class*="sm:grid-cols"]),
  .grid-cols-2:not([class*="md:grid-cols"]):not([class*="sm:grid-cols"]) { grid-template-columns: minmax(0, 1fr) !important; }
  .grid-cols-4:not([class*="md:grid-cols"]):not([class*="sm:grid-cols"]),
  .grid-cols-5:not([class*="md:grid-cols"]):not([class*="sm:grid-cols"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .col-span-2:not([class*="md:col-span"]), .col-span-3:not([class*="md:col-span"]) { grid-column: auto !important; }
  .gap-16, .gap-12, .gap-10 { gap: 1.5rem !important; }
  .text-9xl, .text-8xl, .text-7xl { font-size: 2.75rem !important; line-height: 1.12 !important; }
  .text-6xl { font-size: 2.35rem !important; line-height: 1.15 !important; }
  .text-5xl { font-size: 2rem !important; line-height: 1.2 !important; }
  .text-4xl { font-size: 1.65rem !important; }
  .p-16, .p-12 { padding: 1.75rem !important; }
  .p-10 { padding: 1.5rem !important; }
  .px-10, .px-12 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .py-24, .py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .h-\[600px\], .h-\[700px\] { height: 380px !important; }
  .flex.items-center.gap-8:not(nav *), .flex.gap-12, .flex.gap-16 { flex-wrap: wrap; }
  body { overflow-x: hidden; }
}

/* ---- mobile polish ---- */
@media (max-width: 767px) {
  a.whitespace-nowrap, button.whitespace-nowrap { white-space: normal !important; text-align: center; }
  footer .grid > :first-child { grid-column: 1 / -1 !important; }
  footer .grid { row-gap: 2rem !important; }
  .rounded-3xl { border-radius: 1.25rem !important; }
  section { scroll-margin-top: 120px; }
  html.elm-bar-on body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.elm-bar-on .fixed.bottom-6 { display: none !important; }
  #elm-mbar { display: grid; }
}
#elm-mbar {
  display: none; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; padding: 6px; border-radius: 18px;
  background: rgba(20,18,15,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 1px solid rgba(201,169,97,.5);
}
#elm-mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 6px; overflow: hidden; border-radius: 13px; color: #fff; text-decoration: none;
  font: 600 13px/1 "Noto Kufi Arabic", "Montserrat", system-ui, sans-serif; }
#elm-mbar a svg { flex: 0 0 auto; }
#elm-mbar a span { text-align: center; line-height: 1.15; }
#elm-mbar .m-sk { padding: 0 8px; }
#elm-mbar .m-call { background: rgba(255,255,255,.08); }
#elm-mbar .m-wa { background: #25D366; }
#elm-mbar .m-sk { background: linear-gradient(135deg, #e2c47c, #C9A961 55%, #a8873f); color: #14120f; }
html.elm-open #elm-mbar { display: none !important; }

@media (max-width: 767px) { #elm-mbar { display: grid; } }

/* placeholder social link (no company LinkedIn page yet) */
a[href="https://linkedin.com"], a[href="https://www.linkedin.com"] { display: none !important; }

/* ---- Arabic typography: Noto Kufi Arabic ---- */
[dir=rtl], [dir=rtl] body, [dir=rtl] .font-sans, [dir=rtl] .font-serif { font-family: "Noto Kufi Arabic", "Cairo", system-ui, sans-serif !important; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4 { font-family: "Noto Kufi Arabic", system-ui, sans-serif !important; letter-spacing: 0 !important; font-weight: 700; }
[dir=rtl] p, [dir=rtl] li { line-height: 1.9; }
[dir=rtl] h1, [dir=rtl] h2 { line-height: 1.35; }

/* Arabic letters must stay joined: no letter-spacing on Arabic text */
[dir=rtl] [class*="tracking-"] { letter-spacing: 0 !important; }

/* brand name stays on one line in Latin font */
nav > div.max-w-7xl > a:first-child span { white-space: nowrap; font-family: "Montserrat", system-ui, sans-serif !important; }
@media (min-width: 1024px) and (max-width: 1279px) { nav > div.max-w-7xl > a:first-child span { font-size: 1.15rem !important; } nav > div.max-w-7xl { gap: 14px; padding-left: 16px !important; padding-right: 16px !important; } nav > div.max-w-7xl > :nth-child(2) { gap: 14px !important; } nav > div.max-w-7xl > :nth-child(2) > * { font-size: 14px !important; } nav > div.max-w-7xl a.px-6, nav > div.max-w-7xl button.px-6 { padding-left: 14px !important; padding-right: 14px !important; } }

/* company name lockup: EASTERN LANDMARKS + "for Major Projects SPC" line */
nav > div.max-w-7xl > a:first-child span, footer .text-2xl.font-bold { display: inline-block; line-height: 1.05; }
nav > div.max-w-7xl > a:first-child span::after, footer .text-2xl.font-bold.mb-4::after {
  content: "FOR MAJOR PROJECTS SPC"; display: block; margin-top: 5px; font: 600 10.5px/1.2 "Montserrat", system-ui, sans-serif; letter-spacing: 2.6px; opacity: .9; }
html[lang^=ar] nav > div.max-w-7xl > a:first-child span::after, html[lang^=ar] footer .text-2xl.font-bold.mb-4::after {
  content: "المعالم الشرقية للمشاريع الكبرى ش ش و"; font: 600 12.5px/1.3 "Noto Kufi Arabic", "Cairo", system-ui, sans-serif; letter-spacing: 0; }
footer .text-2xl.font-bold.mb-4::after { font-size: 12px; margin-top: 8px; }
