/* Stairholm site styles. Values come from stairholm-tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--spruce);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; }
p { margin: 0; max-width: 68ch; }
:where(.sh) a { color: inherit; }
:where(.sh) a:visited { color: inherit; }

:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; }
.sh-spruce :focus-visible { outline-color: var(--oak); }

.sh-skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--spruce); color: var(--paper); padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.sh-skip:focus { top: var(--space-1); }

.sh-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.sh-section { padding: var(--space-7) 0; }
.sh-mist { background: var(--mist); }
.sh-spruce { background: var(--spruce); color: var(--mist); }
.sh-lead { font-size: var(--text-lg); color: var(--spruce-soft); }
.sh-section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.sh-section-head p { color: var(--spruce-soft); font-size: var(--text-lg); }

/* Buttons */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.625rem 1.375rem;
  border: 1px solid var(--spruce); border-radius: var(--radius-sm);
  font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.sh-btn-primary, .sh-btn-primary:visited { background: var(--spruce); color: var(--paper); }
.sh-btn-primary:hover { background: var(--spruce-soft); border-color: var(--spruce-soft); }
.sh-btn-secondary, .sh-btn-secondary:visited { background: transparent; color: var(--spruce); }
.sh-btn-secondary:hover { background: var(--mist); }
.sh-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Header */
.sh-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.sh-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 76px; flex-wrap: wrap;
}
.sh-logo { display: inline-flex; min-height: 44px; align-items: center; }
.sh-logo img { width: 168px; height: auto; }
.sh-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.sh-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--spruce-soft);
}
.sh-nav a:hover { color: var(--spruce); text-decoration: underline; text-underline-offset: 4px; }
.sh-nav { margin-left: auto; }
.sh-nav a, .sh-btn { white-space: nowrap; }

/* Hero */
.sh-hero { padding: var(--space-6) 0 var(--space-7); }
.sh-hero-grid { display: grid; gap: var(--space-5); align-items: end; }
.sh-hero-text { display: grid; gap: var(--space-4); }
.sh-hero h1 { max-width: 20ch; }

/* Photo placeholders: labelled until real photos arrive */
.sh-photo {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--mist); border: 1px solid var(--line); color: var(--spruce-soft);
  font-size: var(--text-sm); padding: var(--space-3); aspect-ratio: 4 / 3;
}
.sh-mist .sh-photo { background: var(--paper); }
.sh-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
.sh-photo-hero { aspect-ratio: 4 / 3; }

