/* ATC contact page. Loaded after atc.css and pages.css. */

/* Hero: open-status pill */
.open-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: .9375rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.open-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); flex: none; }
.open-pill.is-open .open-pill__dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.25); }
.open-pill.is-closed .open-pill__dot { background: #9a9ca3; }

/* Main grid */
.ct-main__grid { display: grid; gap: 40px; align-items: start; }
.ct-main__grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .ct-main__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 5vw, 64px); }
}

/* Contact rows */
.ct-ways__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ct-way { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink-900); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.ct-way:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: transparent; color: var(--ink-900); }
.ct-way__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--red-500); color: #fff; }
.ct-way__ic svg { width: 22px; height: 22px; }
.ct-way--wa .ct-way__ic { background: var(--wa); }
.ct-way--mail .ct-way__ic { background: var(--dark-950); }
.ct-way--visit .ct-way__ic { background: var(--red-50); color: var(--red-500); }
.ct-way__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ct-way__txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-400); }
.ct-way__txt strong { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ct-way__txt span { font-size: .875rem; color: var(--ink-400); }
.ct-way__go { flex: none; display: grid; place-items: center; color: var(--ink-400); transition: transform .25s var(--ease), color .25s var(--ease); }
.ct-way__go svg { width: 18px; height: 18px; }
.ct-way:hover .ct-way__go { transform: translateX(3px); color: var(--red-500); }

/* Office hours */
.ct-hours { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--surface); }
.ct-hours h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.0625rem; font-weight: 800; }
.ct-hours h3 svg { width: 18px; height: 18px; color: var(--red-500); }
.ct-hours__list { margin: 0; }
.ct-hours__row { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0 9px 14px; border-top: 1px solid var(--line); font-size: .9375rem; }
.ct-hours__row:first-child { border-top: 0; }
.ct-hours__row dt, .ct-hours__row dd { margin: 0; }
.ct-hours__row dd { color: var(--ink-400); text-align: right; }
.ct-hours__row.is-today { font-weight: 800; }
.ct-hours__row.is-today dd { color: var(--ink-900); }
.ct-hours__row.is-today::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--red-500); }

/* Form card */
.ct-form { padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); }
.ct-form__title { margin: 0 0 6px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -.02em; }
.ct-form__lead { margin: 0 0 24px; color: var(--ink-400); }
.ct-form .book__form { padding: 0; border-radius: 0; background: transparent; }
.ct-form .book__ok { align-items: flex-start; }

/* Visit section */
.ct-visit__grid { display: grid; gap: 24px; }
.ct-visit__grid > * { min-width: 0; }
.ct-map { min-height: 360px; }
@media (min-width: 900px) {
  .ct-visit__grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: stretch; }
  .ct-map { min-height: 440px; }
}
.ct-find { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.ct-find__img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.ct-find__body { display: grid; gap: 18px; padding: clamp(20px, 2.4vw, 28px); }
.ct-find__body h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.ct-find__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-find__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.ct-find__list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red-500); }
.ct-find__body .btn-row { gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .ct-way, .ct-way__go { transition: none; }
  .ct-way:hover, .ct-way:hover .ct-way__go { transform: none; }
}

/* --- Review fixes --- */
.ct-way, .ct-way:hover, .ct-way * { text-decoration: none; }
.ct-find__body { display: flex; flex-direction: column; flex: 1; }
.ct-route { list-style: none; counter-reset: rt; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.ct-route li { counter-increment: rt; position: relative; padding: 0 0 20px 48px; display: grid; gap: 2px; }
.ct-route li::before { content: counter(rt); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; font-weight: 800; background: var(--red-50); color: var(--red-600); }
.ct-route li:last-child::before { background: var(--red-500); color: #fff; box-shadow: 0 0 0 5px rgba(229, 45, 39, .14); }
.ct-route li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; border-left: 2px dashed var(--line); }
.ct-route li:last-child { padding-bottom: 0; }
.ct-route b { color: var(--ink-900); font-weight: 700; }
.ct-route span { color: var(--ink-600, #5b5f66); font-size: .9375rem; }
.ct-route__hours { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-600, #5b5f66); font-size: .875rem; }
.ct-route__hours svg { width: 16px; height: 16px; color: var(--red-500); }
.ct-find__body .btn-row { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
/* Form card follows the reader down the taller contact column. */
@media (min-width: 1024px) {
  .ct-form { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (max-width: 899px) { .ct-way__txt small { font-size: .75rem; } }
