/* Header v2 mega panels (Felix, approved by Alex 25 Nov 2026; studio/web/components/header/approved/source/mega.css).
 * Plain CSS, no build. Desktop only; the bar and the phone menu are unchanged. Buttons use the shared .btn (app.css). */
.mm-panels, .mm-dim { display: none; }
@media (min-width: 1024px) {
  .mm-panels { display: block; }
  #header .desktop-nav #main-menu > li > ul { display: none !important; }
  #header .desktop-nav #main-menu > li.mm-on > a { color: #fff; }
  #header .desktop-nav #main-menu > li.mm-on > a .chevron { transform: rotate(180deg); }

  .mm-dim { display: block; position: fixed; inset: 0; z-index: 49; background: rgb(20 5 32 / 45%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
  body.mm-open .mm-dim { opacity: 1; visibility: visible; }

  .mm-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: #1d0b2c; border-top: 1px solid rgb(57 13 88 / 8%); box-shadow: 0 24px 40px -24px rgb(20 5 32 / 45%); max-height: calc(100vh - 80px); overflow-y: auto; }
  .mm-panel.is-open { display: block; }
  .mm-in { max-width: 80rem; margin: 0 auto; padding: 28px 32px 32px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; }
  .mm-h { margin: 0 0 14px; font: 700 12px/1 var(--font-sans, Manrope, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #662196; }
  .mm-main > .mm-h { padding-left: 12px; }
  .mm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 16px; }
  .mm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #header .mm-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 0; border-radius: 10px; color: #1d0b2c; text-decoration: none; transition: background-color .15s; }
  #header .mm-item:hover { background: #f6f1fa; color: #1d0b2c; }
  .mm-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #f1eaf7; color: #390d58; }
  .mm-ic svg { width: 20px; height: 20px; }
  .mm-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .mm-tx b { font-size: 15px; font-weight: 800; line-height: 1.25; }
  .mm-tx span { font-size: 13.5px; line-height: 1.45; color: #62556f; }
  #header .mm-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 12px; border: 0; font-weight: 700; font-size: 14.5px; color: #390d58; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
  .mm-all svg, .mm-more svg { width: 16px; height: 16px; }

  .mm-side { background: #f6f1fa; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; align-self: stretch; }
  .mm-side .mm-h { margin-bottom: 2px; }
  .mm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; }
  #header .mm-links a { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; color: #1d0b2c; font-weight: 700; font-size: 14.5px; line-height: 1.4; text-decoration: none; border: 0; border-bottom: 1px solid rgb(57 13 88 / 8%); }
  #header .mm-links li:last-child a { border-bottom: 0; }
  #header .mm-links a:hover { color: #662196; }
  .mm-k { font-size: 12px; font-weight: 600; color: #62556f; }
  #header .mm-more { display: inline-flex; align-items: center; gap: 6px; border: 0; font-weight: 700; font-size: 14px; color: #390d58; text-decoration: underline; text-underline-offset: 4px; }
  .mm-cta { margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(57 13 88 / 10%); width: 100%; display: grid; gap: 10px; justify-items: start; }
  .mm-cta p, .mm-p { margin: 0; font-size: 14px; color: #62556f; line-height: 1.5; }
  #header .mm-tel { display: inline-flex; align-items: center; gap: 10px; border: 0; font-weight: 800; font-size: 20px; color: #390d58; text-decoration: none; }
  #header .mm-mail { display: inline-flex; align-items: center; gap: 10px; border: 0; font-size: 14.5px; color: #62556f; text-decoration: none; }
  .mm-tel svg { width: 20px; height: 20px; } .mm-mail svg { width: 17px; height: 17px; }
  #header .mm-panel .btn--primary { background: #390d58; color: #fff; }
  #header .mm-panel .btn--primary:hover { background: #4d1873; color: #fff; }
  #header .mm-side .btn--secondary { background: #fff; color: #390d58; }
  #header .mm-side .btn--secondary:hover { background: #fbf8fd; color: #390d58; }
  #header .mm-panel a:focus-visible { outline: 2px solid #390d58; outline-offset: 2px; }
  #header .mm-panel a.btn:focus-visible { outline-offset: -5px; }
  #header .mm-panel a.btn--primary:focus-visible { outline-color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .mm-dim, #header .mm-item { transition: none; } }

/* Header bar: phone + "Get a fixed price" (Emily 25 Nov). Between 1024 and 1279px the nav, number and button
   don't all fit, so the phone shows its icon only there (its aria-label still reads the number). */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  #header a.header-auth-link > span { display: none; }
}
#header .hdr-quote { white-space: nowrap; }
