:root {
  --navy: #082642;
  --navy-2: #0b3558;
  --ink: #101c31;
  --muted: #66748a;
  --line: #dfe6ef;
  --soft: #f3f6f9;
  --white: #ffffff;
  --orange: #f47721;
  --orange-2: #ff8f3a;
  --steel: #8aa3b8;
  --shadow: 0 20px 60px rgba(8, 38, 66, 0.16);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.brand-copy,
.main-nav,
.btn,
.header-cta,
.portfolio-filter button,
.project-actions,
.stat strong,
.hero-panel strong {
  font-family: "Noto Kufi Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(5, 22, 39, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linejoin: miter;
}

.brand-copy {
  display: grid;
  line-height: 1.5;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 18px 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(244, 119, 33, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 620px;
  height: 82vh;
  max-height: 760px;
  overflow: hidden;
  background: #103a5f;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-engineer-logo.png");
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 58, 95, 0.08) 0%, rgba(16, 58, 95, 0.4) 42%, rgba(13, 51, 84, 0.86) 100%),
    linear-gradient(0deg, rgba(8, 31, 52, 0.04), rgba(8, 31, 52, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  padding-top: 108px;
  display: grid;
  grid-template-columns: minmax(360px, 620px) 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.42;
  font-weight: 800;
  text-wrap: balance;
}

.hero p {
  margin: 26px 0 0;
  max-width: 545px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 2.05;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(244, 119, 33, 0.26);
}

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

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

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

.hero-panel {
  justify-self: end;
  width: 230px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(10, 42, 70, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 31px;
  line-height: 1.42;
  font-weight: 800;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.intro-strip,
.seo-local,
.services,
.portfolio,
.process,
.branches,
.faq-section,
.contact {
  padding: 76px 0;
}

.section-head {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2,
.consult-copy h2,
.risk-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.55;
  font-weight: 800;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--orange);
}

.section-head p,
.consult-copy p,
.risk-copy p,
.contact-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-row {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

.feature {
  text-align: center;
}

.icon-disc {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 16px 28px rgba(8, 38, 66, 0.2);
}

.icon-disc svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.feature h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.feature p {
  min-height: 76px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feature a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.seo-local {
  background: var(--soft);
}

.seo-grid,
.faq-list {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.seo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.seo-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8, 38, 66, 0.06);
}

.seo-card {
  padding: 28px;
}

.seo-card h3,
.faq-item h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.seo-card h3 {
  font-size: 20px;
}

.seo-card p,
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.consult-band {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr) minmax(320px, 390px);
  align-items: stretch;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.consult-copy {
  padding: 72px max(40px, calc((100vw - var(--container)) / 2)) 72px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consult-copy h2 {
  color: var(--white);
  max-width: 460px;
}

.consult-copy p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 460px;
  margin-bottom: 26px;
}

.consult-image {
  background-image:
    linear-gradient(90deg, rgba(8, 38, 66, 0.1), rgba(8, 38, 66, 0.22)),
    url("assets/engineering-office.jpg");
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.quick-form,
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-form {
  width: min(390px, calc(100% - 40px));
  align-self: center;
  justify-self: start;
  margin-inline-start: -44px;
  padding: 28px;
}

.quick-form h3,
.contact-form h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding-top: 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.13);
}

.quick-form .btn,
.contact-form .btn {
  width: 100%;
}

.form-status {
  margin: 12px 0 0;
  min-height: 24px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 700;
}

.portfolio {
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 48%, #f3f6f9 100%);
  overflow: hidden;
}

.portfolio-top {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: end;
}

.portfolio-heading {
  max-width: 760px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.section-number::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.portfolio-heading h2 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 40px;
  line-height: 1.35;
  font-weight: 800;
}

.portfolio-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 690px;
}

.portfolio-metrics {
  min-height: 112px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.portfolio-metrics span {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-metrics span:first-child {
  border-inline-start: 0;
}

.portfolio-metrics strong {
  color: var(--orange-2);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.portfolio-filter {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-filter button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.portfolio-filter button:hover,
.portfolio-filter button.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.portfolio-feature {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  min-height: 470px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.feature-media {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  background: #071b2f;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.feature-media img:last-child {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy > span,
.project-body > span {
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 800;
}

.feature-copy h3 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 800;
}

.feature-copy p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.project-tags {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.feature-copy .btn {
  align-self: start;
}

.portfolio-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: 230px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8, 38, 66, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(8, 38, 66, 0.14);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
}

.project-card:nth-child(2) img,
.project-card:nth-child(3) img {
  object-fit: contain;
  padding: 12px;
}

.project-card-wide {
  grid-column: span 2;
  grid-template-columns: 1fr 0.74fr;
  grid-template-rows: auto;
}

.project-card-wide img {
  min-height: 100%;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 800;
}

.project-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 10px;
}

.project-actions a,
.project-actions button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.project-actions button {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.project-actions a:hover,
.project-actions button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 15, 27, 0.88);
}

.project-lightbox.is-open {
  display: flex;
}

.project-lightbox figure {
  width: min(1100px, 100%);
  max-height: min(760px, calc(100vh - 90px));
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.project-lightbox img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: #0b2239;
}

.project-lightbox figcaption {
  padding: 16px 20px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  inset: 26px auto auto 26px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  inset: 20px 11px auto;
  height: 2px;
  background: var(--white);
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-open {
  overflow: hidden;
}

.services {
  background: var(--white);
}

.service-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 119, 33, 0.42);
  box-shadow: 0 18px 36px rgba(8, 38, 66, 0.1);
}

.service-card h3 {
  margin: 18px 0 12px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.service-card li {
  position: relative;
  padding-inline-start: 18px;
  margin-top: 8px;
}

.service-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.82em;
  width: 7px;
  height: 2px;
  background: var(--orange);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: block;
  position: relative;
  color: var(--navy);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border: 2.4px solid currentColor;
}

.service-icon.contractor::before {
  width: 32px;
  height: 24px;
  inset: 18px 8px auto auto;
  border-top: 0;
}

.service-icon.contractor::after {
  width: 24px;
  height: 24px;
  inset: 6px 13px auto auto;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-45deg);
  color: var(--orange);
}

.service-icon.permit::before {
  inset: 6px 11px 6px 9px;
  border-radius: 3px;
}

.service-icon.permit::after {
  width: 20px;
  height: 8px;
  border-top: 0;
  border-inline-start: 0;
  transform: rotate(-35deg);
  inset: 26px 23px auto auto;
  color: var(--orange);
}

.service-icon.architecture::before {
  width: 30px;
  height: 24px;
  inset: 17px 8px auto auto;
  border-top: 0;
}

.service-icon.architecture::after {
  width: 25px;
  height: 25px;
  inset: 5px 12px auto auto;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-45deg);
  color: var(--orange);
}

.service-icon.structure::before {
  width: 34px;
  height: 28px;
  inset: 14px 8px auto auto;
  border-right: 0;
  border-bottom: 0;
}

.service-icon.structure::after {
  width: 34px;
  height: 2px;
  inset: 24px 8px auto auto;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
}

.service-icon.electric::before {
  width: 18px;
  height: 30px;
  inset: 6px 15px auto auto;
  transform: skew(-16deg);
  border-color: var(--orange);
}

.service-icon.electric::after {
  width: 21px;
  height: 21px;
  inset: 22px 11px auto auto;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.service-icon.mechanical::before {
  width: 34px;
  height: 34px;
  inset: 8px;
  border-radius: 50%;
}

.service-icon.mechanical::after {
  width: 28px;
  height: 2px;
  inset: 24px 11px auto auto;
  border: 0;
  background: var(--orange);
  box-shadow: 0 -9px 0 var(--navy), 0 9px 0 var(--navy);
}

.service-icon.supervision::before {
  width: 34px;
  height: 26px;
  inset: 16px 8px auto auto;
  border-top-color: var(--orange);
}

.service-icon.supervision::after {
  width: 19px;
  height: 13px;
  inset: 7px 15px auto auto;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.service-icon.cost::before {
  width: 32px;
  height: 36px;
  inset: 7px 9px auto auto;
  border-radius: 3px;
}

.service-icon.cost::after {
  width: 22px;
  height: 16px;
  inset: 18px 14px auto auto;
  border-inline-start: 0;
  border-block-start: 0;
  color: var(--orange);
}

.service-icon.report::before {
  width: 30px;
  height: 35px;
  inset: 7px 11px auto auto;
  border-radius: 3px;
}

.service-icon.report::after {
  width: 18px;
  height: 18px;
  inset: 25px 3px auto auto;
  border-radius: 50%;
  border-color: var(--orange);
}

.service-icon.planning::before {
  width: 34px;
  height: 34px;
  inset: 8px;
  transform: rotate(45deg);
}

.service-icon.planning::after {
  width: 24px;
  height: 2px;
  inset: 24px 13px auto auto;
  border: 0;
  background: var(--orange);
  box-shadow: 0 -8px 0 var(--navy), 0 8px 0 var(--navy);
}

.stats-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 38, 66, 0.96), rgba(8, 38, 66, 0.83)),
    url("assets/riyadh-building.jpg");
  background-size: cover;
  background-position: center;
}

.stats-inner {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  min-height: 250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}

.stat {
  min-height: 130px;
  padding: 0 28px;
  display: grid;
  align-content: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat strong {
  color: var(--orange-2);
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
}

.stat span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.process {
  background: var(--soft);
}

.process-list {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.process-list li {
  position: relative;
  min-height: 210px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.process-list li::before {
  content: "";
  position: absolute;
  top: 49px;
  inset-inline-end: calc(50% + 28px);
  width: 52px;
  border-top: 1px dashed var(--steel);
  display: none;
}

.process-list li:not(:first-child)::before {
  display: block;
}

.process-list span {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 18px;
  font-weight: 800;
}

.process-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.process-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.risk-strip {
  width: min(var(--container), calc(100% - 40px));
  margin: 72px auto 0;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.risk-copy h2 {
  color: var(--white);
  font-size: 28px;
}

.risk-copy p {
  color: rgba(255, 255, 255, 0.74);
  max-width: 720px;
}

.branches {
  background: var(--white);
}

.faq-section {
  background: var(--soft);
}

.faq-list {
  grid-template-columns: repeat(2, 1fr);
}

.faq-item {
  padding: 26px 28px;
}

.faq-item h3 {
  font-size: 18px;
  line-height: 1.7;
}

.branch-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.branch-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8, 38, 66, 0.08);
}

.mini-map {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(31deg, transparent 0 46%, rgba(138, 163, 184, 0.35) 47% 48%, transparent 49%),
    linear-gradient(125deg, transparent 0 38%, rgba(138, 163, 184, 0.3) 39% 40%, transparent 41%),
    repeating-linear-gradient(0deg, #eef3f8 0 22px, #e1e9f1 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(138, 163, 184, 0.26) 28px 29px),
    #f7fafc;
}

.mini-map.second {
  background:
    linear-gradient(64deg, transparent 0 42%, rgba(138, 163, 184, 0.35) 43% 44%, transparent 45%),
    linear-gradient(146deg, transparent 0 51%, rgba(138, 163, 184, 0.3) 52% 53%, transparent 54%),
    repeating-linear-gradient(0deg, #eef3f8 0 22px, #e1e9f1 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(138, 163, 184, 0.26) 28px 29px),
    #f7fafc;
}

.mini-map span {
  position: absolute;
  inset: 55px auto auto 72px;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--navy);
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(8, 38, 66, 0.22);
}

.mini-map span::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.branch-card h3 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.branch-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
}

.branch-card a {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.contact {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 74px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy {
  padding-top: 24px;
}

.contact-points {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.contact-points span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
}

.contact-points span::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--white);
  background: var(--navy);
}

.contact-form {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
}

.contact-form .wide,
.contact-form .btn,
.contact-form .form-status {
  grid-column: 1 / -1;
}

.site-footer {
  background: #061d33;
  color: var(--white);
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 48px;
}

.footer-brand {
  min-width: 0;
}

.site-footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 470px;
  font-size: 14px;
}

.site-footer nav,
.footer-locations {
  display: grid;
  align-content: start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--orange-2);
}

.footer-locations span {
  color: var(--white);
}

.copyright {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 18px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .consult-band {
    grid-template-columns: 1fr 1fr;
  }

  .quick-form {
    grid-column: 1 / -1;
    justify-self: center;
    margin: -76px 0 48px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-top,
  .portfolio-feature {
    grid-template-columns: 1fr;
  }

  .portfolio-metrics {
    width: min(520px, 100%);
  }

  .feature-media {
    min-height: 360px;
  }

  .feature-media img {
    min-height: 360px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card-wide {
    grid-column: span 2;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list li::before {
    display: none !important;
  }

  .branch-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    padding: 22px 20px 26px;
    display: grid;
    gap: 0;
    background: rgba(5, 22, 39, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    pointer-events: none;
    transition: transform 180ms ease;
  }

  .nav-open .main-nav {
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    min-height: 48px;
  }

  .main-nav a::after {
    inset: auto 0 2px auto;
    width: 34px;
  }

  .header-cta {
    margin-inline-start: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 650px;
    height: auto;
  }

  .hero-inner {
    min-height: 650px;
    padding-top: 94px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-panel {
    justify-self: start;
    width: min(100%, 280px);
  }

  .feature-row,
  .seo-grid,
  .faq-list,
  .branch-grid,
  .contact,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .portfolio-top,
  .portfolio-grid,
  .project-card-wide {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .portfolio-heading h2 {
    font-size: 32px;
  }

  .feature-copy h3 {
    font-size: 28px;
  }

  .feature p {
    min-height: auto;
  }

  .consult-band {
    grid-template-columns: 1fr;
  }

  .consult-copy {
    padding: 58px 20px;
  }

  .consult-image {
    min-height: 280px;
  }

  .quick-form {
    margin: -56px auto 42px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 0;
  }

  .stat {
    border: 0;
    padding: 20px;
  }

  .contact {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .feature-row,
  .seo-grid,
  .faq-list,
  .service-grid,
  .process-list,
  .branch-grid,
  .contact,
  .footer-inner,
  .stats-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-cta {
    display: none;
  }

  .hero-media {
    background-position: 33% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(16, 58, 95, 0.36), rgba(13, 51, 84, 0.86) 70%);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .consult-copy h2,
  .contact-copy h2 {
    font-size: 28px;
  }

  .intro-strip,
  .seo-local,
  .services,
  .portfolio,
  .process,
  .branches,
  .faq-section,
  .contact {
    padding: 58px 0;
  }

  .portfolio-top,
  .portfolio-filter,
  .portfolio-feature,
  .portfolio-grid {
    width: min(calc(100% - 28px), var(--container));
  }

  .portfolio-heading h2 {
    font-size: 28px;
  }

  .portfolio-metrics {
    grid-template-columns: 1fr;
  }

  .portfolio-metrics span {
    min-height: 76px;
    border-inline-start: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .portfolio-metrics span:last-child {
    border-bottom: 0;
  }

  .portfolio-feature {
    min-height: 0;
  }

  .feature-media {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-media img,
  .project-card img {
    min-height: 0;
  }

  .feature-media img {
    height: 260px;
  }

  .feature-media img:last-child {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .feature-copy {
    padding: 26px;
  }

  .feature-copy .btn {
    align-self: stretch;
  }

  .project-card {
    min-height: 0;
    grid-template-rows: 220px auto;
  }

  .project-actions {
    flex-wrap: wrap;
  }

  .project-lightbox {
    padding: 16px;
  }

  .lightbox-close {
    inset: 16px auto auto 16px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

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

  .stat {
    min-height: 112px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .risk-strip {
    margin-top: 50px;
    padding: 26px;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .quick-form {
    padding: 22px;
  }
}
