/* =====================================================
   Mido Hasan — HERO + NAV (scoped)
   /assets/css/02__hero.css
   Lifted verbatim from 02__Hero.html (lines 470–952).
   Foundation/reset/glass/content-helper duplicates removed
   (now in 00__global-base.css). No section logic altered.
   ===================================================== */

/* ════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════ */
.mht-nav {
  position: fixed;
  top: var(--nav-top-offset, 28px);
  left: 0;
  right: 0;
  z-index: 200;
  pointer-events: none;
}

.mht-nav__inner {
  width: var(--site-w);
  max-width: var(--site-max);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  pointer-events: auto;
}

.mht-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  flex-shrink: 0;
  /* Phase 10.8.1A: flex: 0 0 auto ensures the logo never grows or shrinks
     based on available nav space — critical on inner pages where nav layout
     may differ from homepage. */
  flex: 0 0 auto;
  color: var(--text-primary);
}

.mht-nav__logo-mark {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-lime);
  flex: 0 0 auto;
}

.mht-nav__logo-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mht-nav__logo-img {
  display: none;
  /* Phase 10.8.1A: explicit height (not just max-height) prevents the image
     from expanding to its intrinsic dimensions on inner pages where the nav
     flex container has more space. max-height alone is insufficient when
     height:auto is set — the image uses its natural height up to the max.
     Setting an explicit height locks it regardless of container size. */
  width: auto;
  height: 30px;
  max-height: 30px;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
  /* Logo is supplied as a white SVG — no CSS filter applied here.
     Do not add global SVG/image filters. Future icon-color control should use
     inline SVG with currentColor / CSS variables, not filter recoloring. */
}

.mht-nav__logo.has-image .mht-nav__logo-text,
.mht-nav__logo.has-image .mht-nav__logo-mark {
  display: none;
}

.mht-nav__logo.has-image .mht-nav__logo-img {
  display: block;
}

.mht-nav__links {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  gap: 36px;
}

.mht-nav__link {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
  position: relative;
  transition: color var(--t-base);
}

.mht-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: .5px;
  background: var(--accent-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.mht-nav__link:hover {
  color: var(--text-secondary);
}

.mht-nav__link:hover::after {
  transform: scaleX(1);
}

/* MIDO PHASE 9.5 NAV MENU ACTIVE — current page state */
.mht-nav__link.is-active {
  color: var(--text-primary);
}
.mht-nav__link.is-active::after {
  transform: scaleX(1);
}

/* ════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════ */
.mht-hero {
  position: relative;
  min-height: min(96svh, 960px);
  display: flex;
  align-items: center;
  overflow: clip;
  background: #0D0D0D;
}

.mht-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 48% at 74% 6%, rgba(142,99,163,.09) 0%, transparent 58%),
    radial-gradient(ellipse 28% 20% at 82% 18%, rgba(183,140,255,.035) 0%, transparent 62%),
    radial-gradient(ellipse 22% 18% at 58% 72%, rgba(197,166,211,.045) 0%, transparent 68%);
  pointer-events: none;
}

.mht-hero__inner {
  position: relative;
  z-index: 1;
  width: var(--site-w);
  max-width: var(--site-max);
  margin-inline: auto;
  padding: clamp(104px, 13svh, 148px) 0 clamp(64px, 9svh, 112px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.mht-hero__content {
  display: flex;
  flex-direction: column;
}

.mht-hero__eyebrow {
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--sp-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 14px;
  border: 1px solid rgba(221, 214, 227, .14);
  border-radius: 999px;
  background: rgba(13, 13, 13, .52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 12px 34px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(16px) saturate(126%);
  backdrop-filter: blur(16px) saturate(126%);
  color: rgba(246,242,247,.78) !important;
  animation: mht-fadeup .8s var(--ease-out) 60ms both;
}

.mht-hero__eyebrow .mht-content-kicker__line {
  display: none !important;
}

.mht-hero__headline {
  margin-bottom: var(--sp-5);
  animation: mht-fadeup .8s var(--ease-out) 180ms both;
}

.mht-hero__subline {
  max-width: 400px;
  margin-bottom: var(--sp-7);
  animation: mht-fadeup .8s var(--ease-out) 320ms both;
}

.mht-hero__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
  animation: mht-fadeup .8s var(--ease-out) 460ms both;
}

/* Phase 151B.5.3: stats remain one compact global-glass surface.
   Spacing is refined without changing markup or the locked glass system. */
.mht-hero__stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(2px, .6vw, 8px);
  padding: clamp(21px, 1.55vw, 24px) clamp(19px, 1.7vw, 26px) clamp(19px, 1.42vw, 22px);
  border: 0;
  border-radius: 24px;
  animation: mht-fadeup .8s var(--ease-out) 620ms both;
}

.mht-hero__stats.mht-global-glass {
  min-height: 0;
}

.mht-stat {
  min-width: clamp(72px, 5.35vw, 88px);
  padding-inline: clamp(9px, .85vw, 13px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.mht-stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -.02em;
  padding-bottom: .06em;
}

.mht-stat__label {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-1);
  opacity: .72;
}

.mht-stat__divider {
  flex: 0 0 1px;
  width: 1px;
  height: clamp(32px, 2.75vw, 40px);
  margin-inline: clamp(8px, .78vw, 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.34) 14%, rgba(255,255,255,.56) 50%, rgba(255,255,255,.34) 86%, transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.10);
}

