/* Contact page (/contact). Loaded before modern.css, so rules that must win over a shared component scope themselves
   under the page's own classes (.ct-*). Built on the shared components: .pagehead--split, .orbit-photo, .seal,
   .float-card, .head, .steps, .card, .faq, .cta-band. Colors are the modern.css tokens only. Light theme only. Every
   motion rule is gated on html.motion inside prefers-reduced-motion: no-preference; the plain rules are the settled state. */

/* ---------- 1. Header: the front desk in an orbit frame, the seal, today's status and the address floating ---------- */
.pagehead.ct-head { padding-bottom: 104px; }
@media (min-width: 1024px) { .pagehead.ct-head { padding-bottom: 176px; } }
.ct-hero { position: relative; max-width: 560px; margin-inline: auto; }
.ct-hero .ct-hero__orbit > .photo { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.ct-hero .seal--ct { position: absolute; z-index: 4; right: 2%; top: 0; width: 92px; height: 92px; }
.ct-hero .seal--ct .seal__mark { width: 28px; height: 28px; }
.ct-hero .ct-hero__card { max-width: min(300px, 80%); }
.ct-hero .ct-hero__card--status { top: 10%; left: 0; }
.ct-hero .ct-hero__card--where { bottom: 8%; right: 0; }
.ct-hero__card--status.is-open .float-card__icon { background: var(--ink); color: #fff; }
@media (max-width: 639.98px) {
  /* Phones: the cards sit on the ring's margin above and below the photo, so they cover little of it. */
  .ct-hero .ct-hero__card { padding: 8px 14px 8px 8px; }
  .ct-hero .ct-hero__card .float-card__icon { width: 38px; height: 38px; }
  .ct-hero .ct-hero__card--status { top: -4px; left: 0; }
  .ct-hero .ct-hero__card--where { bottom: -4px; right: 0; }
  .ct-hero .seal--ct { top: auto; bottom: 14%; right: auto; left: -6px; width: 80px; height: 80px; }
  .ct-hero .seal--ct .seal__mark { width: 24px; height: 24px; }
}
@media (min-width: 640px) { .ct-hero .seal--ct { width: 112px; height: 112px; } .ct-hero .seal--ct .seal__mark { width: 34px; height: 34px; } }
@media (min-width: 1024px) {
  .ct-hero { max-width: none; }
  .ct-hero .seal--ct { right: auto; left: -40px; top: auto; bottom: 4%; width: 128px; height: 128px; }
  .ct-hero .seal--ct .seal__mark { width: 40px; height: 40px; }
  .ct-hero .ct-hero__card--status { top: 12%; left: -48px; }
  .ct-hero .ct-hero__card--where { bottom: 10%; right: -28px; }
}

/* ---------- 2. Four ways in, straddling the header's bottom edge ---------- */
.ct-quick { position: relative; z-index: 3; margin-top: -72px; margin-bottom: 8px; }
.ct-quick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ct-quick__item {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; min-width: 0;
  padding: 16px 18px; border-radius: var(--r-card); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-float);
}
.ct-quick__icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--ink); }
.ct-quick__icon .icon { width: 24px; height: 24px; }
.ct-quick__label { margin: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ct-quick__value {
  display: inline-flex; align-items: center; width: fit-content; min-height: 32px; margin: 2px 0 0;
  font-family: var(--display); font-size: 1.1875rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(14, 42, 58, 0.25);
}
a.ct-quick__value:hover { color: var(--accent); text-decoration-color: currentColor; }
.ct-quick__value--text { text-decoration: none; text-wrap: balance; }
/* The whole card answers a click on its link. */
a.ct-quick__value::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ct-quick__item:has(a.ct-quick__value:hover) { box-shadow: var(--shadow-lg); }
.ct-quick__note { margin: 2px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 560px) { .ct-quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) {
  .ct-quick { margin-top: -116px; }
  .ct-quick__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .ct-quick__item { grid-template-columns: 1fr; align-content: start; padding: 24px 24px 22px; }
  .ct-quick__icon { grid-row: auto; margin-bottom: 18px; }
  .ct-quick__value { font-size: 1.3125rem; }
}

/* ---------- 3. Where to find us: the drawn map and the hours ---------- */
.ct-find__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) { .ct-find__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; } }

