/* الصفحة الرئيسية — بطاقة إسعاد */

.home-page {
  background: linear-gradient(180deg, #f4faf7 0%, #ffffff 320px);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--esaad);
  color: var(--white);
  border-bottom: 1px solid rgba(0, 77, 51, 0.35);
  box-shadow: 0 8px 28px rgba(0, 77, 51, 0.18);
}

.home-header__inner {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-direction: row-reverse;
}

.home-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.home-header__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(0, 40, 28, 0.22);
}

.home-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
}

.home-header__utility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}

.home-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--esaad-dark);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(176, 224, 0, 0.12), transparent 55%),
    linear-gradient(145deg, #006842 0%, #008050 42%, #004d33 100%);
  color: #fff;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) 0 clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.home-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c5eed9;
  letter-spacing: 0.02em;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 18ch;
}

.home-hero__lead {
  margin: 16px 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  color: #e8f8f0;
  max-width: 42ch;
  font-weight: 400;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-btn:active {
  transform: scale(0.98);
}

.home-btn--primary {
  background: #fff;
  color: var(--esaad-dark);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.esaad-card-mock {
  width: min(100%, 320px);
  aspect-ratio: 1.586;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, #0a9d66 0%, #008050 45%, #004d33 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-4deg);
}

.esaad-card-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row-reverse;
}

.esaad-card-mock__top img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.esaad-card-mock__chip {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0e6a8, #c9a227);
  opacity: 0.9;
}

.esaad-card-mock__title {
  margin: 8px 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.esaad-card-mock__tagline {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #d4f5e6;
  max-width: 95%;
}

.esaad-card-mock__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

.home-stats {
  width: min(1140px, calc(100% - 28px));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-stat {
  background: #fff;
  border: 1px solid rgba(0, 128, 80, 0.12);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 77, 51, 0.08);
}

.home-stat strong {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--esaad);
  line-height: 1.2;
}

.home-stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.home-section {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) 0;
}

.home-section__head {
  text-align: center;
  margin-bottom: 28px;
}

.home-section__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--black);
}

.home-section__head p {
  margin: 10px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-cat {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 77, 51, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-cat:hover {
  border-color: rgba(0, 128, 80, 0.25);
  transform: translateY(-2px);
}

.home-cat__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--esaad-light);
  color: var(--esaad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.home-cat h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.home-cat p {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

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

.home-step {
  background: linear-gradient(180deg, #ffffff, #f6fcf9);
  border: 1px solid rgba(0, 128, 80, 0.1);
  border-radius: 20px;
  padding: 22px 18px;
  position: relative;
}

.home-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--esaad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.home-step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.home-step p {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-cta {
  background: linear-gradient(135deg, #008050, #006842);
  color: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row-reverse;
  box-shadow: 0 20px 50px rgba(0, 104, 66, 0.25);
}

.home-cta h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.home-cta p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #d4f5e6;
  line-height: 1.55;
}

.home-page .footer {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero h1,
  .home-hero__lead {
    margin-inline: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .home-header__brand span {
    display: none;
  }

  .home-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: -18px;
  }

  .home-categories {
    grid-template-columns: 1fr;
  }

  .esaad-card-mock {
    transform: none;
    width: min(100%, 280px);
  }
}