/* Contact. Loaded after main.css and projects.css (hero, links, tokens).
   Every class here is prefixed ct-. The form keeps main.css's .honeypot-field. */

.ct-hero { min-height: min(64vh, 600px); }
.ct-hero .px-hero__inner { padding-bottom: clamp(120px, 14vw, 180px); } /* room for the card to overlap */
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ct-hero__actions .btn svg { width: 18px; height: 18px; }

/* ---------- Form card + details ---------- */
.ct-main { position: relative; z-index: 1; padding-bottom: var(--section-y); background: var(--px-soft); }
.ct-main__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ct-card {
  margin-top: clamp(-120px, -10vw, -80px); padding: clamp(24px, 3.4vw, 48px);
  background: #fff; border-radius: var(--px-radius); box-shadow: 0 40px 80px -40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04);
}
.ct-card__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; color: var(--black); }
.ct-card__lede { margin: 12px 0 0; max-width: 52ch; color: var(--charcoal); }
.ct-card__lede a { color: var(--oxblood); font-weight: 700; }

.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ct-field--full { grid-column: 1 / -1; }
/* Floating label: the placeholder is a single space, so :placeholder-shown means "empty" */
.ct-field { position: relative; }
.ct-field input, .ct-field textarea {
  display: block; width: 100%; min-height: 60px; padding: 26px 16px 10px;
  border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff;
  font: inherit; font-size: 1rem; color: var(--black); transition: border-color .2s, box-shadow .2s;
}
.ct-field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.ct-field label {
  position: absolute; left: 17px; top: 19px; font-size: 1rem; color: var(--steel); pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--px-ease), color .2s;
}
.ct-field label span { font-size: .85em; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oxblood) 15%, transparent); }
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.74); color: var(--charcoal); font-weight: 600;
}
.ct-field.has-error input, .ct-field.has-error textarea { border-color: #a4262c; }
.ct-field__error { margin: 6px 0 0; font-size: .8125rem; font-weight: 600; color: #a4262c; }
.ct-form__error { margin: 0; padding: 12px 16px; border-radius: var(--px-radius); background: #fdecea; color: #611a15; font-weight: 600; }
.ct-form__error a { color: inherit; }
.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.ct-form__submit { min-height: 52px; padding-inline: 32px; }
.ct-form__submit:disabled { opacity: .6; cursor: progress; }
.ct-form__note { margin: 0; font-size: .875rem; color: var(--steel); }
.ct-form__note a { color: var(--oxblood); font-weight: 600; }

.ct-done { padding: clamp(12px, 3vw, 32px) 0; }
.ct-done__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: var(--oxblood); color: #fff; }
.ct-done__icon svg { width: 30px; height: 30px; }
.ct-done .btn { margin-top: 24px; }

/* Channels: big tappable rows */
.ct-info { padding-top: clamp(32px, 4vw, 56px); }
.ct-channels { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.ct-channels a { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.ct-channels__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--rule); color: var(--oxblood); transition: background .2s, color .2s, border-color .2s; }
.ct-channels__icon svg { width: 18px; height: 18px; }
.ct-channels small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.ct-channels strong { display: block; margin-top: 2px; font-size: 1.05rem; color: var(--black); }
.ct-channels a:hover .ct-channels__icon { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.ct-channels a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.ct-hours, .ct-address { margin-top: 28px; }
.ct-hours__status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--mist); font-size: .8125rem; font-weight: 700; color: var(--charcoal); }
.ct-hours__status i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.ct-hours__status.is-open i { background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ct-pulse 2s infinite; }
.ct-hours__label { margin: 0; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.ct-hours__value { margin: 4px 0 0; font-weight: 700; color: var(--black); }
.ct-hours__note { margin: 2px 0 0; font-size: .875rem; color: var(--steel); }
.ct-address .pd-link { margin-top: 12px; }
@keyframes ct-pulse { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* ---------- Map + downloads ---------- */
.ct-map { height: clamp(320px, 40vw, 480px); background: var(--mist); }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

.ct-downloads { padding-block: var(--section-y); background: #fff; }
.ct-downloads__list { list-style: none; padding: 0; margin: clamp(24px, 3vw, 36px) 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.ct-dl { border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff; }
.ct-dl--vcard { display: flex; align-items: center; gap: 20px; padding: 20px; }
.ct-dl--vcard img { flex: none; width: 120px; height: 120px; }
.ct-dl--vcard h3 { font-size: 1.1rem; font-weight: 800; color: var(--black); }
.ct-dl--vcard .pd-link { margin-top: 12px; }
.ct-dl > a { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 160px; padding: 20px 64px 20px 20px; color: inherit; text-decoration: none; transition: background .3s, color .3s; }
.ct-dl__kind { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.ct-dl__name { margin-top: auto; font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: var(--black); }
.ct-dl__meta { margin-top: 4px; font-size: .8125rem; color: var(--steel); }
.ct-dl__icon { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--px-soft); color: var(--oxblood); transition: background .3s, color .3s, transform .4s var(--px-ease); }
.ct-dl__icon svg { width: 18px; height: 18px; }
.ct-dl > a:hover { background: var(--oxblood); }
.ct-dl > a:hover .ct-dl__kind, .ct-dl > a:hover .ct-dl__name, .ct-dl > a:hover .ct-dl__meta { color: #fff; }
.ct-dl > a:hover .ct-dl__icon { background: #fff; transform: translateY(3px); }
.ct-dl > a:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .ct-main__grid { grid-template-columns: 1fr; }
  .ct-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 8px; }
  .ct-channels { grid-row: span 2; }
  .ct-hours { margin-top: 0; }
  .ct-downloads__list { grid-template-columns: 1fr 1fr; }
  .ct-dl--vcard { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .ct-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .ct-card { margin-inline: calc(var(--gutter) * -.5); }
  .ct-form { grid-template-columns: 1fr; }
  .ct-form__submit { width: 100%; justify-content: center; }
  .ct-info { display: block; }
  .ct-hours { margin-top: 28px; }
  .ct-downloads__list { grid-template-columns: 1fr; }
  .ct-dl--vcard img { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-field label, .ct-dl > a, .ct-dl__icon, .ct-channels__icon { transition: none; }
  .ct-hours__status.is-open i { animation: none; }
}
