/* Marble Trays global editorial header.
   Uses the site's existing font variables only: Geologica, Archivo, Archivo Black. */

:root {
  --mt-header-bg: #f4f0e8;
  --mt-header-bg-soft: #f7f4ed;
  --mt-header-text: #292723;
  --mt-header-border: rgba(43, 38, 31, 0.14);
  --mt-header-gold: #b28a4a;
  --mt-header-shadow: 0 14px 34px rgba(48, 39, 28, 0.1);
  --mt-header-container: 1480px;
}

.mt-site-header,
.mt-site-header * {
  box-sizing: border-box;
}

.mt-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 156px;
  color: var(--mt-header-text);
  font-family: var(--font-body, "Archivo", sans-serif);
  background: var(--mt-header-bg);
  isolation: isolate;
}

.mt-site-header a {
  color: inherit;
  text-decoration: none;
}

.mt-site-header button {
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
}

.mt-site-header svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-site-header__container {
  width: min(calc(100% - 64px), var(--mt-header-container));
  margin-inline: auto;
}

.mt-site-header__desktop {
  position: relative;
  display: block;
  width: 100%;
  background: var(--mt-header-bg);
}

.mt-site-header__utility-row {
  height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--mt-header-border);
  background: var(--mt-header-bg);
  transition: none;
}

.mt-site-header__utility-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.mt-site-header__utility-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-body, "Archivo", sans-serif);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mt-site-header__utility-link--left { justify-self: start; }
.mt-site-header__utility-link--center { justify-self: center; }
.mt-site-header__utility-link--right { justify-self: end; }
.mt-site-header__utility-icon { width: 16px; height: 16px; flex: 0 0 16px; }

.mt-site-header__brand-row {
  height: 76px;
  border-bottom: 1px solid var(--mt-header-border);
  background: var(--mt-header-bg);
  transition: none;
}

.mt-site-header__brand-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.mt-site-header__brand-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.mt-site-header__brand-side--left { justify-content: flex-start; }
.mt-site-header__brand-side--right { justify-content: flex-end; gap: 16px; }

.mt-site-header__wordmark,
.mt-site-header__mobile-wordmark {
  font-family: var(--font-display, "Geologica", sans-serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mt-site-header__wordmark {
  justify-self: center;
  padding-left: 0.24em;
  font-size: clamp(25px, 2.2vw, 34px);
}

.mt-site-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  cursor: pointer;
}

.mt-site-header__icon-button svg { width: 24px; height: 24px; }

.mt-site-header__request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 19px;
  color: #f7f3ea !important;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #23221f;
  border: 1px solid #23221f;
}

.mt-site-header__nav-row {
  height: 44px;
  border-bottom: 1px solid var(--mt-header-border);
  background: var(--mt-header-bg);
}

.mt-site-header__primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 44px;
  gap: clamp(28px, 4vw, 62px);
}

.mt-site-header__nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.mt-site-header__nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--mt-header-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.mt-site-header__nav-item.is-open::after,
.mt-site-header__nav-item.is-current::after,
.mt-site-header__nav-item:focus-within::after {
  transform: scaleX(1);
}

.mt-site-header__nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mt-site-header__nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 32px;
  cursor: pointer;
}

.mt-site-header__nav-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.mt-site-header__nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mt-site-header__desktop-panels {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.mt-site-header__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  border-bottom: 1px solid var(--mt-header-border);
  background: var(--mt-header-bg-soft);
  box-shadow: var(--mt-header-shadow);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.mt-site-header__panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.mt-site-header__mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
  gap: 28px;
  padding-block: 18px;
}

.mt-site-header__mega-groups {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mt-site-header__menu-group {
  min-width: 0;
  padding: 4px 18px 8px;
  border-left: 1px solid var(--mt-header-border);
}

.mt-site-header__menu-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.mt-site-header__menu-group h2 {
  margin: 0;
  font-family: var(--font-body, "Archivo", sans-serif);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt-site-header__gold-rule {
  display: block;
  width: 19px;
  height: 1px;
  margin: 9px 0 12px;
  background: var(--mt-header-gold);
}

.mt-site-header__menu-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-site-header__menu-group li + li { margin-top: 8px; }

.mt-site-header__menu-group a {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.mt-site-header__menu-group a:hover,
.mt-site-header__menu-group a:focus-visible,
.mt-site-header__compact-links a:hover,
.mt-site-header__compact-links a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--mt-header-gold);
  text-underline-offset: 4px;
}

.mt-site-header__promo {
  position: relative;
  display: block;
  min-height: 214px;
  overflow: hidden;
  background: #e9e2d6;
}

.mt-site-header__promo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mt-site-header__promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 242, 233, 0.95) 0%, rgba(246, 242, 233, 0.72) 54%, rgba(246, 242, 233, 0.2) 100%);
}

.mt-site-header__promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 72%;
  min-height: 214px;
  padding: 22px 18px;
}

