:root {
  --navy: #0b2f68;
  --navy-2: #103e79;
  --ink: #162033;
  --muted: #647084;
  --copper: #d86f53;
  --copper-dark: #b9543d;
  --cream: #f3ddc6;
  --sand: #f8f3ec;
  --steel: #d7dee8;
  --white: #ffffff;
  --charcoal: #101923;
  --shadow: 0 18px 45px rgba(14, 31, 58, 0.12);
  --radius: 8px;
  --max: 1500px;
  --page-gutter: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

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

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

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 48, 96, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - var(--page-gutter)));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  color: #24334a;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--copper);
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 14px;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 4px;
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(11, 47, 104, 0.18);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 23, 48, 0.93), rgba(8, 23, 48, 0.74) 44%, rgba(8, 23, 48, 0.3)),
    url("../images/generated/hero-engineering.webp") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  z-index: -1;
}

.hero-inner {
  width: min(var(--max), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 86px 0 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.55rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-primary {
  color: var(--white);
  background: var(--copper);
}

.button-primary:hover {
  background: var(--copper-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

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

.button-light {
  color: var(--navy);
  border-color: rgba(11, 47, 104, 0.18);
  background: var(--white);
}

.metric-strip {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - var(--page-gutter)));
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid rgba(11, 47, 104, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  padding: 26px;
  border-right: 1px solid rgba(11, 47, 104, 0.08);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding: 64px 0;
}

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

.dark-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 47, 104, 0.98), rgba(13, 40, 78, 0.96)),
    url("../images/generated/bim-analysis.webp") center / cover no-repeat;
}

.container {
  width: min(var(--max), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.dark-band .section-head h2,
.dark-band .eyebrow,
.page-hero.dark h1 {
  color: var(--white);
}

.section-head p,
.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.dark-band .section-head p,
.page-hero.dark p {
  color: rgba(255, 255, 255, 0.8);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #3d4b62;
}

.signature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--navy);
  background: rgba(11, 47, 104, 0.08);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
}

.image-stack img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.image-stack img:last-child {
  align-self: end;
  min-height: 210px;
  margin-bottom: -32px;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.service-grid,
.news-grid,
.project-grid,
.value-grid,
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.news-card,
.project-card,
.value-card,
.office-card,
.job-card,
.testimonial {
  background: var(--white);
  border: 1px solid rgba(11, 47, 104, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(12, 36, 69, 0.06);
}

.service-card {
  padding: 26px;
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 900;
}

.service-card h3,
.news-card h3,
.project-card h3,
.value-card h3,
.office-card h3,
.job-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.25;
}

.service-card p,
.news-card p,
.project-card p,
.value-card p,
.office-card p,
.job-card p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 9px;
  color: #3e4c60;
  font-size: 0.93rem;
}

.service-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  transform: translateY(-50%);
  background: var(--copper);
  border-radius: 50%;
}

.split-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 46px;
}

.split-cta h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.split-cta p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.cta-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cta-panel li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.cta-panel li:last-child {
  border-bottom: 0;
}

.project-card img,
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  color: var(--navy);
  background: rgba(216, 111, 83, 0.14);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.project-card dl {
  margin: 18px 0 0;
}

.project-card dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  margin-top: 8px;
}

.project-card dt {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card dd {
  margin: 0;
  color: #4f5d70;
  font-size: 0.9rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.testimonial {
  padding: 28px;
}

.testimonial blockquote {
  margin: 0;
  color: #24334a;
  font-size: 1.12rem;
  line-height: 1.55;
}

.testimonial cite {
  display: block;
  margin-top: 22px;
  color: var(--navy);
  font-style: normal;
  font-weight: 800;
}

.testimonial small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.page-hero {
  padding: 92px 0 66px;
  background: var(--sand);
}

.page-hero.dark {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 28, 58, 0.94), rgba(10, 28, 58, 0.76)),
    url("../images/generated/bridge-infrastructure.webp") center / cover no-repeat;
}

.page-hero .container {
  max-width: var(--max);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--copper);
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(11, 47, 104, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  background: var(--navy);
}

.job-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.job-card {
  padding: 26px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-panel {
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(11, 47, 104, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid rgba(11, 47, 104, 0.17);
  border-radius: 4px;
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--copper);
  outline: 3px solid rgba(216, 111, 83, 0.18);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.contact-card h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

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

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  display: block;
  color: var(--cream);
  font-size: 0.88rem;
}

.contact-list span,
.contact-list a {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.office-card {
  padding: 24px;
}

.map-frame {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 47, 104, 0.82), rgba(216, 111, 83, 0.68)),
    url("../images/generated/dubai-office.webp") center / cover no-repeat;
  border-radius: var(--radius);
}

.map-frame p {
  max-width: 460px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--charcoal);
}

.footer-top {
  width: min(var(--max), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.9fr 0.9fr;
  gap: 34px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--white);
  border-radius: 4px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin-top: 9px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

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

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

@media (max-width: 980px) {
  .container,
  .footer-top,
  .metric-strip {
    width: min(100% - 28px, var(--max));
  }

  .nav-wrap {
    width: min(100% - 28px, var(--max));
    min-height: 70px;
  }

  .brand img {
    width: 172px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(11, 47, 104, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 76px 0 78px;
  }

  .metric-strip,
  .service-grid,
  .news-grid,
  .project-grid,
  .value-grid,
  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .split-cta,
  .testimonial-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container,
  .hero-inner,
  .nav-wrap,
  .footer-top,
  .metric-strip {
    width: calc(100% - 28px);
  }

  .hero-inner {
    padding: 68px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.55rem);
  }

  .metric-strip,
  .service-grid,
  .news-grid,
  .project-grid,
  .value-grid,
  .office-grid,
  .job-list,
  .form-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(11, 47, 104, 0.08);
  }

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

  .section {
    padding: 64px 0;
  }

  .section-compact {
    padding: 48px 0;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:last-child {
    margin-bottom: 0;
  }

  .form-panel,
  .contact-card,
  .cta-panel {
    padding: 24px;
  }

  .project-card dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-bottom .container {
    flex-direction: column;
  }
}
