:root {
  --ink: #191715;
  --muted: #6f685e;
  --paper: #f4efe7;
  --paper-deep: #e7dccd;
  --night: #151a1b;
  --line: rgba(25, 23, 21, 0.16);
  --gold: #b98a4b;
  --green: #1f5747;
  --white: #fffaf1;
  --shadow: 0 24px 70px rgba(25, 23, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 138, 75, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--paper), #fbf7ef 48%, var(--paper-deep));
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.8;
}

body,
button,
input,
textarea {
  -webkit-text-size-adjust: 100%;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem clamp(1rem, 4vw, 3rem);
  background: rgba(244, 239, 231, 0.78);
  border-bottom: 1px solid rgba(25, 23, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--night);
  border: 1px solid rgba(185, 138, 75, 0.5);
}

.brand-mark svg {
  width: 27px;
  fill: currentColor;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Noto Kufi Arabic", sans-serif;
  line-height: 1.35;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  color: #39342f;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a {
  border-bottom: 1px solid transparent;
}

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

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 26rem);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 6.25rem clamp(1rem, 5vw, 4rem) 2.6rem;
  color: var(--white);
  background: var(--night);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 27, 0.36), rgba(21, 26, 27, 0.92) 60%),
    linear-gradient(180deg, rgba(21, 26, 27, 0.08), rgba(21, 26, 27, 0.72));
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.82;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 4.9rem);
  font-weight: 700;
}

.lead {
  max-width: 650px;
  margin: 1rem 0 0;
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 250, 241, 0.32);
  font-weight: 700;
  text-align: center;
  touch-action: manipulation;
}

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

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

.hero-panel {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 0.95rem 1.05rem;
  background: rgba(255, 250, 241, 0.1);
  backdrop-filter: blur(14px);
}

.hero-panel span,
.contact-card span {
  display: block;
  color: rgba(255, 250, 241, 0.65);
  font-size: 0.82rem;
}

.hero-panel strong,
.contact-card strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Noto Kufi Arabic", sans-serif;
  line-height: 1.45;
}

.intro,
.services,
.method,
.contact {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.8vw, 2.55rem);
}

.intro p:last-child,
.contact p,
.method-copy li {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.45);
}

.service-grid article {
  min-height: 19rem;
  padding: 1.4rem;
  border-left: 1px solid var(--line);
}

.service-grid article:last-child {
  border-left: 0;
}

.service-grid span {
  color: var(--gold);
  font-weight: 700;
}

.service-grid h3 {
  margin: 4.5rem 0 0.7rem;
  font-size: 1.25rem;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background: #fdf9f1;
}

.method-image {
  min-height: 32rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.method-copy ol {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.method-copy li {
  counter-increment: step;
  position: relative;
  padding: 1rem 4.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.method-copy li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--green);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 26rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
  color: var(--white);
  background: var(--night);
}

.contact h2 {
  max-width: 18ch;
}

.contact p {
  max-width: 680px;
  color: rgba(255, 250, 241, 0.74);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.contact-actions a,
.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.58rem 0.95rem;
  color: var(--white);
  border: 1px solid rgba(255, 250, 241, 0.26);
  background: rgba(255, 250, 241, 0.08);
  font-weight: 700;
  text-align: center;
}

.contact-actions a:first-child {
  color: var(--night);
  background: var(--white);
}

.contact-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(185, 138, 75, 0.16), rgba(185, 138, 75, 0.03)),
    #121617;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 1.05rem;
  border: 1px solid rgba(255, 250, 241, 0.14);
}

.contact-card::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -42%;
  width: 26rem;
  aspect-ratio: 1;
  border: 1px solid rgba(185, 138, 75, 0.32);
  border-radius: 50%;
}

.contact-structure {
  position: absolute;
  inset: 2.1rem 2rem 2rem;
  opacity: 0.9;
}

.contact-structure span {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 250, 241, 0.2);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.08), transparent);
}

.contact-structure span:nth-child(1) {
  right: 7%;
  bottom: 0;
  width: 26%;
  height: 72%;
}

.contact-structure span:nth-child(2) {
  right: 31%;
  bottom: 0;
  width: 20%;
  height: 54%;
  border-right: 0;
}

.contact-structure span:nth-child(3) {
  right: 48%;
  bottom: 0;
  width: 27%;
  height: 38%;
  border-right: 0;
}

.contact-structure span:nth-child(4) {
  right: 8%;
  top: 18%;
  width: 67%;
  height: 1px;
  border: 0;
  background: rgba(185, 138, 75, 0.58);
  transform: rotate(-22deg);
  transform-origin: right center;
}

.contact-seal {
  position: absolute;
  right: 1.7rem;
  bottom: 1.5rem;
  z-index: 1;
  display: grid;
  width: 6.2rem;
  height: 6.2rem;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(185, 138, 75, 0.55);
  color: var(--white);
  background: rgba(18, 22, 23, 0.76);
  text-align: center;
}

.contact-seal span {
  color: rgba(255, 250, 241, 0.62);
  font-size: 0.72rem;
  line-height: 1;
}

.contact-seal strong {
  display: block;
  margin-top: 0.18rem;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
  color: rgba(255, 250, 241, 0.7);
  background: #0f1314;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero,
  .intro,
  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    gap: 1rem;
  }

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

  .service-grid article:nth-child(2) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 0.72rem 1rem;
  }

  .brand {
    gap: 0.62rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .brand strong {
    max-width: calc(100vw - 6rem);
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 0.96rem;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-content: start;
    gap: 0.85rem;
    padding: 5.15rem 1rem 1rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(21, 26, 27, 0.42), rgba(21, 26, 27, 0.95)),
      linear-gradient(90deg, rgba(21, 26, 27, 0.72), rgba(21, 26, 27, 0.38));
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(1.95rem, 9.8vw, 2.65rem);
    line-height: 1.22;
  }

  .lead {
    margin-top: 0.68rem;
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
  }

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

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel div {
    min-width: 0;
    padding: 0.58rem 0.5rem;
  }

  .hero-panel span {
    font-size: 0.72rem;
  }

  .hero-panel strong {
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .intro,
  .services,
  .method,
  .contact {
    padding-block: 3rem;
  }

  footer {
    flex-direction: column;
  }

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

  .service-grid article {
    min-height: 13rem;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:last-child {
    border-bottom: 0;
  }

  .service-grid h3 {
    margin-top: 2.5rem;
  }

  .method-image {
    min-height: 24rem;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 4.8rem;
  }

  .eyebrow {
    margin-bottom: 0.48rem;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(1.75rem, 9.2vw, 2.25rem);
  }

  .lead {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .button {
    font-size: 0.86rem;
  }

  .hero-panel strong {
    font-size: 0.76rem;
  }
}
