/* Tokyo Barber Shop — Green Design System + Dark Mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&family=Noto+Sans+Khmer:wght@400;500;600;700&display=swap');

:root {
  --c-green-dark: #2E6149;
  --c-green: #389472;
  --c-green-bright: #49C68F;
  --c-cream: #F6F2E9;
  --c-ink: #1B1B1B;
  --c-gold: #C2A14D;
  --c-gold-pale: #E8D9A8;
  --c-white: #FFFFFF;
  --c-gray: #6B6B6B;
  --c-gray-light: #E5E0D6;
  --c-bg: var(--c-cream);
  --c-surface: var(--c-white);
  --c-text-muted: var(--c-gray);
  --c-heading: var(--c-green-dark);
  --c-green-text: var(--c-green);
  --c-green-bright-text: var(--c-green-bright);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-khmer: 'Noto Sans Khmer', sans-serif;
  --max-width: 1120px;
  --strip-h: 36px;
  --header-h: 70px;
}

/* ===== DARK THEME ===== */
html[data-theme="dark"] {
  --c-bg: #0E1A15;
  --c-surface: #15241D;
  --c-ink: #ECE7DA;
  --c-gray: #9CA89E;
  --c-gray-light: #1E3328;
  --c-cream: #0E1A15;
  --c-heading: var(--c-ink);
  --c-green-text: #4BC68F;
  --c-green-bright-text: #3DAF7A;
  --c-green-dark: #122C24;
  --c-green: #1E5E47;
  --c-green-bright: #2F9E6E;
}

/* Light theme default */
html:not([data-theme="dark"]) {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}

/* Dark mode CTA button — keep white text on dark green */
html[data-theme="dark"] .btn-book-header {
  color: var(--c-white) !important;
}

/* Dark mode hours & location text — lighten for legibility on dark green bg */
html[data-theme="dark"] .hours-line {
  color: rgba(255,255,255,0.9);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

body.is-khmer {
  font-family: var(--font-khmer);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== UTILITY STRIP (always visible) ===== */
.utility-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--strip-h);
  background: var(--c-green-dark);
  display: flex;
  align-items: center;
}

.utility-strip-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.utility-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language pills in strip */
.strip-lang-switcher {
  display: flex;
  gap: 2px;
}

.strip-lang-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1875rem 0.5rem;
  border-radius: 3px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.strip-lang-item:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.08);
}

.strip-lang-current {
  color: var(--c-gold);
  background: rgba(194, 161, 77, 0.15);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  padding: 0;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-green-dark);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}

.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(13px, 4.2vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-white);
  white-space: nowrap;
  min-width: 0;
}

.logo-wordmark .logo-img {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: 160px;
  flex: 0 0 auto;
  object-fit: contain;
}

.logo-wordmark span {
  color: var(--c-gold);
}

/* Desktop nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-main a {
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-main a:hover { color: var(--c-white); }

.btn-book-header {
  display: inline-flex;
  align-items: center;
  background: var(--c-green-bright);
  color: #122C24 !important;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-book-header:hover {
  background: #278b5e;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-white);
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: calc(var(--strip-h) + var(--header-h));
}

/* ===== HERO ===== */
.hero {
  background: rgba(0,0,0,.55);
  color: var(--c-white);
  padding: 6rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
              url('/img/hero-team.jpg') center/cover no-repeat;
  transform-origin: center;
  will-change: transform;
  animation: kenburns 16s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.2) translate(-3%, -2%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(47, 158, 110, 0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--c-gold);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.25rem;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 2.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: #d4b45a;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(194, 161, 77, 0.3);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--c-surface);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--c-gold);
  margin: 0.75rem auto 0;
}

/* ===== ABOUT ===== */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--c-ink);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--c-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-gray-light);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-heading);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.services-link-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.services-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-green-text);
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--c-green-text);
  border-radius: 4px;
  transition: all 0.2s;
}

.services-link:hover {
  background: var(--c-green);
  color: var(--c-white);
}

/* ===== TEAM TEASER ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Desktop: show only 5 (hide 6th card) */
.team-card:nth-child(6) {
  display: none;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background: var(--c-gray-light);
  margin-bottom: 0.75rem;
  border: 3px solid var(--c-green-dark);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-heading);
}

