/* =========================
   MAJESTY - Home Services
   (Desktop + Mobile like Figma)
========================= */

.maj-services{
  padding: 20px 0 40px;
}

.maj-services .maj-container{
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.maj-services__title{
  margin: 0 0 20px;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 24px; /* mobile */
  line-height: 1.2;
  color: #715132;
}

/* ===== Grid ===== */
.maj-services__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* mobile: 2 cards per row */
  gap: 20px;
}

/* ===== Card Base ===== */
.maj-service{
  background: #f7f1e9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 262px; /* helps desktop */
}

.maj-service__inner{
  display: grid;
  grid-template-rows: auto 165px; /* mobile: content فوق + image تحت */
  height: 100%;
}

/* Content */
.maj-service__content{
  padding: 12px 10px 10px;
  text-align: right;
  font-family: "Open Sans", sans-serif;
  color: #6e4928;
}

.maj-service__heading{
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px; /* mobile */
  line-height: 1.25;
  color: #6e4928;
}

.maj-service__list{
  margin: 0 0 8px;
  padding: 0 18px 0 0;
  color: #7b736c;
  font-size: 14px; /* mobile like figma */
  font-weight: 600;
  line-height: 1.35;
}

.maj-service__list li{
  margin: 0 0 4px;
}

/* Button */
.maj-service__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f7f1e9;
  border: 0.5px solid #6e4928;
  color: #6e4928;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Media */
.maj-service__media{
  position: relative;
  width: 100%;
  height: 165px; /* mobile */
}

.maj-service__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile Figma feel (pill-ish corner) */
 
}

/* =========================
   Desktop
========================= */
@media (min-width: 992px){

  .maj-services{
    padding: 30px 0 60px;
  }

  .maj-services__title{
    font-size: 32px;
    margin-bottom: 20px;
  }

  .maj-services__grid{
    gap: 20px;
  }

  .maj-service{
    height: 262px;
  }

  /* Desktop: horizontal layout */
  .maj-service__inner{
    display: flex;
    flex-direction: row; /* img-left default */
    height: 262px;
  }

  .maj-service.is-img-right .maj-service__inner{
    flex-direction: row-reverse;
  }

  .maj-service__content{
    width: 316px;            /* زي الفيجما */
    padding: 33px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }

  .maj-service__heading{
    font-size: 20px;
    margin: 0;
  }

  .maj-service__list{
    font-size: 16px;
    margin: 0;
    padding-right: 21px;
  }

  .maj-service__btn{
    padding: 10px 14px;
    border: 0.8px solid #6e4928;
    font-size: 14px;
    width: max-content;
  }

  .maj-service__media{
    width: 345px;
    height: 262px;
  }

  
}

/* =========================
   CTA Banner
========================= */
.maj-services-cta{
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 161px; /* mobile figma */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.maj-services-cta__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--ctaOverlay,0.6));
}

.maj-services-cta__content{
  position: relative;
  z-index: 2;
  width: min(860px, 92%);
  padding: 18px 14px;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.maj-services-cta__title{
  margin: 0;
  font-size: 14px; /* mobile */
  font-weight: 600;
  line-height: 1.25;
}

.maj-services-cta__desc{
  margin: 0;
  font-size: 10px; /* mobile */
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.95;
}

.maj-services-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 40px; /* mobile figma */
  border-radius: 10px;
  background: #7b736c;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
}

@media (min-width: 992px){
  .maj-services-cta{
    margin-top: 20px;
    min-height: 303px;
  }

  .maj-services-cta__title{
    font-size: 32px;
  }

  .maj-services-cta__desc{
    font-size: 24px;
  }

  .maj-services-cta__btn{
    width: 379px;
    height: 61px;
    font-size: 20px;
  }
}


/* =========================
   Services reveal (smooth + light)
========================= */
/* Fade In Up (cards only) */
.maj-service.reveal{
  opacity: 0;
  transform: translateY(35px);
  transition: transform 700ms cubic-bezier(.23,1,.32,1), opacity 250ms ease;
  will-change: transform, opacity;
}

.maj-service.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* لو عايزة ورا بعض (اختياري) */
.maj-service.reveal{ transition-delay: var(--stagger, 0ms); }

@media (prefers-reduced-motion: reduce){
  .maj-service.reveal{ transition: none; opacity: 1; transform: none; }
}






