/* ═══════════════════════════════════════════
   HBR DESIGN SYSTEM — shared across all pages
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C9A66B;
  --gold-lt:    #E3C68A;
  --gold-dim:   rgba(201,166,107,.14);
  --brown:      #6F4E28;
  --ember:      #C1652F;
  --black:      #241A12;
  --dark:       #2E2318;
  --dark2:      #322619;
  --cream:      #F5EFE0;
  --cream-6:    rgba(245,239,224,.6);
  --cream-4:    rgba(245,239,224,.4);
  --cream-2:    rgba(245,239,224,.2);
  --serif:      'Bitter', Georgia, serif;
  --sans:       'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-io:    cubic-bezier(.77,0,.175,1);
}

html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

/* ── ANIMATION PRE-HIDE: only scroll-triggered images ── */
[data-clip] { opacity: 0; }
body {
  font-family: var(--sans) !important;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  font-weight: 300;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── HEADER ── */
.hbr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 52px;
  background: rgba(42,29,18,.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: padding .45s var(--ease-out), background .45s, border-color .45s;
}
.hbr-header.scrolled {
  padding: 14px 52px;
  background: rgba(44,33,22,.82);
  border-color: rgba(201,166,107,.12);
}
.hbr-nav {
  display: flex; gap: 44px; list-style: none;
  align-items: center; align-self: center;
  margin: 0; padding: 0;
}
.hbr-nav a {
  font-size: 10.5px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-4);
  position: relative; padding-bottom: 3px;
  transition: color .3s;
}
.hbr-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .4s var(--ease-out);
}
.hbr-nav a:hover, .hbr-nav a.active { color: var(--gold); }
.hbr-nav a:hover::after, .hbr-nav a.active::after { width: 100%; }

.hbr-logo {
  display: flex; justify-content: center;
}

/* ── LOGO LINK ── */
.hbr-logo a {
  position: relative;
  display: inline-block;
  overflow: visible;
}

/* ── SHIMMER SWEEP — shape-aware via SVG mask ── */
.hbr-logo a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent  0%,
    transparent  28%,
    rgba(255,255,255,.82) 50%,
    rgba(201,166,107,.50) 56%,
    transparent  72%,
    transparent  100%
  );
  background-size: 300% 100%;
  background-position: 0% 0%;
  pointer-events: none;
  z-index: 2;
  /* Clip to actual logo shape — invisible on transparent areas */
  -webkit-mask-image: url('/wp-content/uploads/hoabinhbistro.svg');
          mask-image: url('/wp-content/uploads/hoabinhbistro.svg');
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
  animation: logoShimmer 6s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 1.8s;
  opacity: 0;
}
@keyframes logoShimmer {
  0%, 58%  { background-position:   0% 0%; opacity: 0; }
  60%      { opacity: 1; }
  76%      { background-position: 100% 0%; opacity: .95; }
  80%,100% { background-position: 100% 0%; opacity: 0; }
}

/* ── LOGO IMAGE: flicker + shape-aware glow ── */
.hbr-logo img {
  height: 46px; width: auto;
  display: block;
  position: relative; z-index: 1;
  filter: brightness(0) invert(1);
  animation:
    logoFlicker 1.6s ease forwards,
    logoGlow    5s ease-in-out 1.6s infinite;
  will-change: filter;
}

/* One-time neon flicker on load */
@keyframes logoFlicker {
  0%   { opacity: 0; filter: brightness(0) invert(1); }
  8%   { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255,255,255,.9)) drop-shadow(0 0 32px rgba(201,166,107,.7)); }
  12%  { opacity: .2; filter: brightness(0) invert(1); }
  16%  { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,255,255,.8)) drop-shadow(0 0 24px rgba(201,166,107,.5)); }
  20%  { opacity: .5; filter: brightness(0) invert(1); }
  24%  { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.6)); }
  28%  { opacity: .8; }
  36%  { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(201,166,107,.6)) drop-shadow(0 0 40px rgba(201,166,107,.25)); }
  50%  { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(201,166,107,.4)); }
  100% { opacity: 1; filter: brightness(0) invert(1); }
}

/* Continuous breathing glow — drop-shadow follows actual logo shape */
@keyframes logoGlow {
  0%,100% { filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(201,166,107,0)); }
  30%     { filter: brightness(0) invert(1)
              drop-shadow(0 0  8px rgba(201,166,107,.55))
              drop-shadow(0 0 22px rgba(201,166,107,.22))
              drop-shadow(0 0 44px rgba(201,166,107,.09)); }
  50%     { filter: brightness(0) invert(1)
              drop-shadow(0 0 13px rgba(201,166,107,.7))
              drop-shadow(0 0 30px rgba(201,166,107,.35))
              drop-shadow(0 0 60px rgba(201,166,107,.14)); }
  70%     { filter: brightness(0) invert(1)
              drop-shadow(0 0  8px rgba(201,166,107,.5))
              drop-shadow(0 0 22px rgba(201,166,107,.2)); }
}

/* Hover: gold flare + quick shimmer sweep */
.hbr-logo a:hover img {
  animation: none;
  filter: brightness(0) invert(1)
    drop-shadow(0 0 16px rgba(255,215,120,.95))
    drop-shadow(0 0 36px rgba(201,166,107,.6))
    drop-shadow(0 0 68px rgba(201,166,107,.22));
  transition: filter .2s ease;
}
.hbr-logo a:hover::before {
  animation: logoShimmerHover .6s ease forwards !important;
  opacity: 1;
}
@keyframes logoShimmerHover {
  0%   { background-position:   0% 0%; opacity: .9; }
  100% { background-position: 100% 0%; opacity: 0; }
}