.team-role {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.team-link-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.team-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-green-text);
  border: 2px solid var(--c-green-text);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.team-link:hover {
  background: var(--c-green);
  color: var(--c-white);
}

/* ===== HOURS & LOCATION ===== */
.hours-location {
  background: var(--c-green-dark);
  color: var(--c-cream);
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.hours-location .section-title {
  color: var(--c-white);
}

.hours-location .section-title::after {
  background: var(--c-gold);
}

.hours-block {
  max-width: 500px;
  margin: 0 auto;
}

.hours-line {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hours-note {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.divider-gold {
  height: 1px;
  background: rgba(194, 161, 77, 0.3);
  margin: 1.5rem auto;
  max-width: 300px;
}

.location-detail {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
}

.location-detail a {
  color: var(--c-green-bright-text);
  transition: color 0.2s;
}

.location-detail a:hover {
  color: var(--c-gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-green-dark);
  border-top: 2px solid var(--c-green);
  padding: 2.5rem 1.25rem 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}

.footer-brand span {
  color: var(--c-gold);
}

.footer-about {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--c-white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .services-grid {
    gap: 1.25rem;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 400px;
  }
  .team-card:nth-child(6) {
    display: block;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 { font-size: 2.5rem; }
}

/* Mobile — non-header layout */
@media (max-width: 700px) {

  .hero { padding: 4rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 320px;
  }

  .section { padding: 3rem 1rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links a { display: inline-block; margin: 0 0.5rem; }

  /* ── Mobile sticky basket bar ── */
  .booking-basket { display: none; }
  .booking-layout { padding-bottom: 70px; }

  .booking-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--c-surface);
    border-top: 1px solid var(--c-gray-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
  .booking-sticky-bar .bsb-icon {
    position: relative;
    width: 28px; height: 28px;
    flex-shrink: 0;
    background: var(--c-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .booking-sticky-bar .bsb-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--c-gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .booking-sticky-bar .bsb-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-ink);
    font-weight: 500;
  }
  .booking-sticky-bar .bsb-total {
    font-weight: 700;
    color: var(--c-green);
    white-space: nowrap;
  }
  .booking-sticky-bar .bsb-continue {
    padding: 0.45rem 0.9rem;
    background: var(--c-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .booking-sticky-bar .bsb-continue:disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  /* Expandable panel */
  .booking-sticky-panel {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border-top: 1px solid var(--c-gray-light);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    max-height: calc(100vh - 56px);
    padding: 1rem 1rem 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .booking-sticky-panel.is-open {
    transform: translateY(0);
  }
  .booking-sticky-panel .bsp-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
  }
  .booking-sticky-panel .bsp-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--c-ink);
    padding: 0.25rem;
  }
  /* ── Mobile room toggle (BSB-A) ── */
  .bsb-vip-wrap {
    padding: 0 0.75rem;
    margin: 0.25rem 0 0.5rem 0;
  }
  .bsb-vip-inner {
    display: flex;
    border: 1px solid var(--c-gray-light);
    border-radius: 6px;
    overflow: hidden;
  }
  .bsb-vip-opt {
    flex: 1;
    padding: 8px 6px;
    font-size: 0.78rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--c-surface);
    color: var(--c-text-muted);
    transition: background 0.15s, color 0.15s;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
    min-height: 2.2em;
  }
  .bsb-vip-opt:first-child {
    border-right: 1px solid var(--c-gray-light);
  }
  .booking-sticky-panel .bsb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-gray-light);
  }
  .booking-sticky-panel .bsb-item:last-child {
    border-bottom: none;
  }
  .booking-sticky-panel .bsb-item-info {
    flex: 1;
  }
  .booking-sticky-panel .bsb-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
  }
  .booking-sticky-panel .bsb-item-meta {
    font-size: 0.8rem;
    color: var(--c-text-muted);
  }
  .booking-sticky-panel .bsb-item-remove {
    padding: 0.25rem 0.6rem;
    background: transparent;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  /* Scrollable item list inside the panel */
  #bsb-panel-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    padding-bottom: 1rem;
  }
  .bsb-room-notice {
    margin: 0.5rem 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    background: var(--c-gold-bg, rgba(194,161,77,0.1));
    border: 1px solid var(--c-gold);
    color: var(--c-ink);
  }
}

/* Desktop — hide mobile sticky bar */
@media (min-width: 701px) {
  .booking-sticky-bar,
  .booking-sticky-panel { display: none !important; }
}

/* Mobile — hamburger nav (up to phone-landscape) */
@media (max-width: 1000px) {
  :root { --strip-h: 32px; --header-h: 60px; }

  .menu-toggle { display: block; }

  /* Nav: hidden by default, slides down on toggle */
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-green-dark);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - var(--strip-h) - var(--header-h));
    max-height: calc(100dvh - var(--strip-h) - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    font-size: 0.9375rem;
    padding: 0.375rem 0;
  }

  /* Language switcher and theme toggle are in the utility strip above — always visible */
  .btn-book-header {
    display: none; /* show in mobile nav instead */
  }

  .nav-main .btn-book-header {
    display: inline-flex;
    align-self: flex-start;
  }
}

