/* CareCrafted Demo Kit · structure shared by the three demos.
   Looks live in each demo's style.css. Everything is scoped to body.cc-demo so it
   never leaks into a site that isn't running a demo. */

body.cc-demo .cc-page-hero { display: none; }
body.cc-demo .cc-entry-content > * { margin-block: 0; }
body.cc-demo .cc-site-main { min-height: 0; }
body.cc-demo .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.cc-demo :is(.cc-site-main, .d-header, .d-footer) :is(p, h1, h2, h3, h4, ul, figure) { margin-block: 0; }
body.cc-demo .cc-site-main img { display: block; max-width: 100%; height: auto; }
body.cc-demo .cc-site-main .wp-block-image { margin: 0; }
body.cc-demo .cc-site-main :is(.cc-section, .cc-cover) { padding-inline: 0 !important; }
body.cc-demo .cc-site-main :is(.cc-section, .cc-cover) > .cc-container { box-sizing: border-box; width: min(calc(100% - 2 * var(--d-gutter, 20px)), var(--cc-container-max, 1200px)) !important; max-width: none !important; margin-inline: auto !important; padding-inline: 0 !important; }

/* ---------- Header ---------- */
body.cc-demo .d-header { position: sticky; top: 0; z-index: 60; transition: background-color .3s, box-shadow .3s, border-color .3s; }
body.cc-demo .d-header__inner { display: flex; align-items: center; gap: 28px; max-width: calc(var(--d-max, 1200px) + 2 * var(--d-gutter, 40px)); min-height: 76px; margin: 0 auto; padding: 0 var(--d-gutter, 40px); box-sizing: border-box; }
body.cc-demo .d-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; max-width: 300px; color: inherit; text-decoration: none; line-height: 1.1; }
body.cc-demo .d-brand img { display: block; width: auto; height: 40px; max-width: 220px; object-fit: contain; }
body.cc-demo.d-prospect-logo .d-header .d-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.cc-demo.d-prospect-logo .d-header .d-brand img { height: 44px; }
body.cc-demo .d-nav { margin-left: auto; }
body.cc-demo .d-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
body.cc-demo .d-nav a { color: inherit; text-decoration: none; white-space: nowrap; }
body.cc-demo .d-header__actions { display: flex; align-items: center; gap: 16px; }
body.cc-demo .d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; text-decoration: none; white-space: nowrap; cursor: pointer; }
body.cc-demo .d-menu-toggle { display: none; place-items: center; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
body.cc-demo .d-menu-toggle i { position: relative; display: block; width: 16px; height: 1.6px; background: currentColor; transition: background .2s; }
body.cc-demo .d-menu-toggle i::before, body.cc-demo .d-menu-toggle i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: currentColor; transition: transform .35s cubic-bezier(.2,.7,.1,1); }
body.cc-demo .d-menu-toggle i::before { transform: translateY(-5px); }
body.cc-demo .d-menu-toggle i::after { transform: translateY(5px); }
body.cc-demo.d-menu-open .d-menu-toggle i { background: transparent; }
body.cc-demo.d-menu-open .d-menu-toggle i::before { transform: rotate(45deg); }
body.cc-demo.d-menu-open .d-menu-toggle i::after { transform: rotate(-45deg); }
body.cc-demo .d-sheet { display: none; }

@media (max-width: 960px) {
  body.cc-demo .d-nav, body.cc-demo .d-header__actions { display: none; }
  body.cc-demo .d-menu-toggle { display: grid; }
  body.cc-demo .d-header__inner { min-height: 66px; }
  body.cc-demo .d-sheet { position: fixed; inset: 66px 0 0; z-index: 59; display: flex; flex-direction: column; padding: 16px var(--d-gutter, 20px) 28px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.1,1), visibility 0s .4s; }
  body.cc-demo.d-menu-open .d-sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  body.cc-demo.d-menu-open { overflow: hidden; }
  body.cc-demo .d-sheet__nav { display: grid; }
  body.cc-demo .d-sheet__nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: inherit; text-decoration: none; }
  body.cc-demo .d-sheet__nav a::after { content: "→"; }
  body.cc-demo .d-sheet__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 24px; text-align: center; }
  body.cc-demo .d-sheet__foot .d-btn { min-height: 54px; }
  body.cc-demo .d-sheet__phone { padding: 10px; color: inherit; font-weight: 600; text-decoration: none; }
}

