/* ==========================================================================
   Contact page (/contact, /fr/contact)
   Loaded only on this page, AFTER /css/style.css (shared styles, colours,
   motion system, page hero, form fields, photo band). Rules used on more than
   one page belong in style.css.
   Motion hooks only act under .js-motion (public/js/main.js); the "open now"
   dot only pulses with motion allowed.
   ========================================================================== */

/* ---- 1. Hero -------------------------------------------------------------- */
.page-hero--contact { min-height: min(56vh, 460px); }
.page-hero--contact h1 { max-width: 16ch; }

/* ---- 2. Quick contact cards + "open now" ---------------------------------- */
.quick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.quick-head h2 { margin: 0; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--charcoal);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.contact-card--whatsapp { border-top-color: var(--whatsapp); }
.contact-card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0.9rem;
  background: var(--beige-soft); color: var(--charcoal);
}
.contact-card--whatsapp .contact-card-icon { background: rgba(31, 122, 77, 0.12); color: var(--whatsapp); }
.contact-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.contact-card-value { margin: 0 0 0.4rem; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card-best { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.contact-card .btn { margin-top: auto; }
.contact-card-badge {
  position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (min-width: 900px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-card:hover { transform: none; }
}

/* "Open now · closes at 17:00 ET" — filled in by main.js; hidden without JS
   (the plain hours are always listed in the side panel) */
.open-status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem;
}
.open-status[hidden] { display: none; }
.open-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.open-status.is-open .open-dot { background: #2f9e5b; }
.open-status.is-closed .open-dot { background: var(--ember); }
.open-local { font-weight: 500; color: var(--muted); }
.open-local:empty { display: none; }
.open-local::before { content: "("; }
.open-local::after { content: ")"; }
@keyframes open-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}
.js-motion .open-status.is-open .open-dot { animation: open-pulse 2.4s ease-out infinite; }
.contact-direct .open-status { margin-top: 0.75rem; background: rgba(250, 247, 242, 0.06); border-color: var(--line-light); color: var(--off-white); }
.contact-direct .open-local { color: var(--muted-light); }

/* ---- 3. Form + side panel ------------------------------------------------- */
.contact-layout { display: grid; gap: 1.5rem; align-items: start; }
.form-note--quote {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0 1.5rem;
  padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--beige-soft); color: var(--charcoal);
}
.form-note--quote .icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--ember-text); }
.form-note--quote a { font-weight: 600; }
.field--radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--radios legend { padding: 0; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.radio-pill input { accent-color: var(--ember-text); width: 18px; height: 18px; margin: 0; }
.radio-pill:has(input:checked) { border-color: var(--ember-text); background: rgba(232, 116, 42, 0.08); }
.radio-pill:has(input:focus-visible) { outline: 3px solid rgba(232, 116, 42, 0.35); }
.contact-form .field.has-error input, .contact-form .field.has-error select, .contact-form .field.has-error textarea { border-color: var(--danger); }
.contact-side { display: grid; gap: 1.25rem; }
.contact-side-photo { border-radius: var(--radius-lg); overflow: hidden; }
.contact-list { margin: 0; }
.contact-list div { padding: 0.85rem 0; border-top: 1px solid var(--line-light); }
.contact-list > div:first-child { border-top: 0; padding-top: 0.25rem; }
.contact-list dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-light); }
.contact-list dt .icon { color: var(--ember); }
.contact-list dd { margin: 0.25rem 0 0; }
.contact-list a { color: var(--off-white); }
.contact-list a:hover { color: var(--ember); }
.contact-list address { font-style: normal; }
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.hours-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.hours-list li span:last-child { font-variant-numeric: tabular-nums; }
.hours-list .is-closed { color: var(--muted-light); }
.map-links { display: flex; flex-direction: column; gap: 0.35rem; }
.map-links a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 600px) {
  .form-cell--full { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
  .contact-side { position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); }
}

/* ---- 5. Our region band ---------------------------------------------------- */
.photo-band--region .photo-band-line { max-width: 26ch; }