/* Stair types */
.sh-types { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.sh-type { display: grid; gap: var(--space-2); align-content: start; }
.sh-type h3 { margin-top: var(--space-1); }
.sh-type p { color: var(--spruce-soft); }

/* How it works: ascending steps on desktop */
.sh-steps { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sh-step { border-top: 1px solid var(--spruce); padding: var(--space-3) 0 var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
.sh-step-num { font-size: var(--text-sm); font-weight: 500; color: var(--spruce-soft); }
.sh-step p { color: var(--spruce-soft); }

/* Why */
.sh-why { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.sh-why li { border-top: 1px solid var(--line); padding-top: var(--space-3); display: grid; gap: var(--space-2); }
.sh-why p { color: var(--spruce-soft); }

/* Trade band */
.sh-trade { padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sh-trade-inner { display: grid; gap: var(--space-3); align-items: center; }
.sh-trade p { color: var(--spruce-soft); }

/* FAQ */
.sh-faq { border-top: 1px solid var(--line); max-width: 860px; }
.sh-faq details { border-bottom: 1px solid var(--line); }
.sh-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  min-height: 44px; padding: var(--space-3) 0; cursor: pointer; list-style: none;
  font-size: var(--h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
}
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 150ms ease;
}
.sh-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.sh-faq-answer { padding: 0 0 var(--space-4); color: var(--spruce-soft); }

/* Quote section (the one spruce section) */
.sh-quote { position: relative; overflow: hidden; }
.sh-quote-grid { position: relative; z-index: 1; display: grid; gap: var(--space-5); }
.sh-quote-intro { display: grid; gap: var(--space-3); align-content: start; }
.sh-quote-intro p { color: var(--mist); font-size: var(--text-lg); }
.sh-quote-intro .sh-note { color: var(--oak); font-size: var(--text-base); }
.sh-motif { position: absolute; z-index: 0; right: -18%; bottom: -12%; width: 70%; max-width: 900px; pointer-events: none; }
.sh-motif path { fill: var(--oak); opacity: 0.22; }
.sh-form-panel { background: var(--paper); color: var(--spruce); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-3); }

/* Voog form markup (.form_*), styled to the brief */
.sh-form .form_fields { display: grid; gap: var(--space-3); }
.sh-form .form_field { display: grid; gap: 0.375rem; }
.sh-form .form_field_label { font-weight: 500; }
.sh-form .form_field_required > .form_field_label::after { content: " *"; color: var(--error); }
.sh-form .form_field_textfield,
.sh-form .form_field_select,
.sh-form .form_field_textarea {
  width: 100%; min-height: 44px; padding: 0.625rem 0.75rem;
  font: inherit; color: var(--spruce); background: var(--paper);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
}
.sh-form .form_field_textarea { min-height: 8rem; resize: vertical; }
.sh-form .form_field_file { font: inherit; min-height: 44px; }
.sh-form [role="radiogroup"] { display: grid; gap: var(--space-1); }
.sh-form .form_field_radio_label { display: flex; align-items: center; gap: 0.625rem; min-height: 44px; cursor: pointer; }
.sh-form .form_field_radio { width: 20px; height: 20px; margin: 0; accent-color: var(--spruce); }
.sh-form .form_control_indicator { display: none; }
.sh-form [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.sh-error { color: var(--error); font-size: var(--text-sm); font-weight: 500; }
.sh-error:empty { display: none; }
.sh-hint { color: var(--spruce-soft); font-size: var(--text-sm); }
.sh-form .form_submit { margin-top: var(--space-4); }
.sh-form .form_submit_input {
  min-height: 44px; padding: 0.625rem 1.375rem; width: 100%;
  background: var(--spruce); color: var(--paper); border: 1px solid var(--spruce);
  border-radius: var(--radius-sm); font: inherit; font-weight: 500; cursor: pointer;
}
.sh-form .form_submit_input:hover { background: var(--spruce-soft); }
.sh-form .form_submit_input[disabled] { opacity: 0.6; cursor: wait; }
.sh-form-privacy { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--spruce-soft); }
.sh-form-status { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sh-form-status:empty { display: none; }
.sh-form-status.is-error { border-color: var(--error); color: var(--error); }
.sh-form-success { display: grid; gap: var(--space-2); }
.sh-form-success:focus { outline: none; }
.sh-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.sh-footer { padding: var(--space-6) 0 var(--space-5); border-top: 1px solid var(--line); }
.sh-footer-grid { display: grid; gap: var(--space-4); }
.sh-footer img { width: 150px; height: auto; }
.sh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.sh-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.sh-legal { color: var(--spruce-soft); font-size: var(--text-sm); }

/* Simple text pages (privacy, 404) */
.sh-page { padding: var(--space-6) 0 var(--space-7); }
.sh-prose { max-width: 68ch; display: grid; gap: var(--space-3); }
.sh-prose h2 { font-size: var(--h3); margin-top: var(--space-4); }
.sh-prose ul { margin: 0; padding-left: 1.25rem; }
.sh-draft { display: inline-block; border: 1px solid var(--error); color: var(--error); padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 500; }

/* Subtle fade-in, never for reduced motion */
.sh-fade { opacity: 0; transition: opacity 180ms ease; }
.sh-fade.is-in { opacity: 1; }

@media (min-width: 700px) {
  .sh-types { grid-template-columns: repeat(3, 1fr); }
  .sh-why { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .sh-trade-inner { grid-template-columns: 1fr auto; }
  .sh-footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .sh-form-panel { padding: var(--space-5); }
  .sh-form .form_submit_input { width: auto; }
}

@media (min-width: 1000px) {
  .sh-hero-grid { grid-template-columns: 5fr 7fr; grid-template-areas: "title title" "text photo"; column-gap: var(--space-6); row-gap: var(--space-5); }
  .sh-hero h1 { grid-area: title; }
  .sh-hero-text { grid-area: text; align-self: start; }
  .sh-photo-hero { grid-area: photo; }
  .sh-types { grid-template-columns: repeat(3, 1fr); }
  .sh-steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: start; }
  .sh-step { padding-bottom: 0; }
  .sh-step:nth-child(1) { margin-top: calc(var(--space-6) * 3); }
  .sh-step:nth-child(2) { margin-top: calc(var(--space-6) * 2); }
  .sh-step:nth-child(3) { margin-top: var(--space-6); }
  .sh-step { min-height: 13rem; }
  .sh-quote-grid { grid-template-columns: 4fr 6fr; gap: var(--space-6); }
}

@media (max-width: 699px) {
  .sh-section { padding: var(--space-6) 0; }
  .sh-header-inner { padding-top: var(--space-1); padding-bottom: var(--space-1); }
  .sh-header-inner { row-gap: 0; }
  .sh-nav { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--line); }
  .sh-nav ul { gap: var(--space-4); }
  .sh-logo img { width: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .sh-fade { opacity: 1; }
}
.sh-footer-brand { display: grid; gap: var(--space-3); }
.sh-footer li > span { display: inline-flex; min-height: 44px; align-items: center; }
.sh-trade-text { display: grid; gap: var(--space-2); }
.sh-trade h2 { font-size: var(--h3); }
