/* =====================================================================
   DAR AL HANAKEL — Design System v5.0
   Clean · Consolidated · Zero Duplication
   Single source of truth for every rule
   ===================================================================== */

/* ---------------------------------------------------------------------
   01 — DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --ink:         #171817;
  --sand:        #c8b28a;
  --sand-strong: #b89b6c;
  --sand-soft:   rgba(200, 178, 138, 0.12);
  --stone:       #a7a49d;
  --ivory:       #f3f0e8;
  --white:       #ffffff;
  --whatsapp:    #25d366;

  /* Ink alpha scale */
  --ink-90: rgba(23, 24, 23, 0.90);
  --ink-70: rgba(23, 24, 23, 0.70);
  --ink-55: rgba(23, 24, 23, 0.55);
  --ink-12: rgba(23, 24, 23, 0.12);

  /* Ivory alpha scale */
  --ivory-70: rgba(243, 240, 232, 0.72);
  --ivory-45: rgba(243, 240, 232, 0.45);
  --ivory-16: rgba(243, 240, 232, 0.16);

  /* Hairlines (borders) */
  --hairline:       rgba(23, 24, 23, 0.12);
  --hairline-light: rgba(243, 240, 232, 0.16);

  /* Typography */
  --font-ar:      "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en:      "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    var(--font-ar);
  --font-display: var(--font-ar);

  /* Layout */
  --maxw:        1440px;
  --maxw-narrow: 980px;
  --pad:         64px;
  --header-h:    84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  0.7s;

  /* Radii */
  --r-sm:   2px;
  --r-md:   4px;
  --r-lg:   8px;
  --r-full: 999px;

  /* Shadow */
  --shadow-md: 0 8px 24px rgba(23, 24, 23, 0.08);
}

/* English (LTR) — swap font stack */
html[dir="ltr"] {
  --font-body:    var(--font-en);
  --font-display: var(--font-en);
}

/* ---------------------------------------------------------------------
   02 — RESET & BASE
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }
a      { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--sand-strong);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--sand);
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   03 — ACCESSIBILITY
   --------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------
   04 — LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section     { padding-block: clamp(72px, 10vw, 148px); }
.section--sm { padding-block: clamp(48px, 6vw, 88px); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
}
.section__title--light { color: var(--ivory); }

.section__lead {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-70);
}

/* ---------------------------------------------------------------------
   05 — LABELS
   --------------------------------------------------------------------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-55);
}

.label__num {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sand-strong);
}

.label--light           { color: var(--ivory-70); }
.label--light .label__num { color: var(--sand); }

/* ---------------------------------------------------------------------
   06 — BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--sm    { padding: 11px 22px; font-size: 0.9rem; }
.btn--lg    { padding: 18px 38px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* Variants */
.btn--sand       { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--sand-strong); }

.btn--ink        { background: var(--ink); color: var(--ivory); }
.btn--ink:hover  { background: var(--ink-90); }

.btn--ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory-45);
}
.btn--ghost-light:hover {
  border-color: var(--ivory);
  background: rgba(243, 240, 232, 0.08);
}

