/* Contact page: channel board, Alexandria working-hours clock, quote checklist + form, visit block with map. */

[hidden] { display: none !important; }

/* ---------- Hero layout ---------- */
.phero--contact .phero__in { padding-bottom: 64px; }
.phero--contact .phero__meta { grid-row: 1; }
.phero--contact .phero__title { grid-column: 1 / 8; grid-row: 2; }
.phero--contact .phero__lead { grid-column: 1 / 7; grid-row: 3; max-width: 30em; }

/* ---------- Channel board ---------- */
.reach {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 3fr;
  gap: 1px;
  margin-top: 48px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.reach__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 208px;
  padding: 16px 20px 18px;
  background: var(--paper-hi);
}
.reach__no { color: var(--red-ink); padding-right: 52px; }
.reach__ico {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}
.reach__ico .acc { stroke: var(--red); }
.reach__ico .acc--fill { fill: var(--red); stroke: none; }
.reach__ico--in { width: 30px; height: 30px; top: 18px; right: 20px; fill: currentColor; stroke: none; }

.reach__val,
.reach__tel span:first-child {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.reach__val {
  align-self: flex-start;
  margin-top: auto;
  padding-block: 4px;
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}
/* The whole cell is the tap target for single-link cells; the copy button sits above the stretched link. */
.reach__item--stretch .reach__val::after { content: ""; position: absolute; inset: 0; }
.reach__item--stretch:hover .reach__val { background-size: 100% 2px; }
.reach__item--stretch:hover .reach__ico { color: var(--red-ink); }
@supports selector(:has(a)) {
  .reach__item--stretch:has(.reach__val:focus-visible) { outline: 3px solid var(--red-ink); outline-offset: -3px; }
  .reach__item--stretch .reach__val:focus-visible { outline: none; }
}

.reach__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.reach__copy {
  position: relative;
  z-index: 1;
  min-width: 72px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper-hi);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.reach__copy:hover { background: var(--ink); color: var(--paper); }
.reach__copy.is-done { background: var(--ink); color: var(--paper); }

.reach__tel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.reach__tel:first-of-type { margin-top: auto; }
.reach__tel .mono { color: var(--ink-2); }
.reach__tel span:first-child {
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}
.reach__tel:hover span:first-child { background-size: 100% 2px; }
.reach__tel:hover .mono { color: var(--red-ink); }

/* Primary channel: the whole red cell is one link. */
.reach__item--main { padding: 0; background: var(--red); color: #fff; }
.reach__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 16px 20px 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.reach__link:hover { background: var(--ink); }
.reach__link:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; box-shadow: inset 0 0 0 6px #fff; }
.reach__item--main .reach__no { color: #fff; }
.reach__item--main .reach__ico .acc { stroke: var(--ink); }
.reach__link:hover .reach__ico .acc { stroke: var(--red); }
.reach__title {
  margin-top: auto;
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.reach__sub { max-width: 24em; padding-right: 56px; font-size: 15px; line-height: 1.35; }
.reach__go {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.reach__link:hover .reach__go { transform: translateY(6px); }

/* ---------- Working-hours clock ---------- */
.clock {
  position: relative;
  grid-column: 8 / 13;
  grid-row: 2 / 4;
  align-self: end;
  margin-top: 40px;
  padding: 16px 20px 14px;
  border: 1px solid var(--ink);
  background: var(--paper-hi);
}
.clock__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 16px; margin-bottom: 26px; }
.clock__cell { display: flex; flex-direction: column; gap: 8px; }
.clock__cell .mono { color: var(--ink-2); }
.clock__cell--now { text-align: right; align-items: flex-end; }
.clock__big {
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 800;
  font-stretch: 80%;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.clock__cell--now .clock__big { color: var(--red-ink); }

.ruler { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: end; gap: 10px; }
.ruler + .ruler { margin-top: 28px; }
.ruler__k { font-size: 11px; color: var(--ink-2); line-height: 1; }
.ruler__track {
  position: relative;
  height: 14px;
  border-bottom: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1.5px, transparent 1.5px 25%) 0 100% / 100% 14px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc(100% / 24)) 0 100% / 100% 6px no-repeat;
}
.ruler__track::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.5px; height: 14px; background: var(--ink); }
.ruler__band { position: absolute; bottom: 0; height: 8px; background: var(--red); transform-origin: 0 50%; }
.ruler__edge {
  position: absolute;
  bottom: 17px;
  font-size: 10.5px;
  line-height: 1;
  color: var(--red-ink);
  transform: translateX(-50%);
  white-space: nowrap;
}
.ruler__edge[data-align="start"] { transform: none; }
.ruler__edge[data-align="end"] { transform: translateX(-100%); }
.ruler__now {
  position: absolute;
  bottom: -5px;
  width: 2px;
  height: 24px;
  margin-left: -1px;
  background: var(--ink);
}
.ruler__now::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--paper-hi);
}
.ruler__scale {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0 44px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.ruler__scale span { width: 0; display: flex; justify-content: center; }
.clock__local { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.35; }
.clock__local b { font-weight: 700; }

.clock.is-armed .ruler__band { transform: scaleX(0); }
.clock.is-in .ruler__band { transform: none; transition: transform 0.9s var(--ease-out) 0.2s; }

/* ---------- 01 Inquiry: checklist + form ---------- */
.inq {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gut);
  row-gap: 40px;
  align-items: start;
}
.inq__brief { grid-column: 1 / 6; }
.inq__h {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.brief { margin-top: 20px; border-top: 1px solid var(--ink); }
.brief li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.brief li::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
}
.brief__no { grid-row: 1 / 3; color: var(--red-ink); }
.brief b { font-size: 19px; font-weight: 700; font-stretch: 90%; line-height: 1.2; letter-spacing: -0.01em; }
.brief__ex { grid-column: 2 / 4; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.inq__tip { margin-top: 20px; font-size: 16px; line-height: 1.45; }
.inq__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.inq__acts .btn.is-done { background: var(--red-ink); color: #fff; }

.brief.is-armed li { opacity: 0; transform: translateY(10px); }
.brief.is-in li { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }

.inq__form { grid-column: 7 / 13; border: 1px solid var(--ink); background: var(--paper-hi); }
.inq__fallback { padding: 16px; font-size: 16px; }
.inq__fallback a { text-decoration: underline; text-underline-offset: 3px; }

/* Inquiry form: spec-sheet panel with numbered fieldsets. */
.iform__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.iform__req { color: var(--red-ink); }

.iform__set { min-width: 0; margin: 0; padding: 22px 24px 28px; border: 0; }
.iform__set + .iform__set { border-top: 1px solid var(--ink); }
/* Floated so the legend lays out as a normal full-width grid box. */
.iform__legend {
  float: left;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 14px;
  margin-bottom: 22px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rule);
}
.iform__legend + * { clear: both; }
.iform__no { color: var(--red-ink); }
.iform__title { font-size: 20px; font-weight: 700; font-stretch: 90%; line-height: 1.2; letter-spacing: -0.01em; }
.iform__tag { color: var(--ink-2); text-align: right; }

.iform__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 20px; }
.iform__field { min-width: 0; }
.iform__field--full { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .iform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.iform__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.iform__opt { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-2); }

