/* ==========================================================================
   SITE MENU — hamburger + full-screen overlay (desktop + mobile)
   Colours follow the site palette: cream #F3E8D6, sand #C7955D, ink #1E1A16.
   ========================================================================== */

:root {
  --sm-cream: #F3E8D6;
  --sm-sand: #C7955D;
  --sm-ink: #1E1A16;
  --sm-ink-soft: rgba(30, 26, 22, .55);
  --sm-line: rgba(30, 26, 22, .14);
  --sm-ease: cubic-bezier(.76, 0, .24, 1);
  --sm-ease-out: cubic-bezier(.22, 1, .36, 1);
  --sm-offset: 28px;
  --sm-bar-c: 72px;           /* the one horizontal line burger, logo and header text are centred on */
  --sm-logo-w: 118px;         /* logo width at the top of the page */
  --sm-logo-w-small: 64px;    /* logo width once scrolled (inside the cream badge) */
}

/* ---------- hamburger button ---------- */
.site-burger {
  position: fixed;
  top: calc(var(--sm-bar-c) - 26px);   /* 52px tall -> centred on the bar line */
  left: var(--sm-offset);
  z-index: 10500;               /* above header (1200) + sticky CTA (9999), below preloader (11000) */
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 20px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sm-cream);
  color: var(--sm-ink);
  box-shadow: 0 6px 24px rgba(30, 26, 22, .12);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .45s var(--sm-ease), color .45s var(--sm-ease), transform .3s var(--sm-ease-out);
}

.site-burger:hover { transform: scale(1.04); }
.site-burger:focus-visible { outline: 2px solid var(--sm-sand); outline-offset: 3px; }

.site-burger_label {
  position: relative;
  display: grid;            /* both words share one cell, so the pill fits the longer one */
  justify-items: end;
  height: 14px;
  overflow: hidden;
  font-family: "Maison Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-burger_label_text {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  transition: transform .5s var(--sm-ease);
}



.site-burger_icon {
  position: relative;
  display: block;
  width: 26px;
  height: 10px;
}

.site-burger_icon span {
  position: absolute;
  left: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--sm-ease), width .5s var(--sm-ease), top .5s var(--sm-ease);
}

.site-burger_icon span:nth-child(1) { top: 0; width: 26px; }
.site-burger_icon span:nth-child(2) { top: 8.5px; width: 17px; }
.site-burger:hover .site-burger_icon span:nth-child(2) { width: 26px; }

/* open state */
html.site-menu-open .site-burger {
  background: var(--sm-ink);
  color: var(--sm-cream);
  box-shadow: none;
}



html.site-menu-open .site-burger_icon span:nth-child(1),
html.site-menu-open .site-burger_icon span:nth-child(2) {
  top: 4.25px;
  width: 22px;
}
html.site-menu-open .site-burger_icon span:nth-child(1) { transform: rotate(45deg); }
html.site-menu-open .site-burger_icon span:nth-child(2) { transform: rotate(-45deg); }

/* keep the button hidden while the preloader is running */
html.site-menu-preloading .site-burger { opacity: 0; pointer-events: none; }
.site-burger { transition-property: background-color, color, transform, opacity; }

/* ---------- overlay ---------- */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 10400;
  visibility: hidden;
  background: var(--sm-cream);
  color: var(--sm-ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--sm-ease), visibility 0s linear .8s;
  overflow: hidden;
}

html.site-menu-open .site-menu {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s var(--sm-ease), visibility 0s;
}

/* soft arch — the same shape as the preloader, as a quiet backdrop */
.site-menu_arch {
  position: absolute;
  right: 6vw;
  bottom: -18vh;
  width: min(36vw, 560px);
  height: 92vh;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(199, 149, 93, .22), rgba(199, 149, 93, .06));
  transform: translateY(12%);
  opacity: 0;
  transition: transform 1.1s var(--sm-ease-out), opacity .8s ease;
  pointer-events: none;
}

