/* ============================================================ */
/* SHARED NAV + MENU STYLES                                      */
/* Single source of truth — loaded by every page                 */
/* ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* TASK-MF-735 (owner): a 70%-transparent bar behind the bar, so page
     content scrolling under it no longer collides with the links. Softly
     blurred; lifted while the beige overlay is open. */
  /* The tint is the PAGE's own colour (owner): each page sets --nav-bg on
     :root to its background; navy is the default for the pages built on it.
     30% of that colour over transparent = the 70%-transparent bar. */
  background: color-mix(in srgb, var(--nav-bg, #1C1C3A) 30%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 32px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.nav-mark, .nav-links {
  pointer-events: auto;
}
.nav-wordmark {
  font-family: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Logo is white at all times, on every page and every scroll state */
.nav .mf-logotype, .nav .mf-logotype em { color: #ffffff !important; }
.nav-links {
  display: flex;
  /* TASK-20260916: 1.25x the previous 11px/36px, tracking and case unchanged. */
  gap: 45px;
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
}
/* TASK-20260916 (owner): Book a consultation and Sign up light up on hover and
   keyboard focus — the lightest gold of the MF-713 gradient plus a soft bloom,
   the same warmth the two buttons beside them take. */
.nav-links a {
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #f0d78c;
  text-shadow: 0 0 14px rgba(226,198,141,0.5);
}

/* HAMBURGER */
.nav-burger {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 44px;
  /* TASK-20260916 (owner): OUTLINED — transparent fill, 1px border and letters
     in the lighter gold of the MF-713 gradient (#E2C68D). It fills with that
     same gradient and MF-713's navy letters on hover and keyboard focus.
     Literal colours: this sheet loads on pages that define no --gold. */
  border: 1px solid #E2C68D; border-radius: 4px;
  /* TASK-MF-735 (owner): the glass came off — "too many variations". This is
     the site's SECONDARY button (site-system.css): transparent at rest, and it
     fills flat gold with navy letters on hover, exactly like "Talk to us". */
  background: transparent;
  box-shadow: none;
  cursor: none;
  transition: filter 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: #E2C68D; text-transform: uppercase;
}
.nav-burger:hover,
.nav-burger:focus-visible {
  /* TASK-MF-735 (owner): the secondary button's GLASS hover, mirrored from
     site-system.css so the top bar reads as the same button as every other
     outline on the site. */
  background: linear-gradient(to top, rgba(226,198,141,0.30), rgba(226,198,141,0.14) 50%, rgba(226,198,141,0.06));
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #FFF8E7;
  border-color: #f0d78c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 14px 2px rgba(226,198,141,0.22);
}
.nav-burger span { display: none; }
.nav-burger::before { content: 'Menu'; }
.nav-burger.open { filter: brightness(1.08); }
.nav-burger.open::before { content: 'Close'; }

/* LOGIN — beside the menu button, the same box (TASK-MF-687) */
.nav-actions {
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
}
.nav-login {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  /* TASK-20260916 (owner): OUTLINED, matching .nav-burger above — same size,
     padding, radius, font and tracking as the MF-713 filled button it replaces. */
  border: 1px solid #E2C68D; border-radius: 4px;
  /* TASK-MF-735 (owner): the same plain outline as .nav-burger above. */
  background: transparent;
  box-shadow: none;
  cursor: none;
  transition: filter 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: #E2C68D; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.nav-login:hover,
.nav-login:focus-visible {
  /* TASK-MF-735 (owner): the secondary button's GLASS hover, mirrored from
     site-system.css so the top bar reads as the same button as every other
     outline on the site. */
  background: linear-gradient(to top, rgba(226,198,141,0.30), rgba(226,198,141,0.14) 50%, rgba(226,198,141,0.06));
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #FFF8E7;
  border-color: #f0d78c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 14px 2px rgba(226,198,141,0.22);
}

/* ── MOBILE NAV ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none !important; }
  .nav-burger {
    width: 44px; height: 44px;
    border: none; background: transparent;
    flex-direction: column; gap: 5px; padding: 10px;
    cursor: pointer;
  }
  /* the phone burger is a bare icon: no box, so no fill on hover either */
  .nav-burger:hover, .nav-burger:focus-visible { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-burger::before, .nav-burger.open::before { content: none; }
  .nav-burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: #E2C68D; /* TASK-MF-713 */
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  /* TASK-MF-687: Login stays beside the hamburger, one size down */
  .nav-actions { gap: 4px; }
  .nav-login { height: 36px; padding: 0 14px; font-size: 11px; cursor: pointer; }
}

/* MENU OVERLAY */
.menu-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: #ffecd4;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 48px 34px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-overlay .menu-label {
  /* hidden: duplicated the nav wordmark in the corner (two Maison Forges) */
  display: none;
}
/* clear the fixed top bar now that the label no longer spaces the links down */
.menu-overlay nav { margin-top: 96px; }
.menu-overlay nav a {
  display: block;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 44px);
  color: #69451d; letter-spacing: 0.02em;
  line-height: 1.35; margin-bottom: 12px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s, padding 0.35s cubic-bezier(0.16,1,0.3,1);
}
.menu-overlay.open nav a { opacity: 1; transform: translateY(0); }
.menu-overlay nav a:hover { color: #010101; padding-left: 14px; }
.menu-overlay nav a.menu-sub {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(105,69,29,0.7); margin-bottom: 8px;
}
.menu-overlay nav a.menu-sub:hover { color: #010101; }
.menu-overlay .menu-divider {
  width: 72px; height: 1px; background: rgba(105,69,29,0.4);
  margin: 22px 0;
}
.menu-overlay .menu-email { margin-top: 40px; }
.menu-overlay .menu-email,
.menu-overlay .menu-email a {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px; letter-spacing: 0.22em;
  color: rgba(1,1,1,0.6); text-transform: uppercase;
  text-decoration: none;
}
.menu-overlay .menu-email a:hover { color: #010101; }
.menu-commission-btn {
  display: inline-block; margin-top: 26px; align-self: flex-start;
  background: #c9ad72; border: 1px solid #c9ad72; color: #4a2f13;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 18px 40px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s, background 0.25s;
  text-decoration: none;
}
.menu-overlay.open .menu-commission-btn { opacity: 1; transform: translateY(0); }
.menu-commission-btn:hover { background: #b89a5c; border-color: #b89a5c; }

@media (max-height: 800px) {
  .menu-overlay { padding: 40px 56px; }
  .menu-overlay .menu-label { margin-bottom: 24px; }
  .menu-overlay nav a { font-size: clamp(24px, 2.9vw, 38px); margin-bottom: 8px; }
  .menu-overlay nav a.menu-sub { margin-bottom: 6px; }
  .menu-overlay .menu-divider { margin: 16px 0; }
  .menu-overlay .menu-email { margin-top: 28px; }
  .menu-commission-btn { margin-top: 20px; padding: 14px 32px; }
}

@media (max-height: 600px) {
  .menu-overlay { padding: 24px 56px; }
  .menu-overlay .menu-label { margin-bottom: 12px; }
  .menu-overlay nav a { font-size: clamp(20px, 2.6vw, 30px); margin-bottom: 5px; }
  .menu-overlay nav a.menu-sub { margin-bottom: 3px; font-size: clamp(11px, 1vw, 13px); }
  .menu-overlay .menu-divider { margin: 10px 0; }
  .menu-overlay .menu-email { margin-top: 16px; font-size: 12px; }
  .menu-commission-btn { margin-top: 12px; padding: 12px 26px; font-size: 12px; }
}

/* MENU BACKGROUND — constellation + stars */
.menu-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.menu-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.mstar {
  fill: #69451d;
  animation: mstar-twinkle 9s ease-in-out infinite;
}
.mstar:nth-child(2)  { animation-delay: 0.7s; animation-duration: 7.0s; }
.mstar:nth-child(3)  { animation-delay: 1.4s; animation-duration: 10.0s; }
.mstar:nth-child(4)  { animation-delay: 0.3s; animation-duration: 8.4s; }
.mstar:nth-child(5)  { animation-delay: 2.1s; animation-duration: 7.6s; }
.mstar:nth-child(6)  { animation-delay: 1.1s; animation-duration: 9.2s; }
.mstar:nth-child(7)  { animation-delay: 1.8s; animation-duration: 6.4s; }
.mstar:nth-child(8)  { animation-delay: 0.5s; animation-duration: 10.4s; }
.mstar:nth-child(9)  { animation-delay: 2.6s; animation-duration: 8.0s; }
.mstar:nth-child(10) { animation-delay: 1.3s; animation-duration: 7.2s; }
.mstar:nth-child(11) { animation-delay: 0.9s; animation-duration: 9.6s; }
.mstar:nth-child(12) { animation-delay: 2.2s; animation-duration: 6.8s; }
@keyframes mstar-twinkle {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.26; }
}
/* Constellation logo frame — larger, truly centered */
.menu-const-frame {
  position: absolute;
  left: 62%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(62vw, 760px);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
@media (max-width: 768px) {
  .menu-const-frame { top: auto; bottom: 40px; left: 50%; transform: translateX(-50%); }
}
.menu-const { width: 100%; display: block; }
.menu-const .mc-line {
  fill: none;
  stroke: #010101;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: mc-draw 9s cubic-bezier(0.16,1,0.3,1) infinite;
  animation-play-state: paused;
}
.menu-overlay.open .menu-const .mc-line { animation-play-state: running; }
.menu-const .mc-line:nth-child(1) { animation-delay: 0s; }
.menu-const .mc-line:nth-child(2) { animation-delay: 0.4s; }
.menu-const .mc-line:nth-child(3) { animation-delay: 0.8s; }
.menu-const .mc-line:nth-child(4) { animation-delay: 1.2s; }
.menu-const .mc-line:nth-child(5) { animation-delay: 1.6s; }
.menu-const .mc-line:nth-child(6) { animation-delay: 2.0s; }
.menu-const .mc-dot {
  fill: #69451d;
  opacity: 0.2;
  animation: mc-dot 9s ease-in-out infinite;
  animation-play-state: paused;
}
.menu-overlay.open .menu-const .mc-dot { animation-play-state: running; }
.menu-const .mc-dot:nth-child(7)  { animation-delay: 0.5s; }
.menu-const .mc-dot:nth-child(8)  { animation-delay: 1.8s; }
.menu-const .mc-dot:nth-child(9)  { animation-delay: 1.3s; }
.menu-const .mc-dot:nth-child(10) { animation-delay: 1.7s; }
.menu-const .mc-dot:nth-child(11) { animation-delay: 0.9s; }
.menu-const .mc-dot:nth-child(12) { animation-delay: 2.0s; }
.menu-const .mc-dot:nth-child(13) { animation-delay: 2.1s; }
.menu-const .mc-dot:nth-child(14) { animation-delay: 2.5s; }
.menu-const .mc-wordmark {
  fill: #010101;
  opacity: 0;
  animation: mc-text 9s ease-in-out infinite;
  animation-play-state: paused;
  animation-delay: 2.4s;
}
.menu-overlay.open .menu-const .mc-wordmark { animation-play-state: running; }
.menu-const .mc-wordmark-sub {
  fill: rgba(1,1,1,0.55);
  opacity: 0;
  animation: mc-text 9s ease-in-out infinite;
  animation-play-state: paused;
  animation-delay: 2.6s;
}
.menu-overlay.open .menu-const .mc-wordmark-sub { animation-play-state: running; }
@keyframes mc-draw {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  8%   { opacity: 1; }
  35%  { stroke-dashoffset: 0; }
  75%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mc-dot {
  0%, 12% { opacity: 0; }
  32%, 75% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mc-text {
  0%, 20% { opacity: 0; }
  40%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

/* brand logotype — the name logo (gold, white AI) */
.mf-logotype { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700;
  letter-spacing: 0.04em; color: #E2C68D; white-space: nowrap; }
.mf-logotype em { font-style: normal; color: #ffffff; }

/* Beige overlay open: the fixed top bar switches to ink so it reads on ivory */
body:has(.menu-overlay.open) .nav-wordmark,
body:has(.menu-overlay.open) .nav .mf-logotype,
body:has(.menu-overlay.open) .nav .mf-logotype em { color: #010101 !important; }
body:has(.menu-overlay.open) .nav-links { color: #69451d; }
body:has(.menu-overlay.open) .nav-burger { color: #010101; }
body:has(.menu-overlay.open) .nav-burger span { background: #010101; }
body:has(.menu-overlay.open) .nav-login { color: #010101; }
body:has(.menu-overlay.open) .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* crest guards: phones and short landscape keep the crest clear of the link stack */
@media (max-width: 768px) {
  .menu-const-frame {
    position: fixed;
    top: auto; left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 200px;
  }
  .menu-overlay { padding-bottom: 240px; }
}
@media (max-height: 500px) {
  .menu-const-frame { width: min(34vw, 300px); bottom: 16px; }
}

/* Advisory Board temporarily unavailable */
.menu-overlay nav .menu-soon {
  display: block;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 44px);
  color: rgba(105,69,29,0.4);
  letter-spacing: 0.02em;
  line-height: 1.35; margin-bottom: 12px;
  cursor: default; pointer-events: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-overlay.open nav .menu-soon { opacity: 1; transform: translateY(0); }
.menu-soon-tag {
  font-size: 0.34em; letter-spacing: 0.28em; text-transform: uppercase;
  vertical-align: middle; margin-left: 12px; color: rgba(105,69,29,0.55);
}

/* TASK-20260916 (owner): the halo does not animate for a visitor who asked for
   less motion; the buttons still change colour, just without the transition. */
@media (prefers-reduced-motion: reduce) {
  .nav-login, .nav-burger, .nav-links a { transition: none; }
}
