/* ================================================================
   شركة المهر السريع — Premium Hero Section CSS
   Standalone · RTL · No Bootstrap · Responsive
   ================================================================ */

/* inherits from header-premium.css:
   --ah-navy #0D1B2A | --ah-gold #C28A3A | --ah-gold-h #D4A050
   --ah-cream #F7F4EE | --ah-dark #2B2B2B | --ah-gray #E6E6E6
   --ah-h-top 40px   | --ah-h-nav 74px
*/

/* ================================================================
   SECTION SHELL
   ================================================================ */
.mahr-hero {
  position: relative;
  background: var(--ah-navy, #0D1B2A);
  overflow: hidden;
  direction: rtl;
  display: flex;
  flex-direction: column;
}

/* Dot-grid texture */
.mahr-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(194,138,58,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow (left panel warm light) */
.mahr-hero__glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at center,
    rgba(194,138,58,.09) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Gold accent line at very top */
.mahr-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ah-gold,#C28A3A) 40%,
    var(--ah-gold,#C28A3A) 60%,
    transparent 100%
  );
  z-index: 5;
}

/* ================================================================
   GRID CONTAINER
   ================================================================ */
.mahr-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 68px 28px 100px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 52px;
  align-items: center;
  flex: 1;
}

/* ================================================================
   CONTENT — RIGHT SIDE (RTL leading)
   ================================================================ */
.mahr-hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── Eyebrow chip ── */
.mahr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ah-gold, #C28A3A);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px 5px 10px;
  background: rgba(194,138,58,.1);
  border: 1px solid rgba(194,138,58,.28);
  border-radius: 100px;
  align-self: flex-start;
  animation: mhr-slideUp .55s ease both;
}

.mahr-hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--ah-gold, #C28A3A);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── H1 ── */
.mahr-hero__title {
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ah-cream, #F7F4EE);
  margin: 0;
  animation: mhr-slideUp .55s .1s ease both;
}

.mahr-hero__title-accent {
  color: var(--ah-gold, #C28A3A);
}

.mahr-hero__title-area {
  font-size: .72em;
  font-weight: 600;
  color: rgba(247,244,238,.65);
  display: block;
  margin-top: 4px;
}

/* ── Subtitle ── */
.mahr-hero__subtitle {
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: clamp(14.5px, 1.3vw, 17px);
  line-height: 1.95;
  color: rgba(247,244,238,.75);
  margin: 0;
  max-width: 560px;
  animation: mhr-slideUp .55s .18s ease both;
}

/* ── Trust line ── */
.mahr-hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(247,244,238,.72);
  margin: 0;
  padding: 11px 16px;
  background: rgba(194,138,58,.07);
  border-right: 3px solid var(--ah-gold, #C28A3A);
  border-radius: 0 8px 8px 0;
  animation: mhr-slideUp .55s .24s ease both;
}

.mahr-hero__trust i {
  color: var(--ah-gold, #C28A3A);
  font-size: 15px;
  flex-shrink: 0;
}

/* ── CTA row ── */
.mahr-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: mhr-slideUp .55s .3s ease both;
}

/* Shared CTA base */
.mahr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease,
              background .22s ease, border-color .22s ease;
  cursor: pointer;
  letter-spacing: .015em;
}

.mahr-cta i { font-size: 16px; }