html.site-menu-open .site-menu_arch {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .25s;
}

.site-menu_inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sm-offset) clamp(20px, 5vw, 80px) clamp(20px, 4vh, 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-menu_top {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.site-menu_logo img {
  display: block;
  width: 140px;
  height: auto;
}

.site-menu_body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 48px clamp(40px, 8vw, 140px);
  align-items: end;
  padding-top: clamp(12px, 3vh, 48px);
}

/* ---------- nav list ---------- */
.site-menu_list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sm-item;
}

.site-menu_list li {
  counter-increment: sm-item;
  overflow: hidden;           /* mask for the slide-up reveal */
  border-top: 1px solid var(--sm-line);
}

.site-menu_list li:last-child { border-bottom: 1px solid var(--sm-line); }

.site-menu_list a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(6px, 1.15vh, 14px) 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--_fonts---font-display, "ambroise-francois-std", serif);
  font-size: clamp(28px, min(4vw, 5.6vh), 68px);
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(105%);
  transition: transform .9s var(--sm-ease-out), color .35s ease, opacity .35s ease, padding-left .45s var(--sm-ease-out);
}

.site-menu_list a::before {
  content: counter(sm-item, decimal-leading-zero);
  flex: none;
  min-width: 26px;
  padding-top: .35em;
  font-family: "Maison Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--sm-sand);
}

html.site-menu-open .site-menu_list a {
  transform: translateY(0);
  transition-delay: calc(.28s + var(--sm-i, 0) * .06s), 0s, 0s, 0s;
}

/* hover: highlight one, quietly dim the others */
@media (hover: hover) {
  .site-menu_list:hover a { opacity: .35; }
  .site-menu_list a:hover,
  .site-menu_list a:focus-visible {
    opacity: 1;
    color: var(--sm-sand);
    padding-left: 14px;
  }
}

.site-menu_list .current-menu-item > a { color: var(--sm-sand); }

/* ---------- aside: contact + CTA ---------- */
.site-menu_aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .8s var(--sm-ease-out);
}

html.site-menu-open .site-menu_aside {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .55s;
}

.site-menu_info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Maison Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.site-menu_info p { margin: 0; font: inherit; }

.site-menu_info a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--sm-ease-out);
}

.site-menu_info a:hover { background-size: 100% 1px; }

.site-menu_label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sm-ink-soft);
}

.site-menu_cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 260px;
  padding: 16px 22px;
  border: 1px solid var(--sm-ink);
  border-radius: 999px;
  color: var(--sm-ink);
  text-decoration: none;
  font-family: "Maison Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .35s ease, color .35s ease;
}

.site-menu_cta:hover {
  background: var(--sm-ink);
  color: var(--sm-cream);
}

