/* ============================================================
   Header, footer and shared chrome.
   Built on the v4 tokens so it sits in the same design system as
   the approved page builds. Mirrors the live trustcarephysio.ca menu.
   ============================================================ */
.tc-skip{position:absolute;left:-9999px;top:0;z-index:999;background:var(--navy);color:#fff;padding:12px 20px;border-radius:0 0 8px 0}
.tc-skip:focus{left:0}
:where(a,button,summary,input,textarea,select,[tabindex]):focus-visible{
  outline:3px solid var(--coral); outline-offset:3px; border-radius:6px;
}

.tc-head{position:sticky;top:0;z-index:200;background:var(--paper);border-bottom:1px solid rgba(20,63,82,.08)}
.tc-head-in{
  max-width:1280px;margin:0 auto;padding:0 clamp(18px,3vw,32px);
  height:92px;display:flex;align-items:center;gap:clamp(14px,2vw,30px);
}
.tc-logo{flex:0 0 auto}
.tc-logo img{height:56px;width:auto}

.tc-nav{margin-left:auto}
.tc-menu{list-style:none;display:flex;align-items:center;gap:clamp(12px,1.6vw,26px);margin:0;padding:0}
.tc-menu > li{position:relative}
.tc-menu > li > a{
  display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
  font-weight:600;font-size:1rem;color:var(--coral);padding:10px 8px;border-radius:8px;
  transition:color .25s var(--ease),background .25s var(--ease);
}
.tc-menu > li > a:hover,.tc-menu > li > a:focus-visible,.tc-menu > li.fx > a{
  color:#fff;background:var(--teal);
}
.tc-chev{width:15px;height:15px;transition:transform .3s var(--ease)}
.tc-menu > li:hover > a .tc-chev{transform:rotate(180deg)}

.tc-sub{
  position:absolute;top:100%;left:0;min-width:230px;list-style:none;margin:0;padding:8px;
  background:var(--paper);border:1px solid rgba(20,63,82,.10);border-radius:12px;
  box-shadow:var(--shadow-md);opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;
}
.tc-sub-wide{min-width:300px}
.tc-menu > li:hover > .tc-sub,.tc-menu > li:focus-within > .tc-sub{opacity:1;visibility:visible;transform:translateY(0)}
.tc-sub a{
  display:block;padding:9px 12px;border-radius:8px;font-size:.95rem;font-weight:600;
  color:var(--teal);white-space:nowrap;transition:background .2s var(--ease),color .2s var(--ease);
}
.tc-sub a:hover,.tc-sub a:focus-visible{background:var(--sand);color:var(--navy)}

.tc-phone-pill{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  background:var(--coral);color:#fff;font-weight:700;letter-spacing:.01em;
  padding:13px 24px;border-radius:10px;white-space:nowrap;font-size:1rem;
  box-shadow:0 8px 20px rgba(253,95,76,.28);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease);
}
.tc-phone-pill:hover,.tc-phone-pill:focus-visible{background:var(--teal);transform:translateY(-2px);box-shadow:var(--shadow-md)}

.tc-burger{display:none;background:none;border:0;padding:10px;cursor:pointer;flex:0 0 auto}
.tc-burger span{display:block;width:26px;height:2.5px;background:var(--navy);border-radius:2px;margin:5px 0;transition:transform .3s var(--ease),opacity .3s var(--ease)}
.tc-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.tc-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.tc-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

.tc-drawer{
  position:fixed;inset:92px 0 0 0;z-index:190;background:var(--paper);
  padding:22px clamp(18px,5vw,30px) 40px;overflow-y:auto;
  transform:translateX(100%);visibility:hidden;transition:transform .45s var(--ease),visibility .45s;
}
.tc-drawer[data-open="true"]{transform:none;visibility:visible}
.tc-drawer ul{list-style:none;margin:0;padding:0}
.tc-drawer > ul > li{border-bottom:1px solid rgba(20,63,82,.08)}
.tc-drawer a,.tc-d-toggle{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:15px 2px;font-size:1.05rem;font-weight:600;color:var(--teal);
  background:none;border:0;cursor:pointer;font-family:inherit;text-align:left;
}
.tc-d-sub{max-height:0;overflow:hidden;transition:max-height .4s var(--ease)}
.tc-d-toggle[aria-expanded="true"] + .tc-d-sub{max-height:760px}
.tc-d-sub a{padding:11px 2px 11px 16px;font-size:.96rem;font-weight:500;color:var(--muted)}
.tc-d-toggle[aria-expanded="true"] .tc-chev{transform:rotate(180deg)}
.tc-phone-pill-full{display:flex;margin-top:22px;width:100%}

/* ---------- footer ---------- */
.tc-foot{background:var(--navy-deep);color:#b8cdd4;padding:clamp(50px,6vw,78px) 0 0;margin-top:0}
.tc-foot a{color:#d6e5e9;transition:color .25s var(--ease)}
.tc-foot a:hover{color:var(--soft-teal)}
.tc-foot-in{max-width:var(--maxw);margin:0 auto;padding:0 clamp(18px,3vw,32px)}
.tc-foot h4{color:#fff;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1rem}
.tc-foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:clamp(22px,3vw,44px)}
.tc-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;font-size:.93rem}
.tc-foot-logo img{height:54px;margin-bottom:1rem}
.tc-foot p{font-size:.93rem}
.tc-foot address{font-style:normal;font-size:.93rem;line-height:1.85}
.tc-foot-disc{font-size:.8rem;color:#7e9aa3;max-width:74ch;margin-top:1.6rem;line-height:1.65}
.tc-foot-bottom{
  margin-top:clamp(30px,4vw,52px);padding:20px 0;border-top:1px solid rgba(255,255,255,.12);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:.85rem;color:#8fabb4;
}

@media (max-width:1120px){
  .tc-menu > li > a{font-size:.94rem;padding:10px 6px}
  .tc-logo img{height:48px}
  .tc-head-in{height:82px}
  .tc-drawer{inset:82px 0 0 0}
}
@media (max-width:980px){
  .tc-nav{display:none}
  .tc-burger{display:block;margin-left:auto}
  .tc-phone-pill{padding:11px 18px;font-size:.95rem}
}
@media (max-width:560px){
  .tc-head-in .tc-phone-pill{display:none}
  .tc-foot-grid{grid-template-columns:1fr}
}
@media (max-width:900px){ .tc-foot-grid{grid-template-columns:1fr 1fr} }