/* ---------- Footer ---------- */
body.cc-demo .d-footer ul.menu, body.cc-demo .d-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
body.cc-demo .d-footer a { color: inherit; }
body.cc-demo .d-footer .cc-data-hours { display: block; }

/* ---------- Tabsets ---------- */
body.cc-demo .d-tabset.is-ready { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); gap: 16px; align-items: start; }
body.cc-demo .d-tablist { display: grid; gap: 8px; }
body.cc-demo .d-tablist__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 18px; border: 0; text-align: left; font: inherit; cursor: pointer; }
body.cc-demo .d-tablist__label { flex: 1; }
body.cc-demo .d-tablist__btn .d-badge { font-style: normal; }
body.cc-demo .d-tablist__arrow { font-weight: 400; transition: transform .25s; }
body.cc-demo .d-tablist__btn[aria-selected="true"] .d-tablist__arrow { transform: translateX(3px); }
body.cc-demo .d-tab[hidden] { display: none !important; }
body.cc-demo .d-tabset:not(.is-ready) > .d-tab + .d-tab { margin-top: 16px; }
@media (max-width: 760px) {
  body.cc-demo .d-tabset.is-ready { grid-template-columns: minmax(0, 1fr); }
  body.cc-demo .d-tablist { display: flex; gap: 8px; margin-inline: calc(-1 * var(--d-gutter, 20px)); padding: 2px var(--d-gutter, 20px) 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  body.cc-demo .d-tablist::-webkit-scrollbar { display: none; }
  body.cc-demo .d-tablist__btn { flex: 0 0 auto; width: auto; scroll-snap-align: start; white-space: nowrap; }
  body.cc-demo .d-tablist__btn .d-badge, body.cc-demo .d-tablist__arrow { display: none; }
}

/* ---------- Meter ---------- */
body.cc-demo .d-meter { display: flex; gap: 8px; }
body.cc-demo .d-meter span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }
body.cc-demo .d-meter span.is-on { opacity: 1; }

/* ---------- Reveal ---------- */
html.d-js body.cc-demo .d-rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.1,1), transform .8s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--d-i, 0) * 70ms); }
html.d-js body.cc-demo .d-rv.d-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.d-js body.cc-demo .d-rv { opacity: 1; transform: none; transition: none; }
  body.cc-demo * { scroll-behavior: auto !important; }
}
@media print { html.d-js body.cc-demo .d-rv { opacity: 1; transform: none; } }

/* ---------- Shade finder ---------- */
body.cc-demo .d-shade { --shade: #e2cba6; display: grid; gap: 22px; }
body.cc-demo .d-shade__stage { display: grid; justify-items: center; gap: 14px; }
body.cc-demo .d-shade__tooth { width: min(180px, 46%); height: auto; overflow: visible; }
body.cc-demo .d-shade__tooth path:first-child { fill: var(--shade); stroke-width: 2; transition: fill .5s ease; }
body.cc-demo .d-shade__shine { stroke: rgb(255 255 255 / 70%); }
body.cc-demo .d-shade__name { margin: 0; font-size: 1.6rem; line-height: 1.1; text-align: center; }
body.cc-demo .d-shade__scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
body.cc-demo .d-shade__scale span { height: 34px; border-radius: 8px 8px 14px 14px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); transition: transform .2s; }
body.cc-demo .d-shade__scale span.is-on { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%), 0 0 0 2px currentColor; }
body.cc-demo .d-shade__control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: .8rem; opacity: .8; }
body.cc-demo .d-shade__control input { width: 100%; }
body.cc-demo .d-shade__note { margin: 0; font-size: .78rem; opacity: .6; text-align: center; }