/* Gold primary */
.mahr-cta--gold {
  background: var(--ah-gold, #C28A3A);
  border-color: var(--ah-gold, #C28A3A);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(194,138,58,.32);
}

.mahr-cta--gold:hover {
  background: var(--ah-gold-h, #D4A050);
  border-color: var(--ah-gold-h, #D4A050);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(194,138,58,.42);
}

/* Navy outline */
.mahr-cta--outline {
  background: transparent;
  border-color: rgba(247,244,238,.32);
  color: var(--ah-cream, #F7F4EE) !important;
}

.mahr-cta--outline:hover {
  border-color: rgba(247,244,238,.7);
  background: rgba(255,255,255,.06);
  color: var(--ah-cream, #F7F4EE) !important;
  transform: translateY(-1px);
}

/* ── Reassurance note ── */
.mahr-hero__note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 12.5px;
  color: rgba(247,244,238,.45);
  animation: mhr-slideUp .55s .35s ease both;
}

.mahr-hero__note i { color: var(--ah-gold,#C28A3A); font-size: 11px; }

/* ── Trust badges ── */
.mahr-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: mhr-slideUp .55s .4s ease both;
}

.mahr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(247,244,238,.11);
  border-radius: 100px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(247,244,238,.82);
  transition: background .2s, border-color .2s;
  cursor: default;
}

.mahr-badge i { color: var(--ah-gold,#C28A3A); font-size: 11px; }

.mahr-badge:hover {
  background: rgba(194,138,58,.1);
  border-color: rgba(194,138,58,.3);
}

/* ── Service areas micro-line ── */
.mahr-hero__areas {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 12px;
  color: rgba(247,244,238,.38);
  margin: 0;
  line-height: 1.7;
  animation: mhr-slideUp .55s .45s ease both;
}

.mahr-hero__areas i { color: var(--ah-gold,#C28A3A); font-size: 10.5px; margin-top: 3px; flex-shrink: 0; }

/* ================================================================
   VISUAL SIDE — LEFT (RTL)
   ================================================================ */
.mahr-hero__visual {
  position: relative;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  animation: mhr-fadeIn .7s .15s ease both;
}

/* Background: slider image with deep navy overlay */
.mahr-hero__vis-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mahr-hero__vis-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mahr-hero__vis-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(13,27,42,.92) 0%,
    rgba(13,27,42,.75) 55%,
    rgba(13,27,42,.88) 100%
  );
}

/* Gold border */
.mahr-hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(194,138,58,.22);
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

/* Gold top stripe */
.mahr-hero__visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ah-gold,#C28A3A) 30%,
    var(--ah-gold,#C28A3A) 70%,
    transparent
  );
  z-index: 11;
}

/* Inner composition */
.mahr-hero__vis-inner {
  position: relative;
  z-index: 5;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 28px;
}

/* Logo emblem circle */
.mahr-hero__emblem {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(13,27,42,.75);
  border: 2px solid rgba(194,138,58,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-shadow:
    0 0 0 8px rgba(194,138,58,.06),
    0 0 0 16px rgba(194,138,58,.03),
    0 24px 60px rgba(0,0,0,.4);
  animation: mhr-pulse 3.8s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

.mahr-hero__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 2x2 service cards grid */
.mahr-vcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.mahr-vcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(13,27,42,.72);
  border: 1px solid rgba(194,138,58,.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all .22s ease;
  direction: rtl;
}

.mahr-vcard:hover {
  background: rgba(194,138,58,.12);
  border-color: rgba(194,138,58,.45);
  transform: translateY(-2px);
}

.mahr-vcard__icon {
  width: 34px;
  height: 34px;
  background: rgba(194,138,58,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mahr-vcard__icon i { color: var(--ah-gold,#C28A3A); font-size: 14px; }

.mahr-vcard__label {
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(247,244,238,.88);
  line-height: 1.2;
}

/* SVG shield/speed-lines deco */
.mahr-hero__svg-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: .18;
}

/* ================================================================
   WAVE DIVIDER
   ================================================================ */
.mahr-hero__wave {
  position: relative;
  z-index: 3;
  line-height: 0;
  margin-top: -1px;
}

.mahr-hero__wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes mhr-slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes mhr-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mhr-pulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(194,138,58,.06), 0 0 0 16px rgba(194,138,58,.03), 0 24px 60px rgba(0,0,0,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(194,138,58,.12), 0 0 0 16px rgba(194,138,58,.06), 0 24px 60px rgba(0,0,0,.4); }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .mahr-hero__content > *,
  .mahr-hero__visual { animation: none !important; }
  .mahr-hero__emblem { animation: none !important; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── 1024–1199px ── */
@media (max-width: 1199px) {
  .mahr-hero__inner { gap: 36px; }
  .mahr-hero__emblem { width: 170px; height: 170px; }
}

/* ── Tablet (768–1023px) ── */
@media (max-width: 1023px) {
  .mahr-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 22px 80px;
  }

  /* Visual on top for tablet */
  .mahr-hero__visual { order: -1; min-height: 300px; }
  .mahr-hero__vis-inner { min-height: 300px; gap: 20px; padding: 28px; }
  .mahr-hero__emblem { width: 150px; height: 150px; padding: 18px; }
  .mahr-vcards { max-width: 280px; gap: 8px; }

  .mahr-hero__title { font-size: clamp(22px, 4.5vw, 36px); }
  .mahr-hero__subtitle { font-size: 15px; }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
  .mahr-hero__inner {
    padding: 36px 16px 72px;
    gap: 24px;
  }

  .mahr-hero__visual { min-height: 250px; }
  .mahr-hero__vis-inner { min-height: 250px; padding: 24px 20px; gap: 16px; }
  .mahr-hero__emblem { width: 120px; height: 120px; padding: 14px; }
  .mahr-vcards { grid-template-columns: 1fr 1fr; max-width: 260px; gap: 7px; }
  .mahr-vcard { padding: 9px 11px; }
  .mahr-vcard__icon { width: 28px; height: 28px; }
  .mahr-vcard__icon i { font-size: 12px; }
  .mahr-vcard__label { font-size: 11.5px; }

  .mahr-hero__title { font-size: clamp(20px, 6vw, 28px); }
  .mahr-hero__subtitle { font-size: 14px; line-height: 1.85; }
  .mahr-hero__trust { font-size: 13px; }

  .mahr-hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .mahr-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14.5px;
  }

  .mahr-hero__badges { gap: 6px; }
  .mahr-badge { font-size: 12px; padding: 6px 11px; }

  .mahr-hero__wave svg { height: 48px; }
}

/* ── Small mobile (< 480px) ── */
@media (max-width: 480px) {
  .mahr-hero__vis-inner { gap: 12px; padding: 20px 16px; }
  .mahr-hero__emblem { width: 100px; height: 100px; padding: 12px; }
  .mahr-vcards { max-width: 220px; }
}
