/* Istikhlas Plus — creative homepage layout */
.ip-home {
  --ip-primary: #0d5c47;
  --ip-secondary: #1a7a68;
  --ip-accent: #c9a227;
  --ip-accent-light: #e8d5a3;
  --ip-text: #1e3d35;
  --ip-muted: #5a6e68;
  --ip-bg: #f7f5ef;
  --ip-bg-soft: #edf7f3;
  direction: rtl;
  color: var(--ip-text);
}

/* ── Hero ── */
.ip-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.ip-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: ip-hero-kenburns 18s ease-in-out infinite alternate;
}
@keyframes ip-hero-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
.ip-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(7, 42, 33, 0.92) 0%, rgba(13, 92, 71, 0.78) 42%, rgba(13, 92, 71, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}
.ip-hero__overlay::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
  top: -120px;
  left: -80px;
  pointer-events: none;
}
.ip-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.ip-hero__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ip-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}
.ip-hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ip-accent);
  animation: ip-pulse 2s ease infinite;
}
@keyframes ip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.ip-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.ip-hero__title span {
  background: linear-gradient(90deg, #e8d5a3, var(--ip-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ip-hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  margin-bottom: 1rem;
}
.ip-hero__desc {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}
.ip-hero__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ip-hero__stat {
  text-align: center;
  min-width: 96px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}
.ip-hero__stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ip-accent-light);
  line-height: 1;
}
.ip-hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}
.ip-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}
.ip-btn:hover { transform: translateY(-3px); }
.ip-btn--primary {
  background: linear-gradient(135deg, var(--ip-secondary), #2d9b7a);
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 122, 104, 0.25);
}
.ip-btn--outline {
  border: 2px solid rgba(13, 92, 71, 0.2);
  color: var(--ip-primary);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.ip-btn--outline.ip-btn--light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ip-btn--outline.ip-btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
}
.ip-hero__chips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}
.ip-hero__float {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ip-primary);
  animation: ip-float 4s ease-in-out infinite;
  min-width: 180px;
}
.ip-hero__float:nth-child(2) { animation-delay: 1.5s; }
@keyframes ip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ip-hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ip-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ip-secondary);
  font-size: 1rem;
}

/* ── Bento features ── */
.ip-bento {
  padding: 5rem 0;
  background: #fff;
}
.ip-bento__header {
  text-align: center;
  margin-bottom: 3rem;
}
.ip-bento__label {
  color: var(--ip-accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ip-bento__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--ip-primary);
}
.ip-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}
.ip-bento__card {
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ip-bento__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13, 92, 71, 0.1);
}
.ip-bento__card--large {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--ip-primary) 0%, var(--ip-secondary) 100%);
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ip-bento__card--large h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.75rem; }
.ip-bento__card--large p { opacity: 0.9; line-height: 1.7; margin: 0; }
.ip-bento__card--img {
  grid-column: span 5;
  min-height: 280px;
  padding: 0;
}
.ip-bento__card--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.ip-bento__card--feat {
  grid-column: span 4;
  background: var(--ip-bg-soft);
  border: 1px solid rgba(13, 92, 71, 0.08);
}
.ip-bento__card--feat .ip-feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ip-accent), var(--ip-accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ip-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.ip-bento__card--feat h4 {
  font-weight: 800;
  color: var(--ip-primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.ip-bento__card--feat p {
  color: var(--ip-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Services carousel ── */
.ip-services {
  padding: 5rem 0;
  background: var(--ip-bg);
}
.ip-services .service-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(13, 92, 71, 0.06);
  border: 1px solid rgba(13, 92, 71, 0.06);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.ip-services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(13, 92, 71, 0.12);
}
.ip-services .card-media-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.ip-services .placeholder-media {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ip-bg-soft), var(--ip-accent-light));
  margin-bottom: 1rem;
}
.ip-services .service-icon {
  position: absolute;
  top: 175px;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ip-primary);
  color: var(--ip-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(13, 92, 71, 0.2);
}
.ip-services .service-card h3 {
  color: var(--ip-primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.ip-services .service-card p {
  color: var(--ip-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.ip-services .highlight {
  background: linear-gradient(90deg, var(--ip-secondary), var(--ip-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Timeline steps ── */
.ip-timeline {
  padding: 5rem 0;
  background: #fff;
}
.ip-timeline__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}
.ip-timeline__track::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 12%;
  left: 12%;
  height: 3px;
  background: linear-gradient(90deg, var(--ip-accent), var(--ip-secondary));
  border-radius: 3px;
  z-index: 0;
}
.ip-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ip-step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ip-secondary), #2d9b7a);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(26, 122, 104, 0.25);
  border: 4px solid #fff;
}
.ip-step:nth-child(even) .ip-step__num {
  background: linear-gradient(135deg, var(--ip-accent), var(--ip-accent-light));
  color: var(--ip-primary);
}
.ip-step__box {
  background: var(--ip-bg-soft);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(13, 92, 71, 0.08);
  transition: transform 0.2s;
}
.ip-step__box:hover { transform: translateY(-4px); }
.ip-step__box h4 {
  font-weight: 800;
  color: var(--ip-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.ip-step__box p {
  color: var(--ip-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* ── FAQ ── */
.ip-faq {
  padding: 5rem 0;
  background: var(--ip-bg);
}
.ip-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.ip-faq__item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(13, 92, 71, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.ip-faq__item:hover { box-shadow: 0 8px 24px rgba(13, 92, 71, 0.08); }
.ip-faq__q {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--ip-primary);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ip-faq__q::before {
  content: attr(data-num);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ip-secondary), #2d9b7a);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-faq__a {
  padding: 0 1.5rem 1.25rem;
  color: var(--ip-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── CTA strip ── */
.ip-cta {
  margin: 0 1rem 4rem;
  padding: 3rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ip-primary) 0%, var(--ip-secondary) 60%, #2d9b7a 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ip-cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  top: -100px;
  left: -50px;
}
.ip-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  position: relative;
}
.ip-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  position: relative;
}
.ip-cta .ip-btn--primary {
  background: #fff;
  color: var(--ip-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ip-hero {
    min-height: auto;
  }
  .ip-hero__inner {
    grid-template-columns: 1fr;
    padding: 5rem 1rem 3rem;
  }
  .ip-hero__chips {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: stretch;
  }
  .ip-hero__float {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
  }
  .ip-bento__card--large,
  .ip-bento__card--img,
  .ip-bento__card--feat { grid-column: span 12; }
  .ip-timeline__track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ip-timeline__track::before { display: none; }
  .ip-faq__grid { grid-template-columns: 1fr; }
}

/* WOW.js — hide until animated */
.wow { visibility: hidden; }
.wow.animate__animated { visibility: visible; }
