/* The header – new style, take two (partials/header-mega.php, setting nav_style = "mega"). The logo stays in the
   middle as on the classic header; sections either side of it; the panels are full-width bands of photo tiles. */
.mh { --mh-pad: clamp(16px, 3vw, 60px); }
.mh .mh__bar { position: relative; height: var(--header-h); display: grid; grid-template-columns: 96px 1fr auto 1fr 96px; align-items: center; padding: 0 var(--mh-pad); }
.mh__edge { display: flex; align-items: center; gap: 2px; }
.mh__edge--left { grid-column: 1; grid-row: 1; }
.mh__edge--right { grid-column: 5; grid-row: 1; justify-content: flex-end; }
.mh__brand { grid-column: 3; grid-row: 1; display: block; width: 150px; color: #fff; line-height: 0; }
.mh__brand svg { width: 100%; height: auto; }
.mh__brand:focus-visible { outline-color: #fff; }
.mh__nav { display: none; }
.mh__list { display: flex; align-items: center; justify-content: space-evenly; height: 100%; margin: 0; padding: 0; list-style: none; }
.mh__nav--left { grid-column: 2; }
.mh__nav--right { grid-column: 4; }
.mh__top { position: relative; padding: 14px 4px; border: 0; background: none; color: #fff; cursor: pointer;
  font: 400 13px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.mh__top::after { content: ""; position: absolute; left: 4px; right: calc(4px + .2em); bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.mh__top:hover::after, .mh__item.is-open .mh__top::after, .mh__item.is-active .mh__top::after { transform: scaleX(1); }
.mh__cta { display: inline-block; padding: 12px 22px; border: 1px solid rgb(255 255 255 / .8); border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap;
  font: 400 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.mh__cta:hover, .mh__cta[aria-current="page"] { background: #fff; color: #111; }

/* the band under the bar */
.mh__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--surface, #fff); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45); animation: mhIn .22s ease; }
.mh__panel[hidden] { display: none; }
.mh__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lens-flare); }
@keyframes mhIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mh__panel { animation: none; } }
.mh__panel-in { max-width: 1500px; margin: 0 auto; padding: 48px var(--mh-pad) 56px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.mh__title { margin: 0; font: 300 2.3rem/1.05 var(--f-head); letter-spacing: -.01em; color: var(--ink); }
.mh__lead { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.mh__all { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--ink); text-decoration: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.mh__all:hover { color: var(--ink); gap: 14px; }
.mh__all .icon { transition: transform .2s; }
.mh__tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.mh__tile { display: block; color: var(--ink); text-decoration: none; }
.mh__tile-img { display: block; aspect-ratio: 4 / 5; margin-bottom: 14px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mh__tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.mh__tile:hover .mh__tile-img img, .mh__tile:focus-visible .mh__tile-img img { transform: scale(1.05); }
.mh__tile-t { display: block; font: 500 16px/1.3 var(--f-head); }
.mh__tile:hover .mh__tile-t { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.mh__tile-s { display: block; margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mh__tile-p { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.mh__tile[aria-current="page"] .mh__tile-t::after { content: " •"; }
/* pages without a photo (About): a short list under the heading */
.mh__links { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mh__links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; transition: padding .2s; }
.mh__links a:hover, .mh__links a[aria-current="page"] { padding-left: 8px; color: var(--ink); }

/* icons at the outer edges */
.mh__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .15s; }
.mh__icon:hover, .mh__icon[aria-expanded="true"] { background: rgb(255 255 255 / .14); color: #fff; }
.mh__lang img { display: block; border-radius: 2px; }
.mh__burger { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.mh__burger span { position: relative; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: background .2s; }
.mh__burger span::before, .mh__burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
.mh__burger span::before { top: -7px; } .mh__burger span::after { top: 7px; }
.mh__burger[aria-expanded="true"] span { background: transparent; }
.mh__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.mh__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* search: a full-width band too */
.mh__search { position: absolute; left: 0; right: 0; top: 100%; z-index: 61; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.mh__search[hidden] { display: none; }
.mh__search::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lens-flare); }
.mh__search form { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 30px var(--mh-pad); color: var(--muted); }
.mh .mh__search input { flex: 1; border-radius: 0; box-shadow: none; -webkit-appearance: none; appearance: none; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 300 1.6rem/1.2 var(--f-head); padding: 10px 0; outline: none; }
.mh__search input:focus { border-bottom-color: var(--ink); }
.mh__search .mh__icon { color: var(--ink); }
.mh__search .mh__icon:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

/* phone / tablet: the full-screen menu */
.mh-mobile { position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); }
.mh-mobile[hidden] { display: none; }
.mh-mobile__in { max-width: 640px; margin: 0 auto; padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.mh-mobile__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 999px; background: var(--lens-flare); background-size: 140% 100%;
  color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.mh-mobile__cta:hover { color: #fff; filter: brightness(1.08); }
.mh-mobile__search { display: flex; align-items: center; gap: 10px; padding: 0 2px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mh-mobile .mh-mobile__search input { flex: 1; min-width: 0; border: 0; border-radius: 0; box-shadow: none; -webkit-appearance: none; appearance: none; background: transparent; color: var(--ink); font-size: 16px; padding: 14px 0; outline: none; }
.mh-mobile__sec { border-bottom: 1px solid var(--line); }
.mh-mobile__sec summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 2px; cursor: pointer; list-style: none; }
.mh-mobile__sec summary::-webkit-details-marker { display: none; }
.mh-mobile__sec summary > span { font: 300 1.6rem/1.1 var(--f-head); }
.mh-mobile__sec summary small { display: block; margin-top: 6px; font: 400 13px/1.35 var(--f-body); color: var(--muted); }
.mh-mobile__sec summary .icon { flex: none; color: var(--muted); transition: transform .2s; }
.mh-mobile__sec[open] summary .icon { transform: rotate(180deg); }
.mh-mobile__sec ul { margin: 0 0 16px; padding: 0; list-style: none; }
.mh-mobile__sec li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 2px; color: var(--ink); text-decoration: none; font-size: 16px; }
.mh-mobile__sec li a[aria-current="page"] { font-weight: 600; }
.mh-mobile__sec li em { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mh-mobile__more { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.mh-mobile__more a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.mh-mobile__more img { border-radius: 2px; }
html.mh-locked, html.mh-locked body { overflow: hidden; }
html.mh-locked .service-mobile-book, html.mh-locked .hire-mobile-book { display: none !important; }

/* desktop: sections either side of the logo, no burger */
@media (min-width: 1300px) {
  :root { --header-h: 100px; }
  .mh .mh__bar { grid-template-columns: 96px 1fr auto 1fr 96px; }
  .mh__brand { width: clamp(210px, 16vw, 280px); margin: 0 clamp(24px, 3vw, 48px); }
  .mh__nav { display: block; height: 100%; }
  .mh__burger { display: none; }
  .mh-mobile { display: none !important; }
}
@media (max-width: 1299.98px) {
  .mh__panel { display: none !important; }
}
@media (max-width: 560px) {
  .mh .mh__bar { grid-template-columns: 52px 1fr auto 1fr 52px; }
  .mh__brand { grid-column: 3; }
  .mh__lang, .mh__login { display: none; }   /* in the menu instead */
  .mh-mobile__more { grid-template-columns: 1fr; }
}
@media (min-width: 1300px) and (max-width: 1439.98px) {
  .mh__top, .mh__cta { letter-spacing: .13em; }
  .mh__cta { padding-inline: 16px; }
}