.mt-site-header__promo-copy strong {
  font-family: var(--font-display, "Geologica", sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mt-site-header__promo-copy small {
  margin-top: 20px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mt-site-header__promo-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mt-site-header__promo-copy > span svg { width: 14px; height: 14px; }

.mt-site-header__compact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
  padding-block: 28px;
}

.mt-site-header__compact-kicker {
  margin: 0 0 8px;
  color: #7b684b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mt-site-header__compact-grid h2 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-display, "Geologica", sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.mt-site-header__compact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 28px;
}

.mt-site-header__compact-links a { font-size: 11px; }

.mt-site-header.is-scrolled {
  min-height: 108px;
}

.mt-site-header.is-scrolled .mt-site-header__utility-row {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.mt-site-header.is-scrolled .mt-site-header__brand-row { height: 64px; }
.mt-site-header.is-scrolled .mt-site-header__desktop { box-shadow: 0 9px 24px rgba(48, 39, 28, 0.08); }
.mt-site-header.is-scrolled .mt-site-header__wordmark { font-size: clamp(23px, 1.85vw, 30px); }

.mt-site-header__mobile { display: none; }

.mt-site-header :focus-visible {
  outline: 2px solid var(--mt-header-gold);
  outline-offset: 3px;
}

html.mt-menu-lock,
body.mt-menu-lock {
  overflow: hidden !important;
}

@media (max-width: 1180px) {
  .mt-site-header__container { width: min(calc(100% - 40px), var(--mt-header-container)); }
  .mt-site-header__primary-nav { gap: 28px; }
  .mt-site-header__mega-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
  .mt-site-header__menu-group { padding-inline: 12px; }
  .mt-site-header__menu-group a { font-size: 10px; }
}

@media (max-width: 900px) {
  .mt-site-header {
    min-height: 96px;
    background: var(--mt-header-bg);
  }

  .mt-site-header__desktop { display: none; }
  .mt-site-header__mobile { display: block; background: var(--mt-header-bg); }

  .mt-site-header__mobile-main,
  .mt-site-header__mobile-panel-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 62px;
    padding-inline: 14px;
    border-bottom: 1px solid var(--mt-header-border);
    background: var(--mt-header-bg);
  }

  .mt-site-header__mobile-side { display: flex; align-items: center; }
  .mt-site-header__mobile-side--left { justify-content: flex-start; }
  .mt-site-header__mobile-side--right { justify-content: flex-end; gap: 1px; }
  .mt-site-header__mobile-wordmark { justify-self: center; padding-left: 0.2em; font-size: clamp(17px, 4.8vw, 23px); letter-spacing: 0.2em; }
  .mt-site-header__mobile-main .mt-site-header__icon-button,
  .mt-site-header__mobile-panel-top .mt-site-header__icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .mt-site-header__mobile-main .mt-site-header__icon-button svg,
  .mt-site-header__mobile-panel-top .mt-site-header__icon-button svg { width: 21px; height: 21px; }

  .mt-site-header__mobile-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding-inline: 12px;
    border-bottom: 1px solid var(--mt-header-border);
    background: var(--mt-header-bg);
  }

  .mt-site-header__mobile-utility a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mt-site-header__mobile-utility .mt-site-header__utility-icon { width: 14px; height: 14px; flex-basis: 14px; }

  .mt-site-header__mobile-panel {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    visibility: hidden;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: var(--mt-header-bg-soft);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }

  .mt-site-header__mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mt-site-header__mobile-panel-top {
    position: sticky;
    top: 0;
    z-index: 3;
    flex: 0 0 62px;
  }

  .mt-site-header__mobile-nav { padding: 0 18px; }

  .mt-site-header__mobile-nav-row,
  .mt-site-header__mobile-simple-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    border-bottom: 1px solid var(--mt-header-border);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .mt-site-header__mobile-nav-row > a { display: flex; align-items: center; min-height: 48px; flex: 1; }
  .mt-site-header__mobile-nav-row > button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; cursor: pointer; }
  .mt-site-header__mobile-nav-row > button svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform 180ms ease; }
  .mt-site-header__mobile-accordion.is-open .mt-site-header__mobile-nav-row > button svg { transform: rotate(0deg); }

  .mt-site-header__mobile-submenu {
    padding: 10px 0 16px 16px;
    border-bottom: 1px solid var(--mt-header-border);
  }

  .mt-site-header__mobile-submenu[hidden] { display: none; }
  .mt-site-header__mobile-submenu a { display: block; padding: 7px 0; font-size: 11px; line-height: 1.4; }

  .mt-site-header__mobile-promo {
    position: relative;
    display: block;
    min-height: 210px;
    margin: 20px 18px 0;
    overflow: hidden;
    background: #e9e2d6;
  }

  .mt-site-header__mobile-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mt-site-header__mobile-promo .mt-site-header__promo-copy { width: 72%; min-height: 210px; }

  .mt-site-header__mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 18px 24px;
  }

  .mt-site-header__mobile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #2a2925;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mt-site-header__mobile-actions a:first-child { color: #f7f3ea; background: #23221f; }
  .mt-site-header__mobile-actions svg { width: 16px; height: 16px; }

  .mt-site-header.is-scrolled { min-height: 96px; }
}

@media (max-width: 350px) {
  .mt-site-header__mobile-main,
  .mt-site-header__mobile-panel-top { padding-inline: 8px; }
  .mt-site-header__mobile-wordmark { font-size: 16px; letter-spacing: 0.15em; }
  .mt-site-header__mobile-main .mt-site-header__mobile-side--right .mt-site-header__icon-button:first-child,
  .mt-site-header__mobile-panel-top .mt-site-header__mobile-side--right .mt-site-header__icon-button:first-child { display: none; }
  .mt-site-header__mobile-utility { padding-inline: 9px; }
  .mt-site-header__mobile-utility-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-site-header *,
  .mt-site-header *::before,
  .mt-site-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
