/* Standalone Destinations-app adapter for the shared static Header contract. */
:root {
  --ctm-global-header-height: 76px;
  --ctm-global-header-height-compact: 64px;
  --ctm-global-header-content: 1380px;
  --ctm-global-header-forest: #174b3e;
  --ctm-global-header-forest-dark: #0b342d;
  --ctm-global-header-terracotta: #cf452a;
  --ctm-global-header-terracotta-dark: #ab351f;
  --ctm-global-header-border: #ded8cd;
  --ctm-global-header-font-serif: "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  --ctm-global-header-font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --header-height: var(--ctm-global-header-height);
}

body.nav-open {
  overflow: hidden;
}

.site-header {
  position: relative;
  inset: auto;
  z-index: 1000;
  height: auto;
  min-height: var(--ctm-global-header-height);
  border-bottom: 1px solid rgba(222, 216, 205, 0.7);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 4px 20px rgba(65, 52, 42, 0.04);
  color: var(--ctm-global-header-forest-dark);
  backdrop-filter: none;
}

.site-header__inner.container {
  display: grid;
  width: min(calc(100% - 48px), var(--ctm-global-header-content));
  min-height: var(--ctm-global-header-height);
  height: auto;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 24px;
}

.site-header .brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--ctm-global-header-forest-dark);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.site-header .brand__seal {
  display: flex;
  width: 38px;
  height: 38px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ctm-global-header-terracotta);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--ctm-global-header-font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.site-header .brand__seal > span {
  display: inline-grid;
  width: 50%;
  place-items: center;
}

.site-header .brand__name {
  color: var(--ctm-global-header-forest-dark);
  font-family: var(--ctm-global-header-font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.site-header .site-nav {
  display: flex;
  height: auto;
  margin: 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.65vw, 27px);
}

.site-header .site-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  height: auto;
  align-items: center;
  border: 0;
  color: var(--ctm-global-header-forest);
  font-family: var(--ctm-global-header-font-sans);
  font-size: clamp(0.76rem, 1vw, 0.91rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.site-header .site-nav__link::after {
  bottom: -1px;
  height: 2px;
  background: var(--ctm-global-header-terracotta);
  opacity: 1;
  transform: scaleX(0);
}

.site-header .site-nav__link:hover,
.site-header .site-nav__link.is-active {
  color: var(--ctm-global-header-forest);
}

.site-header .site-nav__link:hover::after,
.site-header .site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

.site-header .icon-button,
.site-header .site-nav__close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ctm-global-header-forest);
  place-items: center;
}

.site-header .header-primary-cta {
  display: inline-flex;
  min-height: 44px;
  margin: 0;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ctm-global-header-terracotta);
  box-shadow: 0 9px 22px rgba(182, 84, 59, 0.2);
  color: #fff;
  font-family: var(--ctm-global-header-font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.site-nav__mobile-head,
.site-nav__mobile-cta,
.nav-backdrop,
.site-header .nav-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .site-header__inner.container {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .site-header .site-nav {
    gap: 12px;
  }

  .site-header .brand__name {
    font-size: 1.08rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: var(--ctm-global-header-height-compact);
  }

  .site-header,
  .site-header__inner.container {
    min-height: var(--ctm-global-header-height-compact);
  }

  .site-header__inner.container {
    width: min(calc(100% - 36px), var(--ctm-global-header-content));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .site-header .nav-toggle {
    display: inline-grid;
    order: initial;
  }

  .site-header .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1200;
    display: flex;
    visibility: hidden;
    width: min(430px, calc(100vw - 36px));
    height: 100dvh;
    min-height: 100vh;
    padding: 0 24px 28px;
    overflow-y: auto;
    align-items: stretch;
    background: #fbfaf6;
    box-shadow: -24px 0 64px rgba(10, 31, 25, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateX(104%);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease, visibility 0s linear 320ms;
    flex-direction: column;
    gap: 0;
  }

  .site-header .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .site-nav__mobile-head {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ctm-global-header-border);
    color: var(--ctm-global-header-forest-dark);
    font-family: var(--ctm-global-header-font-serif);
    font-weight: 700;
  }

  .site-header .site-nav__link {
    display: flex;
    min-height: 54px;
    padding: 15px 0;
    border-bottom: 1px solid #eee8df;
    color: var(--ctm-global-header-forest-dark);
    font-size: 0.98rem;
  }

  .site-header .site-nav__link::after {
    display: none;
  }

  .site-nav__mobile-cta {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ctm-global-header-terracotta);
    color: #fff;
    font-family: var(--ctm-global-header-font-sans);
    font-size: 0.84rem;
    font-weight: 800;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 30, 25, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 210ms ease, visibility 0s linear 210ms;
  }

  body.nav-open .nav-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

@media (max-width: 768px) {
  body .site-header .header-primary-cta {
    display: none !important;
  }

  .site-nav__mobile-cta {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .site-header__inner.container {
    width: calc(100% - 28px);
    gap: 4px;
  }

  .site-header .brand__seal {
    width: 34px;
    min-width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .site-header .brand__name {
    overflow: hidden;
    max-width: 150px;
    font-size: 1rem;
    text-overflow: ellipsis;
  }

  .site-header .site-nav {
    right: 14px;
    width: calc(100vw - 28px);
  }
}
