/* =========================================================
   Phase HERO-2 — home hero (static, single H1)
   Markup: page-templates/home-template.php (.almhr)
   Navy + gold to match the header, footer and sticky dock.
   ========================================================= */

.almhr {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 30px;            /* overrides the theme's global section padding */
  background: var(--alm-navy);
  color: #fff;
  direction: rtl;
  text-align: right;
}
.almhr__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(201, 154, 58, .24), transparent 62%),
    radial-gradient(820px 520px at 0% 100%, rgba(36, 86, 130, .6), transparent 60%),
    linear-gradient(165deg, #102033 0%, #16324d 60%, #102033 100%);
}
.almhr__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}

.almhr__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}

/* ---------- Copy ---------- */
.almhr__kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9); font-weight: 850; font-size: .9rem;
}
.almhr__title {
  margin: 0 0 16px; color: #fff; font-weight: 1000;
  font-size: clamp(1.9rem, 1.05rem + 3vw, 3.25rem); line-height: 1.3;
}
.almhr__title span {
  background: linear-gradient(90deg, #F1D58E, var(--alm-gold) 55%, #E6C77E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.almhr__lead {
  margin: 0 0 26px; max-width: 600px;
  color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 1.08rem; line-height: 1.95;
}

.almhr__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 24px; }
.almhr__call {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 24px 10px 12px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, #F1D58E, var(--alm-gold) 55%, #A97E25);
  color: var(--alm-navy); box-shadow: 0 16px 34px rgba(201, 154, 58, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.almhr__call:hover { color: var(--alm-navy); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(201, 154, 58, .5); }
.almhr__call-icon {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--alm-navy); color: #fff;
}
.almhr__call-icon::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(16, 32, 51, .45); animation: almhr-pulse 2s ease-out infinite;
}
.almhr__call-icon .alm-icon { width: 22px; height: 22px; }
.almhr__call-text { display: flex; flex-direction: column; line-height: 1.25; }
.almhr__call-text b { font-weight: 1000; font-size: 1.12rem; }
.almhr__call-text small { font-weight: 900; font-size: .98rem; direction: ltr; text-align: right; }

