/* Nahaj Al-Khair Co. — rebuilt from the Wix design */
:root {
  --navy: #0c3556;
  --navy-deep: #0b0c44;
  --ink: #1e2d3b;
  --slate: #3d5975;
  --text: #3b3a3a;
  --muted: #757575;
  --yellow: #edcd1f;
  --olive: #877512;
  --orange: #c74300;
  --violet: #5f5bcd;
  --light: #f7f7f7;
  --dark: #232323;
  --white: #ffffff;
  --head: "Avenir LT W01 85 Heavy", "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;
  --body: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.underline::after { content: ""; display: block; width: 116px; height: 8px; background: var(--yellow); margin: 18px auto 0; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 119px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 96px; width: auto; }
.brand .names { display: flex; flex-direction: column; gap: 6px; }
.brand .names img { height: auto; }
.brand .ar { width: 300px; }
.brand .en { width: 330px; }

.nav { display: flex; background: var(--navy); }
.nav > li { list-style: none; position: relative; }
.nav a, .nav button {
  display: block; padding: 10px 21px; color: var(--white); text-decoration: none;
  font-family: var(--body); font-size: 15px; font-weight: 400; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.nav > li > a:hover, .nav > li > button:hover { background: rgba(255,255,255,.08); }
.nav > li.active > a, .nav > li.active > button { background: var(--yellow); color: var(--ink); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--navy); padding: 0; margin: 0; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.nav .sub li { list-style: none; }
.nav .sub a { padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.nav .sub a:hover, .nav .sub a.active { background: var(--yellow); color: var(--ink); }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { display: block; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; font-size: 26px; width: 48px; height: 44px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 32px; text-decoration: none; font-size: 15px; color: #fff; border: 0; cursor: pointer; transition: filter .2s; }
.btn:hover { filter: brightness(1.12); }
.btn-olive { background: var(--olive); }
.btn-navy { background: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.btn-dark { background: var(--text); color: var(--yellow); font-family: var(--head); font-weight: 800; }
.btn-orange { background: var(--orange); font-weight: 700; font-size: 20px; }
.btn-violet { background: var(--violet); border-radius: 7px; font-family: "Poppins", sans-serif; font-weight: 600; padding: 9px 18px; }

/* ---------- Home ---------- */
.hero { position: relative; min-height: 687px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .content { position: relative; padding: 40px 16px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { color: #fff; font-size: 15px; margin: 0 0 28px; }

.about-card-sec { position: relative; min-height: 699px; display: grid; place-items: center; padding: 60px 16px; }
.about-card-sec > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-card { position: relative; background: #fff; max-width: 629px; padding: 64px 56px; text-align: center; }
.about-card h2 { font-size: clamp(40px, 5vw, 56px); }
.about-card p { font-size: 16px; margin: 0 0 40px; }

.stats { background: var(--navy-deep); color: #fff; padding: 45px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .item { text-align: center; padding: 0 12px; }
.stats .item + .item { border-left: 2px solid #fff; }
.stats .num { font-family: var(--head); font-weight: 800; font-size: 60px; line-height: 1.1; }
.stats .lbl { font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1.1; margin-top: 30px; }

.contact-sec { padding: 57px 0 70px; }
.contact-sec h2 { font-size: 55px; }
.map { margin: 56px 0 50px; height: 420px; border: 0; width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.contact-grid h4 { font-size: 25px; }
.inquiries p { font-size: 17px; max-width: 425px; }
.form { max-width: 422px; }
.form label { display: block; font-size: 14px; margin-top: 10px; }
.form input, .form textarea { width: 100%; background: var(--light); border: 1px solid #bbb; padding: 6px 10px; font: inherit; }
.form input { height: 30px; }
.form textarea { height: 126px; resize: vertical; }
.form .actions { text-align: right; margin-top: 8px; }
.office p { margin: 0; font-size: 17px; }
.office .small { font-size: 15px; }
.office .gap { height: 24px; }

.group { background: var(--navy); padding: 55px 0 80px; }
.group h2 { color: #fff; font-size: 55px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; margin-top: 50px; }
.logos img { height: 110px; width: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; text-align: center; padding: 12px; font-family: var(--head); font-weight: 800; font-size: 14px; }

/* ---------- Generic page ---------- */
.page-intro { padding: 87px 0 60px; text-align: center; }
.page-intro h1 { font-size: clamp(38px, 5vw, 56px); }
.page-intro .kicker { font-family: var(--head); font-weight: 800; color: var(--slate); font-size: 20px; }
.page-intro p.lead { max-width: 629px; margin: 30px auto 0; font-size: 18px; }
.wide-img { width: min(980px, 100% - 32px); margin: 0 auto; height: 383px; object-fit: cover; }
.text-block { max-width: 635px; margin: 0 auto; padding: 80px 0; }
.text-block h2 { text-align: center; font-size: 38px; margin-bottom: 40px; }
.text-block h3 { font-family: var(--body); font-weight: 300; color: var(--text); font-size: 30px; margin-top: 40px; }
.leader { text-align: center; padding: 40px 0 80px; }
.leader h2 { font-size: 38px; }
.leader figure { position: relative; width: min(443px, 100%); margin: 60px auto 0; }
.leader figcaption { position: absolute; left: 13px; bottom: 20px; text-align: left; background: rgba(12,53,86,.75); color: #fff; padding: 6px 10px; }
.leader figcaption b { font-family: var(--head); font-size: 20px; display: block; }

/* ---------- Service pages ---------- */
.banner { background: var(--slate); padding: 40px 0; }
.banner h1 { text-align: center; font-size: clamp(36px, 5vw, 56px); }
.banner p { color: #fff; font-size: 17px; margin: 0; }
.banner .sub { text-align: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--text); gap: 2px; padding: 1px 0; }
.split > * { background: #fff; min-height: 520px; }
.split .media { background: var(--light); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.split .copy h2 { font-size: clamp(30px, 3.4vw, 42px); }
.split .copy.center h2, .split .copy.center p { text-align: center; }
.split .copy ul { padding-left: 22px; margin: 0; }
.split .copy p, .split .copy li { font-size: 15.5px; }
.full-img img { width: 100%; max-height: 713px; object-fit: cover; }

/* ---------- Project pages ---------- */
.proj-hero { position: relative; padding: 150px 0 0; }
.proj-hero > img.bg { position: absolute; top: 0; left: 0; width: 100%; height: 446px; object-fit: cover; }
.proj-hero .card { position: relative; background: #fff; width: min(980px, 100% - 32px); margin: 0 auto; padding: 80px 128px 60px; }
.proj-hero h1 { font-size: clamp(34px, 4.5vw, 56px); }
.proj-hero .card p { max-width: 658px; font-size: 16px; }
.proj-row { width: min(980px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 378px 1fr; gap: 40px; padding: 60px 41px; border-top: 1px solid #ccc; }
.proj-row.rev { grid-template-columns: 1fr 378px; }
.proj-row.rev .imgs { order: 2; }
.proj-row .imgs { display: flex; flex-direction: column; gap: 30px; }
.proj-row .imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj-row h2 { font-size: 24px; }
.proj-row .num { font-family: var(--head); font-weight: 800; color: var(--muted); font-size: 30px; margin: 0; }
.proj-row h2.grey { color: var(--muted); font-size: 30px; }
.proj-row p, .proj-row li { font-size: 15px; margin: 0 0 6px; }
.proj-row ul { padding-left: 22px; }

/* ---------- Projects landing ---------- */
.proj-filters { background: var(--slate); padding: 40px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 60px; max-width: 100%; }
.proj-filters .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 60px; width: 100%; }
.slides { position: relative; height: 625px; overflow: hidden; background: #b4c6e8; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: grid; place-items: center; }
.slide.on { opacity: 1; z-index: 1; }
.slide > img, .slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .box { position: relative; background: rgba(255,255,255,.85); padding: 40px; max-width: 629px; }
.slide .box h2 { font-size: clamp(40px, 6vw, 75px); color: #061c38; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
.slide .box .btn { float: right; }
.slides .arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; padding: 10px 30px; }
.slides .prev { left: 60px; } .slides .next { right: 60px; }

/* ---------- UR Brand ---------- */
.ur-intro { padding: 70px 0; }
.ur-intro h1 { font-size: clamp(36px, 5vw, 56px); }
.ur-intro p { max-width: 622px; font-size: 16px; }
.ur-hero { position: relative; min-height: 800px; padding: 160px 0; }
.ur-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ur-hero .content { position: relative; }
.ur-hero h2 { color: var(--orange); font-size: 41px; max-width: 733px; }
.ur-hero .btn { background: var(--orange); font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px; }
.brand-strip { padding: 70px 0; }
.brand-strip .logos img { height: 90px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 70px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ur-contact { background: var(--light); display: grid; grid-template-columns: 1fr 1fr; padding: 50px 125px; margin-bottom: 40px; }
.ur-contact b { font-family: var(--head); color: var(--ink); display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .brand .ar { width: 220px; } .brand .en { width: 240px; } .brand .mark { height: 72px; }
  .nav-toggle { display: block; }
  .site-header .bar { flex-wrap: wrap; min-height: 90px; padding: 10px 0; }
  .nav { display: none; flex-direction: column; width: 100%; margin: 0; padding: 0; }
  .nav.open { display: flex; }
  .nav .sub { position: static; display: block; box-shadow: none; padding-left: 16px; }
  .proj-hero .card { padding: 40px 28px; }
}
@media (max-width: 760px) {
  .brand .names { display: none; }
  .stats .grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stats .item:nth-child(3) { border-left: 0; }
  .stats .num { font-size: 44px; }
  .contact-grid, .split, .proj-row, .proj-row.rev, .ur-contact { grid-template-columns: 1fr; }
  .proj-row.rev .imgs { order: 0; }
  .proj-row { padding: 40px 0; }
  .split > * { min-height: 0; }
  .split .media img { max-height: 420px; }
  .about-card { padding: 40px 24px; }
  .ur-contact { padding: 30px 24px; gap: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .slides { height: 520px; } .slides .prev { left: 0; } .slides .next { right: 0; }
  .contact-sec h2, .group h2 { font-size: 40px; }
}
