:root {
  --purple: #3D014B;
  --purple-deep: #3D014B;
  --ivory: #f8f4f1;
  --gold: #f58220;
  --ink: #29232a;
  --white: #fff;
  --line: rgba(71, 8, 79, 0.12);
  --gold-text: #b4520a;
  --gutter: max(24px, calc((100vw - 1180px) / 2));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--purple);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--purple);
  transition: opacity 500ms ease, visibility 500ms ease;
  animation: preloader-failsafe 1ms linear 2s forwards;
}
.preloader img { width: min(300px, 62vw); height: auto; animation: preloader-logo 1.1s ease-out both; }
.preloader__bar {
  position: relative;
  width: 140px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: right;
  background: var(--gold);
  animation: preloader-bar 1.2s ease-out both;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloader-logo { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes preloader-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.site-header {
  position: relative;
  z-index: 20;
  height: 84px;
  color: var(--white);
  background: var(--purple);
  border-bottom: 2px solid var(--gold);
}

/* .header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
} */
.header-inner {
    justify-content: space-between;
    height: 100%;
    display: flex;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.brand { display: block; justify-self: start; }
.brand img { height: 78px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  grid-column: 2;
  gap: 40px;
  font-size: 16px;
  font-weight: 600;
}
.primary-nav a { position: relative; }
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 180ms ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button--primary { min-width: 130px; color: var(--white); background: var(--purple); }
.button--primary.button { min-width: 130px; color:var(--purple) ; background:var(--white) ; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ivory) 0%, #efe6dd 100%);
}
.hero__accent {
  position: absolute;
  left: -160px;
  bottom: -240px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 8, 79, 0.12), transparent 70%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 0;
  padding-block: 0;
}
.hero-copy { position: relative; z-index: 4; padding-block: 72px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-text);
  font-family: "Montserrat", "IBM Plex Sans Arabic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.hero h1 {
  margin: 0;
  color: var(--purple);
  line-height: 1.1;
}
/* .h1-big {
  display: block;
  position: relative;
  z-index: 4;
  margin-inline-end: clamp(-120px, -6vw, -40px);
  font-size: clamp(60px, 8.4vw, 124px);
  font-weight: 700;
  white-space: nowrap;
} */
.h1-big

 {
    display: block;
    position: relative;
    z-index: 4;
    margin-inline-end: clamp(-120px, 0vw, 11px);
    font-size: clamp(60px, 8.4vw, 104px);
    font-weight: 700;
    white-space: nowrap;
}
.h1-sub {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.3;
}
.hero-lead {
  max-width: 520px;
  margin: 26px 0 32px;
  color: #5e5661;
  font-size: 19px;
  line-height: 1.9;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-media {
  position: relative;
  z-index: 2;
  height: 560px;
  overflow: hidden;
  border-radius: 28px 160px 28px 28px;
  box-shadow: 0 40px 80px rgba(71, 8, 79, 0.22);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.hero-media:hover img { transform: scale(1.03); }

.about { padding: 72px 0; background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.about-media { order: 2; position: relative; width: 92%; margin-inline-start: auto; }
.about-media img {
  position: relative;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(41, 35, 42, 0.14);
}
.about-frame {
  position: absolute;
  inset-block: -16px 16px;
  inset-inline: 16px -16px;
  border: 1px solid var(--gold);
  border-radius: 14px;
}
.about-copy h2 {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.3;
}
.about-copy p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 0 12px;
  color: #5e5661;
  font-size: 17px;
  line-height: 1.95;
}

.services {
  padding: 80px 0 96px;
  background: #efe6dd;
}
.section-heading { margin-bottom: 36px; text-align: center; }
.section-heading h2 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 400px 400px;
  gap: 20px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #e9e2df;
  box-shadow: 0 10px 28px rgba(41, 35, 42, 0.08);
  transition: transform 350ms ease, box-shadow 350ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(71, 8, 79, 0.16); }
.service-card:nth-child(1) { grid-column: 1 / 8; }
.service-card:nth-child(2) { grid-column: 8 / 13; }
.service-card:nth-child(3) { grid-column: 1 / 6; }
.service-card:nth-child(4) { grid-column: 6 / 13; }
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover img { transform: scale(1.05); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(35, 8, 40, 0.85) 100%);
  pointer-events: none;
}
.service-card__copy::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--gold);
  transition: width 350ms ease;
}
.service-card:hover .service-card__copy::before { width: 72px; }
.service-card__copy {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 30px;
  left: 34px;
  color: var(--white);
}
.service-card__copy h3 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}
.service-card__copy p {
  margin: 0;
  max-width: 380px;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.7;
}

