/* ============================================================================
   ALBAZ Engineering — albazkw.com
   Direction C, "Arabic First". Built to Brand Guidelines V3.0:
   · Off-white 60 · Black 25 · Blue 10 · Bone/Stone 5
   · Arabic (Cairo) leads; Latin (Space Grotesk) supports, in letter-spaced caps
   · Square corners everywhere; the pill chip is the only rounded element
   · No shadows, no gradients, no icons. The blue square is the only ornament
   · Blue marks one thing per screen: the headline's full stop or the main action
   · The logo sits on off-white only. Photography is natural, never tinted
   Generated pages come from tools/build.js; edit copy there, styles here.
   ============================================================================ */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --offwhite: #f6f5f2;
  --panel: #fcfcfb;
  --black: #111111;
  --blue: #126aa8;
  --blue-hover: #0f5a8e;
  --blue-active: #0c4b77;
  --bone: #eceae5;
  --stone: #55534e;
  --hairline: #e4e2dc;
  --control: #8a877f;        /* form control borders: 3:1 on off-white */
  --on-dark-muted: #a9a59c;
  --dark-hairline: #3a3936;
  --max: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --latin: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--black);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang='ar'] body { font-family: var(--arabic); line-height: 1.75; }
html[lang='en'] body { font-family: var(--latin); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease); }
a:hover { color: var(--blue); }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.container { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* The two voices. */
.lat { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.ara { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; }
.label { font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); direction: ltr; unicode-bidi: isolate; }
.note { font-size: 15px; font-weight: 600; color: var(--stone); }
.muted { color: var(--stone); }

.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 50; background: var(--black); color: var(--offwhite); padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 16px; color: var(--offwhite); }

/* Buttons: square. Blue for the one main action, ink for the rest. */
.btn { display: inline-block; padding: 13px 30px; font: inherit; font-size: 18px; font-weight: 700; line-height: 1.5; border: 0; border-radius: 0; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
html[lang='en'] .btn { font-size: 16px; font-weight: 600; padding: 16px 28px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-primary:active { background: var(--blue-active); }
.btn-ink { background: var(--black); color: var(--offwhite); }
.btn-ink:hover { background: var(--blue); color: #fff; }
.link-under { display: inline-block; font-size: 18px; font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--black); }
html[lang='en'] .link-under { font-size: 16px; font-weight: 600; }
.link-under:hover { border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Bone chips: service words. Never blue, never outlined. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-block; background: var(--bone); border-radius: 999px; padding: 6px 20px; font-size: 16px; font-weight: 600; }
html[lang='en'] .chip { font-size: 14px; font-weight: 500; padding: 8px 18px; }
a.chip:hover { color: var(--blue); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--offwhite); border-bottom: 1px solid var(--hairline); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-block: 14px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; font-size: 16px; font-weight: 600; }
html[lang='en'] .nav { font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 0; }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--black); }
.nav .lang { font-size: 15px; font-weight: 500; }
html[lang='en'] .nav .lang { font-weight: 600; }
.nav .btn { padding: 10px 22px; font-size: 16px; }
html[lang='en'] .nav .btn { padding: 12px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--black); border-radius: 0; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 700; color: var(--black); cursor: pointer; }

/* Hero */
.hero { padding-block: clamp(56px, 7vw, 96px) clamp(56px, 6vw, 88px); }
.hero > .container { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.display { font-size: clamp(38px, 9.2vw, 132px); font-weight: 800; line-height: 1.14; }
html[lang='en'] .display { font-size: clamp(34px, 8.4vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.display.sm { font-size: clamp(38px, 6.2vw, 88px); }
html[lang='en'] .display.sm { font-size: clamp(36px, 5.8vw, 82px); line-height: 1.03; }
.sq { display: inline-block; width: 0.13em; height: 0.13em; background: var(--blue); margin-inline-start: 0.08em; }
.hero-foot { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; border-top: 1px solid var(--black); padding-top: 28px; }
.hero-foot > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lead { max-width: 46ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--stone); }
html[lang='en'] .lead { line-height: 1.55; }

.photo-band img { width: 100%; height: clamp(240px, 32vw, 460px); object-fit: cover; }

/* Sections and their ruled headers: "٠١ — خدماتنا" with a black rule beneath. */
.section { padding-block: clamp(64px, 7vw, 96px); }
.section.tight { padding-top: 0; }
.rule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--black); }
.rule-head h2 { font-size: 18px; font-weight: 700; line-height: 1.5; }
html[lang='en'] .rule-head h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.rule-head .ara { font-size: 16px; font-weight: 700; color: var(--stone); }