.btn--whatsapp       { background: var(--whatsapp); color: #ffffff; }
.btn--whatsapp:hover { background: #1ebe5a; }

.btn--call {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--call:hover {
  background: transparent;
  color: var(--sand);
  border-color: var(--sand);
}

/* Icon sizing inside buttons */
.btn--whatsapp svg,
.btn--call svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Arrow motion (shared) */
.btn .arrow,
.link-arrow .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(-6px); }

html[dir="ltr"] .btn:hover .arrow,
html[dir="ltr"] .link-arrow:hover .arrow { transform: translateX(6px); }

/* ---------------------------------------------------------------------
   07 — ARROW LINKS
   --------------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.3s var(--ease);
}
.link-arrow .arrow       { color: var(--sand-strong); }
.link-arrow:hover        { border-color: var(--sand-strong); }

.link-arrow--light       { color: var(--ivory); border-color: var(--hairline-light); }
.link-arrow--light:hover { border-color: var(--sand); }

/* ---------------------------------------------------------------------
   08 — SITE HEADER
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(23, 24, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline-light);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Brand --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 40px;
  fill: var(--sand);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__ar {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ivory);
}

.brand__en {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ivory-70);
}

/* --- Nav --- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__list a {
  position: relative;
  padding-block: 6px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ivory);
}

.nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: inline-start;
}
.nav__list a[aria-current="page"] { color: var(--sand); }

/* ---------------------------------------------------------------------
   09 — LANGUAGE SWITCHER (SINGLE BUTTON)
   في كل صفحة يظهر زر واحد فقط: عربي يعرض EN، وإنجليزي يعرض AR
   --------------------------------------------------------------------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--hairline-light);
  margin-inline-start: 4px;
}

.lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-sm);
  transition: color 0.3s var(--ease),
              background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              transform 0.2s var(--ease);
}

.lang-switcher__link:hover {
  color: var(--ink);
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-1px);
}

.lang-switcher__link::before {
  content: "🌐";
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------
   10 — NAV TOGGLE (HAMBURGER)
   --------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px)  rotate(45deg);  }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   11 — MOBILE NAV
   --------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h) - 32px);
  padding: 28px 24px;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(23, 24, 23, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: transform 0.4s var(--ease),
              opacity 0.35s var(--ease),
              visibility 0.35s;
}

body.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav nav { width: 100%; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.mobile-nav a {
  display: block;
  padding-block: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.3s var(--ease), padding-inline-start 0.3s var(--ease);
}
.mobile-nav a:hover {
  color: var(--sand-strong);
  padding-inline-start: 8px;
}
.mobile-nav .btn { margin-top: 8px; }

/* ---------------------------------------------------------------------
   12 — BREADCRUMBS
   --------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: 20px;
  font-size: 0.88rem;
  color: var(--ink-55);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "←";
  font-family: var(--font-en);
  color: var(--sand-strong);
}
html[dir="ltr"] .breadcrumbs li:not(:last-child)::after { content: "→"; }

.breadcrumbs a {
  color: var(--ink-70);
  transition: color 0.25s var(--ease);
}
.breadcrumbs a:hover { color: var(--sand-strong); }

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   13 — HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  color: var(--ivory);
  overflow: hidden;
}
.hero--page { min-height: clamp(440px, 66vh, 620px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(23, 24, 23, 0.92) 0%,
      rgba(23, 24, 23, 0.32) 52%,
      rgba(23, 24, 23, 0.50) 100%),
    linear-gradient(to right,
      rgba(23, 24, 23, 0)    45%,
      rgba(23, 24, 23, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero__content { max-width: 860px; }

.hero__eyebrow {
  margin-bottom: 26px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sand);
}

.hero__title {
  margin-bottom: 30px;
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__title--sm { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }

.hero__lead {
  max-width: 620px;
  margin-bottom: 40px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: var(--ivory-70);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__locale {
  margin-top: clamp(44px, 7vw, 84px);
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ivory-45);
}

/* ---------------------------------------------------------------------
   14 — INTRO SECTION
   --------------------------------------------------------------------- */
.intro { background: var(--ivory); }

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.intro__body {
  display: grid;
  gap: 20px;
  max-width: 46ch;
  margin-top: 30px;
  color: var(--ink-70);
}

.intro__media { overflow: hidden; }
.intro__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   15 — SERVICES (grid + cards)
   --------------------------------------------------------------------- */
.services { background: var(--ivory); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease),
              border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
}

.service-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--stone);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 30px;
}

.service-card__num {
  margin-bottom: 12px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand-strong);
}

.service-card__name {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card__desc {
  flex: 1;
  margin-bottom: 22px;
  font-size: 0.98rem;
  color: var(--ink-70);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sand-strong);
}
.service-card__link .arrow { transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__link .arrow { transform: translateX(-4px); }
html[dir="ltr"] .service-card:hover .service-card__link .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   16 — PROJECTS (list + grid tiles + filters + gallery)
   --------------------------------------------------------------------- */
.projects { background: var(--white); }

.project-list { display: grid; gap: clamp(56px, 8vw, 120px); }

.project {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.project--a,
.project--c { grid-template-columns: 1.35fr 1fr; }
.project--b { grid-template-columns: 1fr 1.35fr; }
.project--b .project__media { order: 2; }

.project__media {
  overflow: hidden;
  border-radius: var(--r-md);
}
.project__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .project__media img { transform: scale(1.03); }

.project__index {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand-strong);
}

.project__name {
  margin: 14px 0 24px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.project__facts {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.project__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.project__facts dt { font-size: 0.92rem; color: var(--ink-55); }
.project__facts dd { font-weight: 700;    color: var(--ink); }

/* Status indicator */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
}
.status--live::before { background: var(--sand-strong); }
.status--done::before { background: var(--stone); }

/* Tile grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--ivory);
  border-radius: var(--r-md);
}
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-tile:hover img { transform: scale(1.05); }

.project-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top,
    rgba(23, 24, 23, 0.88) 0%,
    rgba(23, 24, 23, 0.10) 60%,
    rgba(23, 24, 23, 0)    100%);
}

.project-tile__cat {
  margin-bottom: 8px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sand);
}

.project-tile__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ivory);
}

/* Filters */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-block: 20px;
}

.filter-btn {
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-70);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover {
  border-color: var(--sand-strong);
  color: var(--ink);
}
.filter-btn.is-active {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

/* Gallery (main image + thumbs) */
.project-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.project-gallery__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-gallery__thumbs img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* ---------------------------------------------------------------------
   17 — PLACES (Jeddah + Makkah)
   --------------------------------------------------------------------- */
.place--jeddah { background: var(--white); }

.place__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.place__media {
  overflow: hidden;
  border-radius: var(--r-md);
}
.place__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.place__media:hover img { transform: scale(1.02); }

.place__tag {
  margin-bottom: 22px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--sand-strong);
}

.place__body {
  max-width: 46ch;
  margin: 26px 0 34px;
  font-size: 1.05rem;
  color: var(--ink-70);
}

/* Makkah variant (dark) */
.place--makkah             { background: var(--ink); }
.place--makkah .place__tag { color: var(--sand); }

.place__stack { display: grid; gap: clamp(48px, 6vw, 80px); }

.place__text--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.place__body--light {
  margin-inline: auto;
  color: var(--ivory-70);
}

.place__media--wide img { aspect-ratio: 21 / 9; }

/* ---------------------------------------------------------------------
   18 — PROCESS / STEPS
   --------------------------------------------------------------------- */
.process { background: var(--ivory); }

.steps { border-top: 1px solid var(--hairline); }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-inline-start 0.4s var(--ease);
}
.step:hover { padding-inline-start: 14px; }

