/* Public website. Mobile-first; white and high contrast like every ShopFlow screen (theme.css, DECISIONS #27). */
html { scroll-behavior: smooth; }
body.site { font-size: 16px; line-height: 1.55; }
h1 { font-size: 1.9rem; line-height: 1.1; margin: .3em 0 .4em; font-weight: 850; }
h2 { font-size: 1.35rem; margin: 0 0 .7em; font-weight: 850; }
.small { font-size: .88rem; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 850; letter-spacing: -.01em; }
.topbar .brand img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.topbar nav { display: none; gap: 4px; }
.topbar nav a { padding: 8px 12px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: .95rem; }
.topbar nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
@media (min-width: 900px) { .topbar nav { display: flex; } }

/* Hero */
/* Hero: storefront photo with the text over its lower part. The photo is anchored to the TOP so the sign
   ("Master Cuts") is never cropped; the fade starts below the sign. */
.hero { position: relative; color: #fff; background: var(--hero); overflow: hidden; }
.hero.has-cover { background: var(--hero) var(--cover) center top / 100% auto no-repeat; }
.hero.has-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  /* Phones: stops measured on the photo itself (16:9 at full width): clear over the sign, fading out by its bottom. */
  background: linear-gradient(180deg, rgba(10,18,56,0) 0, rgba(10,18,56,0) calc(56.25vw * .36),
    rgba(10,18,56,.7) calc(56.25vw * .7), var(--hero) calc(56.25vw * 1.02)); }
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }
.hero.has-cover .hero-inner { padding-top: calc(56.25vw * .52); }  /* photo is 16:9 at full width: start under the sign */
@media (min-width: 760px) {
  .hero.has-cover { background-size: cover; background-position: center 18%; min-height: 540px; display: flex; align-items: flex-end; }
  .hero.has-cover .hero-inner { padding-top: 230px; width: 100%; }
  .hero.has-cover::after { background: linear-gradient(180deg, rgba(10,18,56,0) 0%, rgba(10,18,56,0) 30%, rgba(10,18,56,.75) 58%, rgba(10,18,56,.95) 100%); }
}
.hero .logo { border-radius: 50%; border: 3px solid rgba(255,255,255,.85); object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.hero h1 { font-size: 2.3rem; margin-top: .4em; color: #fff; }
.hero .tagline { color: #e6ebff; max-width: 560px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.chip.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd38b; }
.chips.light .chip, .chip.light { background: var(--bg); color: var(--fg); border-color: var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }

/* Buttons */
.btn { min-height: var(--tap); padding: 10px 18px; }
.hero .btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.hero .btn:hover { background: #fff; color: var(--accent-ink); border-color: #fff; }
.hero .btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn.big { min-height: 56px; padding: 12px 26px; font-size: 1.05rem; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }


/* Layout */
.site-main { max-width: 960px; margin: 0 auto; padding: 20px 16px 110px; }
.site-main::after { content: ""; display: block; height: 40vh; } /* room to scroll the end of the page up (user, 2026-10-21) */
.site-main.narrow { max-width: 620px; }
.site-main section { margin-bottom: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 26px; }
.two-col section { margin: 0; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1.2fr; } .hero h1 { font-size: 3rem; } }

/* Live wait */
.wait-card { position: relative; overflow: hidden; box-shadow: var(--shadow-lg); border: 0; }
/* Only the home page tucks the wait card up into the hero; everywhere else nothing may cover a title. */
.hero + .site-main > .wait-card.overlap:first-child { margin-top: -34px; z-index: 2; }
.wait-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.wait-card h2 { display: flex; align-items: center; gap: 10px; }
.wait-now .big { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.per { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Service menu */
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu > li { transition: background .2s; } .menu > li:hover { background: var(--soft); }
.menu > li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu > li:last-child { border-bottom: 0; }
.menu-name { font-weight: 700; }
.menu-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.price { font-weight: 850; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.menu details summary { color: var(--accent); cursor: pointer; font-size: .88rem; margin-top: 4px; }
.menu .desc { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.menu.pick > li { padding: 0; } .menu.pick a { display: flex; justify-content: space-between; width: 100%; padding: 16px; color: inherit; text-decoration: none; }
.menu.pick a:active { background: var(--bg); } .chev { font-size: 1.6rem; color: var(--muted); }

/* Team, gallery */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.member:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff;
  background: var(--c, var(--accent)); object-fit: cover; flex-shrink: 0; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.gallery a { flex: 0 0 62%; scroll-snap-align: start; }
.gallery a { border-radius: 14px; overflow: hidden; display: block; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
@media (min-width: 760px) { .gallery { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* Hours, map */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { font-weight: 800; color: var(--accent); }
.map { width: 100%; height: 240px; border: 0; border-radius: 12px; margin: 4px 0 12px; background: var(--bg); }
.social { display: flex; gap: 16px; margin: 14px 0 0; font-weight: 700; }

/* Booking flow */
.steps-bar { display: flex; gap: 6px; margin-bottom: 8px; } .steps-bar > * { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps-bar b { background: var(--accent); } .steps-bar s { background: var(--accent-2); opacity: .5; }
.back { display: inline-block; margin: 6px 0; font-weight: 600; text-decoration: none; }
.label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.seg, .days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.seg input, .days input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 650; white-space: nowrap; cursor: pointer; }
.days span { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.days b { font-size: 1.3rem; } .days small { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.seg input:checked + span, .days input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(28,61,214,.28); }
.days input:checked + span small { color: inherit; }
.slots { min-height: 120px; } .slots.htmx-request { opacity: .5; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { display: flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-weight: 700; text-decoration: none; color: var(--fg); }
.time { transition: transform .15s var(--ease), border-color .2s, box-shadow .2s; } .time:hover, .time:active { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.times > * { animation: sf-rise .35s var(--ease) both; }
.empty { padding: 20px 0; }
.summary { display: grid; gap: 4px; margin: 10px 0 16px; border-left: 5px solid var(--accent); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select { font: inherit; font-size: 16px; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--fg); width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,61,214,.15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }

/* Status page */
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 38px; margin-top: 10px; animation: sf-pop .6s var(--ease) both; box-shadow: 0 10px 26px rgba(7,122,60,.3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); } .facts strong { font-size: 1.8rem; color: var(--accent); }

/* Sticky bottom CTA on phones */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; min-height: var(--tap); }
.top-cta { display: none; gap: 8px; align-items: center; }
.top-cta .btn { padding: 9px 16px; font-size: .95rem; }
.top-cta .btn.primary { animation: sf-glow 2.8s ease-in-out infinite; }
@media (min-width: 760px) { .sticky-cta { display: none; } .top-cta { display: flex; } .site-main { padding-bottom: 40px; } }
.site-foot { text-align: center; padding: 24px 16px 100px; font-size: .85rem; }
@media (min-width: 760px) { .site-foot { padding-bottom: 28px; } }

.try .lead { color: var(--muted); max-width: 680px; }
.try-feature { display: grid; gap: 16px; align-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.try-feature h2 { color: #fff; } .try-feature p { color: #e6ebff; } .try-feature .tag { background: #fff; color: var(--accent-ink); }
.try-feature .btn.primary { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
@media (min-width: 760px) { .try-feature { grid-template-columns: 1fr auto; } }
.try-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 760px) { .try-grid { grid-template-columns: 1fr 1fr; } }
.try-grid .card { display: flex; flex-direction: column; gap: 6px; } .try-grid form, .try-grid .btn-row { margin-top: auto; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; } .how ol { padding-left: 20px; } .how li { margin-bottom: 6px; }

.closed-now { font-weight: 800; color: var(--accent); font-size: 1.15rem; margin: 0 0 8px; }
.hours-list { width: 100%; border-collapse: collapse; } .hours-list th, .hours-list td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours-list tr:last-child th, .hours-list tr:last-child td { border-bottom: 0; } .hours-list tr.today th, .hours-list tr.today td { font-weight: 800; color: var(--accent); }

/* Hero entrance */
.hero-inner > * { animation: sf-rise .7s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; } .hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; } .hero-inner > :nth-child(5) { animation-delay: .32s; }
.hero .logo { animation: sf-pop .7s var(--ease) both; }
.section-head h2 { margin-bottom: .5em; }
.kicker { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }

/* Specials on the website (same promotions as the shop screens) */
.promos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .promos { grid-template-columns: repeat(3, 1fr); } }
.promo { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
a.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--fg); }
.promo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.promo .p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.promo .p-title { font-weight: 850; font-size: 1.15rem; letter-spacing: -.01em; }
.promo .p-text { color: var(--muted); font-size: .93rem; }
.promo .p-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.promo .p-price { font-weight: 900; font-size: 1.3rem; color: var(--accent); }
.promo .p-go { font-weight: 750; color: var(--accent); }
.promo .p-art { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 4rem; color: #fff; background: var(--grad); letter-spacing: .05em; }
.promo:nth-child(3n+2) .p-art { background: linear-gradient(135deg, #e01a35, #a80d22); }
.while-wait { margin-top: 22px; } .while-wait .promos { grid-template-columns: 1fr; }
.msg-site { padding: 12px 16px; border-radius: 12px; margin: 10px 0; font-weight: 650; background: var(--accent-soft); color: var(--accent-ink); animation: sf-rise .4s var(--ease) both; }
.msg-site.success { background: var(--ok-soft); color: var(--ok); } .msg-site.error { background: var(--bad-soft); color: var(--bad); }
.menu > li .menu-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; } .menu > li.has-thumb .menu-main { flex: 1; }
.your-turn { background: var(--ok-soft); border-radius: var(--radius); padding: 16px 18px; margin: 10px 0 14px; animation: sf-pop .5s var(--ease) both; }
.your-turn h1 { color: var(--ok); margin: 0 0 4px; } .your-turn p { margin: 0; font-weight: 650; }
.your-turn.late { background: var(--bad-soft); } .your-turn.late h1 { color: var(--bad); }
/* English / Español: one tap, top right on every customer page (DECISIONS #45). */
.lang-switch { margin-left: auto; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 750; font-size: .9rem;
  text-decoration: none; color: var(--accent-ink); background: var(--surface); white-space: nowrap; }
.lang-switch:hover { border-color: var(--accent); background: var(--accent-soft); }
.topbar .lang-switch + .top-cta { margin-left: 0; }

/* Your own visit: a bar under the top bar on every page while it's live (DECISIONS #50) */
.my-visit { display: block; margin: 0; padding: 10px 20px; text-align: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.my-visit b { color: var(--accent); }
.inline-form { margin: 14px 0 4px; display: grid; gap: 8px; }
.inline-form .btn.small { justify-self: start; }