.ct-map { position: relative; isolation: isolate; display: grid; overflow: hidden; border-radius: var(--r-lg); background: var(--tint); box-shadow: var(--shadow); }
.ct-map__art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ct-map__bg { fill: var(--tint); }
.ct-map__blocks rect { fill: #fff; opacity: 0.75; }
.ct-map__parks rect { fill: var(--mint-soft); }
.ct-map__parks circle { fill: var(--mint); }
.ct-map__lot { fill: var(--tint-2); }
.ct-map__stripes path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.ct-map__office { fill: #fff; }
.ct-map__roads-edge path { fill: none; stroke: var(--rule); stroke-width: 20; stroke-linecap: round; }
.ct-map__roads-edge .ct-map__main { stroke-width: 34; }
.ct-map__roads path { fill: none; stroke: #fff; stroke-width: 15; stroke-linecap: round; }
.ct-map__roads .ct-map__main { stroke-width: 28; }
.ct-map__center { fill: none; stroke: var(--tint-2); stroke-width: 2; stroke-dasharray: 14 12; }
.ct-map__route { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 14; }
.ct-map__body { fill: var(--ink); }
.ct-map__eye { fill: #fff; }
.ct-map__dot { fill: var(--brand); }
.ct-map__shadow { fill: var(--ink); opacity: 0.18; }
.ct-map__pulse { fill: rgba(1, 171, 238, 0.14); stroke: var(--brand); stroke-width: 1.5; opacity: 0.5; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(1.4); }
.ct-map__pulse--2 { opacity: 0; }
.ct-map__drop { transform-box: fill-box; transform-origin: 50% 100%; }

.ct-map__card {
  position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 16px;
  margin: -44px 12px 12px; padding: 18px; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-float);
}
.ct-map__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.ct-map__name { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.ct-map__addr p { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.ct-map .ct-map__btn { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
@media (min-width: 640px) {
  .ct-map { display: block; min-height: 440px; }
  .ct-map__art { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .ct-map__card { position: absolute; left: 24px; top: 24px; width: min(360px, calc(100% - 48px)); margin: 0; padding: 22px; }
}
@media (min-width: 1024px) { .ct-map { min-height: 100%; } }

.ct-hours { display: flex; flex-direction: column; gap: 20px; padding: 26px 20px 22px; border-radius: var(--r-lg); background: var(--offwhite); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .ct-hours { padding: 34px 32px 28px; } }
.ct-hours__head { display: flex; align-items: center; gap: 16px; }
.ct-hours__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--ink); color: #fff; }
.ct-hours__icon .icon { width: 26px; height: 26px; }
.ct-hours__head h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.ct-hours .ct-hours__table { width: 100%; margin: -8px 0; border-collapse: separate; border-spacing: 0 8px; font-size: 1rem; }
.ct-hours .ct-hours__table :is(th, td) { height: 52px; padding: 0 18px; border: 0; background: #fff; color: var(--text); vertical-align: middle; }
.ct-hours .ct-hours__table th { border-radius: 14px 0 0 14px; font-weight: 600; color: var(--ink); }
.ct-hours .ct-hours__table td { border-radius: 0 14px 14px 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-hours .ct-hours__table tr.is-today :is(th, td) { background: var(--ink); color: #fff; }
.ct-hours .ct-hours__table .hours__today {
  display: inline-flex; align-items: center; min-height: 22px; margin-left: 8px; padding: 0 9px; border-radius: 999px;
  background: var(--mint); color: var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: 1px;
}
.ct-hours__foot { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.ct-hours__foot .icon { width: 20px; height: 20px; margin-top: 1px; flex: none; color: var(--accent); }
@media (max-width: 379.98px) { .ct-hours .ct-hours__table :is(th, td) { padding: 0 12px; font-size: 0.9375rem; } }

/* Today's status line: a dot that breathes while the office is open. */
.ct-status { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.ct-status.is-open { color: var(--ink); }
.ct-status__dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--muted); }
.ct-status.is-open .ct-status__dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(1, 171, 238, 0.18); }

/* ---------- 4. Good to know ---------- */
.ct-know__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.ct-know__item { min-width: 0; padding: 26px 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.ct-know__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--mint); color: var(--ink); }
.ct-know__icon .icon { width: 26px; height: 26px; }
.ct-know__item h3 { font-size: 1.125rem; }
@media (max-width: 639.98px) {
  .ct-know__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px 18px; }
  .ct-know__icon { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; }
  .ct-know__icon .icon { width: 22px; height: 22px; }
  .ct-know__item h3 { align-self: end; }
  .ct-know__item p { margin-top: 4px; }
}
.ct-know__item p { margin-top: 8px; font-size: 0.9875rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 640px) { .ct-know__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .ct-know__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .ct-know__item { padding: 32px 30px; } }
@media (min-width: 1024px) { .ct-know__item:last-child:nth-child(3n + 2) { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1023.98px) { .ct-know__item:last-child:nth-child(2n + 1) { grid-column: span 2; } }

/* ---------- 6. Tooth pain and social ---------- */
.ct-more__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .ct-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ct-more .card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: var(--r-lg); }
@media (min-width: 768px) { .ct-more .card { padding: 44px 40px; } }
.ct-more__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.ct-more .card > p { margin-top: 12px; max-width: 46ch; font-size: 1rem; line-height: 1.6; }
.ct-urgent .ct-urgent__safety { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 26px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: var(--on-ink); font-size: 0.9375rem; }
.ct-urgent__safety .icon { width: 20px; height: 20px; margin-top: 2px; flex: none; color: var(--star); }
.ct-urgent .btn { margin-top: auto; }
.ct-social > p { color: var(--muted); }
.ct-social__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.ct-social__link {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 10px; border-radius: 16px;
  background: var(--offwhite); border: 1px solid transparent; color: var(--ink); text-decoration: none;
  transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.ct-social__link:hover { border-color: var(--ink); background: #fff; }
.ct-social__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--ink); color: #fff; }
.ct-social__icon .icon { width: 22px; height: 22px; }
.ct-social__text { display: grid; min-width: 0; line-height: 1.3; }
.ct-social__text b { font-weight: 700; }
.ct-social__text span { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.ct-social__arrow { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--accent); }
.ct-social__reviews { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--rule); width: 100%; font-size: 0.9375rem; color: var(--muted); }
.ct-social__reviews .stars { color: var(--star); }

/* ---------- 7. Questions ---------- */
.ct-faq__grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 1024px) {
  .ct-faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .ct-faq__grid > .head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion .ct-hero .ct-hero__card--status { animation: pw-rise 600ms var(--ease-apex) 450ms backwards, pw-float 7s ease-in-out 2.2s infinite; }
  html.motion .ct-hero .ct-hero__card--where { animation: pw-rise 600ms var(--ease-apex) 540ms backwards, pw-float 8s ease-in-out 3s infinite; }
  html.motion .ct-quick__item { animation: pw-rise 800ms var(--ease-apex) backwards; }
  html.motion .ct-quick__item:nth-child(1) { animation-delay: 550ms; }
  html.motion .ct-quick__item:nth-child(2) { animation-delay: 650ms; }
  html.motion .ct-quick__item:nth-child(3) { animation-delay: 750ms; }
  html.motion .ct-quick__item:nth-child(4) { animation-delay: 850ms; }
  html.motion .ct-quick__item { transition: box-shadow 400ms var(--ease-apex); }
  /* The map: the route's dots walk toward the pin, the pin drops in once and its rings ripple out. */
  html.motion .ct-map__route { animation: ct-walk 1.6s linear infinite; }
  html.motion .ct-map.is-in .ct-map__drop { animation: ct-drop 900ms var(--ease-apex) 250ms backwards; }
  html.motion .ct-map__pulse { animation: ct-ripple 3.2s var(--ease-io) infinite; }
  html.motion .ct-map__pulse--2 { animation-delay: 1.6s; }
  html.motion .ct-status.is-open .ct-status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ct-breathe 2.4s var(--ease-io) infinite; }
  /* The hours rows settle in one after another when the card comes in. */
  html.motion .ct-hours tbody tr { transition: opacity 500ms var(--ease-apex), transform 500ms var(--ease-apex); }
  html.motion .ct-hours:not(.is-in) tbody tr { opacity: 0; transform: translateX(24px); }
  html.motion .ct-hours tbody tr:nth-child(2) { transition-delay: 60ms; }
  html.motion .ct-hours tbody tr:nth-child(3) { transition-delay: 120ms; }
  html.motion .ct-hours tbody tr:nth-child(4) { transition-delay: 180ms; }
  html.motion .ct-hours tbody tr:nth-child(5) { transition-delay: 240ms; }
  html.motion .ct-hours tbody tr:nth-child(6) { transition-delay: 300ms; }
  html.motion .ct-hours tbody tr:nth-child(7) { transition-delay: 360ms; }
  html.motion .ct-social__icon { transition: transform 300ms var(--ease-apex); }
  html.motion .ct-social__link:hover .ct-social__icon { transform: rotate(-8deg) scale(1.06); }
  html.motion .ct-social__arrow { transition: transform 300ms var(--ease-apex); }
  html.motion .ct-social__link:hover .ct-social__arrow { transform: translate(2px, -2px); }
  @keyframes ct-walk { to { stroke-dashoffset: -14.1; } }
  @keyframes ct-drop { 0% { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
  @keyframes ct-ripple { 0% { opacity: 0.6; transform: scale(0.5); } 100% { opacity: 0; transform: scale(2.6); } }
  @keyframes ct-breathe { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
}
@media print {
  .ct-map__art, .seal--ct, .ct-hero__card { display: none !important; }
  .ct-map { min-height: 0; box-shadow: none; }
  .ct-map__card { position: static; width: auto; box-shadow: none; }
}

/* Print: reveal children that wait for .is-in print settled even without the beforeprint handler. */
@media print {
  html.motion .ct-hours:not(.is-in) tbody tr { opacity: 1 !important; transform: none !important; translate: none !important; }
}
