/* Shared interface styling; the existing hero composition stays in experience.css. */
:root {
  --surface: #fbf8f2;
  --surface-soft: #eae3d8;
  --border-soft: #b8aa9a66;
  --gold-ink: #776043;
  --radius: 6px;
}

body { background: var(--ivory); }
.wrap { width: min(1240px, calc(100% - 80px)); }
.eyebrow { color: var(--gold-ink); font-size: .75rem; letter-spacing: .12em; }
.section-head h2, .service-card h3, .extra h2 { text-wrap: balance; }
.btn {
  min-height: 48px;
  padding: 12px 22px;
  border-color: var(--charcoal);
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .015em;
  box-shadow: none;
}
.btn:hover { transform: none; }
.btn.outline { border-color: #8c8071; background: transparent; color: var(--charcoal); }
.btn.outline:hover { background: var(--surface-soft); color: var(--charcoal); }
.btn.light { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn.light:hover { background: #fffaf1; color: var(--charcoal); border-color: #fffaf1; }
.service-book, .quick-book { gap: 24px; justify-content: space-between; }
.service-book::after, .quick-book::after {
  content: '';
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(button, a, input, textarea):focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }

/* A compact, consistent header, including a visible primary action on phones. */
header, header.over-hero { box-shadow: 0 4px 20px #292a2c06; border-bottom-color: var(--border-soft); }
.nav { width: min(1480px, calc(100% - 64px)); }
.nav-name > span:first-child { color: var(--gold); }
.nav-links { gap: 28px; font-size: .78rem; letter-spacing: .07em; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.nav .btn, header.over-hero .nav .btn { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); min-height: 44px; font-size: .78rem; letter-spacing: .04em; }
.nav .btn:hover, header.over-hero .nav .btn:hover { background: var(--slate); }
.nav .nav-book { display: inline-flex; flex-shrink: 0; }
.lang { min-width: 44px; border-radius: var(--radius); font-size: .8125rem; }
.lang:hover { background: #b8aa9a24; }
.menu { padding: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.menu-icon { display: block; width: 18px; height: 18px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 1px; background: currentColor; }
.menu-icon::after { top: 12px; }
.menu[aria-expanded="true"] .menu-icon::before { top: 8px; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon::after { top: 8px; transform: rotate(-45deg); }
.hero-cta { border-radius: var(--radius); font-size: .8125rem; letter-spacing: .13em; }

/* Short editorial gateways lead into the full treatment details. */
.film-rituals { padding: 48px 0; background: var(--ivory-deep); }
.ritual-grid { width: min(1240px, calc(100% - 80px)); gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ritual-card { grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.ritual-card:nth-child(2) { background: var(--surface); }
.ritual-card img { width: 100%; height: clamp(240px, 26vw, 340px); min-height: 0; max-height: none; }
.ritual-card:nth-child(even) img { order: 0; }
.ritual-copy { padding: 28px; }
.ritual-number { color: var(--gold-ink); font-size: .75rem; }
.ritual-copy h2 { font-size: clamp(1.9rem, 2.6vw, 2.8rem); margin: 14px 0 24px; text-transform: none; line-height: 1.1; }
.ritual-copy a { width: 100%; border: 0; border-top: 1px solid var(--border-soft); padding: 14px 0 0; justify-content: space-between; text-transform: none; font-size: .8125rem; letter-spacing: 0; line-height: 1.5; min-height: 44px; }
.ritual-copy a:hover { background: transparent; color: var(--gold-ink); border-color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }

/* Treatments: quiet surfaces, clear pricing, and one consistent action. */
.services { background: var(--ivory); padding: 88px 0 96px; }
.section-head { gap: 7%; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.5rem, 4.1vw, 4rem); line-height: 1.14; max-width: 19ch; margin-top: 16px; }
.section-head p { font-size: 1rem; line-height: 1.8; }
.booking-note { margin: 0 0 18px; line-height: 1.65; font-size: .875rem; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  top: var(--header);
  padding: 12px 0;
  margin: 0 0 20px;
  border: 0;
  background: var(--ivory);
  box-shadow: 0 10px 14px #f3efe78f;
}
.tab { min-height: 48px; padding: 11px 14px; margin: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); background: #ede7dd73; color: #514e49; font-size: .875rem; line-height: 1.45; white-space: normal; }
.tab.active { background: var(--slate); color: var(--ivory); border-color: var(--slate); font-weight: 500; }
.tab:not(.active):hover { background: var(--surface-soft); border-color: #95826a; }
.service-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); padding: 24px; margin: 0 0 24px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.service-card:last-child { margin-bottom: 0; }
.service-image { aspect-ratio: 5 / 4; border-radius: 3px; box-shadow: none; }
.service-body { padding: 12px 8px; }
.meta { align-items: center; gap: 10px; color: var(--gold-ink); font-size: .6875rem; line-height: 1.5; letter-spacing: .09em; }
.meta span:last-child { padding: 7px 10px; border-radius: 3px; background: var(--surface-soft); color: var(--charcoal); font-size: .8125rem; font-weight: 500; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.service-card h3 { font-size: clamp(1.8rem, 2.4vw, 2.35rem); line-height: 1.2; margin: 22px 0 18px; max-width: 28ch; letter-spacing: -.01em; }
.service-card p { max-width: 53ch; font-size: .9375rem; line-height: 1.85; margin-bottom: 28px; color: #5c5953; }
.service-card .btn { min-width: 200px; }
.coming-soon { border-color: var(--border-soft); border-radius: 3px; background: var(--surface-soft); color: #615541; font-size: .75rem; letter-spacing: .08em; }
html[lang="zh-HK"] .section-head h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.45; }
html[lang="zh-HK"] .service-card h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); line-height: 1.5; }

/* Separate the gift image from the text so both remain readable. */
.extras { padding: 80px 0; background: var(--ivory-deep); }
.extra-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.extra { padding: clamp(32px, 4vw, 56px); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.extra h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.18; margin: 22px 0 20px; }
.extra p { font-size: .9375rem; line-height: 1.8; max-width: 46ch; }
.extra > .btn { margin-top: 6px; }
.vip { color: var(--gold-ink); border-bottom-color: var(--border-soft); font-size: .75rem; letter-spacing: .13em; }
.extra.gift { display: flex; flex-direction: column; justify-content: flex-start; margin: 0; min-height: 0; padding: 0; background: var(--slate); border-color: var(--slate); }
.gift::after { display: none; }
.gift-visual { position: static; z-index: auto; display: block; width: 100%; height: 240px; object-fit: cover; object-position: center 55%; }
.gift-copy { width: 100%; height: auto; min-height: 0; padding: 32px; flex: 1; }
.gift-copy h2 { margin-top: 16px; }
.gift-copy p { color: #eee7dd; }
.gift-copy .btn { margin-top: 4px; }

.google-reviews { background: var(--ivory); }
.google-review-card { background: var(--surface); border-color: var(--border-soft); border-radius: var(--radius); padding: 30px; }
.google-review-more { min-height: 44px; font-size: .8125rem; }
.google-review-stars { color: var(--gold-ink); }
.about { padding: 80px 0; }
.about h2 { text-wrap: balance; font-size: clamp(2.25rem, 3.5vw, 3.6rem); }
.about p { font-size: .9375rem; line-height: 1.85; }
.footer-in { gap: 16px 32px; padding-right: 72px; }
.footer-in > span { margin-right: auto; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: .8125rem; }
.music-control { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); background: var(--ivory); color: var(--slate); border-color: #a99b8c99; box-shadow: 0 4px 20px #292a2c14; }
.music-control button[aria-pressed="true"] { background: var(--slate); color: var(--ivory); border-radius: 50%; }

/* Booking uses the same surfaces and action hierarchy as the catalogue. */
.booking-dialog { width: min(580px, calc(100% - 40px)); padding: 32px 36px; border-color: #b8aa9a; border-radius: 12px; background: var(--surface); }
.booking-close { min-height: 44px; margin: -12px -12px 12px auto; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-soft); text-decoration: none; }
.booking-dialog h2 { margin: 14px 0 18px; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.22; text-wrap: balance; }
.booking-detail { margin-bottom: 20px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--surface-soft); color: #514538; font-weight: 500; letter-spacing: .025em; }
.booking-help { line-height: 1.75; }
.booking-dialog input, .booking-dialog textarea { background: #fffdf8; border-color: #b8aa9a; border-radius: var(--radius); }
.booking-dialog input:hover { border-color: #8c8071; }
.booking-dialog input:focus { border-color: var(--gold-ink); }
.booking-status { background: var(--surface-soft); padding: 12px; border-radius: var(--radius); color: #514e49; }
.booking-status:empty { padding: 0; }

@media (max-width: 1200px) { .nav-disciplines { display: none; } }
@media (max-width: 900px) {
  .wrap, .ritual-grid { width: calc(100% - 48px); }
  .nav { width: calc(100% - 40px); }
  .menu { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
  .nav-links.open { padding: 14px 24px 20px; max-height: calc(100svh - var(--header)); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); box-shadow: 0 14px 20px #292a2c0d; }
  .nav-links.open a { min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: .9375rem; letter-spacing: .02em; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .ritual-copy { padding: 22px; }
  .ritual-copy h2 { font-size: 1.85rem; }
  .extra-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .extra, .gift-copy { padding: 28px; }
  .extra h2 { font-size: 2.25rem; }
}
@media (max-width: 760px) {
  .wrap, .ritual-grid { width: calc(100% - 40px); }
  .services { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
  .section-head h2 { font-size: 2.7rem; max-width: 21ch; }
  .section-head p { font-size: .9375rem; }
  .film-rituals { padding: 24px 0; }
  .ritual-grid { grid-template-columns: 1fr; gap: 12px; }
  .ritual-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
  .ritual-card img { height: 216px; min-height: 216px; max-height: none; }
  .ritual-copy { padding: 22px; }
  .ritual-copy h2 { font-size: 1.9rem; margin: 12px 0 18px; }
  .service-card { grid-template-columns: 1fr; gap: 0; padding: 0; margin-bottom: 20px; overflow: hidden; }
  .service-card:nth-child(even) .service-image { order: 0; }
  .service-image { width: 100%; aspect-ratio: 3 / 2; border-radius: 0; transform: none !important; will-change: auto; }
  .service-body { padding: 26px; }
  .service-card h3 { font-size: 2rem; margin-top: 20px; }
  .service-card p { max-width: none; font-size: 1rem; line-height: 1.8; margin-bottom: 24px; }
  .service-card .btn { width: 100%; min-height: 50px; }
  .tabs { gap: 5px; padding-block: 10px; margin-bottom: 16px; }
  .tab { padding: 10px 8px; font-size: .875rem; min-height: 48px; }
  .extra-grid { grid-template-columns: 1fr; gap: 20px; }
  .extras { padding: 56px 0; }
  .extra { padding: 32px; }
  .extra .btn { width: 100%; }
  .gift-visual { height: auto; aspect-ratio: 16 / 10; }
  .gift-copy { padding: 30px; }
  .about { padding: 64px 0; }
  .about-in { grid-template-columns: 1fr; gap: 24px; }
  .footer-in { align-items: flex-start; gap: 8px; padding-right: 0; padding-bottom: 52px; flex-direction: column; }
}
@media (max-width: 600px) {
  .nav { width: calc(100% - 32px); }
  .nav .btn, header.over-hero .nav .btn { padding: 10px 14px; font-size: .75rem; }
  .nav-name { font-size: 1.5rem; }
  .nav-actions { gap: 6px; }
  .lang { font-size: .75rem; }
  .hero-cta { width: 252px; min-height: 50px; font-size: .75rem; letter-spacing: .11em; padding-inline: 22px; }
  .hero-copy .hero-disciplines { font-size: .6875rem; letter-spacing: .2em; }
  .section-head h2 { font-size: 2.5rem; }
  html[lang="zh-HK"] .section-head h2 { font-size: 1.95rem; }
  .service-body { padding: 24px 22px; }
  .service-card h3 { font-size: 1.85rem; }
  html[lang="zh-HK"] .service-card h3 { font-size: 1.55rem; }
  .meta { font-size: .6875rem; }
  .meta span:last-child { font-size: .8125rem; }
  .booking-dialog { width: 100%; max-height: calc(100dvh - 12px); margin: auto 0 0; padding: 24px 24px max(24px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-bottom: 0; }
  .booking-dialog h2 { font-size: 1.9rem; }
  .booking-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .booking-fields label { min-height: 2.8em; }
  .booking-contact { font-size: .8125rem; }
  .google-review-card { padding: 26px; }
}
@media (max-width: 380px) {
  .wrap, .ritual-grid { width: calc(100% - 32px); }
  .nav { width: calc(100% - 24px); }
  .nav-actions { gap: 4px; }
  .nav .btn { padding-inline: 10px; }
  .service-body { padding: 22px 20px; }
  .ritual-card img { height: 194px; min-height: 194px; }
  .ritual-copy { padding: 18px 16px; }
  .ritual-copy h2 { font-size: 1.65rem; }
  .ritual-copy a { font-size: .75rem; }
  .tab { font-size: .8125rem; padding-inline: 5px; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-fields label { min-height: 0; }
  .booking-dialog { padding-inline: 20px; }
}

/* Share the desktop composition while keeping phone controls inside safe areas. */
:root {
  --header: calc(80px + env(safe-area-inset-top, 0px));
  --safe-inline: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --page-gutter: 40px;
  --nav-gutter: 32px;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.wrap, .ritual-grid { width: min(1240px, calc(100% - 2 * max(var(--page-gutter), var(--safe-inline)))); }
.nav { width: min(1480px, calc(100% - 2 * max(var(--nav-gutter), var(--safe-inline)))); padding-top: env(safe-area-inset-top, 0px); }
.footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
@media (pointer: coarse) {
  a, button { touch-action: manipulation; }
  .btn:active, .tab:active, .menu:active { transform: translateY(1px); }
}
@media (max-width: 900px), (max-width: 1024px) and (max-height: 540px) and (orientation: landscape) {
  :root { --header: calc(72px + env(safe-area-inset-top, 0px)); --page-gutter: 24px; --nav-gutter: 20px; }
  .nav-name { margin-right: auto; }
  .nav-actions { margin-left: 0; }
  .nav-links { display: none; }
  .menu { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
  .nav-links.open {
    display: flex; position: absolute; left: 0; right: 0; top: var(--header);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 14px max(24px, var(--safe-inline)) max(20px, env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - var(--header)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 14px 20px #292a2c0d;
  }
  .nav-links.open a { min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: .9375rem; letter-spacing: .02em; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .panel, .service-card { scroll-margin-top: 72px; }
  /* Move the photograph within its crop; card edges and text remain stable. */
  .service-image { transform: none !important; will-change: auto; }
  .service-image img { inset: -10px 0; height: calc(100% + 20px); transform: translate3d(0, var(--media-y, 0px), 0); }
  .service-image.media-in-view img { will-change: transform; }
  .booking-dialog { scroll-padding-block: 60px 24px; }
  .booking-close { position: sticky; top: 0; z-index: 2; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 20px; }
  .footer-in { padding-bottom: 0; }
}
@media (max-width: 600px) {
  :root { --header: calc(68px + env(safe-area-inset-top, 0px)); --nav-gutter: 16px; }
  .booking-fields { grid-template-columns: 1fr; gap: 16px; }
  .booking-fields label { min-height: 0; }
  .booking-dialog { padding-inline: max(24px, var(--safe-inline)); }
}
@media (max-width: 380px) {
  :root { --page-gutter: 16px; --nav-gutter: 12px; }
  .ritual-card { grid-template-columns: 1fr; }
  .ritual-card img { height: 240px; min-height: 0; }
  .ritual-copy { padding: 22px; }
  .booking-dialog { padding-inline: max(20px, var(--safe-inline)); }
}
@media (max-width: 1024px) and (max-height: 540px) and (orientation: landscape) {
  :root { --header: calc(60px + env(safe-area-inset-top, 0px)); }
  .nav-name { font-size: 1.5rem; }
  .booking-dialog { max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-image img { inset: 0; height: 100%; transform: none !important; will-change: auto !important; }
}
