/* ==============================================================
   Toronto Scalp Micropigmentation Studio - Concierge header (v2)
   Loads after site.css. Matches the Concierge footer: bracket
   corners, mono labels, light chips, equal-size paired buttons.
   ============================================================== */

/* shared bits (also in the footer file, repeated so this file
   works on its own) */
.tsmp-shell .tc-k,.tsmp-plate .tc-k{
  margin:0;font-family:var(--tsmp-mono);font-size:9px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--tsmp-steel);
}
.th-services .tc-br,.th-mcard .tc-br{position:absolute;width:12px;height:12px;pointer-events:none;border:0 solid #ededed}
.th-services .tc-br.tl,.th-mcard .tc-br.tl{top:-5px;left:-5px;border-top-width:1px;border-left-width:1px}
.th-services .tc-br.tr,.th-mcard .tc-br.tr{top:-5px;right:-5px;border-top-width:1px;border-right-width:1px}
.th-services .tc-br.bl,.th-mcard .tc-br.bl{bottom:-5px;left:-5px;border-bottom-width:1px;border-left-width:1px}
.th-services .tc-br.br,.th-mcard .tc-br.br{bottom:-5px;right:-5px;border-bottom-width:1px;border-right-width:1px}
.tc-swap{animation:th-in .35s ease both}
@keyframes th-in{from{opacity:0;transform:translateY(4px)}}

/* ============================================
   DESKTOP: Services dropdown = Concierge panel
   ============================================ */
.th-services{padding:30px 24px 28px !important}
.th-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr) minmax(0,4fr);gap:40px;align-items:start}
.th-h{
  margin:8px 0 0;font-size:20px;line-height:1.15;font-weight:500;text-transform:uppercase;
  letter-spacing:.01em;color:#fff;
}
.th-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:18px}
.th-chip{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  height:42px;padding:0 8px;border-radius:2px;background:transparent;
  border:1px solid var(--tsmp-hair2);color:var(--tsmp-paper);
  font-family:var(--tsmp-mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;
  transition:background .2s,color .2s,border-color .2s;
}
.th-chip:hover{border-color:rgba(255,255,255,.5)}
.th-chip[aria-pressed="true"]{background:var(--tsmp-paper);color:#000;border-color:var(--tsmp-paper)}
.th-chip:focus-visible{outline:2px solid var(--tsmp-steel);outline-offset:3px}

.th-card{position:relative;background:#0b0b0b;border:1px solid var(--tsmp-hair2);border-radius:2px;padding:24px 26px}
.th-card-h{margin:8px 0 0;font-size:19px;line-height:1.15;font-weight:500;text-transform:uppercase;color:#fff}
.th-card-d{margin:8px 0 0;font-size:13px;line-height:1.5;color:rgba(237,237,237,.66)}
.th-stats{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:16px;
  background:var(--tsmp-hair);border:1px solid var(--tsmp-hair);
}
.th-stats div{background:#0b0b0b;padding:10px 12px;display:flex;flex-direction:column;gap:5px;min-width:0}
.th-stats span{font-family:var(--tsmp-mono);font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:var(--tsmp-steel)}
.th-stats b{font-size:14px;font-weight:500;color:var(--tsmp-paper)}
.th-acts{display:flex;align-items:center;gap:20px;margin-top:18px}
.th-btn{
  display:inline-flex;align-items:center;height:44px;padding:0 22px;border-radius:2px;
  background:var(--tsmp-paper);color:#000 !important;text-decoration:none;
  font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;transition:background .2s;
}
.th-btn:hover{background:#fff}
.th-link{
  display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#fff;
  font-size:10px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  padding-bottom:3px;border-bottom:1px solid rgba(255,255,255,.28);transition:border-color .3s,gap .3s;
}
.th-link span{font-size:13px;line-height:1}
.th-link:hover{border-bottom-color:#fff;gap:10px}

.th-list .tc-k{margin-bottom:6px}
.th-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:11px 0;border-bottom:1px solid var(--tsmp-hair);text-decoration:none;color:var(--tsmp-paper);
  transition:padding .25s,color .2s;
}
.th-row span{font-size:12.5px}
.th-row b{font-family:var(--tsmp-mono);font-size:11px;font-weight:400;color:#fff}
.th-row:hover{padding-left:6px;color:#fff}
.th-note{margin:12px 0 0;font-family:var(--tsmp-mono);font-size:8.5px;line-height:1.6;letter-spacing:.12em;text-transform:uppercase;color:var(--tsmp-steel)}

@media(min-width:1180px) and (max-width:1359px){
  .th-grid{gap:28px}
  .th-card{padding:22px 22px}
}

/* ============================================
   MOBILE MENU (the plate)
   Same layout as before. Changes: raised chips, a recommendation
   card that appears on tap, a marked service row, tighter rows.
   ============================================ */

/* chips: same swipeable row, now raised dark buttons */
.tsmp-plate .tsmp-chips.th-mchips{padding-bottom:13px}
.tsmp-plate .th-mchip{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  height:34px;padding:0 11px;
  border:1px solid rgba(255,255,255,.12);color:rgba(237,237,237,.86);
  background:linear-gradient(180deg,#1c1c1c 0%,#101010 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 6px rgba(0,0,0,.6),0 1px 1px rgba(0,0,0,.5);
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}
.tsmp-plate .th-mchip:active{transform:translateY(1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.6)}
.tsmp-plate .th-mchip[aria-pressed="true"]{
  background:var(--tsmp-paper);color:#000;border-color:var(--tsmp-paper);
  box-shadow:0 2px 10px rgba(255,255,255,.14);
}
.tsmp-plate .th-mchip:focus-visible{outline:2px solid var(--tsmp-steel);outline-offset:2px}

/* recommendation card, above Services, only after a tap */
.th-rec{position:relative;margin:12px 16px 2px;padding:14px;background:#0b0b0b;border:1px solid rgba(255,255,255,.22);border-radius:2px}
.th-rec[hidden]{display:none}
.tsmp-plate.tsmp-searching .th-rec{display:none}
.th-rec .tc-br{position:absolute;width:10px;height:10px;pointer-events:none;border:0 solid #ededed}
.th-rec .tc-br.tl{top:-4px;left:-4px;border-top-width:1px;border-left-width:1px}
.th-rec .tc-br.tr{top:-4px;right:-4px;border-top-width:1px;border-right-width:1px}
.th-rec .tc-br.bl{bottom:-4px;left:-4px;border-bottom-width:1px;border-left-width:1px}
.th-rec .tc-br.br{bottom:-4px;right:-4px;border-bottom-width:1px;border-right-width:1px}
.th-rec-top{display:flex;gap:12px;align-items:flex-start}
.th-rec-b{flex:1;min-width:0}
.th-rec .tc-k{font-size:8px;letter-spacing:.2em}
.th-rec-t{margin:6px 0 0;font-size:14px;font-weight:500;line-height:1.2;color:#fff}
.th-rec-d{margin:6px 0 0;font-size:12px;line-height:1.45;color:rgba(237,237,237,.66)}
.th-rec-img{width:56px;height:56px;flex:none;object-fit:cover;border-radius:2px;border:1px solid var(--tsmp-hair);background:#111}
.th-rec-stats{margin-top:12px}
.th-rec-stats div{padding:8px}
.th-rec-stats span{font-size:7px;letter-spacing:.14em}
.th-rec-stats b{font-size:12px}
.th-rec-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}
.th-rec-acts .th-mcall,.th-rec-acts .th-mbook{height:42px;font-size:9.5px}

/* the service row that matches the picked concern */
.tsmp-plate .tsmp-row{position:relative}
.tsmp-plate .tsmp-row::before{content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:transparent;transition:background .3s}
.tsmp-plate .tsmp-row.th-hit{background:#0f0f0f}
.tsmp-plate .tsmp-row.th-hit::before{background:var(--tsmp-paper)}

/* tighter rhythm (about 25% less spacing), nothing else moves */
.tsmp-plate.th-plate .tsmp-body > .tsmp-label{padding:12px 16px 6px}
.tsmp-plate.th-plate .tsmp-row-main{padding:7px 9px 7px 16px;gap:2px}
.tsmp-plate.th-plate .tsmp-row-img{width:44px;height:44px;margin-right:12px}
.tsmp-plate.th-plate .tsmp-link{padding-top:8px;padding-bottom:8px}
.tsmp-plate.th-plate .tsmp-link.tsmp-guide{padding-top:5px;padding-bottom:5px}
.tsmp-plate.th-plate .tsmp-link.tsmp-moreguides{min-height:38px}
.tsmp-plate.th-plate .tsmp-link.tsmp-guide.tsmp-all{margin-top:4px;padding-top:9px;padding-bottom:9px}

/* bottom actions: Call + Book, same size, side by side */
.tsmp-plate .tsmp-foot.th-mfoot{grid-template-columns:repeat(2,minmax(0,1fr))}
.tsmp-plate.th-plate .tsmp-body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}

/* paired buttons, used in the menu and the sticky bar */
.th-mcall,.th-mbook{
  display:flex;align-items:center;justify-content:center;gap:8px;height:48px;
  border-radius:2px;text-decoration:none;box-sizing:border-box;
  font-family:'Rubik',sans-serif;font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  transition:background .2s,border-color .2s;
}
.th-mcall{border:1px solid rgba(255,255,255,.22);color:var(--tsmp-paper) !important;background:transparent}
.th-mcall svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* Book: the same raised dark plate as the menu chips, a touch brighter
   than Call so it still reads as the main action, but no white slab */
.th-mbook{
  border:1px solid rgba(255,255,255,.2);color:#fff !important;
  background:linear-gradient(180deg,#232323 0%,#121212 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 2px 6px rgba(0,0,0,.6),0 1px 1px rgba(0,0,0,.5);
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
}
.th-mcall:active{background:#141414;border-color:var(--tsmp-paper)}
.th-mbook:active{
  transform:translateY(1px);
  background:linear-gradient(180deg,#1c1c1c 0%,#101010 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.6);
}
.th-mcall:focus-visible,.th-mbook:focus-visible{outline:2px solid var(--tsmp-steel);outline-offset:3px}

/* ============================================
   MOBILE STICKY BAR (Call / Book)
   ============================================ */
.th-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:999990;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  /* iPhones have rounded screen corners and a home bar: keep the buttons
     clear of both. env() covers phones that report a safe area; the
     max() floors cover Safari when it doesn't. */
  padding:10px max(20px, calc(env(safe-area-inset-right, 0px) + 12px))
          max(20px, calc(env(safe-area-inset-bottom, 0px) + 8px))
          max(20px, calc(env(safe-area-inset-left, 0px) + 12px));
  background:rgba(0,0,0,.94);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,255,255,.16);
  transform:translateY(110%);transition:transform .4s cubic-bezier(.22,1,.36,1);
  font-family:'Rubik',sans-serif;
}
.th-bar .th-mcall,.th-bar .th-mbook{height:44px;border-radius:4px;font-size:9.5px;letter-spacing:.1em;white-space:nowrap}
@media(max-width:359px){ .th-bar .th-mcall,.th-bar .th-mbook{font-size:9px;letter-spacing:.06em} }
.th-bar.on{transform:none}
/* desktop keeps its header button; the bar is phones and tablets only */
@media(min-width:1180px){ .th-bar{display:none} }
/* the menu covers the page, so the bar steps aside while it's open */
.tsmp-open .th-bar{transform:translateY(110%)}

/* keep the back-to-top button and copy notice above the bar */
@media(max-width:1179px){
  html.th-bar-on #back-to-top-btn{bottom:calc(max(20px, calc(env(safe-area-inset-bottom, 0px) + 8px)) + 66px)}
  html.th-bar-on #copy-protect-toast{bottom:calc(max(20px, calc(env(safe-area-inset-bottom, 0px) + 8px)) + 68px)}
}

@media(prefers-reduced-motion:reduce){
  .tc-swap{animation:none !important}
  .th-bar{transition:none}
}
