/* #enquire: Enquire (brief 7.12). Theme light, not pinned.
   Desktop: the eyebrow and a centred two-line heading (Display XL, the long second line in a lighter tone, with
   a yellow highlighter bar behind "how many desks and chairs"). Below it a 12-column body: the lead line at the
   top left and the contact details at the bottom left, the enquiry form in a raised paper card on the right
   (columns 6 to 12) spanning both. 768 to 1099 px: lead, form, then the contact details in two columns.
   Phones: one column, the heading left-aligned.
   Default styles are the finished state (reduced motion, no GSAP). Under html.has-motion the heading starts at
   14% ink with the highlighter at zero width; js/sections/enquire.js fills the words with the scroll and sweeps
   the highlighter once the second line is full. If that script cannot run it sets data-fill="off", which puts
   the finished state back. */

#enquire {
  --enq-from: rgba(11,11,13,.14);    /* unfilled word (brief 8.9) */
  --enq-soft: rgba(11,11,13,.5);     /* the second line's lighter tone */
  --enq-mark-h: .36em;               /* highlighter bar height */
  --enq-sweep: 1;                    /* highlighter width, 0 to 1 (tweened by js) */
  --enq-hair: rgba(11,11,13,.46);    /* field underline: still one hairline, at 3:1 or more on the card (WCAG 1.4.11) */
  --enq-hair-hover: rgba(11,11,13,.6);
  --enq-gap: clamp(20px, 2.2vw, 32px);
}

/* ------------------------------------------------------------------ heading */
#enquire .enq-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
#enquire .enq-title {
  margin-top: clamp(24px, 2.6vw, 36px); max-width: 21.5em;
  font-size: var(--fs-xl); line-height: 1.1; font-weight: 300; letter-spacing: -0.01em;
  font-kerning: normal; text-wrap: balance; color: var(--fg);
}
#enquire .enq-line { display: block; }
#enquire .enq-line--ask { color: var(--enq-soft); }
/* "you need" never splits, so no line ends in "you" (desktop: "...desks and chairs / you need and for...") */
#enquire .enq-keep { white-space: nowrap; }
/* the bar covers the lower half of the x-height and runs a hair past the first and last letter */
#enquire .enq-mark {
  color: var(--fg); padding-inline: .06em; margin-inline: -.06em;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 80%;
  background-size: calc(var(--enq-sweep) * 100%) var(--enq-mark-h);
}
/* the scroll fill's start state (motion only; the words carry their own colour once split) */
html.has-motion #enquire .enq-title:not([data-fill="off"]),
html.has-motion #enquire .enq-title:not([data-fill="off"]) .enq-line--ask,
html.has-motion #enquire .enq-title:not([data-fill="off"]) .enq-mark { color: var(--enq-from); }
html.has-motion #enquire .enq-title:not([data-fill="off"]) .enq-mark { --enq-sweep: 0; }

/* ------------------------------------------------------------------ body: lead and contact left, form right */
#enquire .enq-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  column-gap: var(--col-gap); margin-top: clamp(72px, 12vh, 136px);
}
#enquire .enq-lead {
  grid-column: 1 / span 4; grid-row: 1; align-self: start; max-width: 15em; margin-top: -4px;
  font-size: clamp(19px, 1.45vw, 21px); line-height: 1.5; letter-spacing: 0;
  text-wrap: balance;   /* "We'll send the specification / and a quotation.", no short last line */
}
#enquire .enq-form { grid-column: 6 / span 7; grid-row: 1 / span 2; }
#enquire .enq-contact { grid-column: 1 / span 4; grid-row: 2; align-self: end; margin-top: 56px; }

/* ------------------------------------------------------------------ the form card */
#enquire .enq-form {
  position: relative; min-width: 0;
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 52px) clamp(28px, 3vw, 44px);
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-soft);
}
#enquire .enq-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--enq-gap); row-gap: clamp(26px, 2.6vw, 36px);
}
#enquire .enq-counts {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--enq-gap);
}
#enquire .enq-field { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
#enquire .enq-field--wide { grid-column: 1 / -1; }
#enquire .enq-label {
  display: block; padding-bottom: 6px;
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; font-weight: 400;
  letter-spacing: .05em; text-transform: none; color: var(--muted);
  transition: color var(--dur-hover) ease; cursor: pointer;
}
#enquire .enq-req { color: var(--accent-ink); }
/* the three count labels break into two even lines, so their fields line up */
#enquire .enq-field--count .enq-label { max-width: 20ch; text-wrap: balance; }
#enquire .enq-field:focus-within .enq-label { color: var(--fg); }