.categories { padding: 0 0 129px 0; background: var(--ivory); }

.category-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: auto;
  padding: 10px 10px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(41, 35, 42, 0.07);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.category-row li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(71, 8, 79, 0.12); }
.category-row img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.category-row span { color: var(--purple); font-size: 16px; font-weight: 600; }

.site-footer {
  padding: 3.25rem 0px 1.35rem;
;
  color: var(--white);
  background: radial-gradient(ellipse at 50% 0%, #5e1468 0%, var(--purple) 55%, var(--purple-deep) 100%);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand { 
  padding: 50px 0 0 0;;
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { width: min(250px, 82%); height: auto; }
.footer-description { margin: 0 0 18px; font-size: clamp(19px, 2vw, 24px); font-weight: 500; color: #f1e2d2; }
.footer-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--gold);
}
.footer-contact { display: flex; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; flex-direction: column; gap: 6px; padding-inline: 48px; }
.footer-contact li + li { border-inline-start: 1px solid rgba(255,255,255,0.18); }
.footer-contact span { font-size: 13px; color: #ffb06b; }
.footer-contact b { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.92); }
.copyright {
  width: 100%;
  margin: 52px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 130, 32, 0.28);
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }


@media (max-width: 900px) {
  :root { --gutter: max(18px, calc((100vw - 720px) / 2)); }
  .container { width: min(100% - 36px, 720px); }
  .site-header { height: 76px; }
  .header-inner { gap: 16px; }
  .brand img { height: 40px; }
  .hero { min-height: auto; }
  .hero-copy { padding-block: 44px; }
  .h1-big { font-size: clamp(48px, 9vw, 72px); margin-inline-end: -40px; }
  .hero-lead { font-size: 17px; }
  .hero-media { height: 460px; border-radius: 24px 120px 24px 24px; }
  .about { padding: 64px 0; }
  .about-grid { gap: 40px; }
  .about-media img { height: 340px; }
  .services { padding-block: 64px 72px; }
  .services-grid { grid-template-rows: 340px 340px; gap: 16px; }
  .category-row li { width: 170px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 32px); }
  .site-header { height: 111px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand img { height: 69px; }
  .menu-toggle {
    position: relative;
    z-index: 30;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    grid-column: 2;
    border: 0;
    background: transparent;
  }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .menu-toggle__icon { width: 24px; height: 18px; position: relative; }
  .menu-toggle__icon span {
    position: absolute;
    right: 0;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 180ms ease, top 180ms ease;
  }
  .menu-toggle__icon span:first-child { top: 5px; }
  .menu-toggle__icon span:last-child { top: 12px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 9px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 9px; transform: rotate(-45deg); }
  .primary-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(71, 8, 79, 0.12);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 4px; color: var(--ink); }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { width: 100%; padding: 36px 0 28px; }
  .h1-big { font-size: clamp(46px, 14vw, 62px); margin-inline-end: 0; }
  .h1-sub { font-size: 24px; }
  .hero-lead { margin-block: 18px 24px; font-size: 16px; line-height: 1.85; }
  .hero-media { align-self: stretch; margin-bottom: 40px; height: 360px; border-radius: 24px 110px 24px 24px; }
  .about { padding: 56px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: 0; width: calc(100% - 16px); margin-inline: 0 auto; }
  .about-media img { height: 260px; }
  .about-copy p:not(.eyebrow) { font-size: 16px; }
  .services { padding-block: 56px 60px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 34px; }
  .services-grid { display: flex; flex-direction: column; gap: 16px; }
  .service-card { height: 320px; }
  .category-row { gap: 10px; }
  .category-row li { width: calc((100% - 20px) / 3); padding: 6px 6px 12px; border-radius: 12px; }
  .category-row span { font-size: 14px; }
  .service-card__copy { right: 22px; bottom: 22px; left: 22px; }
  .service-card__copy h3 { font-size: 23px; }
  .service-card__copy p { font-size: 15px; }
  .site-footer { padding-top: 64px; }
  .footer-logo { width: min(200px, 70%); }
  .footer-description { font-size: 17px; }
  .footer-contact { flex-direction: column; gap: 20px; }
  .footer-contact li { padding-inline: 0; }
  .footer-contact li + li { border-inline-start: 0; }
  .categories { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


@media (max-width: 680px) {
  .category-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  .category-row li {
    width: 100%;
    min-width: 0;
  }

  .category-row img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }
}
