/* iArqam website — iArqam identity (designer_graphics visual-identity-spec.md, identity 23).
   One stylesheet serves both pages; logical properties keep it correct in RTL and LTR. */

:root {
  --ink: #1B2A3A;
  --ink-alt: #2C4258;
  --brass: #A7844E;
  --brass-text: #7F643B;
  --steel: #4F7684;
  --paper: #F6F3EE;
  --surface: #FFFFFF;
  --subtle: #EEE9E1;
  --text: #1A2330;
  --text-2: #4A5563;
  --muted: #626A74;
  --border: #E2DCD2;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --arabic: "Segoe UI", Tahoma, Arial, system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Latin runs inside the Arabic page keep the Latin face */
html[lang="ar"] [lang="en"] { font-family: var(--serif); }

img { max-width: 100%; display: block; }

a { color: inherit; }

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

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  border-block-end: 1px solid var(--border);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand img { height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--ink); }

.nav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  color: var(--ink);
}

.nav .links { display: none; gap: 24px; }

@media (min-width: 720px) {
  .nav .links { display: flex; }
}

/* ── Type ───────────────────────────────────────────── */

h1, h2, h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { font-weight: 700; line-height: 1.45; }

h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brass-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-block-end: 18px;
}

html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }

/* The brass diamond, taken from the zero in the logo */
.diamond {
  width: 9px;
  height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.lead {
  font-size: clamp(19px, 2.2vw, 22px);
  color: var(--text-2);
  max-width: 40em;
}

/* ── Hero ───────────────────────────────────────────── */

.hero { padding-block: 64px 72px; }

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding-block: 96px 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero h1 { margin-block-end: 22px; }
.hero h1 em { font-style: normal; color: var(--brass-text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-alt); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--subtle); }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ───────────────────────────────────────── */

section { padding-block: 72px; }

@media (min-width: 900px) {
  section { padding-block: 96px; }
}

.section-head { max-width: 44em; margin-block-end: 48px; }
.section-head h2 { margin-block-end: 14px; }
.section-head p { color: var(--text-2); margin: 0; }

.band { background: var(--surface); border-block: 1px solid var(--border); }

/* Approach: three steps */
.steps {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

@media (min-width: 560px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.step > .diamond { display: block; margin-block: 6px 22px; margin-inline-start: 4px; }

.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}

.step .num {
  display: block;
  font-size: 34px;
  color: var(--brass);
  line-height: 1;
  margin-block-end: 18px;
  font-family: var(--serif);
}

html[lang="ar"] .step .num { font-family: var(--arabic); font-weight: 600; }

.step h3 { margin-block-end: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 17px; }

/* Interior design */
.service-grid { display: grid; gap: 48px; }

@media (min-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
}

.badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-block-end: 18px;
}

.flow { list-style: none; padding: 0; margin: 0; }

.flow li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-block-end: 1px solid var(--border);
}

.flow li:first-child { padding-block-start: 0; }
.flow .diamond { margin-block-start: 12px; margin-inline-start: 4px; }
.flow h3 { font-size: 19px; margin-block-end: 4px; }
.flow p { margin: 0; color: var(--text-2); font-size: 17px; }

.scope { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; padding: 0; list-style: none; }

.scope li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  color: var(--text-2);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.gallery figure { margin: 0; }

.gallery .frame {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--subtle);
  border: 1px solid var(--border);
}

.gallery .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover .frame img { transform: scale(1.03); }

.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  padding-block-start: 10px;
}

.gallery figcaption span:first-child { color: var(--ink); }
.gallery figcaption span:last-child { color: var(--muted); }

.note { margin-block-start: 28px; font-size: 15px; color: var(--muted); }

/* Placeholder shown until the sample images are filed */
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(167,132,78,.10) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--subtle);
}

.placeholder::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--brass);
  transform: rotate(45deg);
}

.hero-media .placeholder {
  background:
    linear-gradient(135deg, rgba(167,132,78,.18) 25%, transparent 25%) 0 0 / 36px 36px,
    var(--ink);
}

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; margin-block-end: 14px; }
.contact p { color: #D5DBE2; margin: 0; }

.contact-grid { display: grid; gap: 32px; align-items: end; }

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
}

.contact-links { display: grid; gap: 12px; }

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 14px 20px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
}

.contact-links a:hover { border-color: var(--brass); }
.contact-links .label { color: #B9C2CC; font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #B9C2CC;
  border-block-start: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
}

.site-footer img { height: 22px; width: auto; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery .frame img { transition: none; }
}
