/* Modern marketing layout — ARABAT landing */

.section-pad {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-head .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-head .lead + .lead {
  margin-top: 0.75rem;
}

/* —— Hero —— */
.hero-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--primary-light) 0%, #fff 42%, #faf8f6 100%);
  border-bottom: 1px solid var(--border);
  --hero-art-opacity: 0.18;
  --hero-art-opacity-visible: 0.22;
}

.hero-block__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(circle at 85% 20%, rgba(51, 154, 150, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(240, 116, 52, 0.08) 0%, transparent 40%);
}

html[dir="rtl"] .hero-block__pattern {
  background-image: radial-gradient(circle at 15% 20%, rgba(51, 154, 150, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(240, 116, 52, 0.08) 0%, transparent 40%);
}

.hero-block .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(51, 154, 150, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-sub {
  text-align: right;
}

html[dir="ltr"] .hero-eyebrow,
html[dir="ltr"] .hero-title,
html[dir="ltr"] .hero-sub {
  text-align: left;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.875rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1a1a1f;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  margin-top: 0.25rem;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.hero-art {
  width: 100%;
  max-width: 26rem;
  height: auto;
  object-fit: contain;
  filter: none;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-art:not(.lazy) {
  opacity: 0;
}

.hero-art:not(.lazy).loaded,
.hero-art.lazy.loaded {
  opacity: var(--hero-art-opacity-visible);
  transform: translateY(0);
}

/* —— Trust strip —— */
.trust-banner {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(2rem, 5vw, 2.75rem) !important;
  min-height: unset !important;
}

.trust-banner .accent-label {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem !important;
}

.trust-banner h2 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  color: #1a1a1f;
}

/* —— Product story —— */
.story-block {
  background: var(--background-color);
}

.section-copy h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-copy .lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* —— Feature cards —— */
#features {
  background: var(--surface);
}

.feature-card {
  height: 100%;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(51, 154, 150, 0.35);
}

.feature-card h5 {
  font-size: 1.05rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: #1a1a1f;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0;
}

.feature-card .feature-icon-wrap {
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1rem;
  border-radius: 0.875rem;
}

.features-grid-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1f;
  margin-bottom: 1.5rem;
}

/* —— Why ARABAT —— */
.section-why {
  background: linear-gradient(155deg, #25252c 0%, #36363f 45%, #1a4543 100%);
}

.section-why .section-head h2 {
  color: #fff;
}

.section-why .pillar-card {
  padding: 1.25rem 1rem;
}

.section-why .pillar-card p.fw-semibold {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* —— Contact CTA —— */
.cta-panel {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(145deg, var(--primary-light) 0%, #fff 100%);
  border: 1px solid rgba(51, 154, 150, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.cta-panel h2 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.cta-panel .lead {
  font-size: 1.0625rem;
}

.cta-panel .text-muted {
  font-size: 0.9375rem;
}

/* —— Footer —— */
.footer-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.footer-cta .footer-accent {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.footer-cta .btn-light {
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.footer-bar {
  padding-block: 1.25rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

/* —— Desktop —— */
@media (min-width: 992px) {
  .hero-block {
    --hero-art-opacity: 0.26;
    --hero-art-opacity-visible: 0.3;
  }

  html[dir="rtl"] .hero-content {
    text-align: start;
    padding-inline-end: 1rem;
  }

  html[dir="ltr"] .hero-content {
    text-align: start;
    padding-inline-end: 1rem;
  }

  html[dir="rtl"] .section-copy {
    text-align: start;
    padding-inline-end: 1.5rem;
  }

  html[dir="ltr"] .section-copy {
    text-align: start;
    padding-inline-end: 1.5rem;
  }

  .hero-sub {
    margin-inline-start: 0;
  }

  .hero-block .hero-row {
    padding-block: 2rem !important;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-eyebrow {
    order: 1;
    margin-bottom: 1rem;
  }

  .hero-sub {
    order: 2;
    margin-bottom: 1rem;
  }

  .hero-title {
    order: 3;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    order: 4;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0;
  }

  .hero-cta {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }

  /* الصورة خلفية — لا توسّع ارتفاع الهيرو */
  .hero-visual.col-lg-6 {
    position: relative;
    display: block;
    padding: 0;
    overflow: visible;
    align-self: center;
  }

  .hero-visual.col-lg-6::before {
    content: "";
    display: block;
    width: min(30vw, 28rem);
    max-width: 100%;
    margin-inline: auto;
    aspect-ratio: 1;
    pointer-events: none;
    visibility: hidden;
  }

  .hero-block__pattern {
    opacity: 0.4;
  }

  .hero-visual .hero-art-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(49vw, 46.5rem);
    max-width: none;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 12px));
    transform-origin: center center;
    transition: transform 0.6s ease;
  }

  .hero-visual .hero-art-wrap.is-loaded {
    transform: translate(-50%, -50%);
  }

  .hero-visual .hero-art {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    filter: none;
    transform: none;
  }

  .hero-visual .hero-art.loaded {
    opacity: var(--hero-art-opacity-visible);
  }
}

/* —— Mobile —— */
@media (max-width: 991.98px) {
  .hero-block {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(64vh, 30rem);
    padding-block: clamp(1.5rem, 4vh, 2rem);
    overflow: hidden;
  }

  .hero-block > .container {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  .hero-block .hero-row {
    position: static;
    margin: 0;
    --bs-gutter-y: 0;
    padding: 0 !important;
    align-items: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-inline: 0;
    padding-block: 0;
    background: transparent;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-sub {
    max-width: none;
    margin-bottom: 1.5rem;
    margin-inline: 0;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }

  .hero-cta {
    width: 100%;
    max-width: 18rem;
  }

  /* خلفية على الجانب الفارغ — لا تتداخل مع النص */
  .hero-visual.col-12 {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    display: block;
    overflow: visible;
  }

  /* لا نحرّك الحاوية بـ slide-right — الموضع ثابت على الـ wrap */
  .hero-visual.col-12.slide-right {
    opacity: 0;
    transform: none;
    transition: opacity 0.7s ease-out;
  }

  .hero-visual.col-12.slide-right.visible {
    opacity: 1;
    transform: none;
  }

  .hero-art-wrap {
    position: absolute;
    top: 50%;
    width: min(150vw, 44rem);
    max-width: none;
    border-radius: 0;
    background: transparent;
    animation: none;
    transform: translateY(-50%) scale(1.12);
    transform-origin: center center;
  }

  .hero-art-wrap:not(.is-loaded) {
    background: linear-gradient(
      90deg,
      rgba(232, 243, 242, 0.5) 0%,
      rgba(246, 251, 251, 0.85) 45%,
      rgba(232, 243, 242, 0.5) 90%
    );
    background-size: 200% 100%;
    animation: media-shimmer 1.35s ease-in-out infinite;
  }

  .hero-art {
    width: 100%;
    height: auto;
    filter: none;
    flex-shrink: 0;
  }

  .hero-art.loaded {
    opacity: var(--hero-art-opacity-visible);
  }

  .hero-block__pattern {
    opacity: 0.4;
  }

  html[dir="rtl"] .hero-content {
    text-align: right;
  }

  /* عربي: ~35% من الشعار يظهر من يسار الشاشة */
  html[dir="rtl"] .hero-art-wrap {
    left: 0;
    right: auto;
    transform: translate(-65%, -50%) scale(1.12);
  }

  html[dir="ltr"] .hero-content {
    text-align: left;
  }

  /* إنجليزي: ~35% من الشعار يظهر من يمين الشاشة */
  html[dir="ltr"] .hero-art-wrap {
    left: auto;
    right: 0;
    transform: translate(65%, -50%) scale(1.12);
  }

  html[dir="rtl"] .hero-visual .hero-art,
  html[dir="rtl"] .hero-visual .hero-art.loaded,
  html[dir="ltr"] .hero-visual .hero-art,
  html[dir="ltr"] .hero-visual .hero-art.loaded {
    transform: none;
  }

  .section-copy {
    text-align: center !important;
  }

  .section-cta {
    display: inline-block;
    min-width: 11rem;
  }
}