/* Columns divided by hairlines, never boxed. */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cols.four { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.col { padding: 36px 40px 0; border-inline-start: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.col:first-child { padding-inline-start: 0; border-inline-start: 0; }
.col:last-child { padding-inline-end: 0; }
.col h3 { font-size: clamp(28px, 2.7vw, 38px); font-weight: 800; line-height: 1.3; }
html[lang='en'] .col h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.cols.four .col h3 { font-size: 24px; }
.col p { color: var(--stone); }
.col .more { margin-top: 6px; font-weight: 700; border-bottom: 1px solid var(--black); }
.col .more:hover { border-color: var(--blue); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); }

/* Statement blocks and hairline rows. */
.band-bone { background: var(--bone); --hairline: #d6d3cc; }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.statement { font-size: clamp(38px, 5vw, 72px); font-weight: 800; line-height: 1.2; }
html[lang='en'] .statement { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.rows li > :first-child { font-size: 19px; font-weight: 600; }
html[lang='en'] .rows li > :first-child { font-size: 17px; font-weight: 500; }
.rows.plain li > :first-child { font-size: 17px; font-weight: 500; }
html[lang='en'] .rows.plain li > :first-child { font-size: 16px; font-weight: 400; }
.rows-title { font-size: 16px; font-weight: 700; padding-bottom: 12px; }

/* Services */
.svc { padding-block: clamp(48px, 5vw, 72px) 0; }
.svc:last-of-type { padding-bottom: clamp(64px, 7vw, 96px); }
.svc .split { padding-top: 36px; align-items: stretch; }
.svc .lead { margin-bottom: 28px; }
.shot img { width: 100%; height: 100%; min-height: clamp(260px, 30vw, 420px); max-height: 520px; object-fit: cover; }

/* Work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px 32px; padding-top: 48px; }
.work figure { display: flex; flex-direction: column; gap: 16px; }
.work img { width: 100%; height: clamp(240px, 26vw, 360px); object-fit: cover; }
.work figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.work h3 { font-size: 24px; font-weight: 800; line-height: 1.35; }
html[lang='en'] .work h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }

/* Prose block */
.prose { max-width: 70ch; padding-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 18px; }
.prose a { font-weight: 700; border-bottom: 1px solid var(--black); }
.prose a:hover { border-color: var(--blue); }
.brands { font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; }

/* FAQ */
.faq { padding-top: 12px; max-width: 900px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 700; }
html[lang='en'] .faq summary { font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--latin); font-weight: 500; font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--stone); padding-bottom: 24px; max-width: 68ch; }

/* Form: square controls with a visible border. */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; }
html[lang='en'] .field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--black); background: var(--panel); border: 1px solid var(--control); border-radius: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .actions { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 15px; color: var(--stone); }

/* Contact block: the black zone every page ends on, after the rule. */
.contact-block { background: var(--black); color: var(--offwhite); border-top: 4px solid var(--black); }
.contact-block .container { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-end; padding-block: clamp(64px, 7vw, 96px); }
.contact-block .say { flex: 1.2 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-block .big { font-size: clamp(46px, 7vw, 100px); font-weight: 800; line-height: 1.2; }
html[lang='en'] .contact-block .big { font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; font-size: clamp(42px, 6.2vw, 88px); }
.contact-block .sub { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--on-dark-muted); }
html[lang='en'] .contact-block .sub { font-weight: 500; }
.contact-block .ara { font-size: 22px; font-weight: 700; color: var(--on-dark-muted); }
.contact-block .reach { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.contact-block .phone { font-family: var(--latin); font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; padding-bottom: 24px; text-align: end; }
html[lang='en'] .contact-block .phone { text-align: start; }
.contact-block .rows { border-top-color: var(--dark-hairline); --hairline: var(--dark-hairline); }
.contact-block .rows li > :first-child { font-size: 15px; font-weight: 600; color: var(--on-dark-muted); }
.contact-block .rows .label { color: var(--on-dark-muted); }
.contact-block a { color: var(--offwhite); }
.contact-block a:hover { color: var(--offwhite); text-decoration: underline; text-underline-offset: 4px; }

/* Footer: the logo on its own off-white band, never on the black. */
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 28px; }
.site-footer .brand img { height: 64px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.foot-nav a { padding: 10px 0; }
.site-footer .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--stone); }

@media (max-width: 960px) {
  .col, .col:first-child, .col:last-child { padding: 28px 0 0; border-inline-start: 0; }
  .col + .col { margin-top: 28px; border-top: 1px solid var(--hairline); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--hairline); }
  .nav a[aria-current='page'] { box-shadow: none; }
  .nav .btn { margin-top: 12px; text-align: center; border-top: 0; padding: 13px 22px; }
  .brand img { height: 48px; }
  .contact-block .phone { text-align: start; }
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .btn { transition: none; }
}

/* Latin lines inside Arabic pages keep to the reading edge. */
html[lang='ar'] .brands { text-align: right; }
