/* =========================================================
   MECMISR HERO V2
   Balanced desktop composition and responsive mobile layout
   ========================================================= */

.hero-v2 {
  min-height: 610px;
  background:
    radial-gradient(circle at 82% 26%, rgba(213,32,48,.09), transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.91)),
    linear-gradient(135deg, #ffffff 0%, #f4f5f6 100%);
}

.hero-v2 .hero-grid {
  min-height: 610px;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 48px;
}

.hero-v2 .hero-content {
  max-width: 700px;
}

.hero-v2 .label {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.hero-v2 .hero-content h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 1.02;
}

.hero-v2 .hero-text {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-v2 .hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-v2 #mecmisr-hero-rfq-button {
  margin: 0 !important;
  min-height: 48px;
  padding-inline: 23px;
}

.hero-v2 .hero-secondary-btn {
  min-height: 48px;
  padding-inline: 23px;
  color: var(--red) !important;
  background: #ffffff !important;
  border: 1px solid rgba(213,32,48,.55) !important;
  box-shadow: none !important;
}

.hero-v2 .hero-secondary-btn:hover,
.hero-v2 .hero-secondary-btn:focus {
  color: #ffffff !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  transform: translateY(-1px);
}

.hero-quotation-portal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-quotation-portal span:last-child {
  color: var(--red);
  font-size: 17px;
  transition: transform .2s ease;
}

.hero-quotation-portal:hover {
  color: var(--red);
}

.hero-quotation-portal:hover span:last-child {
  transform: translate(2px, -2px);
}

/* Balanced right-side cards */

.hero-v2 .hero-cards {
  width: min(100%, 400px);
  margin: 0;
  justify-self: end;
  display: grid;
  gap: 18px;
}

.hero-v2 .hero-card,
.hero-v2 .hero-card.offset {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  min-height: 184px;
  margin: 0;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(31,36,40,.10);
}

.hero-v2 .hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}

.hero-v2 .hero-card:nth-child(2)::before {
  background: var(--dark);
}

.hero-v2 .hero-card .icon {
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  border-radius: 15px;
}

.hero-v2 .hero-card .icon img {
  width: 31px;
  height: 31px;
}

.hero-v2 .hero-card h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.hero-v2 .hero-card p {
  max-width: 310px;
  font-size: 15px;
  line-height: 1.55;
}

/* Compact service strip */

.stats-v2 {
  margin-top: -52px;
  padding-bottom: 58px;
}

.stats-v2 .stats-grid {
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(31,36,40,.11);
}

.stats-v2 .stats-grid > div {
  min-height: 136px;
  padding: 23px 25px;
}

.stats-v2 .stats-grid span {
  font-size: 12px;
  letter-spacing: .7px;
}

.stats-v2 .stats-grid h3 {
  margin: 7px 0 6px;
  font-size: 20px;
}

.stats-v2 .stats-grid p {
  font-size: 15px;
  line-height: 1.5;
}

/* Tablet */

@media (max-width: 1080px) {
  .hero-v2 {
    padding: 72px 0 105px;
  }

  .hero-v2 .hero-grid {
    min-height: auto;
    gap: 38px;
  }

  .hero-v2 .hero-cards {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
  }

  .hero-v2 .hero-card,
  .hero-v2 .hero-card.offset {
    min-height: 190px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .hero-v2 {
    padding: 58px 0 105px;
  }

  .hero-v2 .hero-content h1 {
    font-size: clamp(39px, 12vw, 52px);
  }

  .hero-v2 .hero-text {
    font-size: 16px;
  }

  .hero-v2 .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-v2 .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }

  .hero-quotation-portal {
    justify-content: center;
    text-align: center;
  }

  .hero-v2 .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-v2 .hero-card,
  .hero-v2 .hero-card.offset {
    min-height: auto;
  }

  .stats-v2 {
    margin-top: -48px;
  }

  .stats-v2 .stats-grid > div {
    min-height: auto;
    padding: 21px 22px;
  }
}

/* Arabic alignment */

html[dir="rtl"] .hero-v2 .hero-card::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .hero-quotation-portal span:last-child {
  transform: scaleX(-1);
}