/* Desktop — wider gap + responsive wordmark size */
@media (min-width: 1001px) {
  .header-inner {
    gap: 1.5rem;
  }
  .logo-wordmark {
    font-size: clamp(14px, 2.5vw, 18px);
  }
}

/* Small phone */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== SERVICES PAGE ===== */
.svc-intro-full {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
}

.svc-intro-short {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}

.svc-price-tag {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-gold);
  margin-top: 1rem;
}

.svc-items {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.svc-item {
  border-left: 3px solid var(--c-gold);
  padding-left: 1rem;
}

.svc-item-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-heading);
  display: block;
  margin-bottom: 0.2rem;
}

.svc-item-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.svc-item .svc-price-tag {
  text-align: left;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.svc-items-inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 500px;
}

.svc-item-inline {
  background: var(--c-bg);
  border: 1px solid var(--c-green);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-green-text);
}

/* Mobile */
@media (max-width: 700px) {
  .svc-items-inline {
    gap: 0.5rem;
  }
  .svc-item-inline {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

/* ===== TEAM PAGE ===== */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-page-card {
  text-align: center;
  background: var(--c-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.team-page-avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-gold);
}

.team-page-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  background: var(--c-gray-light);
}

.team-page-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-heading);
  margin-bottom: 0.2rem;
}

.team-page-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.team-page-bio {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}


/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-block-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-heading);
  margin-bottom: 1rem;
}

.contact-address {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.contact-phone a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-green-text);
  transition: color 0.2s;
}

.contact-phone a:hover {
  color: var(--c-green);
}

.contact-hours {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.contact-hours-note {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-top: 0.25rem;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--c-green-text);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--c-green);
}

.contact-map-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 700px) {
  .team-page-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== GALLERY PAGE ===== */
.gallery-social-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  background: var(--c-green-dark);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gold-pale);
  transition: all 0.2s;
}

.gallery-btn-ig,
.gallery-btn-fb {
  /* Identical — solid forest green, gold text; no per-platform styling */
}

.gallery-btn-ig:hover,
.gallery-btn-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 97, 73, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-gray-light);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.gallery-tile:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-tile::after {
  content: "⛶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 1.75rem;
  color: #fff;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.gallery-tile:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1;
  pointer-events: none;
  transition: background 0.25s ease;
}

.gallery-tile:hover::before {
  background: rgba(0,0,0,0.18);
}

.gallery-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

/* Video tiles: the play badge is the affordance — suppress the ⛶ hover
   glyph. BOTH selectors are required: .gallery-tile:hover::after
   (0,2,1) would otherwise out-specify .gallery-tile--video::after
   (0,1,1) and re-show the glyph on hover. */
.gallery-tile--video::after,
.gallery-tile--video:hover::after {
  content: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gray-light);
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* ===== GALLERY LIGHTBOX ===== */
#gallery-lightbox {
  /* base styles set by JS, only overrides here */
  -webkit-overflow-scrolling: touch;
}

#gallery-lightbox .lb-image {
  transition: opacity 0.3s ease;
}

#gallery-lightbox .lb-close {
  font-family: var(--font-heading, sans-serif);
}

#gallery-lightbox .lb-arrow {
  font-family: var(--font-heading, sans-serif);
}

#gallery-lightbox .lb-counter {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,.55);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,.3);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
}

