/* MAH Group — العمراني قروب */
:root {
  --navy: #0a2140;
  --navy-mid: #123056;
  --navy-deep: #061528;
  --orange: #e8742a;
  --orange-soft: #f09452;
  --gold: #c9a04a;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #dfe5ec;
  --paper: #f7f8fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 21, 40, 0.12);
  --radius: 4px;
  --max: 1120px;
  --nav-h: 76px;
  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;
  --font-en: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-nav.is-solid {
  background: rgba(6, 21, 40, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(6, 21, 40, 0.25);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.brand img,
.brand svg {
  width: 46px;
  height: auto;
}

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

.brand-text strong {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: var(--orange);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 21, 40, 0.42) 0%, rgba(6, 21, 40, 0.22) 38%, rgba(6, 21, 40, 0.78) 72%, rgba(6, 21, 40, 0.96) 100%),
    linear-gradient(270deg, rgba(6, 21, 40, 0.35) 0%, transparent 50%);
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-soft);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-mid);
}

/* ---------- Sections ---------- */
section {
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  background: var(--paper);
}

.band-navy {
  background: var(--navy-deep);
  color: var(--white);
}

.band-navy .section-head h2 {
  color: var(--white);
}

.band-navy .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.values {
  display: grid;
  gap: 0.85rem;
}

.value {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.value b {
  font-family: var(--font-en);
  font-size: 1.35rem;
  color: var(--orange);
}

.value span {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.sector {
  padding: 1.75rem 1.25rem;
  border-inline-start: 1px solid var(--line);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  transition: background 0.25s, color 0.25s;
  color: inherit;
  text-decoration: none;
}

.sector:nth-child(3n + 1) {
  border-inline-start: 0;
}

.sector:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.sector:hover {
  background: var(--navy);
  color: var(--white);
}

.sector .num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: auto;
}

.sector h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sector p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.sector:hover p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Companies ---------- */
.companies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.company {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.25s;
  color: inherit;
  text-decoration: none;
}

.company:hover {
  border-color: rgba(232, 116, 42, 0.45);
  box-shadow: var(--shadow);
}

.company-logo {
  height: 92px;
  display: grid;
  place-items: center;
  background: var(--paper);
  overflow: hidden;
}

.company-logo--dark {
  background: #0a0a0a;
}

.company-logo img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
}

.company-logo--dark img {
  max-height: 88px;
  width: 100%;
  object-fit: cover;
}

.company h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.company p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags span {
  font-size: 0.78rem;
  color: var(--navy-mid);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  background: var(--paper);
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.project {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--navy);
  color: var(--white);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.7s var(--ease), opacity 0.35s;
}

.project:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.project-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(6, 21, 40, 0.92));
}

.project-body span {
  display: block;
  font-size: 0.8rem;
  color: var(--orange-soft);
  margin-bottom: 0.25rem;
}

.project-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.projects-side {
  display: grid;
  gap: 1rem;
}

.projects-side .project {
  min-height: 135px;
}

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1.5rem;
}

.client {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

/* ---------- Profile download ---------- */
.profile-band {
  padding: 4.5rem 0;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #163a66 100%);
  color: var(--white);
}

.profile-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.profile-copy .eyebrow {
  color: var(--orange-soft);
}

.profile-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--white);
}

.profile-copy p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.profile-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-meta li {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.profile-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.profile-actions .btn {
  width: 100%;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.profile-file {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.contact-card h3 {
  margin: 0 0 1rem;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-list a,
.contact-list strong {
  color: var(--navy);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--orange);
}

.contact-form-card {
  margin-top: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(232, 116, 42, 0.35);
  border-color: var(--orange);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-flash {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.contact-flash.ok {
  border-color: #b7dfc8;
  background: #eef8f2;
  color: #1f7a4d;
}

.contact-flash.err {
  border-color: #f0c0bb;
  background: #fdf2f1;
  color: #b42318;
}

.contact-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand span {
  color: var(--orange);
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.32s; }
.hero-content > *:nth-child(3) { animation-delay: 0.48s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid,
  .projects,
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .sectors {
    grid-template-columns: 1fr 1fr;
  }

  .sector:nth-child(2),
  .sector:nth-child(4) {
    border-inline-start: 1px solid var(--line);
  }

  .sector:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .companies {
    grid-template-columns: 1fr;
  }

  .clients {
    grid-template-columns: 1fr 1fr;
  }

  .projects-side {
    grid-template-columns: 1fr 1fr;
  }

  .projects-side .project {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(6, 21, 40, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0.2rem;
  }

  .nav-cta {
    margin-top: 0.75rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .sectors {
    grid-template-columns: 1fr;
  }

  .sector {
    border-inline-start: 0 !important;
    border-top: 1px solid var(--line);
    min-height: auto;
  }

  .sector:first-child {
    border-top: 0;
  }

  .clients,
  .projects-side {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.35rem;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }
}
