/* MAS-UI-P02 | Header, Logo & Navigation | scoped to Home; load after P01/F01 */
.mas-home-ui .site-header {
  background: var(--mas-header-background, #fff);
  color: var(--mas-header-text, #19382d);
  border-bottom: 1px solid color-mix(in srgb, var(--mas-header-text, #19382d) 13%, white);
  box-shadow: 0 4px 19px rgba(9, 46, 32, .045);
  isolation: isolate;
}
.mas-home-ui .site-header.p02-sticky-desktop { position: sticky; top: 0; z-index: 80; }
.mas-home-ui .site-header .header-inner {
  min-height: 74px;
  height: auto;
  padding-block: 10px;
  gap: clamp(12px, 1.45vw, 24px);
}
.mas-home-ui .site-header .brand {
  flex: 0 1 245px;
  min-width: 0;
  max-width: 280px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.mas-home-ui .site-header .brand-mark {
  flex: 0 0 auto;
  width: var(--mas-header-logo-size, 45px);
  height: var(--mas-header-logo-size, 45px);
  max-height: 76px;
  object-fit: contain;
  stroke: var(--mas-header-text, #19382d);
  color: var(--mas-header-text, #19382d);
}
.mas-home-ui .site-header .brand-name {
  color: var(--mas-header-text, #19382d);
  display: block;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}
.mas-home-ui .site-header .main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: clamp(10px, 1.05vw, 19px);
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
}
.mas-home-ui .site-header .main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  color: var(--mas-header-text, #19382d);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .18s ease;
}
.mas-home-ui .site-header .main-nav a::after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--mas-header-active, #bb9046);
  left: 0;
  right: 100%;
  bottom: 5px;
  border-radius: 3px;
  transition: right .18s ease;
}
.mas-home-ui .site-header .main-nav a:is(:hover, :focus-visible, .active)::after { right: 0; }
.mas-home-ui .site-header .main-nav a:is(:hover, .active) { color: var(--mas-header-text, #19382d); }
.mas-home-ui .site-header .header-actions {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mas-home-ui .site-header .p02-locale-field { display: inline-flex; margin: 0; }
.mas-home-ui .site-header .locale-select {
  width: 66px;
  max-width: 66px;
  height: 37px;
  background: var(--mas-header-background, #fff);
  color: var(--mas-header-text, #19382d);
  border: 1px solid #d9d7cf;
  border-radius: 6px;
  padding: 3px 5px;
  font-size: 12px;
  font-weight: 650;
}
.mas-home-ui .site-header .header-phone {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--mas-header-text, #19382d);
}
.mas-home-ui .site-header .header-phone .icon {
  width: 21px; height: 21px;
  color: var(--mas-header-text, #19382d);
  fill: none;
}
.mas-home-ui .site-header .header-phone span { display: flex; flex-direction: column; gap: 1px; }
.mas-home-ui .site-header .header-phone b { font-size: 13px; line-height: 1.2; letter-spacing: .01em; }
.mas-home-ui .site-header .header-phone small { font-size: 11px; line-height: 1.3; color: var(--mas-header-text, #19382d); opacity: .7; }
.mas-home-ui .site-header .header-book {
  background: var(--mas-header-cta-background, var(--gold));
  color: var(--mas-header-cta-text, #fff);
  border: 1px solid var(--mas-header-cta-background, var(--gold));
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  font-size: 12px;
  line-height: 1.35;
  padding: 11px 15px;
  min-height: 40px;
}
.mas-home-ui .site-header .header-book:hover { filter: brightness(.96); }
.mas-home-ui .site-header .menu-toggle {
  display: none;
  color: var(--mas-header-text, #19382d);
  align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px;
  padding: 8px; border-radius: 7px;
}
.mas-home-ui .site-header .menu-toggle:hover { background: rgba(125, 125, 125, .075); }
.mas-home-ui .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Long Vietnamese menu labels need a comfortable breakpoint before they collide. */
@media (max-width: 1100px) {
  .mas-home-ui .site-header { z-index: 90; }
  .mas-home-ui .site-header .header-inner { min-height: 66px; padding-block: 8px; }
  .mas-home-ui .site-header .brand { flex: 0 1 260px; }
  .mas-home-ui .site-header .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 11px max(18px, calc((100vw - 1012px) / 2)) 18px;
    margin: 0;
    background: var(--mas-header-background, #fff);
    border-top: 1px solid rgba(20, 48, 35, .10);
    box-shadow: 0 20px 26px rgba(0, 40, 24, .14);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .mas-home-ui .site-header .main-nav.open { display: flex; }
  .mas-home-ui .site-header .main-nav a {
    font-size: 14px; min-height: 45px;
    padding: 11px 15px; white-space: normal;
    border-radius: 7px;
  }
  .mas-home-ui .site-header .main-nav a:is(:hover, .active) { background: rgba(150, 155, 142, .085); }
  .mas-home-ui .site-header .main-nav a::after { left: 0; right: auto; width: 3px; height: auto; top: 9px; bottom: 9px; opacity: 0; }
  .mas-home-ui .site-header .main-nav a:is(:hover, :focus-visible, .active)::after { opacity: 1; }
  .mas-home-ui .site-header .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .mas-home-ui .site-header { position: sticky; top: 0; }
  .mas-home-ui .site-header .header-inner { min-height: 60px; padding-block: 7px; gap: 7px; }
  .mas-home-ui .site-header .brand { flex: 1 1 auto; max-width: min(54%, 270px); gap: 6px; }
  .mas-home-ui .site-header .brand-mark { width: min(var(--mas-header-logo-size, 45px), 38px); height: min(var(--mas-header-logo-size, 45px), 38px); }
  .mas-home-ui .site-header .brand-name { font-size: 13px; line-height: 1.2; }
  .mas-home-ui .site-header .header-actions { gap: 5px; }
  .mas-home-ui .site-header .locale-select { width: 55px; max-width: 55px; height: 34px; padding: 3px 2px; font-size: 11px; }
  .mas-home-ui .site-header .header-phone { margin: 0; min-height: 40px; min-width: 30px; justify-content: center; }
  .mas-home-ui .site-header .header-phone .icon { width: 20px; height: 20px; }
  .mas-home-ui .site-header .header-phone span { display: none; }
  .mas-home-ui .site-header .header-book { display: none; }
  .mas-home-ui .site-header .menu-toggle { min-width: 38px; min-height: 40px; padding: 7px; }
  .mas-home-ui .site-header .main-nav { max-height: calc(100dvh - 65px); padding: 12px 14px 17px; }
}
@media (max-width: 360px) {
  .mas-home-ui .site-header .brand-name { font-size: 12px; }
  .mas-home-ui .site-header .brand-mark { width: min(var(--mas-header-logo-size, 45px), 33px); height: min(var(--mas-header-logo-size, 45px), 33px); }
  .mas-home-ui .site-header .header-actions { gap: 2px; }
  .mas-home-ui .site-header .locale-select { width: 49px; max-width: 49px; }
}
@media (prefers-reduced-motion: reduce) { .mas-home-ui .site-header :is(.main-nav a, .main-nav a::after) { transition: none; } }
