/* ==========================================================================
   Header: transparent over the hero, frosted white after 40px,
   hides on scroll down and returns on scroll up.
   Desktop nav from 1200px; burger + drawer below that.
   ========================================================================== */
.mn-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--white);
  background: transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease);
  will-change: transform;
}
.mn-header.is-solid {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  color: var(--ink);
}
/* Soft shade behind the transparent bar so white links and logo read on any hero image. */
.mn-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(var(--header-h) + 4rem);
  background: linear-gradient(rgba(10, 10, 9, .42), rgba(10, 10, 9, 0));
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mn-header.is-solid::before,
.mn-header.is-open::before { opacity: 0; }
.mn-header.is-hidden { transform: translateY(-100%); }
.mn-header.is-open { background: #fff; color: var(--ink); transform: none; }

.mn-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  padding-inline: 3.9rem;
}

.mn-header__col { display: flex; align-items: center; gap: 3rem; min-width: 0; }
.mn-header__col--end { justify-content: flex-end; gap: 2.4rem; }

.mn-header__nav { display: flex; align-items: center; gap: 2.8rem; }

.mn-header__link {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 2rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.mn-header__link:hover { opacity: .55; }
/* Inner pages mark the current section (set by tools/build-pages.mjs), standing in for the removed breadcrumb. */
.mn-header__link[aria-current], .mn-dd:has([aria-current]) > .mn-dd__btn { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .6rem; }
.mn-dd__link[aria-current], .mn-header__drawer-link[aria-current] { color: var(--gold-ink); }

/* Logo: white over the hero, full colour once the bar turns solid or the drawer opens. */
.mn-header__logo {
  display: grid;
  width: 15rem;
  text-decoration: none;
}
.mn-header__logo-img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  transition: opacity .4s var(--ease);
}
.mn-header__logo-img--light { opacity: 0; }
.mn-header:not(.is-solid):not(.is-open) .mn-header__logo-img--light { opacity: 1; }
.mn-header:not(.is-solid):not(.is-open) .mn-header__logo-img--colour { opacity: 0; }

/* Dropdowns (Experiences, Plan) */
.mn-dd { position: relative; }
.mn-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.mn-dd__btn svg { width: 1rem; height: .6rem; transition: transform .3s var(--ease); }
.mn-dd.is-open .mn-dd__btn svg { transform: rotate(180deg); }

.mn-dd__panel {
  position: absolute;
  top: calc(100% + 1.8rem);
  left: -2.4rem;
  display: flex;
  flex-direction: column;
  min-width: 22rem;
  padding: 1.6rem 2.4rem;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.6rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
/* Invisible bridge so the panel stays open while the pointer crosses the gap. */
.mn-dd__panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 1.8rem;
}
.mn-dd--end .mn-dd__panel { left: auto; right: -2.4rem; }
.mn-dd__panel--wide {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 4.8rem;
}
.mn-dd.is-open .mn-dd__panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .mn-dd:hover .mn-dd__panel { opacity: 1; visibility: visible; transform: none; }
  .mn-dd:hover .mn-dd__btn svg { transform: rotate(180deg); }
}

.mn-dd__group { display: flex; flex-direction: column; }
.mn-dd__label {
  margin-bottom: .6rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.mn-dd__link {
  padding: .6rem 0;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.mn-dd__link:hover { color: var(--muted); }

/* WhatsApp */
.mn-header__wa {
  display: inline-flex;
  flex: 0 0 auto;
  transition: opacity .3s var(--ease);
}
.mn-header__wa svg { width: 2.2rem; height: 2.2rem; }
.mn-header__wa:hover { opacity: .55; }

/* CTA */
.mn-header__cta { flex: 0 0 auto; gap: .8rem; white-space: nowrap; }
.mn-header__cta::after,
.mn-header__drawer-cta::after { content: "\2192"; letter-spacing: 0; transition: transform .3s var(--ease); }
.mn-header__cta:hover::after,
.mn-header__drawer-cta:hover::after { transform: translateX(.3rem); }
.mn-header__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mn-header:not(.is-solid):not(.is-open) .mn-header__cta:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Burger */
.mn-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: .48rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mn-header__toggle span {
  display: block;
  width: 1.34rem;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mn-header.is-open .mn-header__toggle span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.mn-header.is-open .mn-header__toggle span:nth-child(2) { opacity: 0; }
.mn-header.is-open .mn-header__toggle span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* Drawer */
.mn-header__drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  transition: max-height .42s var(--ease), opacity .3s var(--ease), visibility .42s;
}
.mn-header.is-open .mn-header__drawer {
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}
.mn-header__drawer-inner { display: flex; flex-direction: column; gap: 2.2rem; padding: 2rem 2rem 3.2rem; }
.mn-header__drawer-link {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.mn-header__drawer-group { display: flex; flex-direction: column; gap: 1.4rem; }
.mn-header__drawer-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  padding-left: 1.6rem;
  border-left: 1px solid var(--hairline);
}
.mn-header__drawer-sub a {
  font-size: 1.4rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted);
}
.mn-header__drawer-rule { height: 1px; background: var(--hairline); }
.mn-header__drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.4rem;
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.mn-header__drawer-meta a { text-decoration: none; }
.mn-header__drawer-meta a:hover { color: var(--ink); }
.mn-header__drawer-cta { align-self: flex-start; gap: .8rem; min-height: 4.4rem; }

@media (min-width: 1200px) {
  .mn-header__drawer { display: none; }
}

@media (max-width: 1199px) {
  .mn-header__nav { display: none; }
  .mn-header__toggle { display: flex; }
  .mn-header__col--end { gap: 2rem; }
  .mn-header__bar { padding-inline: 4rem; }
  .mn-header__logo { width: 13rem; }
}

@media (min-width: 750px) and (max-width: 1199px) {
  .mn-header__drawer-inner { gap: 3.2rem; padding: 4rem; }
  .mn-header__drawer-link { font-size: 2.4rem; }
  .mn-header__drawer-sub { grid-template-columns: repeat(3, 1fr); }
  .mn-header__drawer-sub a { font-size: 1.6rem; }
}

/* Tablet keeps the CTA in the bar; on phones it moves into the drawer. */
@media (min-width: 750px) and (max-width: 1199px) {
  .mn-header__drawer-cta { display: none; }
}
@media (max-width: 749px) {
  .mn-header__cta { display: none; }
}

@media (max-width: 749px) {
  :root { --header-h: 7.2rem; }
  .mn-header__bar { padding-inline: 2rem; }
  .mn-header__logo { width: 11rem; }
}
