/* The contact page. Loads after site.css and service.css, and borrows the service pages' opening layout and
   booking section: the ways to reach the workshop on the left, the map in the picture's place on the right. */

/* ---------- Phone, WhatsApp and address, ruled like the list of services ---------- */
.reach { font-style: normal; margin: 0 0 28px; max-width: 30rem; }
.reach > dl { margin: 0; border-top: 1px solid var(--rule); }
.reach__row {
  position: relative; display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.reach dt { color: var(--muted); font-size: 0.9rem; }
.reach dd { margin: 0; }
.reach a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.reach a::after { content: ""; position: absolute; inset: 0; } /* the whole row answers the tap, label included */
.reach__value { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.reach .i-arrow { flex: none; width: 16px; height: 16px; color: var(--muted); transition: translate 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
.reach a:hover .reach__value, .reach a:focus-visible .reach__value {
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.reach a:hover .i-arrow, .reach a:focus-visible .i-arrow { color: var(--accent); translate: 3px 0; }
.reach a:focus-visible { outline: none; }
.reach a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.reach__place { color: var(--soft); font-size: 1.0625rem; line-height: 1.5; }
/* The opening hours (build/hours.js), set like the address: each line's days, then their times in a column of their
   own, and a note for the days it is closed. Where a line is too long for the column (the narrowest phones), its
   times drop under its days. Today's line is in white (open-now.js). */
.hours { margin: 0; color: var(--soft); font-size: 1.0625rem; line-height: 1.5; }
.hours div { display: flex; flex-wrap: wrap; column-gap: 12px; }
.hours dt { flex: none; min-width: 5.5em; color: inherit; font-size: inherit; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours dd span { display: block; }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 700; }
.hours__note { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; text-wrap: balance; }
.hours__note.is-today { color: var(--ink); }
@media (max-width: 374px) {
  .hours { font-size: 0.95rem; }
}

/* ---------- The map: Google's own, turned dark so it sits on the black page like the service pictures ---------- */
.map { margin: 0; justify-self: center; width: min(100%, calc(100vh - var(--head) - 104px)); }
/* The svh size sits in @supports: beside var(), a browser that doesn't know svh would drop it rather than fall back. */
@supports (height: 1svh) { .map { width: min(100%, calc(100svh - var(--head) - 104px)); } }
.map__frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #1b1c1d; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg); }
.map__gps { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.map__gps::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.map__gps span { color: var(--soft); white-space: nowrap; user-select: all; } /* one click selects the whole point, to paste into a GPS */
@media (forced-colors: active) {
  .map__frame iframe { filter: none; }
}

/* ---------- Phones: the ways to reach us first, the map under them ---------- */
@media (max-width: 959px) {
  .contact-hero { padding-top: 26px; } /* the heading comes first here, so it stands clear of the header's fade */
  .map { width: 100%; justify-self: stretch; }
  .map__frame { max-height: 64vh; max-height: 64svh; }
}

/* Short phones: closer rows, so the heading, the numbers, the address, the hours and the button fit the first screen
   (on the very shortest, 460 px, the button sits just under it). */
@media (max-width: 959px) and (orientation: portrait) and (max-height: 600px) {
  .contact-hero { padding-top: 16px; }
  .reach { margin-bottom: 20px; }
  .reach__row { padding: 10px 0; }
  .hours { line-height: 1.4; }
  .hours__note { margin-top: 2px; }
}

/* Phones on their side: the words on the left and the map on the right, as on the service pages. The numbers
   stay in the first screen; the button may sit just under it. */
@media (max-width: 959px) and (orientation: landscape) and (max-height: 520px) {
  .contact-hero { padding-top: 14px; }
  .reach { margin-bottom: 20px; }
  .reach__row { padding: 10px 0; }
  .map { width: min(44vw, calc(100vh - var(--head) - 56px)); }
  @supports (height: 1svh) { .map { width: min(44vw, calc(100svh - var(--head) - 56px)); } }
  .map__frame { max-height: none; }
  .map__gps { gap: 8px; margin-top: 10px; font-size: 0.8rem; }
}