.hbr-header-right {
  display: flex; justify-content: flex-end; align-items: center;
  align-self: center; gap: 20px;
}
.lang-sw { display: flex; align-items: center; gap: 2px; }
.lang-sw a {
  font-size: 9.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-4); padding: 6px 10px;
  border: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.lang-sw a.current, .lang-sw a:hover { color: var(--gold); border-color: rgba(201,166,107,.28); }
.lang-div { width: 1px; height: 12px; background: rgba(255,255,255,.15); }
.btn-reserve {
  font-size: 10px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,166,107,.45);
  padding: 11px 26px;
  transition: background .3s, color .3s;
}
.btn-reserve:hover { background: var(--gold); color: var(--black); }

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-size: 10.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  line-height: 1;
  background: var(--gold); color: var(--black);
  padding: 16px 44px;
  transition: opacity .3s, transform .3s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-100%);
  transition: transform .5s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-ghost {
  display: inline-block;
  font-family: inherit; background: transparent; cursor: pointer;
  font-size: 10.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  line-height: 1;
  color: var(--cream); border: 1px solid rgba(245,239,224,.3);
  padding: 16px 44px;
  transition: border-color .3s, color .3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── MARQUEE ── */
.hbr-marquee {
  overflow: hidden; padding: 8px 0;
  border-top: 1px solid rgba(201,166,107,.1);
  border-bottom: 1px solid rgba(201,166,107,.1);
  background: var(--black);
}
.hbr-marquee-track {
  display: inline-flex; gap: 0;
  animation: marqueeMove 28s linear infinite;
  white-space: nowrap;
}
.hbr-marquee-track span {
  font-family: var(--serif);
  font-size: clamp(26px,3.2vw,44px);
  font-weight: 300; font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,166,107,.28);
  letter-spacing: .02em; padding: 0 44px;
}
.hbr-marquee-track span.f {
  color: var(--cream); -webkit-text-stroke: 0;
}
@keyframes marqueeMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION EYEBROW ── */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 9.5px; font-weight: 400; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .5; }

/* ── CLIP-PATH REVEAL CONTAINERS ── */
.clip-wrap { overflow: hidden; }
.clip-wrap img { transform-origin: center center; }

/* ── SPLIT TEXT ── */
.split-word { overflow: hidden; display: inline-block; }
.split-char { display: inline-block; }

/* ── FOOTER ── */
.hbr-footer {
  background: #1B140D;
  border-top: 1px solid rgba(201,166,107,.1);
  padding: 88px 7vw 0;
}
.hbr-footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 36px;
}
.hbr-footer-brand img {
  height: 38px; width: auto;
  filter: brightness(0) invert(1); opacity: .45;
  margin-bottom: 20px;
}
.hbr-footer-brand p {
  font-size: 12px; font-weight: 300; line-height: 2;
  color: var(--cream-4); max-width: 240px;
}
.hbr-footer-col h4 {
  font-size: 9px; font-weight: 400; letter-spacing: .38em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px; opacity: .85;
}
.hbr-footer-col ul { list-style: none; }
.hbr-footer-col ul li { margin-bottom: 13px; }
.hbr-footer-col ul a, .hbr-footer-col ul span {
  font-size: 12px; font-weight: 300;
  color: var(--cream-6); letter-spacing: .04em;
  transition: color .3s;
}
.hbr-footer-col ul a:hover { color: var(--gold); }
.hbr-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px;
}
.hbr-footer-bottom p {
  font-size: 10.5px; font-weight: 300;
  color: var(--cream-4); letter-spacing: .06em;
}
.hbr-footer-gold { width: 36px; height: 1px; background: var(--gold); opacity: .28; }

/* ═══════════════════════
   RESPONSIVE SHARED
═══════════════════════ */
@media (max-width: 1024px) {
  .hbr-header { padding: 18px 32px; }
  .hbr-header.scrolled { padding: 12px 32px; }
  .hbr-footer { padding: 64px 6vw 0; }
  .hbr-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
/* ── BURGER BUTTON ── */
.hbr-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hbr-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
  transform-origin: center;
}
.hbr-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbr-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbr-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.hbr-mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(44,33,22,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.hbr-mobile-nav.open {
  opacity: 1; pointer-events: auto;
}
.hbr-mobile-nav nav {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.hbr-mobile-nav nav a {
  font-size: 28px; font-weight: 300; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream-4);
  transition: color .25s;
}
.hbr-mobile-nav nav a:hover,
.hbr-mobile-nav nav a.active { color: var(--gold); }
.hbr-mobile-nav nav a.mobile-nav-cta {
  margin-top: 16px;
  font-size: 11px; letter-spacing: .26em;
  color: var(--gold); border: 1px solid rgba(201,166,107,.45);
  padding: 14px 36px;
}

@media (max-width: 768px) {
  /* ── HEADER MOBILE: lang | LOGO (center) | burger ── */
  .hbr-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    position: relative;
  }
  .hbr-nav { display: none; }
  /* Logo: absolute center */
  .hbr-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
  /* Right block: stretch full width, lang left + burger right */
  .hbr-header-right {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  /* Hide reserve button on mobile */
  .btn-reserve { display: none !important; }
  /* Burger always visible */
  .hbr-burger { display: flex; }
  /* Mobile nav overlay */
  .hbr-mobile-nav { display: flex; }
  /* Footer */
  .hbr-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hbr-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
