/* ==========================================================================
   Unbrek — inner pages, forms, and the conversational quote flow
   ========================================================================== */

/* --- Page hero ---------------------------------------------------------- */
.page-hero {
  position: relative; z-index: var(--z-content);
  padding: clamp(150px, 24vh, 240px) 0 clamp(60px, 9vh, 100px);
}
.page-hero__eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 24px; font-weight: 500;
}
.page-hero__title {
  font-weight: 700; font-size: var(--fs-h1); line-height: var(--lh-tight);
  letter-spacing: var(--tr-display); margin: 0; max-width: 17ch;
  text-shadow: var(--shadow-text);
}
.page-hero__lead {
  font-size: var(--fs-lead); color: var(--t-body);
  margin: 28px 0 0; max-width: 56ch;
  text-shadow: var(--shadow-text-sm);
}

/* --- Generic prose ------------------------------------------------------ */
.prose { max-width: 68ch; }
.prose h2 {
  font-weight: 600; font-size: var(--fs-h3); line-height: 1.25;
  letter-spacing: -0.015em; margin: 56px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-weight: 600; font-size: 19px; margin: 34px 0 12px; color: var(--t-hi);
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 20px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--t-hi); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 48px 0; }

/* --- Service detail blocks ---------------------------------------------- */
.svc {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.svc:first-of-type { border-top: 0; }
.svc__head { position: sticky; top: 120px; }
.svc__label {
  font-size: var(--fs-eyebrow); letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px; font-weight: 500;
}
.svc__title {
  font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-head);
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.svc__intro { font-size: var(--fs-sm); color: var(--t-mid); max-width: 34ch; }
/* Real borders rather than opaque rows over a 1px gap — the opaque version
   painted over the fixed canvas and clipped the thread behind this column. */
.svc__items { display: grid; border-top: 1px solid var(--line-soft); }
.svc__item { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.svc__item h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--t-hi); margin: 0 0 9px; letter-spacing: -0.01em;
}
.svc__item p {
  font-size: var(--fs-sm); color: var(--t-mid); max-width: 56ch;
  text-shadow: var(--shadow-text-sm);
}

@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; gap: 28px; }
  .svc__head { position: static; }
}

/* --- Forms -------------------------------------------------------------- */
.form { max-width: 640px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 22px; }
.field__label {
  display: block; font-size: var(--fs-sm); color: var(--t-hi);
  margin-bottom: 9px; font-weight: 500;
}
.field__hint { display: block; font-size: var(--fs-xs); color: var(--t-low); margin-top: 7px; }

.input, .textarea, .select {
  width: 100%;
  font: inherit; font-size: var(--fs-body);
  color: var(--t-hi);
  background: rgba(10, 26, 24, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F5F1' stroke-width='2' opacity='.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.input::placeholder, .textarea::placeholder { color: var(--t-faint); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  background: rgba(10, 26, 24, 0.75);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #E2705A; }

.field__error {
  display: none;
  font-size: var(--fs-xs); color: #F0917D; margin-top: 8px;
}
.field__error.is-shown { display: block; }

/* Honeypot — visually gone, still reachable to a bot filling every input */
.hp {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Choice chips (quote flow) ------------------------------------------ */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-flex; align-items: center;
  font-size: var(--fs-sm); color: var(--t-body);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 11px 20px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.choice span:hover { border-color: var(--line-strong); color: var(--t-hi); }
.choice input:checked + span {
  border-color: var(--accent); color: var(--ink);
  background: var(--accent); font-weight: 500;
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Quote flow --------------------------------------------------------- */
.quote { max-width: 680px; }
.quote__progress {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 44px;
}
.quote__tick {
  height: 2px; flex: 1; background: var(--line-soft); border-radius: 2px;
  overflow: hidden;
}
.quote__tick i {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width .5s var(--ease-out);
}
.quote__tick.is-done i, .quote__tick.is-current i { width: 100%; }
.quote__tick.is-current i { background: var(--accent); }
.quote__count {
  font-size: var(--fs-xs); color: var(--t-low); letter-spacing: .12em;
  font-variant-numeric: tabular-nums; flex: none;
}

.quote__step { display: none; }
.quote__step.is-active { display: block; animation: step-in .5s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .quote__step.is-active { animation: none; }
}

.quote__q {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--t-hi); margin: 0 0 12px;
}
/* Focus is moved here on each step so assistive tech announces the new
   question. It is not an interactive control, so it takes no visible ring —
   the visitor already knows where they are, having just pressed Continue. */
.quote__q:focus, .quote__q:focus-visible { outline: none; box-shadow: none; }
.quote__sub { font-size: var(--fs-sm); color: var(--t-mid); margin: 0 0 28px; max-width: 48ch; }

.quote__nav {
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.quote__back {
  font-size: var(--fs-sm); color: var(--t-low);
  background: none; border: 0; cursor: pointer; padding: 8px 0;
}
.quote__back:hover { color: var(--t-hi); }
.quote__back[hidden] { display: none; }

/* --- Review list -------------------------------------------------------- */
.review { border-top: 1px solid var(--line-soft); margin: 0 0 30px; }
.review div {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.review dt { color: var(--t-low); }
.review dd { margin: 0; color: var(--t-hi); }
@media (max-width: 560px) { .review div { grid-template-columns: 1fr; gap: 4px; } }

/* --- Form states -------------------------------------------------------- */
.form-status { margin-top: 24px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: var(--fs-sm);
}
.notice__icon { flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice--ok { border-color: var(--accent-dim); background: var(--accent-ghost); color: var(--t-hi); }
.notice--err { border-color: rgba(226, 112, 90, .5); background: rgba(226, 112, 90, .08); color: #F5C4B8; }
.notice--info { color: var(--t-mid); }

.btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(20, 48, 44, .35);
  border-top-color: var(--ink);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Success panel ------------------------------------------------------ */
.done { text-align: center; padding: clamp(40px, 8vw, 80px) 0; }
.done__ring { width: 64px; height: 64px; margin: 0 auto 28px; }
.done__title {
  font-weight: 600; font-size: var(--fs-h3); margin: 0 0 14px; color: var(--t-hi);
}
.done__body { font-size: var(--fs-sm); color: var(--t-mid); max-width: 44ch; margin: 0 auto; }

/* --- Contact split ------------------------------------------------------ */
.contact-split {
  display: grid; grid-template-columns: 1fr 0.75fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.contact-aside { border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 36px); }
@media (max-width: 900px) {
  .contact-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 30px; }
}
.contact-aside h2 {
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-low); font-weight: 500; margin: 0 0 18px;
  font-family: var(--font-body);
}
.contact-aside dl { margin: 0 0 30px; }
.contact-aside dt { font-size: var(--fs-sm); color: var(--t-hi); margin-bottom: 5px; font-weight: 500; }
.contact-aside dd { margin: 0 0 18px; font-size: var(--fs-sm); color: var(--t-mid); }

/* --- 404 ---------------------------------------------------------------- */
.oops { min-height: 76svh; display: grid; place-items: center; text-align: center; }
.oops__code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(72px, 16vw, 180px); line-height: 1;
  color: var(--t-hi); letter-spacing: -0.04em; margin: 0 0 18px;
}
