/* ============================================================================
   v3-shared/enquiry.css — shared component layer for the Harbour release
   candidate (Combined Air-Con & Electrical).

   Loaded AFTER designs/v3-harbour/style.css on both index.html and enquire.html.
   It carries the structural + interactive components (masthead, nav, buttons,
   the single-step enquiry form, footer basics) and reads its visual values from
   CSS custom properties the concept sets in its own :root — the same contract
   the v2 layer used, so the two rounds stay visually consistent.

   There is deliberately NO booking, calendar, time-slot or file-upload styling
   here: the launch direction is a simple text enquiry (see
   HARBOUR-COPY-AND-ENQUIRY-BRIEF.md). Photos are explained in copy, not uploaded.

   Contract (the concept style.css must define):
     --bg --surface --surface-2 --line --line-strong --text --muted --accent
     --accent-ink --danger --header-bg --header-line --header-rule --logo-w
     --wrap --radius --bw --font-body --font-display --font-mono --label-tracking
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--body-weight, 400) 1.0625rem/1.6 var(--font-body);
  text-wrap: pretty;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sr-only, .sr-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 40; background: var(--accent); color: var(--accent-ink);
  padding: .6rem .9rem; font-family: var(--font-mono); font-size: .78rem;
}
.wrap { width: min(var(--wrap, 1200px), 93vw); margin-inline: auto; }
.mono {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: var(--label-tracking, .12em);
  text-transform: uppercase;
}
/* Visible draft placeholder — every unconfirmed business detail is wrapped in this
   so it can never be mistaken for approved copy. Bracketed + dashed underline. */
.ph { border-bottom: 2px dashed var(--accent); color: var(--accent); }
.ph::before { content: "["; }
.ph::after { content: "]"; }

/* --------------------------------------------------------------- masthead */
.site-head {
  background: var(--header-bg);
  border-bottom: var(--header-rule, 1px) solid var(--header-line);
  position: relative;
  z-index: 10;
}
.head-inner { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; position: relative; flex-wrap: wrap; }
/* The supplied logo is genuine transparent RGBA; it sits straight on the navy with no
   plaque, no panel and no white rectangle. The concept style.css points --logo-w and the
   page uses the reversed derivative (see assets/derivatives/MANIFEST.md). */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: var(--logo-w, 210px); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--text); text-decoration: none; font-family: var(--font-mono); font-size: .75rem;
  letter-spacing: var(--label-tracking, .12em); text-transform: uppercase; padding: .5rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

/* ------------------------------------------------------------- demo banner */
.demo-banner {
  background: var(--accent); color: var(--accent-ink);
  padding: .9rem 1.1rem; margin: 1.5rem 0 0; font-weight: 600;
}
.demo-banner strong { display: block; text-transform: uppercase; letter-spacing: .06em; }

/* ----------------------------------------------------------- page header */
.page-head { padding: 2rem 0 1rem; }
.page-head h1 { font: 900 clamp(1.9rem, 4.6vw, 3rem)/1.05 var(--font-display); margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: -.01em; }
.page-head .lede { color: var(--muted); max-width: 44rem; }

/* ------------------------------------------------------- enquiry form */
.enquiry { border: var(--bw) solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.6rem; margin: 1.5rem 0; }
.enquiry legend, .enquiry h2 { font: 700 1.2rem/1.3 var(--font-display); margin: 0 0 .4rem; }
.enquiry .hint { color: var(--muted); font-size: .92rem; margin: 0 0 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
legend { padding: 0; }
.choice {
  display: flex; gap: .8rem; align-items: flex-start; border: var(--bw) solid var(--line-strong, var(--line));
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer;
}
.choice:hover { border-color: var(--accent); }
.choice input { margin-top: .3rem; flex: none; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.choice .label { font-weight: 700; display: block; }
.choice .detail { color: var(--muted); font-size: .9rem; display: block; }
.field { margin-bottom: 1.1rem; max-width: 38rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem; background: var(--bg); color: var(--text);
  border: var(--bw) solid var(--line-strong, var(--line)); border-radius: var(--radius); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field .error, [data-error-for] { color: var(--danger); font-size: .88rem; margin: .35rem 0 0; }
.field .help { color: var(--muted); font-size: .86rem; margin: .35rem 0 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.consent { display: flex; gap: .8rem; align-items: flex-start; max-width: 38rem; margin-bottom: .4rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--accent); }
.form-nav { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; }
.photo-note {
  border-left: 6px solid var(--accent); background: var(--surface-2); border-radius: var(--radius);
  padding: .9rem 1.1rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.4rem; font-size: .92rem;
}
.photo-note strong { color: var(--text); }

/* ------------------------------------------------------- demo confirmation */
.confirm { border: var(--bw) solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 1.8rem; margin: 1.5rem 0; }
.confirm h2 { margin-top: 0; }
.confirm ol { color: var(--muted); }
.confirm .future { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; font-size: .92rem; color: var(--muted); }
.notice { border-left: 6px solid var(--accent); background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--muted); max-width: 44rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border: var(--bw) solid var(--accent); border-radius: var(--radius);
  padding: .8rem 1.3rem; text-decoration: none; font-weight: 700; font-size: .88rem;
  letter-spacing: .04em; cursor: pointer; font-family: var(--font-body);
}
.btn:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong, var(--line)); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }

/* ------------------------------------------------------------ footer bits */
.draft-note { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .82rem; color: var(--muted); }
footer .wrap > .draft-note:first-child { margin-top: 0; border-top: 0; }

/* --------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: var(--bw) solid var(--line-strong, var(--line));
    border-radius: var(--radius); color: var(--text); font: inherit; font-family: var(--font-mono);
    font-size: .75rem; letter-spacing: var(--label-tracking, .12em); text-transform: uppercase;
    padding: .55rem .7rem; cursor: pointer; min-height: 44px; align-items: center;
  }
  .nav { margin: 0; }
  .nav ul { display: none; }
  .nav[data-open="true"] ul {
    display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border: var(--bw) solid var(--accent); border-radius: var(--radius); padding: 1rem; z-index: 20;
  }
  .nav[data-open="true"] a { display: block; padding: .7rem 0; min-height: 44px; }
}
@media (max-width: 560px) {
  .form-nav .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
