/* Al Madar Engineering – base: tokens, type, header, footer */
:root {
  --graphite: #22272B;
  --steel: #3A4249;
  --concrete: #E9EBEC;
  --grid: #D3D8DC;
  --yellow: #F2B705;
  --blue: #1F4E79;
  --ink: #1B1F22;
  --muted: #5C666E;
  --font: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: .96rem; line-height: 1.85; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.45; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -50px; right: 1rem; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* header: dark strip, nav separated by vertical rules */
.hdr { background: var(--graphite); color: #fff; }
.hdr__row { display: flex; align-items: stretch; justify-content: space-between; min-height: 72px; padding-inline: 1.25rem; max-width: 1440px; margin-inline: auto; }
.hdr__brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.hdr__brand svg { width: 40px; height: 40px; }
.hdr__brand span { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__brand small { font-weight: 400; font-size: .64rem; color: #AEB6BD; letter-spacing: .02em; }
.hdr__nav { display: flex; }
.hdr__nav a { display: flex; align-items: center; padding: 0 1.2rem; color: #DDE2E6; text-decoration: none; font-size: .9rem; border-inline-start: 1px solid rgba(255,255,255,.12); }
.hdr__nav a:hover { color: #fff; background: var(--steel); }
.hdr__nav a:last-child { background: var(--yellow); color: var(--ink); font-weight: 700; }
.hdr__toggle { display: none; font: inherit; font-size: .85rem; color: var(--ink); background: var(--yellow); border: 0; padding: 0 1rem; cursor: pointer; align-self: center; min-height: 44px; }

/* footer shaped like a drawing title block */
.ftr { background: var(--graphite); color: #AEB6BD; padding: 2.5rem 0 1.5rem; }
.ftr__block { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #4A535B; }
.ftr__block div { padding: .9rem 1rem; border-inline-start: 1px solid #4A535B; display: flex; flex-direction: column; }
.ftr__block div:first-child { border-inline-start: 0; }
.ftr__block span { font-size: .72rem; color: #8A949C; }
.ftr__block strong { color: #fff; font-weight: 500; font-size: .92rem; overflow-wrap: anywhere; }
.ftr__block strong[dir="ltr"] { text-align: right; }
.ftr__legal { font-size: .78rem; margin-top: 1rem; margin-bottom: 0; }

@media (max-width: 1000px) {
  .hdr__row { position: relative; }
  .hdr__toggle { display: block; }
  .hdr__nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--graphite); z-index: 40; border-top: 1px solid #4A535B; }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav a { padding: 1rem 1.25rem; border-inline-start: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ftr__block { grid-template-columns: 1fr 1fr; }
  .ftr__block div:nth-child(3) { border-inline-start: 0; }
  .ftr__block div:nth-child(n+3) { border-top: 1px solid #4A535B; }
}
@media (max-width: 520px) {
  .hdr__brand small { display: none; }
  .ftr__block { grid-template-columns: 1fr; }
  .ftr__block div { border-inline-start: 0; }
  .ftr__block div + div { border-top: 1px solid #4A535B; }
}
