:root {
  --ink: #18322e;
  --muted: #60736d;
  --paper: #f4f7f2;
  --white: #ffffff;
  --mint: #dceee2;
  --sage: #b9d5c1;
  --coral: #d7745b;
  --line: rgba(24, 50, 46, 0.13);
  --shadow: 0 22px 60px rgba(24, 50, 46, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Arabic", sans-serif;
  line-height: 1.8;
}

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
  background: rgba(244, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.contact-details a:hover {
  color: var(--coral);
}

.hero {
  padding: 82px 0 106px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f7f2 0%, #eaf3ea 55%, #dceee2 100%);
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-text {
  max-width: 510px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(24, 50, 46, 0.16);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero-panel {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(24, 50, 46, 0.12);
  border-radius: 44% 44% 12px 44%;
  background: var(--sage);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-panel::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 44% 44% 12px 44%;
  content: "";
}

.panel-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.orbit-one {
  width: 280px;
  height: 280px;
  top: 58px;
  right: -32px;
}

.orbit-two {
  width: 390px;
  height: 390px;
  top: -20px;
  right: -86px;
  border-color: rgba(24, 50, 46, 0.13);
}

.microscope-mark {
  position: absolute;
  top: 92px;
  right: 35%;
  width: 136px;
  height: 194px;
  transform: rotate(-8deg);
}

.microscope-top,
.microscope-arm,
.microscope-base,
.microscope-slide {
  position: absolute;
  display: block;
  background: var(--ink);
}

.microscope-top {
  top: 0;
  right: 28px;
  width: 22px;
  height: 72px;
  border-radius: 12px 12px 4px 4px;
  transform: rotate(34deg);
}

.microscope-arm {
  top: 49px;
  right: 43px;
  width: 20px;
  height: 104px;
  border-radius: 12px;
  transform: rotate(-18deg);
}

.microscope-base {
  right: 4px;
  bottom: 4px;
  width: 118px;
  height: 19px;
  border-radius: 10px;
}

.microscope-slide {
  right: 28px;
  bottom: 42px;
  width: 76px;
  height: 10px;
  border-radius: 8px;
  background: var(--coral);
}

.panel-caption {
  position: absolute;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.services {
  padding: 92px 0;
  background: var(--white);
}

.section-heading {
  max-width: 510px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

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

.service-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.featured-card {
  color: var(--white);
  background: var(--ink);
}

.service-number {
  display: block;
  margin-bottom: 48px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.featured-card p {
  color: #c3d2ca;
}

.contact {
  padding: 28px 0 92px;
  background: var(--white);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 48px;
  border-radius: 8px;
  background: var(--mint);
}

.contact-box h2 {
  max-width: 550px;
  font-size: clamp(28px, 4vw, 42px);
}

.contact-details {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.contact-details a {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-panel {
    min-height: 300px;
  }

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

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

  .service-number {
    margin-bottom: 28px;
  }

  .contact-box {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 24px;
  }

  .contact-details {
    white-space: normal;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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

  .button {
    transition: none;
  }
}
