:root {
  --blue: #244c9f;
  --blue-dark: #17366f;
  --ink: #172033;
  --muted: #657086;
  --line: #dde3ec;
  --panel: #f5f7fb;
  --white: #ffffff;
  --steel: #8b929b;
  --gold: #c99a43;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 227, 236, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: #39445a;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: 180ms ease;
}

.main-nav a:hover {
  color: var(--blue);
  border-color: var(--gold);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 84px) 72px;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.75) 54%, rgba(255, 255, 255, 0.95)),
    linear-gradient(180deg, rgba(23, 54, 111, 0.18), rgba(23, 32, 51, 0.14));
}

.hero-content {
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.intro > .section-kicker,
.services .section-kicker,
.projects .section-kicker {
  display: table;
  margin: 0 auto 22px;
  padding: 8px 22px;
  min-width: 132px;
  text-align: center;
  color: var(--blue-dark);
  background: rgba(36, 76, 159, 0.08);
  border: 1px solid rgba(36, 76, 159, 0.18);
  border-radius: 6px;
  font-size: 1.05rem;
}

.hero h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  line-height: 1.18;
  font-weight: 800;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #2c3548;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

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

.primary-button {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-dark);
  border: 1px solid rgba(36, 76, 159, 0.24);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics div {
  min-height: 118px;
  padding: 24px clamp(18px, 3vw, 42px);
  background: var(--white);
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: 1.35rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

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

.intro-grid,
.section-heading,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.section-heading {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 38px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.32;
  font-weight: 800;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.35;
}

.intro p,
.section-heading p,
.service-card p,
.project-card p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.intro p,
.section-heading p,
.contact p {
  font-size: 1.05rem;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  min-height: 278px;
  padding: 26px;
}

.service-card span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 34px;
}

.service-card h3 {
  margin-bottom: 14px;
}

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

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-body {
  padding: 24px 26px 28px;
}

.project-card h3 {
  margin-bottom: 12px;
}

.contact {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

.contact-panel {
  align-items: center;
}

.contact .section-kicker,
.contact h2,
.contact p {
  color: var(--white);
}

.contact p {
  opacity: 0.82;
  margin-top: 18px;
}

.contact-links {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  width: min(100%, 440px);
  min-height: 58px;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: var(--white);
}

.contact-links a {
  direction: ltr;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 6vw, 84px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  direction: ltr;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-nav {
    grid-column: auto;
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 6px 0;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .main-nav {
    width: 100%;
    font-size: 0.88rem;
  }

  .intro > .section-kicker,
  .services .section-kicker,
  .projects .section-kicker {
    margin-bottom: 16px;
    padding: 7px 18px;
    min-width: 112px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 620px;
    padding: 52px 20px 44px;
    align-items: flex-start;
  }

  .hero-image {
    object-position: 38% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 48%, rgba(255, 255, 255, 0.8)),
      linear-gradient(0deg, rgba(23, 54, 111, 0.18), rgba(23, 54, 111, 0.18));
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.65rem);
    max-width: 12ch;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .intro-grid,
  .section-heading,
  .service-grid,
  .project-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .metrics div {
    min-height: auto;
    padding: 18px 16px;
  }

  .metrics strong {
    font-size: 1.1rem;
  }

  .metrics span {
    font-size: 0.84rem;
  }

  .service-card,
  .project-card {
    min-height: auto;
  }

  .section {
    padding: 54px 20px;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 24px;
  }

  h2 {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  h3 {
    font-size: 1.12rem;
  }

  .service-card {
    padding: 22px;
  }

  .service-card span {
    margin-bottom: 20px;
  }

  .project-body {
    padding: 20px;
  }

  .contact-links a,
  .contact-links span {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    overflow-wrap: anywhere;
  }

  .site-footer {
    align-items: flex-start;
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 560px;
  }

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

  .contact-links a {
    justify-content: flex-start;
    font-size: 0.92rem;
  }
}
