/* Shared site header + mobile navigation (all pages) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.site-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .logo-link,
.site-header .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 0;
}

.site-nav a {
  margin-left: 28px;
  color: #545454;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #2c7652;
}

.site-nav a[aria-current="page"] {
  color: #2c7652;
  font-weight: 600;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid #2c7652;
  outline-offset: 2px;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #545454;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Book page: logo + breadcrumb + buy */
.site-header--book .header-brand {
  flex: 1;
  min-width: 0;
}

.site-header--book .breadcrumb {
  font-size: 13px;
  color: #6a6a6a;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header--book .breadcrumb a {
  color: #2c7652;
  text-decoration: none;
}

.site-header--book .cta-header {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 0;
  }

  .site-header .logo-img {
    height: 40px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .header-content {
    flex-wrap: wrap;
  }

  .site-header .logo-link,
  .site-header .header-brand {
    flex: 1;
    min-width: 0;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 10;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid #e2e8f0;
    gap: 0;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    margin-left: 0;
    padding: 12px 4px;
    font-size: 16px;
    white-space: normal;
    border-bottom: 1px solid #f0f4f2;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  /* Book: stack buy below nav on small screens */
  .site-header--book .cta-header {
    order: 2;
    padding: 10px 16px;
    font-size: 14px;
  }

  .site-header--book.nav-open .cta-header {
    width: 100%;
    order: 11;
    text-align: center;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .site-header--book .breadcrumb {
    font-size: 12px;
  }
}

/* Prevent scroll when mobile menu open */
body.mk-nav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  body.mk-nav-open {
    overflow: auto;
  }
}
