/* Site footer and the sticky booking bar. Independent of any page; needs tokens.css, base.css and the .btn/.link rules in styles.css. */
:root { --bookbar-height: 64px; }
body { padding-bottom: var(--bookbar-height); }

/* Footer (2026-11-09): deep green from the clinic sign, gold hairlines, four columns of real clinic facts. */
.colophon { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-emerald-2); color: var(--color-emerald-muted); border-top: 2px solid var(--color-gold); font-size: var(--text-sm); line-height: 1.65; }
.colophon a { color: var(--color-emerald-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.colophon a:hover { color: var(--color-gold); }
.colophon a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 2px; }

.colophon__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
/* 3 columns when the services list is empty (a language without service pages yet) */
@media (min-width: 68.01rem) { .colophon__grid:not(:has(#ft-svc)) { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 5fr); } }
.colophon__mark { display: inline-block; }
.colophon__mark img { width: auto; height: 64px; }
.colophon__intro { margin-top: var(--space-lg); max-width: 44ch; }
.colophon__slogan { margin-top: var(--space-md); font-family: var(--font-display); font-style: italic; font-size: var(--text-md); color: var(--color-gold); }

.colophon__social { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.colophon__social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 55%, transparent); border-radius: var(--radius-pill); font-weight: 500; }
.colophon__social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-emerald-2); }

.colophon__head { max-width: none; margin-bottom: var(--space-md); padding-bottom: var(--space-xs); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-emerald-ink); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 45%, transparent); }

.colophon__branch + .colophon__branch { margin-top: var(--space-lg); }
.colophon__branch h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-gold); }
.colophon__branch p { margin-top: var(--space-3xs); }
.colophon__branch p:not(.colophon__meta) { color: var(--color-emerald-ink); }
.colophon__meta { font-size: 0.8125rem; }
.colophon a.colophon__map { display: inline-flex; align-items: center; min-height: 32px; font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-gold) 60%, transparent); text-underline-offset: 3px; }

.colophon__list { display: grid; gap: var(--space-3xs); list-style: none; margin: 0; padding: 0; }
.colophon__list a { display: inline-flex; align-items: center; min-height: 32px; }
.colophon__phones a { font-size: var(--text-md); font-weight: 500; letter-spacing: 0.02em; }
.colophon__hours { margin-top: var(--space-md); color: var(--color-emerald-ink); }
.colophon__hours span { display: block; font-size: 0.8125rem; color: var(--color-emerald-muted); }
.colophon__cta.btn { margin-top: var(--space-lg); min-height: 46px; padding-inline: var(--space-lg); border-color: var(--color-gold); background: var(--color-gold); color: var(--color-emerald-2); }
.colophon__cta.btn:hover { background: transparent; color: var(--color-gold); }

.colophon__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-emerald-ink) 18%, transparent); font-size: 0.8125rem; }
.colophon__legal { max-width: 70ch; }
.colophon__policy { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.colophon__policy a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-emerald-muted); }

.bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); min-height: var(--bookbar-height); background: var(--color-card); border-top: var(--rule-hair) solid var(--color-gold-soft); box-shadow: 0 -1px 2px color-mix(in oklab, var(--color-ink) 5%, transparent); }
.bookbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bookbar-height); }
.bookbar__text { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-lg); color: var(--color-ink); }
.bookbar__actions { display: flex; align-items: center; gap: var(--space-lg); }
.bookbar__actions .link { white-space: nowrap; }

@media (max-width: 68rem) {
  .colophon__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 60rem) {
  .bookbar__text { display: none; }
  .bookbar__row { justify-content: stretch; }
  .bookbar__actions { flex: 1; justify-content: space-between; }
}
/* Phones (20/11/2026, Hiếu: "chỗ này kỳ quá"): three even buttons instead of two loose links + a pill.
   Gọi / Zalo = outlined with an icon, Đặt lịch = filled emerald. */
@media (max-width: 60rem) {
  .bookbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bookbar__row { padding-block: 10px; }
  .bookbar__actions { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; }
  .bookbar__actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
  .bookbar__actions .link { border: 1px solid var(--color-gold-soft); background: var(--color-paper); color: var(--color-emerald); }
  .bookbar__actions .link::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: var(--bb-icon) center / contain no-repeat; mask: var(--bb-icon) center / contain no-repeat; }
  .bookbar__actions .link:first-child { --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
  .bookbar__actions .link:nth-child(2) { --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.7 2 11.3c0 2.6 1.5 4.9 3.8 6.4L5 21l3.7-1.9c1 .3 2.1.4 3.3.4 5.5 0 10-3.7 10-8.2S17.5 3 12 3z'/%3E%3C/svg%3E"); }
  .bookbar__actions .link:active { background: var(--color-paper-2); }
  .bookbar__actions .btn { border: 0; background: var(--color-emerald); color: #fff; }
  .bookbar__actions .btn:active { background: var(--color-emerald-2); }
  .bookbar__num { display: none; }
}
@media (max-width: 40rem) {
  .colophon { padding-top: var(--space-2xl); }
  .colophon__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .colophon__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 26rem) { .bookbar__num { display: none; } }
@media (prefers-reduced-motion: reduce) { .colophon a { transition: none; } }
