/**
 * Site header (Phase HEADER-2).
 * Utility bar + main bar with mega menus (desktop) and an off-canvas drawer
 * (mobile). Brand tokens come from brand.css. Own "almh-" namespace so the
 * old .alm-header rules in header.css cannot leak in.
 */

html { scroll-padding-top: 110px; }

.almh-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--alm-navy); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 900; text-decoration: none; transition: top .2s ease;
}
.almh-skip:focus { top: 12px; color: #fff; }
.almh-anchor { display: block; height: 0; outline: none; }

.almh {
  position: sticky; top: 0; z-index: 1000;
  direction: rtl; text-align: right;
  transition: transform .3s ease;
}
.almh.is-hidden { transform: translateY(-100%); }

/* ---------- Utility bar ---------- */
.almh-top {
  background: var(--alm-navy);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem; font-weight: 700;
  max-height: 40px; overflow: hidden;
  transition: max-height .25s ease;
}
.almh.is-scrolled .almh-top { max-height: 0; }
.almh-top__inner { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.almh-top__item, .almh-top__price { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.almh-top__item .alm-icon, .almh-top__price .alm-icon { color: var(--alm-gold); }
a.almh-top__item:hover { color: #fff; }
.almh-top__price { margin-inline-start: auto; color: var(--alm-gold); font-weight: 900; }
.almh-top__price:hover { color: #fff; }

.almh-live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.almh-live__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34D17A; display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(52, 209, 122, .6);
  animation: almh-pulse 2s infinite;
}
@keyframes almh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 209, 122, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 209, 122, 0); }
}

/* ---------- Main bar ---------- */
.almh-bar {
  position: relative;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(24, 53, 82, .08);
  transition: box-shadow .25s ease;
}
.almh.is-scrolled .almh-bar { box-shadow: 0 10px 30px rgba(16, 32, 51, .08); }
.almh-bar::after { /* thin gold accent line, the brand's signature */
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--alm-gold), transparent);
  opacity: .55;
}
.almh-bar__inner { display: flex; align-items: center; gap: 18px; min-height: 78px; transition: min-height .25s ease; }
.almh.is-scrolled .almh-bar__inner { min-height: 64px; }

.almh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.almh .alm-brand__logoimg, .almh-drawer .alm-brand__logoimg { height: 56px; width: 156px; object-fit: cover; transition: height .25s ease, width .25s ease; }
.almh.is-scrolled .alm-brand__logoimg { height: 44px; width: 122px; }
.almh-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
/* The logo image already contains the wordmark; the text stays for screen readers only. */
.almh-brand__text.alm-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.almh-brand__name { font-weight: 1000; color: var(--alm-navy); font-size: 1.2rem; }
.almh-brand__tag { font-size: .85rem; color: var(--alm-slate); font-weight: 700; margin-top: 4px; }

/* ---------- Nav ---------- */
.almh-nav { margin-inline: auto; }
.almh-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.almh-nav__list > li { margin: 0; }
.almh-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .95rem; color: var(--alm-navy);
  text-decoration: none; border-radius: 12px;
  transition: color .2s ease, background .2s ease;
}
.almh-link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--alm-gold); transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.almh-link:hover, .almh-link[aria-expanded="true"] { background: rgba(201, 154, 58, .09); color: var(--alm-navy); }
.almh-link:hover::after, .almh-link[aria-current="page"]::after, .almh-link.is-active::after, .almh-link[aria-expanded="true"]::after { transform: scaleX(1); }
.almh-link:focus-visible, .almh-svc:focus-visible, .almh-region a:focus-visible { outline: 2px solid var(--alm-gold); outline-offset: 2px; }
.almh-chev { width: .9em; height: .9em; transition: transform .25s ease; }
.almh-link[aria-expanded="true"] .almh-chev { transform: rotate(180deg); }