.mht-hero__visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 520px;
  animation: mht-fadeup .8s var(--ease-out) 220ms both;
}






.mht-portrait-zone {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: clamp(420px, 30vw, 480px);
  transform: translateY(clamp(-34px, -2.8svh, -18px));
}

.mht-portrait-zone__inner {
  position: relative;
  width: 100%;
  height: clamp(420px, 62svh, 700px);
  overflow: visible;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-mask-composite: initial !important;
  mask-composite: initial !important;
}

.mht-portrait-zone__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
}

.mht-portrait-zone__placeholder-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: .5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mht-portrait-zone__placeholder-ring::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: .5px dashed rgba(255,255,255,.04);
}

.mht-portrait-zone__placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: .6;
}

.mht-portrait-zone__placeholder-text {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.9;
}

/* MIDO PHASE 9.7 HOMEPAGE HERO PORTRAIT ACTIVE */
.mht-hero__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.88) 66%, rgba(0,0,0,.46) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.88) 66%, rgba(0,0,0,.46) 84%, transparent 100%);
}

@keyframes mht-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .mht-nav__links {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --site-gutter: 40px;
  }

  .mht-nav {
    /* top inherits --nav-top-offset from :root mobile override (20px). */
  }

  .mht-nav__inner {
    padding-left: 18px;
  }

  .mht-nav__links {
    display: none;
  }

  .mht-hero__inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 76px);
    padding-bottom: var(--sp-10);
    gap: var(--sp-6);
  }

  .mht-hero__visual {
    order: -1;
    min-height: 260px;
    align-items: flex-end;
  }

  .mht-portrait-zone {
    max-width: clamp(240px, 42vw, 320px);
    transform: translateY(-8px);
  }

  .mht-portrait-zone__inner {
    height: clamp(250px, 36svh, 380px);
  }
}

@media (max-width: 620px) {
  .mht-nav__logo-text {
    letter-spacing: .16em;
    font-size: 10px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mht-nav__logo-img {
    max-height: 26px;
    height: 26px;
    max-width: 180px;
  }

  .mht-u-btn--nav {
    padding-inline: 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --site-gutter: 40px;
  }

  /* Phase 10.8.3: Hero buttons now inherit the global .mht-u-btn system
     with NO width/flex/label overrides. The only mobile change is stacking
     them vertically. Each button shrink-wraps to its content via the global
     display:inline-flex — hover effects stay contained inside the button. */
  .mht-hero__cta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }
  .mht-hero__stats {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 18px 14px 16px;
  }
  .mht-stat {
    min-width: 68px;
    padding-inline: 9px;
  }

  .mht-stat__divider {
    display: none;
  }
}

@media (max-width: 390px) {
  .mht-nav__logo-text {
    max-width: 125px;
  }

  .mht-u-btn--nav {
    font-size: 8px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .mht-u-btn,
  .mht-u-btn::before,
  .mht-u-btn__orb,
  .mht-u-btn__orb::before,
  .mht-u-btn__orb::after,
  .mht-u-btn__svg-line,
  .mht-u-btn__svg-head {
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════
   MOBILE MENU — MIDO PHASE 9.5 NAV MENU ACTIVE
   Fixes: immediate glass, compact CTA btn, balanced
   hamburger, panel position, light-bg readability.
   ════════════════════════════════════════════════════ */

/* Nav bar: Apple-style glass — Phase 10.10.17.
   Real backdrop-filter allowed ONLY on this small fixed pill surface.
   Do not copy this pattern to cards, modals, sections, or mobile menu. */
.mht-nav__inner {
  background:
    linear-gradient(
      180deg,
      rgba(246, 242, 247, 0.055),
      rgba(246, 242, 247, 0.018)
    ),
    rgba(13, 10, 17, 0.68);
  border: 1px solid rgba(197, 166, 211, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(246, 242, 247, 0.10),
    inset 0 -1px 0 rgba(183, 140, 255, 0.035),
    0 14px 44px rgba(0, 0, 0, 0.30),
    0 0 42px rgba(183, 140, 255, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

/* Fallback: no backdrop-filter support → stronger opaque faux-glass */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mht-nav__inner {
    background:
      radial-gradient(circle at 18% 0%, rgba(183, 140, 255, 0.12), transparent 36%),
      linear-gradient(180deg, rgba(20, 16, 23, 0.96), rgba(13, 13, 13, 0.92));
  }
}

/* Emergency kill switch — add class to <html> to disable real nav blur
   without touching CSS. Not active by default. */
html.mht-no-real-nav-glass .mht-nav__inner {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 140, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(20, 16, 23, 0.96), rgba(13, 13, 13, 0.92)) !important;
}

.mht-nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  border: 1px solid rgba(44,37,50,.95);
  background: rgba(20,16,23,.75);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 0;
  transition: border-color 320ms var(--ease-out);
}
.mht-nav__toggle:hover { border-color: rgba(142,99,163,.65); }
.mht-nav__toggle:focus-visible { outline: none; border-color: rgba(183,140,255,.8); }
.mht-nav__toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-secondary);
  transition: transform 300ms var(--ease-out), opacity 220ms var(--ease-out);
}
.mht-nav__toggle.is-open .mht-nav__toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.mht-nav__toggle.is-open .mht-nav__toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu panel — glass is applied immediately (no delayed transition) */
.mht-nav__menu {
  position: fixed;
  left: 0;
  right: 0;
  /* sits just below the nav bar; calc resolves after nav-h CSS var is set */
  top: 0;
  z-index: 90;
  padding: calc(var(--nav-h, 60px) + 20px) clamp(14px, 4vw, 32px) 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* Backdrop-filter NOT in transition — it must apply immediately on open */
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out),
    visibility 0s linear 300ms;
  /* Glass already applied to the inner element below; outer provides blur backdrop */
  backdrop-filter: none;
}
.mht-nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out),
    visibility 0s;
}
.mht-nav__menu-inner {
  /* glass-card classes applied in HTML; extra background ensures immediate glass fill */
  background: rgba(14, 11, 18, 0.82) !important;
  /* Phase 10.10.3: blur removed. */
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.36), 0 2px 0 rgba(255,255,255,.06) inset;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 2px;
}
.mht-nav__menu-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.mht-nav__menu-link.is-active { color: var(--text-primary); }
.mht-nav__menu-link:hover { background: rgba(183,140,255,.08); color: var(--text-primary); }
.mht-nav__menu-link:focus-visible { outline: none; background: rgba(183,140,255,.12); color: var(--text-primary); }
.mht-nav__menu-link--cta {
  margin-top: 6px;
  border: 1px solid rgba(142,99,163,.45);
  color: var(--text-primary);
  text-align: center;
}
.mht-nav__menu-link--cta:hover { background: rgba(183,140,255,.12); border-color: rgba(183,140,255,.6); }

