/* Sunderise site header — shared by all 6 pages. Added 2026-09-09.
   Sits in the page's own off-white so it blends with the background,
   separated by a hairline; a soft shadow appears only once you scroll. */

:root { --sh-h: 84px; --sh-h-small: 64px; }

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #F7FAF9;
  border-bottom: 1px solid rgba(32, 58, 67, 0.12);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(32, 58, 67, 0.08);
}

.sh-inner {
  max-width: clamp(1120px, 92vw, 2200px);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--sh-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.25s ease;
}
.site-header.is-scrolled .sh-inner { height: var(--sh-h-small); }

.sh-brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.sh-brand img { height: 44px; display: block; transition: height 0.25s ease; }
.site-header.is-scrolled .sh-brand img { height: 36px; }

.sh-nav { display: flex; align-items: center; gap: 34px; }
.sh-nav a {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #203A43;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.sh-nav a:hover,
.sh-nav a.is-current {
  color: #2D6F7E;
  text-decoration: underline;
  text-decoration-color: #D4B26A;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* language pill */
.sh-lang {
  border: 1px solid rgba(32, 58, 67, 0.35);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 15px !important;
  letter-spacing: 1px !important;
}
.sh-lang:hover {
  border-color: #2D6F7E;
  text-decoration: none !important;
}

/* contact button */
.sh-cta {
  background: #D4B26A;
  color: #203A43 !important;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 15.5px !important;
  letter-spacing: 1.5px !important;
  transition: background 0.15s ease;
}
.sh-cta:hover {
  background: #C6A257;
  text-decoration: none !important;
}

/* Chinese labels: uppercase and wide letter-spacing do not suit them */
html[lang^="zh"] .sh-nav a {
  text-transform: none;
  letter-spacing: 1px;
  font-size: 17px;
}
html[lang^="zh"] .sh-lang { font-size: 15.5px !important; }
html[lang^="zh"] .sh-cta { font-size: 16px !important; }

/* hamburger, desktop-hidden */
.sh-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sh-toggle span,
.sh-toggle span::before,
.sh-toggle span::after {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: #203A43;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sh-toggle span { top: 19px; }
.sh-toggle span::before { content: ''; left: 0; top: -7px; }
.sh-toggle span::after { content: ''; left: 0; top: 7px; }
.sh-toggle[aria-expanded="true"] span { background: transparent; }
.sh-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.sh-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --sh-h: 64px; --sh-h-small: 56px; }
  .sh-brand img { height: 34px; }
  .site-header.is-scrolled .sh-brand img { height: 30px; }
  .sh-toggle { display: block; }

  .sh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: #F7FAF9;
    border-bottom: 1px solid rgba(32, 58, 67, 0.12);
    box-shadow: 0 10px 22px rgba(32, 58, 67, 0.10);
  }
  .sh-nav.is-open { display: flex; }
  .sh-nav a {
    font-size: 17px;
    letter-spacing: 1.5px;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(32, 58, 67, 0.10);
  }
  .sh-nav a:hover, .sh-nav a.is-current { text-decoration: none; color: #2D6F7E; }
  .sh-lang {
    align-self: flex-start;
    margin-top: 16px;
    padding: 6px 18px;
    border-bottom: 1px solid rgba(32, 58, 67, 0.35);
  }
  .sh-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 22px;
    border-bottom: 0;
  }
  html[lang^="zh"] .sh-nav a { font-size: 18px; }
}
