/* AL-Abdaa AL-Mstkal Co. — corporate site
   Light-only, no external assets, logical properties throughout so RTL works for free. */

:root {
  --ink: #0b1a2b;
  --body: #45596d;
  --muted: #6b7c8f;
  --line: #dde5ec;
  --line-soft: #edf2f6;
  --bg: #ffffff;
  --soft: #f5f8fa;
  --accent: #0d5c7a;
  --accent-dark: #084456;
  --accent-tint: #e8f2f6;
  --amber: #b5761f;
  --radius: 10px;
  --wrap: 1120px;
  --font-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Arial Unicode MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.85; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Registration numbers, plot numbers and phone numbers embedded in Arabic prose.
   Isolate them from the bidi algorithm and never let them break across lines —
   a C.R. number split mid-string reads as a different number. */
bdi {
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* ---------- placeholders you still need to fill ---------- */
.fill {
  background: #fff4c9;
  border-bottom: 2px dashed #d8a72a;
  color: #7a5a00;
  padding: 0 4px;
  font-style: normal;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  font-family: var(--font-latin);
}
.brand-name {
  color: var(--ink); font-weight: 660; font-size: 1rem;
  letter-spacing: -0.01em; line-height: 1.2;
}
.brand-sub { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .brand-sub { letter-spacing: 0; text-transform: none; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--body); font-size: .95rem; font-weight: 520; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: .88rem; font-weight: 560;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(13, 92, 122, .10), transparent 62%),
    linear-gradient(180deg, var(--soft), #fff);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(56px, 9vw, 104px);
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 13px; border-radius: 999px;
  margin-bottom: 22px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.hero-lede { font-size: 1.16rem; max-width: 58ch; color: var(--body); }
.hero-legal {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 66ch;
  font-size: .93rem; color: var(--muted);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .96rem; font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
section { padding-block: clamp(52px, 7.5vw, 88px); }
section + section { border-top: 1px solid var(--line-soft); }
.section-soft { background: var(--soft); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--body); margin-bottom: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card-num {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
  font-family: var(--font-latin);
}

/* ---------- brands ---------- */
.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.brand-card .name {
  font-family: var(--font-latin);
  font-size: 1.22rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.brand-card .meta { font-size: .82rem; color: var(--muted); margin: 0; }
.brand-card.is-flagship { border-color: var(--accent); background: var(--accent-tint); }
.brand-card.is-flagship .name { color: var(--accent-dark); }

.callout {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- company registry table ---------- */
.registry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.registry-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.registry-row:last-child { border-bottom: 0; }
.registry-row:nth-child(odd) { background: #fbfdfe; }
.registry-key {
  color: var(--muted);
  font-size: .82rem; font-weight: 620; letter-spacing: .07em; text-transform: uppercase;
  padding-top: 3px;
}
html[lang="ar"] .registry-key { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.registry-val { color: var(--ink); font-weight: 520; }
.registry-val.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .96rem; letter-spacing: .02em;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-card .label {
  font-size: .78rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
html[lang="ar"] .contact-card .label { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.contact-card .value { color: var(--ink); font-size: 1.02rem; font-weight: 560; line-height: 1.5; }
.contact-card .value a { font-weight: 560; }
.contact-card .value .intl {
  display: block; margin-top: 4px;
  font-size: .85rem; font-weight: 500; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9fb3c6;
  padding-block: 46px 34px;
  font-size: .9rem;
}
.site-footer a { color: #cfdce7; }

/* Full legal identity repeats on every page — a Meta reviewer landing on Terms
   should see the same name, address and phone as on the home page. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.25fr 1fr .85fr;
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-col h4 {
  color: #fff;
  font-size: .76rem; font-weight: 650;
  letter-spacing: .11em; text-transform: uppercase;
  margin: 0 0 13px;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: .89rem; }
.footer-col p { margin: 0 0 .8em; line-height: 1.65; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-name { color: #cfdce7; font-weight: 560; }

.footer-reg { margin: 15px 0 0; }
.footer-reg > div { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.footer-reg dt { margin: 0; color: #7b91a6; }
.footer-reg dd {
  margin: 0; color: #cfdce7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-bottom { padding-top: 24px; font-size: .85rem; color: #7b91a6; }

/* ---------- legal pages ---------- */
.legal-page { padding-block: clamp(44px, 6vw, 72px); }
.legal-body { max-width: 76ch; }
.legal-body h2 { margin-top: 2em; font-size: 1.32rem; }
.legal-body h2:first-of-type { margin-top: 1em; }
.legal-body ul { padding-inline-start: 1.3em; margin-bottom: 1.2em; }
.legal-body li { margin-bottom: .5em; }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.4em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .registry-row { grid-template-columns: 1fr; gap: 5px; padding: 15px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; inset-inline: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px 24px;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: 8px;
    background: #fff; cursor: pointer; color: var(--ink);
    font-size: 1.1rem; line-height: 1;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-sub { display: none; }
}
