/* === SECTION: Hero + quick access === */

.mh-hero {
  --hero-red: #a82020;
  --hero-red-dark: #8b1a1a;
  --hero-red-light: #fdf2f2;
  --hero-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background:
    radial-gradient(ellipse 55% 70% at 8% 45%, rgba(255, 210, 200, 0.568) 0%, transparent 80%),
    radial-gradient(ellipse 50% 65% at 92% 55%, rgba(106, 148, 182, 0.603) 0%, transparent 90%),
    linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
}

.mh-hero__pattern {
  position: absolute;
  top: 36%;
  right: -160px;
  width: 680px;
  height: 680px;
  transform: translateY(-58%);
  opacity: 0.12;
  pointer-events: none;
  color: #1E88C5;
}

.mh-hero__pattern-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: mh-hero-pattern-spin 90s linear infinite;
}

@keyframes mh-hero-pattern-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-hero__pattern-svg {
    animation: none;
  }
}

.mh-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mh-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-red);
}

.marham-home .mh-hero .mh-hero__title {
  margin: 0 0 22px;
  max-width: none;
  text-align: left;
}

.marham-home .mh-hero .mh-hero__title-line {
  display: block;
}

.marham-home .mh-hero .mh-hero__title-accent {
  font-family: var(--hero-serif);
  font-style: italic;
  font-weight: 700;
  color: #a32a29;
}

.mh-hero__subtitle {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--gray-600);
}

/* Unified search bar */
.mh-hero .mh-search {
  margin-bottom: 18px;
}

.mh-hero .mh-search__bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  padding: 6px 6px 6px 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.mh-hero .mh-search__field {
  position: relative;
  flex: 1 1 auto;
}

.mh-hero .mh-search__field--query {
  min-width: 0;
}

.mh-hero .mh-search__field--location {
  flex: 0 0 150px;
}

.mh-hero .mh-search__field i.fa-magnifying-glass {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: 0.95rem;
}

.mh-hero .mh-search__chevron {
  position: absolute;
  left: 114px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--black-600);
  pointer-events: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.mh-hero .mh-search__divider {
  width: 1px;
  height: 34px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.mh-hero .mh-search__field .mh-input,
.mh-hero .mh-search__field .mh-select {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 18px 0 50px;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.mh-hero .mh-search__field--location .mh-select {
  padding-left: 18px;
  padding-right: 34px;
  font-weight: 600;
  cursor: pointer;
}

.mh-hero .mh-search__field .mh-input:focus,
.mh-hero .mh-search__field .mh-select:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.mh-hero .mh-search__submit {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: var(--hero-red);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, transform 150ms ease;
}

.mh-hero .mh-search__submit:hover {
  background: var(--hero-red-dark);
  color: var(--white);
}

.mh-hero .mh-search__submit:active {
  transform: scale(0.98);
}

/* City tabs */
.mh-hero .mh-city-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.mh-hero .mh-city-tabs__tab {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.mh-hero .mh-city-tabs__tab.is-active {
  background: var(--hero-red);
  border-color: var(--hero-red);
  color: var(--white);
}

.mh-hero .mh-city-tabs__tab:hover:not(.is-active) {
  border-color: #cbd5e1;
}

/* Quick filters */
.mh-hero__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.mh-hero__filters-label {
  color: var(--gray-400);
}

.mh-hero__filters a {
  color: var(--gray-600);
  font-weight: 500;
  transition: color 200ms ease;
}

.mh-hero__filters a:hover {
  color: var(--hero-red);
}

/* Floating cards */
.mh-hero__visual {
  position: relative;
  min-height: 380px;
}

.mh-hero__cards {
  position: relative;
  width: 100%;
  /* max-width: 420px; */
  margin-left: auto;
  margin-top: 20px;
}

.mh-float-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  color: inherit;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.mh-float-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  color: inherit;
}

.mh-float-card--job {
  position: relative;
  z-index: 2;
  /* max-width: 360px; */
  margin-left: auto;
}

.mh-float-card--provider {
  position: relative;
  z-index: 1;
  /* max-width: 390px; */
  margin-top: 18px;
  /* margin-right: 24px; */
}

.mh-float-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mh-float-card__meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

.mh-float-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--hero-red);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-float-card__title {
  font-family: var(--hero-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.mh-float-card__desc {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.mh-float-card__salary {
  font-size: 0.92rem;
  color: var(--gray-600);
}

.mh-float-card__salary-amount {
  color: var(--hero-red);
  font-weight: 700;
}

.mh-float-card__salary-period {
  color: var(--gray-400);
}

.mh-float-card__provider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mh-float-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2d3748;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mh-float-card__provider-info {
  flex: 1;
  min-width: 0;
}

.mh-float-card__provider-name {
  font-family: var(--hero-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.mh-float-card__provider-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.mh-float-card__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--hero-red);
  font-size: 0.62rem;
}

.mh-float-card__reviews {
  color: var(--gray-400);
}

.mh-float-card__status {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f4fc;
  color: #2b7cb3;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Stats bar */
.mh-hero__stats {
  display: flex;
  /* grid-template-columns: repeat(4, 1fr); */
  justify-content: center;
  gap: 135px;
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--white);
  position: relative;
  z-index: 1;
  height: 115px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mh-hero__stat {
  position: relative;
  padding: 0 28px;
}

.mh-hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  /* background: var(--gray-200); */
}

.mh-hero__stat-value {
  font-family: var(--hero-serif);
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 2;
  position: relative;
  padding-left: 14px;
}

.mh-hero__stat-value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 0px;
  width: 2px;
  border-radius: 2px;
  /* background: var(--hero-red); */
  background: linear-gradient(
    180deg,
    #1d4ed8 20%,
    #dc2626 100%
  );
}

.mh-hero__stat-label {
  margin-top: -14px;
  padding-left: 14px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