/* ---------- Mega menus ---------- */
.almh-has-mega { position: static; }
.almh-mega {
  position: absolute; inset-inline: 0; top: 100%;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  pointer-events: none;
}
.almh-mega.is-open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.almh-mega__inner {
  background: #fff;
  border: 1px solid rgba(24, 53, 82, .08); border-top: 0;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 30px 60px rgba(16, 32, 51, .16);
  padding: 22px;
}
.almh-mega__inner--services { display: grid; grid-template-columns: 1fr 290px; gap: 18px; }
.almh-svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.almh-svc {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px;
  text-decoration: none; color: var(--alm-navy); border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.almh-svc:hover { background: var(--alm-sand); border-color: rgba(201, 154, 58, .35); transform: translateY(-2px); }
.almh-svc[aria-current="page"] { background: var(--alm-sand); }
.almh-svc__icon {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(201, 154, 58, .18), rgba(201, 154, 58, .06));
  color: var(--alm-gold); font-size: 22px; transition: background .2s ease, color .2s ease;
}
.almh-svc:hover .almh-svc__icon { background: var(--alm-navy); color: var(--alm-gold); }
.almh-svc__text { display: flex; flex-direction: column; gap: 3px; }
.almh-svc__title { font-weight: 900; }
.almh-svc__desc { font-size: .84rem; color: var(--alm-slate); font-weight: 700; line-height: 1.5; }

.almh-promo {
  border-radius: 22px; padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 15% 0%, rgba(201, 154, 58, .35), transparent 55%),
    linear-gradient(160deg, var(--alm-navy-2), var(--alm-navy));
}
.almh-promo__kicker { margin: 0; color: var(--alm-gold); font-weight: 900; font-size: .85rem; }
.almh-promo__title { margin: 0 0 6px; font-weight: 900; line-height: 1.6; }
.almh-promo__link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); font-weight: 800; text-decoration: none; font-size: .9rem; }
.almh-promo__link:hover { color: var(--alm-gold); }