#enquire .enq-input {
  display: block; width: 100%; min-width: 0; margin: 0;
  padding: 12px 14px; border: 1px solid #cfcac0; border-radius: 0;     /* the website's boxed field (31 Oct 2026) */
  background: #fff; color: var(--fg); caret-color: var(--fg);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: 0;
  -webkit-appearance: none; appearance: none; box-shadow: none; outline: none;
  transition: border-color var(--dur-hover) ease;
}
#enquire .enq-input:hover { border-color: var(--enq-hair-hover); }
#enquire .enq-input:focus, #enquire .enq-input:focus-visible { border-color: var(--yellow); outline: none; }
/* the three "how many" fields answer the heading: numbers in light, wide figures. They are text fields with a
   numeric keypad (no spin buttons, and a scroll wheel over them scrolls the page) */
#enquire .enq-input--count {
  padding: 6px 14px 8px; font-size: clamp(24px, 2vw, 28px); line-height: 1.2; font-weight: 300;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}
#enquire .enq-input--area { resize: none; min-height: calc(3 * 1.4em + 26px); max-height: 14em; field-sizing: content; }
/* a short yellow highlighter grows under the field in focus, echoing the heading */
#enquire .enq-field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none;
  background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
#enquire .enq-field:focus-within::after { transform: scaleX(1); }
#enquire .enq-input:-webkit-autofill,
#enquire .enq-input:-webkit-autofill:hover,
#enquire .enq-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg); -webkit-box-shadow: 0 0 0 100px #fff inset; transition: background-color 600000s 0s;
}

/* submit row and the mockup note */
#enquire .enq-submit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(32px, 3.4vw, 48px);
}
#enquire .enq-send { padding-inline: 24px 22px; }
#enquire .enq-status { margin: 0; font-size: 15px; line-height: 1.45; letter-spacing: -.005em; color: var(--fg); }
#enquire .enq-status__text { display: inline-flex; align-items: flex-start; gap: 10px; }
#enquire .enq-status__text::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: calc((1.45em - 6px) / 2);
  border-radius: 1px; background: var(--yellow);
}
#enquire .enq-form.is-sent .enq-status__text { animation: enquire-note .5s var(--ease-out) both; }
@keyframes enquire-note { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ contact details */
#enquire .enq-contact { font-style: normal; }
#enquire .enq-row { padding: 16px 0 18px; border-top: 1px solid var(--line); }
#enquire .enq-row__label { color: var(--muted); }
#enquire .enq-row__value { margin: 8px 0 0; font-size: 16px; line-height: 1.5; letter-spacing: -.005em; color: var(--fg); }
#enquire .enq-row__value--big { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3; letter-spacing: -.018em; }
/* the phone and email links: 11 px of padding all round, taken back by the margin, gives them a tap height of
   45 px or more on phones (23.4 px of text at 390) without moving a row; the focus ring is pulled back to 3 px
   round the text, as on every other link, so it never crosses the label above */
#enquire .enq-row__value .link { display: inline-block; padding: 11px; margin: -11px; overflow-wrap: anywhere; }
#enquire .enq-row__value .link:focus-visible { outline-offset: -8px; }

/* ------------------------------------------------------------------ 768 to 1099 px: one column, contact in two */
@media (max-width: 1099.98px) {
  #enquire .enq-body { grid-template-rows: auto; }
  #enquire .enq-lead { grid-column: 1 / span 8; grid-row: 1; max-width: 32ch; }
  #enquire .enq-form { grid-column: 1 / -1; grid-row: 2; margin-top: 32px; }
  #enquire .enq-contact { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-top: 64px; }
  #enquire .enq-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 767.98px) {
  #enquire .enq-head { align-items: flex-start; text-align: left; }
  /* one measure for both lines: from about 600 px the first line would otherwise run the full width over a
     squeezed second line; at 390 the column is narrower than 13.5em, so nothing changes there */
  #enquire .enq-title { font-size: clamp(32px, 9vw, 40px); line-height: 1.06; max-width: 13.5em; }
  #enquire .enq-body { display: block; margin-top: 52px; }
  #enquire .enq-lead { max-width: 15em; font-size: 22px; }
  #enquire .enq-field--count .enq-label { max-width: none; }
  #enquire .enq-form { margin-top: 26px; padding: 26px 20px 28px; }
  #enquire .enq-fields { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  #enquire .enq-counts { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  #enquire .enq-input--count { font-size: 28px; }
  #enquire .enq-submit { gap: 16px; }
  #enquire .enq-send { width: 100%; }
  #enquire .enq-contact { margin-top: 52px; }
  #enquire .enq-rows { display: block; }
}
