/* Taj Alwuqar — homepage: "Why Taj Alwuqar" + testimonials */
html:not(#iq-n1):not(#iq-n2) .iq-why,
html:not(#iq-n1):not(#iq-n2) .iq-testi-section {
  --iq-gold: #b8925a;
  --iq-gold-soft: #c9a96e;
  --iq-ink: #2d3a4a;
  --iq-body: #4a5361;
  --iq-cream: #fcf5ea;
  font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

/* ── Section headings ── */
html:not(#iq-n1):not(#iq-n2) .iq-why .iq-home-heading,
html:not(#iq-n1):not(#iq-n2) .iq-testi-section .iq-home-heading {
  margin: 0 0 10px;
  padding: 0;
  font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--iq-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  border: 0;
}

html:not(#iq-n1):not(#iq-n2) .iq-why .iq-home-heading::before,
html:not(#iq-n1):not(#iq-n2) .iq-why .iq-home-heading::after,
html:not(#iq-n1):not(#iq-n2) .iq-testi-section .iq-home-heading::before,
html:not(#iq-n1):not(#iq-n2) .iq-testi-section .iq-home-heading::after {
  content: none;
  display: none;
}

/* ── Why Taj Alwuqar ── */
html:not(#iq-n1):not(#iq-n2) .iq-why {
  padding: 72px 0 40px;
  background: #fff;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__kicker {
  margin: 0 auto 40px;
  max-width: 60ch;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  color: var(--iq-body);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 44px 48px;
  border-radius: 28px;
  background: var(--iq-cream);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__intro-text p {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.95;
  color: var(--iq-ink);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 6px;
  border: 1.5px solid var(--iq-gold);
  background: var(--iq-gold);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__btn:hover {
  background: #a27d48;
  border-color: #a27d48;
  transform: translateY(-1px);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__btn--ghost {
  background: transparent;
  color: var(--iq-gold);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__btn--ghost:hover {
  background: var(--iq-gold);
  color: #fff;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__intro-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(45, 58, 74, 0.16);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__list {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 56px 48px;
  border-radius: 28px;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__item:nth-child(even) {
  background: var(--iq-cream);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__item:nth-child(even) .iq-why__media {
  order: 2;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__media {
  position: relative;
  margin: 0;
  padding: 0;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__media::before {
  content: "";
  position: absolute;
  inset-block-start: -18px;
  inset-inline-start: -18px;
  width: 78%;
  height: 92%;
  border: 3px solid var(--iq-gold-soft);
  border-radius: 12px;
  pointer-events: none;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__item:nth-child(even) .iq-why__media::before {
  inset-inline-start: auto;
  inset-inline-end: -18px;
}

html:not(#iq-n1):not(#iq-n2) .iq-why__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(1) contrast(1.04);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__body h3 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--iq-ink);
}

html:not(#iq-n1):not(#iq-n2) .iq-why__body p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.2rem);
  font-weight: 500;
  line-height: 2;
  color: var(--iq-body);
}

/* Reveal on scroll */
html:not(#iq-n1):not(#iq-n2) .iq-why.is-js .iq-why__intro,
html:not(#iq-n1):not(#iq-n2) .iq-why.is-js .iq-why__item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html:not(#iq-n1):not(#iq-n2) .iq-why.is-js .is-in {
  opacity: 1;
  transform: none;
}

/* ── Testimonials ── */
html:not(#iq-n1):not(#iq-n2) .iq-testi-section {
  padding: 64px 0 72px;
  background: #fff;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi {
  position: relative;
  height: auto;
  margin-top: 28px;
  overflow: visible;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  transform: none !important;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__track::-webkit-scrollbar {
  display: none;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__track:focus-visible {
  outline: 2px solid var(--iq-gold);
  outline-offset: 4px;
  border-radius: 14px;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card {
  flex: 0 0 calc((100% - 16px) / 2);
  width: auto !important;
  max-width: none !important;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  margin: 0;
  padding: 26px 24px 22px;
  border: 2px solid var(--iq-gold);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: var(--iq-ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  opacity: 1;
  text-align: start;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card::before {
  content: "\f10e";
  display: block;
  margin-bottom: 14px;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--iq-gold);
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card::after {
  content: none;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card .stars {
  display: none;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card > p {
  flex: 1;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.85;
  color: #333a44;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .client-info {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee7da;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-author {
  margin: 0;
  font-size: 0.98rem;
  color: var(--iq-ink);
}

html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-author strong {
  font-weight: 700;
  color: inherit;
}

@media (min-width: 1100px) {
  html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card {
    flex-basis: calc((100% - 32px) / 3);
  }
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__nav {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--iq-gold);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__nav:hover {
  background: #a27d48;
  transform: translateY(-1px);
}

html:not(#iq-n1):not(#iq-n2) .iq-testi__nav:focus-visible {
  outline: 2px solid var(--iq-ink);
  outline-offset: 3px;
}

html[dir="ltr"]:not(#iq-n1):not(#iq-n2) .iq-testi__nav i {
  transform: scaleX(-1);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  html:not(#iq-n1):not(#iq-n2) .iq-why__intro {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 28px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__intro-media {
    order: -1;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__item {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 28px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__item:nth-child(even) .iq-why__media {
    order: 0;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__media {
    max-width: 380px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__body {
    text-align: center;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__body p {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  html:not(#iq-n1):not(#iq-n2) .iq-why {
    padding: 52px 0 24px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__kicker {
    margin-bottom: 28px;
    font-size: 1.08rem;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__intro {
    padding: 22px 18px;
    border-radius: 20px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__intro-text p {
    font-size: 1.08rem;
    line-height: 1.85;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__actions {
    flex-direction: column;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__btn {
    width: 100%;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__item {
    padding: 40px 18px;
    gap: 34px;
    border-radius: 20px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__media {
    max-width: calc(100% - 22px);
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__media::before {
    inset-block-start: -12px;
    inset-inline-start: -12px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__item:nth-child(even) .iq-why__media::before {
    inset-inline-end: -12px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-why__body p {
    font-size: 1.06rem;
    line-height: 1.9;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-testi-section {
    padding: 48px 0 56px;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-testi .testimonial-card {
    flex-basis: 88%;
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(#iq-n1):not(#iq-n2) .iq-why.is-js .iq-why__intro,
  html:not(#iq-n1):not(#iq-n2) .iq-why.is-js .iq-why__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html:not(#iq-n1):not(#iq-n2) .iq-testi__track {
    scroll-behavior: auto;
  }
}