.almh-mega__inner--areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.almh-region__title { margin: 0 0 10px; font-weight: 1000; }
.almh-region__title a { display: inline-flex; align-items: center; gap: 6px; color: var(--alm-navy); text-decoration: none; }
.almh-region__title .alm-icon { color: var(--alm-gold); }
.almh-region__title a:hover { color: var(--alm-gold); }
.almh-region__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.almh-region__list a {
  display: block; padding: 6px 8px; border-radius: 10px; color: var(--alm-slate);
  font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.almh-region__list a:hover, .almh-region__list a[aria-current="page"] { background: var(--alm-sand); color: var(--alm-navy); }
.almh-mega__foot {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px dashed rgba(24, 53, 82, .14); color: var(--alm-slate); font-weight: 700;
}
.almh-mega__foot a:not(.almh-btn) { color: var(--alm-navy); font-weight: 900; }

/* ---------- Buttons & actions ---------- */
.almh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 900; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position: relative; overflow: hidden;
}
.almh-btn:hover { transform: translateY(-1px); }
.almh-btn--gold { background: linear-gradient(135deg, #D9B45A, var(--alm-gold) 55%, #A97E25); color: var(--alm-navy); box-shadow: 0 10px 24px rgba(201, 154, 58, .35); }
.almh-btn--gold::after { /* moving shine */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; inset-inline-start: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: inset-inline-start .6s ease;
}
.almh-btn--gold:hover::after { inset-inline-start: 120%; }
.almh-btn--gold:hover { color: var(--alm-navy); }
.almh-btn--navy { background: var(--alm-navy); color: #fff; }
.almh-btn--navy:hover { color: #fff; box-shadow: 0 10px 24px rgba(16, 32, 51, .25); }

.almh-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.almh-call { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--alm-navy); }
.almh-call__icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  background: var(--alm-navy); color: var(--alm-gold); transition: transform .3s ease;
}
.almh-call:hover .almh-call__icon { transform: rotate(-12deg) scale(1.05); }
.almh-call__text { display: flex; flex-direction: column; line-height: 1.15; }
.almh-call__text small { color: var(--alm-slate); font-weight: 800; font-size: .75rem; }
.almh-call__text b { font-weight: 1000; letter-spacing: .3px; direction: ltr; }

.almh-iconbtn {
  display: none; width: 44px; height: 44px; border-radius: 14px; place-items: center; font-size: 20px;
  background: var(--alm-navy); color: var(--alm-gold); border: 0; cursor: pointer; text-decoration: none; flex: none;
}
.almh-iconbtn--ghost { display: grid; background: var(--alm-light); color: var(--alm-navy); }

.almh-burger {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--alm-sand); padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; flex: none;
}
.almh-burger span { display: block; height: 2px; border-radius: 2px; background: var(--alm-navy); transition: transform .25s ease, opacity .2s ease, width .25s ease; }
.almh-burger span:nth-child(2) { width: 70%; margin-inline-start: auto; }
.almh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.almh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.almh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer (mobile) ---------- */
.almh-overlay {
  position: fixed; inset: 0; z-index: 1090; background: rgba(16, 32, 51, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.almh-overlay.is-open { opacity: 1; }
.almh-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1100;
  width: min(88vw, 390px); background: #fff; direction: rtl; text-align: right;
  display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 24px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 60px rgba(16, 32, 51, .25);
  visibility: hidden;
}
.almh-drawer.is-open { transform: none; visibility: visible; }
.almh-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.almh-drawer__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.almh-drawer__ctas .almh-btn { padding: 12px 10px; font-size: .92rem; }
.almh-drawer__ctas .almh-btn b, .almh-drawer__ctas .almh-btn { direction: rtl; }
.almh-drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.almh-dlink {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 14px;
  color: var(--alm-navy); font-weight: 900; text-decoration: none; cursor: pointer; list-style: none;
}
.almh-dlink::-webkit-details-marker { display: none; }
.almh-dlink > .alm-icon:first-child { color: var(--alm-gold); font-size: 20px; }
.almh-dlink .almh-chev { margin-inline-start: auto; }
.almh-dlink:hover, .almh-acc[open] > .almh-dlink { background: var(--alm-sand); }
.almh-acc[open] > .almh-dlink .almh-chev { transform: rotate(180deg); }
.almh-acc__list { list-style: none; margin: 4px 0 8px; padding: 0 12px; display: grid; gap: 2px; }
.almh-acc__list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--alm-slate); font-weight: 800; text-decoration: none; }
.almh-acc__list a .alm-icon { color: var(--alm-gold); }
.almh-acc__list a:hover, .almh-acc__list a[aria-current="page"] { background: var(--alm-light); color: var(--alm-navy); }
.almh-acc__regions { padding: 4px 12px 10px; }
.almh-acc__region { margin: 10px 0 6px; font-weight: 1000; color: var(--alm-navy); font-size: .9rem; }
.almh-acc__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.almh-acc__chips a {
  display: inline-block; padding: 7px 11px; border-radius: 999px; font-size: .85rem; font-weight: 800;
  color: var(--alm-navy); background: var(--alm-light); text-decoration: none;
}
.almh-acc__chips a:hover, .almh-acc__chips a[aria-current="page"] { background: var(--alm-gold); color: var(--alm-navy); }
.almh-acc__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 900; color: var(--alm-gold); text-decoration: none; }
.almh-drawer__info {
  margin-top: auto; padding: 14px; border-radius: 18px; background: var(--alm-sand);
  color: var(--alm-slate); font-weight: 700; font-size: .88rem; display: grid; gap: 8px;
}
.almh-drawer__info p { margin: 0; display: flex; align-items: center; gap: 8px; }
.almh-drawer__info .alm-icon { color: var(--alm-gold); flex: none; }
.almh-drawer__info a { color: var(--alm-navy); font-weight: 900; }
body.almh-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .almh-call__text { display: none; }
  .almh-link { padding: 10px 9px; font-size: .9rem; }
  .almh-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .almh-top, .almh-nav, .almh-actions { display: none; }
  .almh-iconbtn, .almh-burger { display: flex; }
  .almh-iconbtn { display: grid; margin-inline-start: auto; }
  .almh-bar__inner { min-height: 66px; gap: 10px; }
  .almh .alm-brand__logoimg { height: 48px; width: 134px; }
  .almh.is-scrolled .almh-bar__inner { min-height: 58px; }
  .almh.is-scrolled .alm-brand__logoimg { height: 40px; width: 112px; }
  html { scroll-padding-top: 80px; }
}
@media (min-width: 1025px) {
  .almh-overlay, .almh-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .almh, .almh *, .almh-drawer, .almh-overlay { transition: none !important; animation: none !important; }
}