.step__num {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--sand-strong);
  direction: ltr;
}

.step__name {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   19 — VALUES
   --------------------------------------------------------------------- */
.values { background: var(--ivory); }

.values-list { display: grid; }

.value {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: clamp(18px, 4vw, 64px);
  padding-block: clamp(28px, 3.4vw, 46px);
  border-top: 1px solid var(--hairline);
}
.value:last-child { border-bottom: 1px solid var(--hairline); }

.value__num {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand-strong);
}

.value__name {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 700;
}

.value__desc {
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--ink-70);
}

/* ---------------------------------------------------------------------
   20 — VISION & MISSION (dark band)
   --------------------------------------------------------------------- */
.about-vm {
  background: var(--ink);
  color: var(--ivory);
}

.about-vm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.about-vm__grid .vm__block + .vm__block {
  padding-inline-start: clamp(40px, 6vw, 96px);
  border-inline-start: 1px solid var(--hairline-light);
}

.vm__statement {
  max-width: 42ch;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ivory);
}

/* ---------------------------------------------------------------------
   21 — STATS
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-block: clamp(48px, 6vw, 72px);
  border-block: 1px solid var(--hairline);
}

.stat { text-align: center; }

.stat__num {
  margin-bottom: 12px;
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sand-strong);
}

.stat__label {
  font-size: 0.98rem;
  color: var(--ink-70);
}

/* ---------------------------------------------------------------------
   22 — CONTACT (cards + form)
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--sand-soft);
  color: var(--sand-strong);
  border-radius: var(--r-md);
}
.contact-card__icon svg { width: 24px; height: 24px; fill: currentColor; }

.contact-card__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.contact-card__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  direction: ltr;
  text-align: start;
}

/* Form */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
}

.form-field { display: grid; gap: 8px; }

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--sand-strong);
  outline: none;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------------------------------------------------------------------
   23 — CTA BAND
   --------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 40px;
}

.cta__title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--ivory);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------------------------------------------------------------------
   24 — SITE FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(64px, 8vw, 110px);
  background: var(--ink);
  color: var(--ivory);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(36px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Brand block */
.brand--footer .brand__mark { width: 44px; height: 46px; fill: var(--sand); }
.brand--footer .brand__ar   { font-size: 1.15rem; }

.footer__loc {
  margin-top: 24px;
  font-size: 0.98rem;
  color: var(--ivory-70);
}

/* Columns */
.footer__heading {
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer__col ul { display: grid; gap: 12px; }

.footer__col a {
  font-size: 0.98rem;
  color: var(--ivory-70);
  transition: color 0.25s var(--ease);
}
.footer__col a:hover { color: var(--ivory); }

/* Contact block */
.footer__contact { display: grid; gap: 14px; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  line-height: 1;
  color: var(--ivory-70);
  transition: color 0.25s var(--ease);
}
.footer__contact-item:hover { color: var(--sand); }
.footer__contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--sand);
  flex-shrink: 0;
}
.footer__contact-item span { direction: ltr; }

/* Footer base bar */
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 30px;
  font-size: 0.85rem;
  color: var(--ivory-45);
  border-top: 1px solid var(--hairline-light);
}

.footer__tagline {
  font-family: var(--font-en);
  letter-spacing: 0.18em;
}

/* Footer credit */
.footer__credit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ivory-70);
}
.footer__credit-label { color: var(--ivory-45); }

.footer__credit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s var(--ease),
              background 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.footer__credit-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer__credit-icon--whatsapp { background: var(--whatsapp); }
