/* Premium features: profiles, picker, cut gallery, booking sheet, status, announcement, map, polish.
   Uses the homepage's existing tokens (--burgundy, --ink, --muted, --line, --radius…). */

@view-transition { navigation: auto; }

/* ---------- announcement ---------- */
.announce { background: var(--burgundy-dark, #4f1021); color: #fff; text-align: center; padding: .6rem 1rem; font-size: .95rem; }
.announce p { margin: 0; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- header status ---------- */
.site-header .nav { flex-wrap: nowrap; }
.site-header .brand { flex: none; }
.site-header .brand-text, .nav-links a, .nav-links .button, .svc-toggle { white-space: nowrap; }
.site-header .nav-links { flex: none; gap: 1.1rem; }
.hdr-status { display: inline-flex; align-items: center; gap: .45rem; margin-right: auto; margin-left: 1rem; min-width: 0; overflow: hidden; padding: .3rem .7rem; border: 1px solid var(--line, #ddd); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink, #1b1b1b); text-decoration: none; white-space: nowrap; background: #fff; }
.hdr-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; flex: none; }
.hdr-status.is-open .status-dot { background: #2f8f4e; box-shadow: 0 0 0 3px rgba(47,143,78,.15); }
.hdr-status.is-closed .status-dot { background: var(--burgundy, #6f1830); }
.hdr-status .walkin { padding-left: .55rem; margin-left: .1rem; border-left: 1px solid var(--line, #ddd); font-weight: 500; color: var(--muted, #555); }
@media (max-width: 1180px) { .hdr-status .walkin { display: none; } }
@media (max-width: 980px) { .hdr-status { margin-left: .5rem; font-size: .76rem; padding: .25rem .6rem; } .hdr-status .walkin { display: none; } }
@media (max-width: 520px) { .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .hdr-status { margin-left: .6rem; max-width: calc(100vw - 110px); overflow: hidden; } .hdr-status-text { overflow: hidden; text-overflow: ellipsis; } }

.hdr-status .st-tiny { display: none; }
@media (min-width: 981px) and (max-width: 1240px) { .hdr-status .st-short { display: none; } .hdr-status .st-tiny { display: inline; } }
@media (max-width: 340px) { .hdr-status .st-short { display: none; } .hdr-status .st-tiny { display: inline; } }

/* ---------- book again ---------- */
.book-again { display: inline-flex; align-items: center; gap: .5rem; }
.book-again::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e9b8c4; }

/* ---------- barber cards: profile link + tagline ---------- */
.barber-known { margin: 0 0 .4rem; font-size: .85rem; color: var(--muted, #555); font-style: italic; font-family: "Fraunces", Georgia, serif; }
.profile-open { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 40px; margin: 0 auto .35rem; padding: .3rem .6rem; border: 0; background: none; color: var(--burgundy, #6f1830); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.profile-open:hover { text-decoration-thickness: 2px; }

/* ---------- dialogs (profile + sheet) ---------- */
dialog.profile, dialog.sheet { border: 0; padding: 0; color: var(--ink, #1b1b1b); background: #fff; box-shadow: 0 30px 80px rgba(20,10,14,.35); }
dialog.profile::backdrop, dialog.sheet::backdrop { background: rgba(20,10,14,.55); backdrop-filter: blur(3px); }
dialog.profile { width: min(920px, calc(100% - 2rem)); max-height: min(88vh, 900px); border-radius: 8px; }
.profile-inner { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.profile-photo { position: sticky; top: 0; align-self: start; height: min(88vh, 900px); background: #2a1b20; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.profile-body { padding: 2rem 2rem 2.25rem; overflow: auto; }
.profile-body h2 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.profile-body h3 { margin: 1.8rem 0 .7rem; font-size: 1.1rem; }
.profile-body p { color: #3d3d3d; line-height: 1.65; }
.profile-title { margin: 0 0 .25rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy, #6f1830); }
.profile-known { margin: 0 0 1rem; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--muted, #555); }
.profile-ig { display: inline-block; margin: .25rem 0 0; color: var(--burgundy, #6f1830); font-weight: 600; }
.profile-book { margin-top: 1.25rem; }
.profile-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink, #1b1b1b); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.profile-close:hover { background: #fff; color: var(--burgundy, #6f1830); }
.profile-cuts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.profile-cuts img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.profile-review { margin: 0 0 .9rem; padding: .9rem 1rem; border-left: 3px solid var(--burgundy, #6f1830); background: #faf7f7; }
.profile-review blockquote { margin: 0; } .profile-review p { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.02rem; color: var(--ink, #1b1b1b); }
.profile-review figcaption { margin-top: .4rem; font-size: .82rem; color: var(--muted, #555); }
.profile-menu { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.profile-menu th, .profile-menu td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line, #ddd); font-weight: 400; }
.profile-menu td { text-align: right; padding-left: 1rem; white-space: nowrap; color: var(--muted, #555); }
.profile-menu td:nth-child(2) { color: var(--burgundy, #6f1830); font-weight: 600; }
.profile-note { font-size: .85rem; }
@media (max-width: 760px) {
  dialog.profile { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .profile-inner { grid-template-columns: 1fr; }
  .profile-photo { position: relative; height: 46vh; }
  .profile-body { padding: 1.4rem 1.2rem 2rem; }
}

/* ---------- booking sheet ---------- */
dialog.sheet { width: min(520px, 100%); margin: auto auto 0; border-radius: 16px 16px 0 0; max-height: 88vh; }
@media (min-width: 761px) { dialog.sheet { margin: auto; border-radius: 10px; } }
.sheet-inner { padding: 1.1rem 1.2rem 1.4rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 1.4rem; }
.sheet-head .profile-close { position: static; box-shadow: none; background: #f3f3f3; }
.sheet-hint { margin: .3rem 0 .9rem; font-size: .9rem; color: var(--muted, #555); }
.sheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sheet-barber { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--line, #ddd); border-radius: 8px; color: var(--ink, #1b1b1b); text-decoration: none; }
.sheet-barber:hover, .sheet-barber:focus-visible { border-color: var(--burgundy, #6f1830); }
.sheet-barber img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.sheet-barber small { display: block; font-size: .75rem; color: var(--muted, #555); text-transform: uppercase; letter-spacing: .06em; }
.sheet-go { color: var(--burgundy, #6f1830); font-weight: 600; font-size: .9rem; }
.sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.sheet-actions .button { min-height: 46px; }

/* ---------- service picker ---------- */
.picker-section { background: #fff; }
.pick-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.pick-chip, .cut-chip { min-height: 42px; padding: .45rem 1rem; border: 1px solid var(--line, #ddd); border-radius: 999px; background: #fff; color: var(--ink, #1b1b1b); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.pick-chip:hover, .cut-chip:hover { border-color: var(--burgundy, #6f1830); }
.pick-chip[aria-selected="true"], .cut-chip[aria-pressed="true"] { background: var(--burgundy, #6f1830); border-color: var(--burgundy, #6f1830); color: #fff; }
.pick-summary { margin: 0 0 .9rem; color: var(--ink, #1b1b1b); }
.pick-summary span { display: block; margin-top: .2rem; color: var(--muted, #555); font-size: .93rem; }
.pick-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #ddd); }
.pick-row { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line, #ddd); }
.pick-row img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.pick-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; }
.pick-price { text-align: right; font-weight: 600; color: var(--burgundy, #6f1830); font-variant-numeric: tabular-nums; }
.pick-price small { display: block; font-weight: 400; color: var(--muted, #555); font-size: .82rem; }
.button.small { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
@media (max-width: 560px) {
  .pick-row { grid-template-columns: 44px 1fr auto; row-gap: .4rem; }
  .pick-row img { width: 44px; height: 44px; }
  .pick-row .button { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- cut gallery ---------- */
.cut-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.cut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.cut { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #2a1b20; aspect-ratio: 4 / 5; }
.cut img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cut:hover img { transform: scale(1.04); }
.cut figcaption { position: absolute; inset: auto 0 0; display: grid; gap: .1rem; padding: 2.5rem .9rem .8rem; color: #fff; background: linear-gradient(to top, rgba(15,8,10,.85), transparent); font-size: .85rem; }
.cut-style { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.cut-by { opacity: .85; }
.cut figcaption a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; justify-self: start; padding: .2rem 0; }
.cut[hidden] { display: none; }

/* ---------- map facade ---------- */
.map-facade { position: relative; height: 100%; min-height: 420px; overflow: hidden; border-radius: var(--radius, 4px); background: #efe9e7; }
.map-art, .map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1.1rem 1.2rem; background: #fff; border-radius: 8px; box-shadow: 0 12px 30px rgba(20,10,14,.15); }
.map-card p { margin: 0; color: #3d3d3d; }
.map-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--ink, #1b1b1b) !important; margin-bottom: .2rem !important; }
.muted-small { font-size: .85rem; color: var(--muted, #555); }
.map-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.button.outline { background: #fff; color: var(--burgundy, #6f1830); border: 1px solid var(--burgundy, #6f1830); }
.button.outline:hover { background: #f8eef1; }
.map-load { min-height: 40px; border: 0; background: none; color: var(--burgundy, #6f1830); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- holiday hours ---------- */
.holiday-hours { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.25); }
.holiday-title { margin: 0 0 .4rem; font-weight: 600; }
.holiday-hours ul { list-style: none; margin: 0; padding: 0; }
.holiday-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-variant-numeric: tabular-nums; }

/* ---------- brand touches ---------- */
.section-head .eyebrow::before { content: ""; display: inline-block; width: 9px; height: 22px; margin-right: .55rem; vertical-align: -5px; border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--burgundy, #6f1830) 0 3px, #fff 3px 6px, #4f6b82 6px 9px, #fff 9px 12px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.reviews .section-head .eyebrow::before, .gallery-section .section-head .eyebrow::before { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
/* menu-card price list: dotted leader from the service name to its price */
@media (min-width: 601px) {
  .price-list > li { display: grid !important; grid-template-columns: minmax(0, auto) minmax(2rem, 1fr) auto; column-gap: .9rem; align-items: start; }
  .price-list > li::after { content: ""; grid-column: 2; grid-row: 1; height: 1.05em; border-bottom: 2px dotted #cfc6c3; }
  .price-list > li .price-item { grid-column: 1; grid-row: 1; max-width: 46ch; }
  .price-list > li .price-meta { grid-column: 3; grid-row: 1; }
}

/* ---------- graceful images + reveal (only when JS is running) ---------- */
.js-fx img[loading="lazy"] { opacity: 0; transition: opacity .5s ease; }
.js-fx img[loading="lazy"].is-loaded, .js-fx dialog img[loading="lazy"] { opacity: 1; }
.js-fx .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js-fx .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js-fx img[loading="lazy"], .js-fx .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cut img, .pick-chip, .cut-chip { transition: none !important; }
  dialog.profile::backdrop, dialog.sheet::backdrop { backdrop-filter: none; }
}
