/* ===== Top bar ===== */
.topbar {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-xs);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.topbar-right a:hover {
  color: #fff;
}

.topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

/* ===== Mobile contact strip ===== */
.mobile-contact {
  display: none;
}

@media (max-width: 768px) {
  .mobile-contact {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-white);
  }

  .mobile-contact a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-navy);
    text-align: center;
  }

  .mobile-contact a:first-child {
    border-right: 1px solid var(--color-border-light);
  }

  .mobile-contact a:hover {
    color: var(--color-teal);
  }
  
   /* Bottom dock bar (Email / WeChat / Tel) */
  body:has(.mobile-contact--dock) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-contact--dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-bottom: 0;
    background: var(--color-teal);
    box-shadow: 0 -4px 20px rgba(12, 45, 73, 0.12);
  }

  .mobile-contact--dock a,
  .mobile-contact--dock a:first-child,
  .mobile-contact--dock a:hover {
    border-right: 0;
    color: #fff;
  }

  .mobile-contact__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    color: #fff;
    font-size: 13px;
    font-weight: var(--fw-medium);
    line-height: 1.2;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-contact__item:active {
    background: rgba(0, 0, 0, 0.08);
  }

  .mobile-contact__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    mix-blend-mode: lighten;
    pointer-events: none;
  }
}

/* ===== Header ===== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  /*width: 160px;*/
  height: 50px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text .brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.logo-text .sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  margin-top: 3px;
}

.logo-light .brand {
  color: #fff;
}

.logo-light .sub {
  color: #e0c56a;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-main a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--color-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switch {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.lang-switch:hover {
  color: var(--color-teal);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.mobile-nav .btn {
  display: none;
}

@media (max-width: 1024px) {
  .nav-main {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-navy-mid);
  padding: 56px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-2xl);
  max-width: 520px;
  margin: 0;
}

@media (max-width: 768px) {
  .cta-band {
    padding: 40px 0;
    text-align: center;
  }

  .cta-band .container {
    flex-direction: column;
  }

  .cta-band h2 {
    font-size: var(--fs-xl);
  }

  .cta-band .btn-lg {
    width: 100%;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy-deeps);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 20px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: none;
  }

  /*.footer-col:last-child {*/
  /*  grid-column: 1 / -1;*/
  /*}*/

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}