.footer__credit-icon--whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.footer__credit-icon--call { background: var(--sand); color: var(--ink); }
.footer__credit-icon--call:hover {
  transform: scale(1.15);
  background: var(--sand-strong);
  box-shadow: 0 4px 12px rgba(200, 178, 138, 0.4);
}

/* ---------------------------------------------------------------------
   25 — REVEAL ANIMATIONS
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

figure[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
figure[data-reveal] img {
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
figure[data-reveal].is-visible      { opacity: 1; }
figure[data-reveal].is-visible img  { transform: scale(1); }

/* ---------------------------------------------------------------------
   26 — FLOATING CONTACT BUTTONS
   --------------------------------------------------------------------- */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.float-actions > * { pointer-events: auto; }

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease;
}
.float-btn svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.float-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.float-btn--whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.float-btn--call {
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 24, 23, 0.45);
}
.float-btn--call:hover {
  transform: scale(1.1);
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(200, 178, 138, 0.6);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* ---------------------------------------------------------------------
   27 — RESPONSIVE · Tablet (≤ 1024px)
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --pad: 40px; }

  .nav        { display: none; }
  .nav-toggle { display: flex; }

  /* Hide "Start Project" CTA button in header */
  .header__actions > .btn--sand { display: none; }

  /* Center the nav toggle */
  .nav-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__grid  { grid-template-columns: 1fr 1fr; }
  .intro__grid   { grid-template-columns: 1fr; }
  .intro__media  { max-width: 520px; }
}

/* ---------------------------------------------------------------------
   28 — RESPONSIVE · Mobile (≤ 720px)
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --pad: 20px; --header-h: 72px; }
  body  { font-size: 16px; }

  /* Stack 2-col layouts */
  .intro__grid,
  .project,
  .project--a, .project--b, .project--c,
  .place__grid { grid-template-columns: 1fr; }

  .project--b .project__media { order: 0; }
  .intro__media               { order: -1; }

  /* Vision & Mission */
  .about-vm__grid { grid-template-columns: 1fr; gap: 44px; }
  .about-vm__grid .vm__block + .vm__block {
    padding-inline-start: 0;
    padding-block-start: 44px;
    border-inline-start: none;
    border-block-start: 1px solid var(--hairline-light);
  }

  /* Values */
  .value       { grid-template-columns: auto 1fr; gap: 6px 18px; }
  .value__desc { grid-column: 1 / -1; }

  /* Hero */
  .hero__title          { font-size: clamp(2.4rem, 11vw, 2.9rem); }
  .hero__lead           { font-size: 1.05rem; }
  .hero__actions .btn   { flex: 1 1 auto; }

  /* Steps */
  .step { grid-template-columns: 56px 1fr; gap: 16px; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__base {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer__credit { justify-content: center; }

  /* Places */
  .place__media--wide img { aspect-ratio: 4 / 3; }

  /* Grids → single column */
  .services__grid,
  .projects-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* Filters */
  .project-filters { gap: 8px; }
  .filter-btn      { padding: 8px 16px; font-size: 0.85rem; }

  /* Floating buttons */
  .float-actions { bottom: 18px; right: 18px; gap: 10px; }
  .float-btn     { width: 52px; height: 52px; }
  .float-btn svg { width: 24px; height: 24px; }

  /* Header refinement */
  .header__inner   { gap: 12px; }
  .header__actions { gap: 8px; flex-shrink: 0; }

  .brand           { gap: 8px; flex-shrink: 0; }
  .brand__mark     { width: 32px; height: 34px; }
  .brand__ar       { font-size: 0.95rem; }
  .brand__en       { font-size: 0.52rem; letter-spacing: 0.14em; }

  .lang-switcher {
    padding-inline-start: 0;
    border-inline-start: none;
  }
  .lang-switcher__link {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .lang-switcher__link::before { display: none; }

  .nav-toggle      { width: 38px; height: 38px; }
  .nav-toggle span { width: 20px; }
}

/* ---------------------------------------------------------------------
   29 — INLINE GRID OVERRIDES · Mobile (≤ 720px)
   يحول أي grid مكتوب inline بعمودين إلى عمود واحد
   --------------------------------------------------------------------- */
@media (max-width: 720px) {

  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:1.35fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:1fr 1.35fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="order:2"] { order: 0 !important; }
  [style*="order:1"] { order: 0 !important; }
}

/* ---------------------------------------------------------------------
   30 — REDUCED MOTION & PRINT
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal]           { opacity: 1 !important; transform: none !important; }
  figure[data-reveal] img { transform: none !important; }
  .float-btn--whatsapp    { animation: none !important; }
}

@media print {
  .site-header,
  .mobile-nav,
  .float-actions,
  .hero__scrim { display: none !important; }

  body {
    background: #ffffff;
    color: #000000;
  }
  a { text-decoration: underline; }
}