.iform__input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--ink-2);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.4 var(--f-sans);
}
.iform__input::placeholder { color: var(--ink-2); opacity: 0.8; }
.iform__input:hover { border-color: var(--ink); }
.iform__input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.iform__input:focus-visible { outline-offset: 2px; }
.iform__input[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-ink); }

.iform__unit { position: relative; display: block; }
.iform__unit .iform__input { padding-right: 56px; appearance: textfield; -moz-appearance: textfield; }
.iform__unit .iform__input::-webkit-inner-spin-button,
.iform__unit .iform__input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.iform__unit-tag { position: absolute; top: 50%; right: 14px; color: var(--ink-2); transform: translateY(-50%); pointer-events: none; }

.iform__select {
  padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 9px;
  appearance: none;
  cursor: pointer;
}
.iform__select:has(option[value=""]:checked) { color: var(--ink-2); }
.iform__select option { color: var(--ink); }
.iform__textarea { min-height: 168px; resize: vertical; line-height: 1.5; }

.iform__err { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--red-ink); }
.iform__err:empty { display: none; }

/* Dropzone: the whole cut-line box is the file input's label. */
.iform__drop {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 2px;
  padding: 20px;
  border: 1.5px dashed var(--ink);
  background: var(--paper);
  cursor: pointer;
}
.iform__drop > * { pointer-events: none; }
.iform__drop:hover { background: var(--paper-hi); }
.iform__drop:hover .iform__drop-link { color: var(--red-ink); }
.iform__drop:focus-within { outline: 3px solid var(--red-ink); outline-offset: 3px; }
@supports selector(:has(a)) {
  .iform__drop:focus-within:not(:has(:focus-visible)) { outline: none; }
}
.iform__drop.is-over { border-style: solid; border-color: var(--red); background: var(--paper-hi); }
.iform__ico { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.iform__ico .acc { stroke: var(--red); }
.iform__drop .iform__ico { grid-row: 1 / 4; }
.iform__drop-main { font-size: 17px; font-weight: 700; font-stretch: 92%; line-height: 1.3; }
.iform__drop-sub { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.iform__drop-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.iform__drop-hint { margin-top: 8px; font-size: 11px; color: var(--ink-2); }

.iform__files { margin-top: 12px; border-top: 1px solid var(--ink); }
.iform__files:empty { display: none; }
.iform__pill {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 44px;
  align-items: center;
  column-gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}
.iform__pill-no { color: var(--red-ink); }
.iform__pill-name { overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.iform__pill-size { color: var(--ink-2); }
.iform__pill-x {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.iform__pill-x:hover { background: var(--ink); color: var(--paper); }
.iform__pill-x:focus-visible { outline-offset: -3px; }

/* Off-screen rather than display:none so bots still fill it. */
.iform__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.iform__foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--ink);
}
.iform__submit:disabled { background: var(--ink); cursor: progress; }
.iform__note { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.iform__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.iform__note a:hover { color: var(--red-ink); }
.iform__status { grid-column: 1 / -1; font-size: 15px; line-height: 1.45; }
.iform__status:not(:empty) { margin-top: 16px; }
.iform__status.is-error { color: var(--red-ink); font-weight: 600; }
.iform__status a { text-decoration: underline; text-underline-offset: 3px; }

.iform__done-body { position: relative; padding: 40px 24px 32px; }
.iform__done-ico { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; }
.iform__done-h {
  max-width: calc(100% - 64px);
  font-size: clamp(38px, 3.6vw, 56px);
  font-weight: 750;
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.iform__done-h:focus-visible { outline-offset: 6px; }
.iform__done-reply { margin-top: 20px; font-size: 19px; line-height: 1.4; }
.iform__done-reply b { font-weight: 700; overflow-wrap: anywhere; }
.iform__done-sent { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); overflow-wrap: anywhere; }
.iform__done-sent .k { color: var(--red-ink); }
.iform__done .btn { margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .iform__input { transition: border-color 0.15s, box-shadow 0.15s; }
  .iform__drop { transition: background-color 0.2s, border-color 0.2s; }
  .iform__pill-x { transition: background-color 0.15s, color 0.15s; }
}

/* Keep the checklist in view beside the long form, only where it fits the viewport. */
@media (min-width: 900px) and (min-height: 860px) {
  .inq__brief { position: sticky; top: calc(var(--hdr-h) + 28px); }
}

/* ---------- 02 Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gut);
  row-gap: 32px;
  align-items: start;
}
.visit__info { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; }
.visit__k { color: var(--red-ink); }
.visit__addr {
  margin-top: 12px;
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 750;
  font-stretch: 86%;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.visit__dir { margin-top: 24px; min-width: 220px; }
.visit__list { align-self: stretch; margin-top: 36px; border-top: 1px solid var(--ink); }
.visit__list > div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.visit__list dt { color: var(--ink-2); }
.visit__list dd { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.visit__list a { display: inline-block; padding-block: 11px; margin-block: -11px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.visit__list a:hover { color: var(--red-ink); }

.visit__map { position: relative; grid-column: 6 / 13; }
.visit__map iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 1px solid var(--ink);
  background: var(--paper-hi);
  filter: grayscale(1) contrast(1.05);
}
.visit__map::before {
  content: "";
  position: absolute;
  top: -11px;
  left: -11px;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--red), var(--red)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--red), var(--red)) 0 50% / 100% 2px no-repeat;
  pointer-events: none;
}
.visit__map figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--ink-2); font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach__item { min-height: 180px; }
  .phero--contact .phero__title { grid-column: 1 / 7; }
  .clock { grid-column: 7 / 13; }
}

@media (max-width: 899px) {
  .phero--contact .phero__in { padding-bottom: 48px; }
  .phero--contact .phero__title,
  .phero--contact .phero__lead { grid-column: 1 / -1; }
  .reach { grid-row: auto; grid-template-columns: 1fr; margin-top: 32px; }
  .reach__item { min-height: 0; gap: 6px; padding: 14px 16px 12px; }
  .reach__item--main { padding: 0; }
  .reach__ico { top: 12px; right: 14px; width: 32px; height: 32px; }
  .reach__ico--in { width: 24px; height: 24px; top: 16px; right: 18px; }
  .reach__val { margin-top: 18px; }
  .reach__tel:first-of-type { margin-top: 14px; }
  .reach__link { min-height: 168px; padding: 14px 16px 16px; }
  .reach__title { font-size: clamp(36px, 10.4vw, 46px); }
  .clock { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; padding: 14px 16px 12px; }
  .clock__big { font-size: clamp(30px, 8.6vw, 40px); }
  .clock__cell--now { text-align: left; align-items: flex-start; }

  .inq__brief, .inq__form { grid-column: 1 / -1; }
  .brief b { font-size: 18px; }
  .inq__acts .btn { flex: 1 1 auto; }
  .iform__set { padding: 18px 16px 24px; }
  .iform__legend { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; margin-bottom: 18px; }
  .iform__tag { grid-column: 2; text-align: left; }
  .iform__drop { padding: 16px; column-gap: 14px; }
  .iform__pill { grid-template-columns: 40px minmax(0, 1fr) auto 44px; column-gap: 8px; }
  .iform__foot { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 20px 16px; }
  .iform__submit { width: 100%; min-width: 0; }
  .iform__done-body { padding: 32px 16px 24px; }
  .iform__done-ico { top: 16px; right: 16px; width: 40px; height: 40px; }
  .iform__done .btn { width: 100%; }

  .visit__info, .visit__map { grid-column: 1 / -1; }
  .visit__map::before { left: auto; right: -6px; top: -11px; }
  .visit__map iframe { height: 360px; }
}
