/* ================== Tokens ================== */
:root {
  --touchY: clamp(56px, 7.2vw, 120px);
  --side: 280px;
}

/* Helpers */
.section-pad {
  padding: 48px 0;
}
.container-narrow {
  padding: 0 16px;
}
.muted {
  opacity: 0.9;
}

/* ================== HERO ================== */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 23vw;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.about-hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      180deg,
      rgba(20, 16, 78, 0.55),
      rgba(20, 16, 78, 0.15)
    ),
    url("../assets/images/about-hero.jpg");
  background-size: cover;
  background-position: center 35%;
  z-index: -1;
}
.about-hero__center {
  max-width: 1000px;
  padding: 0 16px;
  color: #fff;
}
.about-hero__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  margin: 0px 135px 0px 0px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.muted{
    font-size: 48px;
    font-weight: 400;
}
.about-hero__lead {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(15px, 1.9vw, 20px);
  opacity: 0.98;
}

/* ================== Layout: 280px | 1fr ================== */
.about-layout {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* Sidebar (ثابتة + نصفها داخل/خارج الهيرو) */
.about-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  margin-top: -300px; 
  z-index: 5;
}
.about-nav {
  width: var(--side);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(20, 16, 78, 0.08);
}
.about-nav li {
  list-style: none;
}
.about-nav__link {
  display: block;
  padding: 16px;
  margin: 6px 0;
  border-radius: 12px;
  color: #71717A;
  text-decoration: none;
    font-size: 14px;
    font-weight: 400;
  transition: 0.18s ease;
}
.about-nav__link:hover {
  background: #f3f6fa;
}
.about-nav__link.is-active {
  background: #ebe8ff;
  color: #2e2796;
  box-shadow: inset 0 0 0 1px #cfc7ff;
}

/* Content column */
.about-content {
  min-width: 0;
}

/* ================== Intro ================== */
.intro-text {
  font-size: 16px;
  font-weight: 400;
  color: #52525B;
}

/* ================== Services collage ================== */
.about-services {
  max-width: 100%;
}

.svc {
  position: relative;
    margin-bottom: -24px;}

.svc--split {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.svc--invert {
  grid-template-columns: 1fr 1.1fr;
}

/* Text */
.svc__title {
    font-weight: 600;
    font-size: 20px;
    color: #52525B;
  margin: 0 0 12px;
}
.svc__p {
      font-weight:400;
    font-size: 16px;
    color: #52525B;
}

/* Polaroid */
.polaroid {
  --pad: 14px;
  background: #F2F2F2;
  border-radius: 10px;
  padding: var(--pad);
  width: 100%;
  max-width: 560px;
 
  transform-origin: center;
  position: relative;
  z-index: 1;
}
.svc--invert .polaroid {
  z-index: 2;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Tilt */
.rotate-r {
  transform: rotate(3.2deg);
}
.rotate-l {
  transform: rotate(-4deg);
}

/* Touching edges between rows */
.touch-next {
  margin-bottom: 50px
}
.touch-prev {
  margin-top: -80px;
}

/* Full row end */
.svc--full {
  margin-top: 64px;
}
.svc__text--center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* ================== Responsive ================== */
@media (max-width: 1024px) {
  :root {
    --side: 240px;
  }
}

@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-sidebar {
    position: static;
    margin-top: -40px;
  }
  .about-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .about-nav__link {
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 780px) {
  .svc--split,
  .svc--invert {
    grid-template-columns: 1fr;
  }
  .rotate-r,
  .rotate-l {
    transform: none;
  }
  .polaroid {
    max-width: 100%;
  }
  .touch-next,
  .touch-prev {
    margin: 0;
  }
}

@media (min-width: 1200px) {
  :root {
    --touchY: 110px;
  }
}
@media (min-width: 1600px) {
  :root {
    --touchY: 140px;
  }
}