/* ---------- sticky centred logo ---------- */
.site-logo {
  position: fixed;
  top: var(--sm-bar-c);
  left: 50%;
  z-index: 10450;               /* above the open menu overlay, below the burger */
  display: block;
  width: var(--sm-logo-w);
  padding: 0;
  border-radius: 999px;
  background: rgba(243, 232, 214, 0);
  box-shadow: 0 6px 24px rgba(30, 26, 22, 0);
  transform: translate(-50%, -50%);
  transition: width .5s var(--sm-ease), padding .5s var(--sm-ease),
              background-color .4s ease, box-shadow .4s ease, opacity .3s ease;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* after scrolling: smaller, on a cream badge so it reads on every section */
html.site-scrolled .site-logo {
  width: calc(var(--sm-logo-w-small) + 32px);
  padding: 14px 16px;
  background: var(--sm-cream);
  box-shadow: 0 6px 24px rgba(30, 26, 22, .12);
}

/* menu open: logo sits on the cream overlay, badge not needed */
html.site-menu-open .site-logo {
  background: rgba(243, 232, 214, 0);
  box-shadow: none;
}

html.site-menu-preloading .site-logo { opacity: 0; pointer-events: none; }

/* the old top-left logo is replaced by the sticky centred one */
.header-nav.logo_left { display: none !important; }

/* overlay: its own logo is not needed (the sticky one stays on top) — keep the space */
.site-menu_logo { display: none; }
.site-menu_top { min-height: calc(var(--sm-bar-c) + 26px); }

/* ---------- desktop: header text on the right, centred on the same line ---------- */
@media (min-width: 992px) {
  .header-nav:not(.logo_left) {
    top: var(--sm-bar-c);
    right: var(--sm-offset);
    width: auto;
    max-width: 380px;
    transform: translateY(-50%);
  }
  .header-nav:not(.logo_left) .header-nav_list { align-items: flex-end; }
  .header-nav:not(.logo_left) .h6 { white-space: nowrap; }
  .header-nav:not(.logo_left) .u-24 { height: 8px; }
}

/* ---------- mobile ---------- */
@media (max-width: 991px) {
  :root {
    --sm-offset: 16px;
    --sm-bar-c: 46px;
    --sm-logo-w: 66px;
    --sm-logo-w-small: 40px;
  }

  .site-burger {
    top: calc(var(--sm-bar-c) - 23px);   /* 46px tall */
    height: 46px;
    padding: 0 16px 0 18px;
    gap: 12px;
  }

  .site-burger_label { font-size: 12px; }

  html.site-scrolled .site-logo { padding: 9px 11px; width: calc(var(--sm-logo-w-small) + 22px); }

  .site-menu_top { min-height: calc(var(--sm-bar-c) + 24px); }

  .site-menu_body {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: space-between;
    gap: 22px;
    padding-top: 6px;
  }

  .site-menu_list a {
    font-size: clamp(22px, min(8vw, 4.1vh), 40px);
    padding: clamp(4px, .8vh, 9px) 0;
    gap: 14px;
  }

  /* address + contact side by side, button underneath — so it all fits on screen */
  .site-menu_aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding-bottom: 8px;
  }
  .site-menu_aside .site-menu_cta { grid-column: 1 / -1; padding: 13px 20px; }
  .site-menu_info { font-size: 14px; line-height: 1.45; gap: 4px; min-width: 0; }
  .site-menu_info a { overflow-wrap: anywhere; }

  .site-menu_cta { max-width: none; }

  .site-menu_arch {
    right: -12vw;
    width: 70vw;
    height: 60vh;
  }

  /* the old "Menu" dots button is replaced by the new burger */
  .header-nav_list.f-mob { display: none !important; }
}

/* lock page scroll while open (backup for when Lenis isn't running) */
html.site-menu-open,
html.site-menu-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .site-menu_list a,
  .site-menu_aside,
  .site-menu_arch,
  .site-burger_icon span,
  .site-burger_label_text { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- hero: keep the title clear of the centred logo (desktop) ---------- */
@media (min-width: 992px) {
  #hero .hero-s > .u-48:first-child {
    height: calc(var(--sm-bar-c) + 90px);   /* logo bottom + breathing room */
  }
}

/* ---------- WordPress admin bar (only when logged in) ---------- */
body.admin-bar .site-menu { top: 32px; }
body.admin-bar .site-burger { top: calc(var(--sm-bar-c) - 26px + 32px); }
body.admin-bar .site-logo { top: calc(var(--sm-bar-c) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-menu { top: 46px; }
  body.admin-bar .site-burger { top: calc(var(--sm-bar-c) - 23px + 46px); }
  body.admin-bar .site-logo { top: calc(var(--sm-bar-c) + 46px); }
}
/* below 600px WordPress lets the admin bar scroll away, so only offset at the very top */
@media (max-width: 600px) {
  html.site-scrolled body.admin-bar .site-burger { top: calc(var(--sm-bar-c) - 23px); }
  html.site-scrolled body.admin-bar .site-logo { top: var(--sm-bar-c); }
  html.site-scrolled body.admin-bar .site-menu { top: 0; }
}