@media (max-width: 700px) {
  #gallery-lightbox .lb-arrow {
    font-size: 1.25rem;
    padding: 0.5rem 0.35rem;
  }
  #gallery-lightbox .lb-close {
    font-size: 1.75rem;
    top: 0.5rem;
    right: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gallery-social-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Stacked services booking row ── */
.nb-stacked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-gray-light);
}
.nsr-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 0.9rem;
}
select.stacked-barber {
  width: 220px;
  flex: 0 0 220px;
}
select.pkg-barber {
  width: 220px;
  flex: 0 0 220px;
}

@media (max-width: 480px) {
  .nb-stacked-row {
    flex-direction: column;
    align-items: stretch;
  }
  select.stacked-barber {
    width: 100%;
    flex: none;
  }
  select.pkg-barber {
    width: 100%;
    flex: none;
  }
}

/* =====================================================================
   Reorder arrows for My Bookings
   ===================================================================== */
.acct-reorder-area {
  margin-top: 0.5rem;
}
.acct-reorder-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--c-gray-light, #e8e8e8);
}
.acct-reorder-row:last-child {
  border-bottom: none;
}
.acct-reorder-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.acct-reorder-arrows button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--c-gray-light, #d0d0d0);
  border-radius: 6px;
  background: var(--c-surface, #fff);
  color: var(--c-ink, #222);
  font-size: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s, border-color 0.15s;
}
.acct-reorder-arrows button:active {
  background: var(--c-gray-light, #e8e8e8);
}
.acct-reorder-arrows button.acct-reorder-disabled,
.acct-reorder-arrows button:disabled {
  opacity: 0.3;
  cursor: default;
}
.acct-reorder-info {
  flex: 1;
  min-width: 0;
}
.acct-reorder-svc {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.acct-reorder-time {
  font-size: 0.82rem;
  color: var(--c-text-muted, #888);
  margin-top: 1px;
}
.acct-reorder-time-range {
  font-size: 0.78rem;
  color: var(--c-text-muted, #888);
  margin-top: 0.25rem;
  padding: 0.25rem 0;
}
.acct-reorder-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.acct-reorder-save,
.acct-reorder-cancel {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  touch-action: manipulation;
  min-height: 44px;
}
.acct-reorder-save {
  background: var(--c-green, #27ae60);
  color: #fff;
}
.acct-reorder-cancel {
  background: transparent;
  color: var(--c-text-muted, #888);
  border: 1px solid var(--c-gray-light, #d0d0d0);
}
.acct-reorder-error {
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.25rem;
  width: 100%;
}

/* ===== TRUST STRIP — SOCIAL PROOF ===== */
.trust-strip {
  text-align: center;
  --c-ta-teal: #34E0A1;
}
.trust-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}
.bubble {
  color: var(--c-ta-teal);
}
.bubble-half {
  color: var(--c-ta-teal);
}
.trust-rating {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-left: 0.35rem;
}
.trust-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--c-gray-light);
  line-height: 1;
}
.trust-logo-img {
  display: block;
  height: 22px;
  width: auto;
}
.trust-logo-dark { display: none; }
html[data-theme="dark"] .trust-logo-light { display: none; }
html[data-theme="dark"] .trust-logo-dark { display: block; }
.trust-stats {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: 2.25rem;
}
.trust-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.trust-quote-card {
  background: var(--c-surface);
  border-radius: 8px;
  padding: 1rem 1.125rem;
  margin: 0;
  text-align: left;
  border-left: 3px solid var(--c-gold);
  transition: transform 0.2s;
}
.trust-quote-card:hover {
  transform: translateY(-2px);
}
.trust-card-bubbles {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
  color: var(--c-ta-teal);
}
.trust-quote-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.trust-attr {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-style: normal;
}
.trust-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}
.trust-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-green-text);
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--c-green-text);
  border-radius: 4px;
  transition: all 0.2s;
}
.trust-cta:hover {
  background: var(--c-green);
  color: var(--c-white);
}
@media (max-width: 640px) {
  .trust-quotes {
    grid-template-columns: 1fr;
  }
  .trust-rating-row {
    flex-wrap: wrap;
  }
}
/* Khmer: bolder category header (English uses uppercase+Oswald for hierarchy; Khmer needs weight) */
.is-khmer .booking-cat-header {
  font-weight: 700;
  font-family: var(--font-khmer) !important;
}

/* UXB-6: compact title block on the account (My Bookings) page ONLY.
   The account page is content-first; the customer arrives knowing where
   they are. Scoped to .section-account — global section styling untouched. */
.section-account {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.section-account .section-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.section-account .section-title::after {
  display: none;
}

/* ===== ACCOUNT CARDS (UX-2) — scoped to the account page =====
   Legs are flex rows (time | service | staff | price) with hairline
   separators; the meta line sits directly beneath the date; the total row
   is label-left / amount-right. All colours use the --c-* variables so the
   dark-theme override (html[data-theme="dark"]) keeps working. */
.section-account .acct-meta {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 0.2rem;
}
.section-account .acct-legs {
  margin-top: 0.35rem;
}
.section-account .acct-leg {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--c-gray-light);
}
.section-account .acct-leg-time {
  min-width: 3.2rem;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}
.section-account .acct-leg-svc {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-account .acct-leg-staff {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.section-account .acct-leg-price {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--c-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.section-account .acct-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--c-gray);
}
.section-account .acct-total-label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.section-account .acct-total-amount {
  font-size: 1.15rem;
  font-weight: 600;
}
.section-account .acct-vip-note {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 0.4rem;
}
/* Khmer: stacked diacritics need vertical room (mirrors .is-khmer .about-body p) */
.is-khmer .section-account .acct-leg {
  line-height: 1.9;
}
.is-khmer .section-account .acct-leg-svc {
  font-size: 0.95rem;
}
/* UX-2 narrow screens: at <=480px a four-part leg row with a time RANGE
   leaves the service column ~12px. Staff drops beneath the service (aligned
   under it via the 3.2rem time column + 0.6rem gap) so the service keeps
   readable width; time/service/price stay on the first line. */
@media (max-width: 480px) {
  .section-account .acct-leg {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
  .section-account .acct-leg-staff {
    flex-basis: calc(100% - 3.8rem);
    margin-left: 3.8rem;
    font-size: 0.78rem;
  }
}

/* ===== ACCOUNT PAST SECTION (UX-3) — scoped to the account page =====
   Past rows: date | service (+N) | [Cancelled #id] | [price]; the booking ID
   appears only on cancelled rows and cancelled rows carry no price. All
   colours via --c-* variables (dark-theme safe); no literal hex. */
.section-account .acct-past-date {
  min-width: 3.2rem;
  flex-shrink: 0;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}
.section-account .acct-past-svc {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-account .acct-past-extra {
  flex-shrink: 0;
  color: var(--c-text-muted);
}
/* FIX1-P1: at <=480px the past-row service cell keeps its content width
   (min-width:max-content) so service names and the +N count are never
   ellipsized away at 320 (the +N was being clipped inside the cell); the
   row's flex-wrap then drops the price to a second line only when the row
   genuinely cannot fit. Desktop (>480px) unchanged. */
@media (max-width:480px) {
  .section-account .acct-past-svc {
    min-width: max-content;
  }
}
.section-account .acct-past-status {
  flex-shrink: 0;
  color: var(--c-text-muted);
}
.section-account .acct-past-id {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--c-text-muted);
}
.section-account .acct-past-price {
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.section-account .acct-toggle-cancelled {
  display: block;
  margin: 0.6rem auto 0;
  padding: 0.35rem 1rem;
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-gray-light);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}
/* UX-3 (e): the book-again CTA above the Past section */
.section-account .acct-book-again {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-gray-light);
  border-radius: 6px;
}
.section-account .acct-book-again p {
  margin: 0 0 0.6rem 0;
  font-size: 0.9rem;
  color: var(--c-ink);
}
.section-account .acct-book-again-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--c-gold);
  color: var(--c-white);
  border-radius: 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ===== ABOUT PAGE (scoped; does not touch .contact-grid) ===== */
.about-body {
  max-width: 840px;
  margin: 0 auto;
}
.about-body::after {
  content: "";
  display: block;
  clear: both;
}
.about-body p {
  margin-bottom: 1.15rem;
  line-height: 1.8;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-photo {
  float: right;
  width: 320px;
  max-width: 100%;
  margin: 0 0 1.5rem 2rem;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-photo figcaption {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}
.is-khmer .about-body p {
  line-height: 2;
}
@media (max-width: 700px) {
  .about-photo {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}