.almhr__wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 20px; border-radius: 18px; text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-weight: 900;
  transition: background .2s ease, border-color .2s ease;
}
.almhr__wa .alm-icon { width: 21px; height: 21px; color: #25D366; }
.almhr__wa:hover { color: #fff; background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .6); }

.almhr__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.almhr__trust li, .almhr__trust a {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255, 255, 255, .82); font-weight: 800; font-size: .92rem; text-decoration: none;
}
.almhr__trust a:hover { color: #F1D58E; }
.almhr__trust .alm-icon { width: 18px; height: 18px; color: var(--alm-gold); }
.almhr__stars { color: #F5B82E; letter-spacing: 1px; font-size: .95rem; }

/* ---------- Media ---------- */
.almhr__media { position: relative; padding: 14px 14px 26px 0; }
.almhr__media::before {          /* gold offset frame */
  content: ""; position: absolute; inset: 0 0 12px 28px; border-radius: 30px;
  border: 2px solid rgba(201, 154, 58, .55);
  transform: translate(-14px, 14px);
}
.almhr__frame {
  position: relative; margin: 0; overflow: hidden; border-radius: 26px;
  aspect-ratio: 5 / 4; background: #1b3a58;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
/* Phase HERO-2.1: stacked slides, crossfade + slow zoom on the active one */
.almhr__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 74% 62%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease-out;
}
.almhr__slide.is-active { opacity: 1; transform: scale(1); }
.almhr__frame::after {           /* soft navy fade at the bottom for the caption */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1;
  background: linear-gradient(0deg, rgba(16, 32, 51, .7), transparent);
  pointer-events: none;
}
.almhr__caption {
  position: absolute; z-index: 2; bottom: 46px; inset-inline-end: 20px;
  color: #fff; font-weight: 900; font-size: .98rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transition: opacity .4s ease;
}
.almhr__caption.is-swapping { opacity: 0; }
.almhr__dots {
  position: absolute; z-index: 2; bottom: 20px; inset-inline-end: 20px;
  display: flex; gap: 6px;
}
.almhr__dots[hidden] { display: none; }
.almhr__dot {
  width: 26px; height: 6px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .35); overflow: hidden; position: relative;
}
.almhr__dot span {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0;
  background: var(--alm-gold); border-radius: inherit;
}
.almhr__dot.is-active span { width: 100%; transition: width var(--almhr-delay, 6s) linear; }
.almhr__frame.is-paused .almhr__dot.is-active span { width: 100%; transition: none; }
.almhr__dot:focus-visible { outline: 3px solid #F1D58E; outline-offset: 3px; }

.almhr__chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 16px;
  background: #fff; color: var(--alm-navy);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
  animation: almhr-float 5s ease-in-out infinite;
}
.almhr__chip .alm-icon {
  width: 38px; height: 38px; padding: 8px; border-radius: 12px; flex: none;
  background: rgba(201, 154, 58, .16); color: #A97E25;
}
.almhr__chip span { display: flex; flex-direction: column; line-height: 1.35; }
.almhr__chip b { font-weight: 1000; font-size: .95rem; }
.almhr__chip small { color: var(--alm-slate); font-weight: 800; font-size: .8rem; }
.almhr__chip--a { bottom: 4px; inset-inline-start: -26px; }
.almhr__chip--b { top: 34px; inset-inline-end: -10px; animation-delay: -2.5s; }

/* ---------- Services rail ---------- */
.almhr__rail {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
  padding: 10px; border-radius: 22px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.almhr__svc {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px; text-decoration: none;
  color: #fff; font-weight: 900; font-size: .93rem; line-height: 1.4;
  transition: background .2s ease, transform .2s ease;
}
.almhr__svc-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201, 154, 58, .14); color: var(--alm-gold);
  transition: background .2s ease, color .2s ease;
}
.almhr__svc-icon .alm-icon { width: 21px; height: 21px; }
.almhr__svc:hover { color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.almhr__svc:hover .almhr__svc-icon { background: var(--alm-gold); color: var(--alm-navy); }

/* ---------- Areas line ---------- */
.almhr__areas {
  margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px;
  color: rgba(255, 255, 255, .7); font-weight: 800; font-size: .9rem;
}
.almhr__areas-label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; color: #E6C77E; }
.almhr__areas-label .alm-icon { width: 17px; height: 17px; }
.almhr__areas a {
  color: rgba(255, 255, 255, .86); text-decoration: none;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .2s ease, color .2s ease;
}
.almhr__areas a:hover { color: #F1D58E; border-color: rgba(201, 154, 58, .6); }
.almhr__areas .almhr__areas-all { display: inline-flex; align-items: center; gap: 4px; border-color: rgba(201, 154, 58, .45); color: #F1D58E; }
.almhr__areas-all .alm-icon { width: 15px; height: 15px; }

.almhr a:focus-visible { outline: 3px solid #F1D58E; outline-offset: 3px; }

@keyframes almhr-pulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes almhr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .almhr__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .almhr { padding: 30px 0 26px; }
  .almhr__grid { grid-template-columns: 1fr; gap: 26px; }
  .almhr__media { padding: 0 0 18px; max-width: 620px; }
  .almhr__media::before { inset: 0 0 6px 18px; transform: translate(-10px, 10px); }
  .almhr__frame { aspect-ratio: 16 / 10; }
  .almhr__chip--a { inset-inline-start: 10px; bottom: 0; }
  .almhr__chip--b { top: 14px; inset-inline-end: 10px; }
  .almhr__rail { margin-top: 26px; }
}
@media (max-width: 640px) {
  .almhr__kicker { font-size: .82rem; margin-bottom: 14px; }
  .almhr__lead { font-size: 1rem; margin-bottom: 20px; }
  .almhr__actions { flex-direction: column; align-items: stretch; }
  .almhr__call, .almhr__wa { justify-content: center; }
  .almhr__trust { gap: 8px 14px; }
  .almhr__trust li, .almhr__trust a { font-size: .86rem; }
  .almhr__chip { padding: 8px 10px; gap: 8px; }
  .almhr__chip .alm-icon { width: 32px; height: 32px; padding: 7px; }
  .almhr__chip b { font-size: .86rem; }
  .almhr__chip small { display: none; }
  .almhr__caption { display: none; }
  .almhr__dots { bottom: 14px; inset-inline-end: 14px; }
  .almhr__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px;
  }
  .almhr__svc { padding: 10px 8px; font-size: .86rem; gap: 8px; }
  .almhr__svc-icon { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .almhr *, .almhr *::before, .almhr *::after { animation: none !important; transition: none !important; }
}
