/* ═══════════════════════════════════════
   MES Hero Section — Matches reference design
   ═══════════════════════════════════════ */

.mes-hero {
  padding: 200px 0 150px;
  background-color: #fdf8f1;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.mes-hero.has-bg-image {
  background-color: transparent;
}

.mes-hero-overlay {
  position: absolute;
  /* inset: 0; */
  pointer-events: none;
  z-index: 0;
  background-color: #fff;
  filter: blur(150px);
  left: -48%;
  top: 25%;
  bottom: 0;
  width: 100%;
}

/* Subtle warm radial glow on left */
.mes-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, #f5e6c8 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grid layout ── */
.mes-hero-grid {
  padding: 0 30px;
  position: relative;
}

/* ══════════════
   LEFT COPY
══════════════ */
.mes-hero-copy {
  max-width: 560px;
}

/* Eyebrow */
.mes-hero .mes-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: #e7ae4b;
  margin: 0 0 14px;
  text-transform: uppercase;
}

/* Heading */
.mes-hero-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #0f1a2e;
  margin: 0 0 4px;
}

/* Accent line (gold) */
.mes-hero-heading em {
  color: #c8962a;
  font-style: italic;
  display: block;
}

/* Third heading line (dark) */
.mes-hero-heading span {
  color: #0f1a2e;
  display: block;
}

/* Description */
.mes-hero-description {
  font-size: 15px;
  color: #5b6573;
  line-height: 1.75;
  margin: 20px 0 26px;
  max-width: 460px;
}

/* ══════════════
   SEARCH BAR
══════════════ */
.mes-home-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e0d5c0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(123, 87, 41, 0.1);
  padding: 6px 6px 6px 4px;
  gap: 0;
  margin-bottom: 16px;
}

.mes-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0 14px;
}

.mes-search-field svg {
  flex-shrink: 0;
  color: #9ca3af;
}

.mes-search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 13.5px;
  color: #1d2327;
  height: 44px;
  outline: none;
  font-family: Arial, sans-serif;
}

.mes-search-field input::placeholder {
  color: #a0aab4;
}

.mes-search-divider {
  width: 1px;
  height: 28px;
  background: #e0d5c0;
  flex-shrink: 0;
}

.mes-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #c8962a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}

.mes-search-btn:hover {
  background: #a87920;
  transform: scale(1.05);
}

.mes-search-btn svg {
  stroke: #fff;
}

/* ══════════════
   POPULAR SEARCHES
══════════════ */
.mes-hero-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 28px;
}

.mes-hero-popular > span {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.mes-popular-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid #ddd3ba;
  border-radius: 50px;
  font-size: 12px;
  color: #4b5563;
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}

.mes-popular-tag:hover {
  border-color: #c8962a;
  background: #fdf3dc;
  color: #8a5e10;
}

/* ══════════════
   STATS BAR
══════════════ */
.mes-hero-stats {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ede5d4;
  padding-top: 22px;
  flex-wrap: wrap;
}

.mes-hero-stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid #e4d9c6;
  flex-shrink: 0;
}

.mes-hero-stats li:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.mes-stat-icon {
  font-size: 22px;
  color: #c8962a;
  line-height: 1;
  flex-shrink: 0;
}

.mes-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0f1a2e;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.mes-stat-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
  font-family: Arial, sans-serif;
}

/* ══════════════
   RIGHT VISUAL
══════════════ */
.mes-hero-visual {
  position: relative;
}

.mes-hero-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 180px 180px 16px 16px;
  display: block;
}

/* Cursive badge — top right of photo */
.mes-hero-cursive {
  position: absolute;
  top: 20px;
  right: -10px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
  white-space: pre-line;
}

.mes-hero-cursive span {
  display: block;
  font-size: 20px;
  margin-top: 4px;
  color: #f9d4e0;
}

/* ══════════════
   RESPONSIVE
══════════════ */
@media (max-width: 1100px) {
  .mes-hero-grid {
    gap: 36px;
  }

  .mes-hero-photo {
    height: 420px;
  }

  .mes-hero-heading {
    font-size: clamp(32px, 4vw, 52px);
  }
}

@media (max-width: 860px) {
  .mes-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mes-hero-copy {
    max-width: 100%;
  }

  .mes-hero-photo {
    height: 380px;
    border-radius: 120px 120px 14px 14px;
  }

  .mes-hero-visual {
    order: -1;
  }

  .mes-hero-cursive {
    right: 10px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .mes-hero {
    padding: 36px 0 50px;
  }

  .mes-hero-photo {
    height: 300px;
    border-radius: 80px 80px 12px 12px;
  }

  .mes-home-search {
    flex-wrap: wrap;
    padding: 8px;
    gap: 6px;
  }

  .mes-search-field {
    padding: 0 8px;
    min-width: 0;
  }

  .mes-search-divider {
    display: none;
  }

  .mes-search-btn {
    width: 100%;
    border-radius: 6px;
    height: 42px;
  }

  .mes-hero-stats {
    gap: 14px;
  }

  .mes-hero-stats li {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    flex-basis: calc(50% - 7px);
  }

  .mes-hero-cursive {
    font-size: 16px;
    top: 10px;
    right: 6px;
  }
}
