/* =========================================================
   Midas – merged site overrides + new shared components
   ========================================================= */

/* The header now sits in normal flow (top bar + sticky white bar),
   so banners no longer need to slide underneath a fixed glass nav. */
:root { --jj-header-h: 0px; --jj-header-h-sm: 0px; }
html { scroll-padding-top: 100px; }
body { background: #fff; color: #1B1B1F; }

.mh-hero { height: clamp(600px, calc(100vh - 130px), 760px); margin-top: 0; }
.mh-hero-inner { padding-top: 24px; }
.mh-title-stack { margin-top: clamp(24px, 14vh, 130px); }
@media (max-width: 991.98px) { .mh-hero { height: auto; min-height: 640px; } }

.about-hero, .svc-hero, .services-hero, .gallery-hero, .contact-hero { min-height: 360px !important; }
.about-hero__inner, .svc-hero__inner, .services-hero__inner, .gallery-hero__inner, .contact-hero__inner { padding-top: 48px !important; padding-bottom: 48px !important; }
@media (max-width: 1199.98px) {
  .about-hero__breadcrumb, .svc-hero__breadcrumb { text-align: left !important; }
  .about-hero, .svc-hero, .services-hero, .gallery-hero, .contact-hero { min-height: 280px !important; }
}

/* ---------- shared typography ---------- */
.mx-section-title {
  font-family: var(--mh-font); font-weight: 700; color: #1065B7; text-transform: capitalize;
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.25; margin-bottom: 1rem;
}
.mx-midas { color: #01142C; letter-spacing: .04em; }
.mx-lead { font-size: 18px; line-height: 1.75; color: #3A4250; }
.mx-text-link { display: inline-block; margin-top: 18px; color: #FFD701; font-weight: 700; }
.mx-text-link:hover { color: #fff; }

.mx-pill-link {
  display: inline-flex; align-items: center; gap: 10px; color: #1065B7; font-weight: 700; font-size: 17px; white-space: nowrap;
}
.mx-pill-link span {
  width: 42px; height: 42px; border-radius: 50%; background: #1065B7; display: grid; place-items: center; transition: transform .2s, background .2s;
}
.mx-pill-link svg { width: 18px; height: 18px; }
.mx-pill-link:hover span { transform: rotate(45deg); background: #CD9C3D; }
.mh-team-head .mx-pill-link { margin-left: auto; }

/* ---------- MIDAS strategies ---------- */
.mx-values { background: #F4F8FC; padding: clamp(48px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.mx-value {
  height: 100%; background: #fff; border-radius: 16px; padding: 28px 24px 26px; position: relative;
  border: 1px solid #E3ECF6; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mx-value:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 101, 183, .14); border-color: transparent; }
.mx-value__letter {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, #1065B7, #0B4C8C); color: #FFD701; font-weight: 900; font-size: 34px; line-height: 1;
}
.mx-value__title { font-size: 22px; font-weight: 700; color: #01142C; margin-bottom: 8px; }
.mx-value__text { font-size: 16px; line-height: 1.6; color: #4B5563; margin: 0; }

/* ---------- department grid ---------- */
.mx-depts { padding: clamp(48px, 7vw, 96px) 0; }
.mx-dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mx-dept {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 92px;
  padding: 18px 18px 18px 22px; border-radius: 14px; background: #fff; border: 1px solid #DCE6F1;
  color: #01142C; font-weight: 700; font-size: 17px; line-height: 1.3; transition: all .25s;
}
.mx-dept__go { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: #EAF2FB; display: grid; place-items: center; transition: all .25s; }
.mx-dept__go svg { width: 16px; height: 16px; }
.mx-dept__go path { stroke: #1065B7; }
.mx-dept:hover { background: #1065B7; border-color: #1065B7; color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 101, 183, .25); }
.mx-dept:hover .mx-dept__go { background: #FFD701; }
.mx-dept:hover .mx-dept__go path { stroke: #01142C; }
@media (max-width: 1199.98px) { .mx-dept-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .mx-dept-grid { grid-template-columns: repeat(2, 1fr); } .mx-dept { font-size: 15px; min-height: 80px; padding: 14px; } }
@media (max-width: 420px) { .mx-dept-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.mx-cta { padding: 0 0 clamp(48px, 7vw, 96px); }
.mx-cta__box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: 20px;
  background: radial-gradient(120% 140% at 100% 0%, #1A7BD6 0%, #1065B7 45%, #01142C 100%); color: #fff;
}
.mx-cta__title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; margin: 0 0 6px; color: #fff; }
.mx-cta__text { margin: 0; font-size: 17px; opacity: .85; }
.mx-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mx-cta__call {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px;
  padding: 13px 24px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; transition: all .2s;
}
.mx-cta__call:hover { background: #fff; color: #1065B7; }

/* ---------- directors ---------- */
.mx-page { padding: clamp(48px, 7vw, 96px) 0; }
.mx-panel { background: #F4F8FC; border-radius: 18px; padding: 30px 32px; border: 1px solid #E3ECF6; }
.mx-panel__title { font-weight: 700; color: #1065B7; font-size: 24px; margin-bottom: 14px; }
.mx-director { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #E3ECF6; height: 100%; transition: transform .25s, box-shadow .25s; }
.mx-director:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 101, 183, .14); }
.mx-director__img { background: linear-gradient(180deg, #EAF2FB, #D6E6F7); aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.mx-director__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mx-director__body { padding: 22px 24px 26px; text-align: center; }
.mx-director__name { font-size: 22px; font-weight: 700; color: #01142C; margin-bottom: 8px; }
.mx-director__role { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #1065B7; color: #fff; font-size: 14px; font-weight: 500; }
.mx-director__spec { margin: 12px 0 0; color: #4B5563; }

/* ---------- careers ---------- */
.mx-apply {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-radius: 16px; background: #F4F8FC; border: 1px dashed #9CC0E6;
}
.mx-apply__label { display: block; color: #4B5563; font-size: 15px; }
.mx-apply__mail { font-size: 22px; font-weight: 700; color: #1065B7; }
.mx-careers-art { max-height: 420px; }

/* list bullets on new detail pages keep the template look */
.svc-detail__list li { line-height: 1.6; }

/* contact form messages (CMS) */
.mx-form-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.mx-form-alert--ok { background: #E7F7EE; color: #166534; border: 1px solid #A7E3C0; }
.mx-form-alert--err { background: #FDECEC; color: #991B1B; border: 1px solid #F5B5B5; }