@media (max-width: 900px) {
  .mht-nav__toggle { display: flex; }

  /* Compact Enquiries CTA on mobile — smaller, stays in bar */
  .mht-u-btn--nav {
    padding-block: 9px;
    padding-inline: 16px;
    font-size: 9px;
    letter-spacing: .12em;
    height: auto;
    flex-shrink: 0;
  }

  /* Nav inner: tighter padding so all three items sit comfortably */
  .mht-nav__inner {
    padding-left: 16px;
    padding-right: 10px;
    gap: 10px;
  }
}
@media (min-width: 901px) {
  .mht-nav__menu { display: none; }
}
@media (max-width: 480px) {
  .mht-u-btn--nav {
    padding-inline: 12px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mht-nav__menu { transition: opacity 160ms linear, visibility 0s linear 160ms; transform: none; }
  .mht-nav__menu.is-open { transition: opacity 160ms linear, visibility 0s; transform: none; }
  .mht-nav__toggle-bar { transition: none; }
}

/* ── PHASE 10.4.1 PART 10 — NAV TYPOGRAPHY MATCHES FOOTER MENU STYLE ── */
/* Footer .mht-footer__big-link: font-weight:700, letter-spacing:.045em, uppercase
   Matching that rhythm at nav-appropriate scale */
.mht-nav__link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* MIDO PHASE 10.10.62 — Desktop nav CTA visibility lock.
   The Enquiries page loads extra form/process styles; the fixed nav CTA must
   remain independent from page-level text-fill/visibility rules and settings
   glitches. Do not remove without replacing the header fallback above. */
.mht-nav__cta-desktop {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
}
.mht-nav__cta-desktop .mht-u-btn__label {
  display: inline-block;
  opacity: 1;
  visibility: visible;
  color: currentColor;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
}
.mht-nav__cta-desktop .mht-u-btn__dot {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mht-portrait-zone[data-mht-empty="portrait"] .mht-portrait-zone__inner{
  border-radius:42% 42% 0 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(183,140,255,.16), transparent 28%),
    radial-gradient(circle at 50% 38%, rgba(246,242,247,.075), transparent 18%),
    linear-gradient(180deg, rgba(246,242,247,.045), rgba(246,242,247,.008));
}
.mht-portrait-zone[data-mht-empty="portrait"] .mht-portrait-zone__placeholder-icon{
  font-size:24px;
  line-height:1;
  font-weight:300;
}


/* =====================================================
   Phase 151B.5 — hero surface continuity + compact glass stats
   Scope: homepage hero surface only. Motion engine and dot density untouched.
   ===================================================== */
html[data-mht-theme-effective="light"] .mht-hero,
html[data-mht-theme="light"] .mht-hero {
  background: var(--mht-p70-page-soft, #FBF8FD);
}

html[data-mht-theme-effective="light"] .mht-hero__eyebrow,
html[data-mht-theme="light"] .mht-hero__eyebrow {
  color: rgba(47, 31, 58, .72) !important;
  border-color: rgba(76, 52, 93, .14);
  background: rgba(255,255,255,.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    0 12px 34px rgba(76,52,93,.08);
}


