/* WebsiteVirtuoso shared styles
   Color fields are decoration only. All reading text sits on solid bone panels
   in charcoal. System fonts only; no external requests. */

:root {
  --oxblood: #5A1E1B;
  --ochre: #C8752A;
  --red: #8E2A22;
  --bone: #F0EAD6;
  --charcoal: #2B2A28;
  --field-bg: #FBF8EF; /* bone, lightened, behind form fields */

  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, system-ui, sans-serif;

  --gutter: 16px;
  --radius: 8px;
  --space: clamp(1rem, 3vw, 2rem);
  --glow: 0 0 0 1px rgba(240, 234, 214, 0.55), 0 0 32px 6px rgba(240, 234, 214, 0.16);

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 125%; /* 20px when the browser default is 16px; scales with user settings */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--oxblood);
  background-image: linear-gradient(180deg, rgba(43, 42, 40, 0) 0%, rgba(43, 42, 40, 0.3) 100%);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

p {
  max-width: 34em;
}

strong {
  font-weight: 700;
}

a {
  color: var(--oxblood);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -200px;
  z-index: 100;
  background: var(--bone);
  color: var(--charcoal);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--gutter);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.canvas {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  padding-top: var(--space);
  padding-bottom: var(--space);
}

/* ---------- Header ---------- */

.site-header {
  padding-top: var(--gutter);
}

.header-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  background: var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: 0.5rem 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 0.25rem 0;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.brand-tag {
  font-size: 1rem;
}

.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.4rem;
  color: var(--charcoal);
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

/* ---------- Panels (the bone rectangles that hold all text) ---------- */

.panel {
  background: var(--bone);
  color: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: clamp(1.25rem, 5vw, 4rem);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel--hero h1 {
  max-width: 16em;
}

.lede {
  font-size: 1.2rem;
}

.center {
  text-align: center;
}

.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Color fields (decorative, aria-hidden) ----------
   Original stacked rectangles: a soft edge (blur), a halo where the color
   bleeds into the ground, and a lighter inner wash for luminosity. */

.field {
  position: relative;
  height: clamp(4.5rem, 16vw, 12rem);
  margin: 0 clamp(0rem, 2vw, 1.5rem);
  border-radius: 12px;
  filter: blur(6px);
}

.field::before,
.field::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.field::before {
  inset: -14px -10px;
  border-radius: 28px;
  background: inherit;
  opacity: 0.35;
  filter: blur(18px);
}

.field::after {
  inset: 18% 9% 26% 11%;
  border-radius: 40%;
  background: rgba(240, 234, 214, 0.12);
  filter: blur(22px);
}

.field--tall {
  height: clamp(5rem, 20vw, 16rem);
}

.field--short {
  height: clamp(2.5rem, 8vw, 6rem);
}

.field--thin {
  height: clamp(1.25rem, 3vw, 2.5rem);
  filter: blur(4px);
}

.field--thin::after {
  display: none;
}

.field--ochre {
  background:
    radial-gradient(ellipse 70% 62% at 48% 44%, rgba(240, 234, 214, 0.24), rgba(240, 234, 214, 0) 72%),
    linear-gradient(180deg, rgba(240, 234, 214, 0.06), rgba(142, 42, 34, 0.2)),
    var(--ochre);
}

.field--red {
  background:
    radial-gradient(ellipse 72% 60% at 52% 50%, rgba(200, 117, 42, 0.28), rgba(200, 117, 42, 0) 74%),
    var(--red);
}

.field--charcoal {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(142, 42, 34, 0.38), rgba(142, 42, 34, 0) 75%),
    var(--charcoal);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem; /* 60px at default size */
  min-width: 8rem;
  padding: 0.6rem 1.6rem;
  border: 3px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--bone);
}

.button--primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--bone);
}

.button--secondary {
  background: var(--bone);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.button--secondary:hover {
  background: var(--charcoal);
  color: var(--bone);
}

.button--large {
  min-width: 12rem;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1em;
}

.center .actions {
  justify-content: center;
}

/* ---------- Lists ---------- */

.points,
.checks {
  list-style: none;
  padding: 0;
}

.points li,
.checks li {
  position: relative;
  padding-left: 1.6rem;
  max-width: 34em;
}

.points li + li {
  margin-top: 1rem;
}

.checks li + li {
  margin-top: 0.5rem;
}

/* Small soft rectangles as bullets, echoing the color fields */
.points li::before,
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--red);
}

.center .checks {
  display: inline-block;
  text-align: left;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.steps li {
  max-width: 34em;
}

.step-n {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.steps h3 {
  margin-bottom: 0.25em;
}

.steps p {
  margin: 0;
}

/* ---------- Price ---------- */

.price-num {
  display: block;
  font-size: clamp(4rem, 2.8rem + 5vw, 7rem);
  line-height: 1;
  color: var(--oxblood);
  margin-bottom: 0.1em;
}

.note {
  font-weight: 700;
}

/* ---------- Contact ---------- */

.contact-lines {
  list-style: none;
  padding: 0;
}

/* ---------- Signature (thanks page) ---------- */

.signature {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0;
}

/* ---------- Intake form ---------- */

.intake .step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.intake .step + .step {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(43, 42, 40, 0.25);
}

.intake.is-stepped .step + .step {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.intake .step {
  scroll-margin-top: var(--gutter);
}

.intake legend {
  padding: 0;
  margin: 0 0 0.75rem;
}

.intake div.step > .q-title {
  margin-bottom: 0.75rem;
}

.q-title {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem);
  margin: 0;
}

.q-title:focus {
  outline: none;
}

.q-title:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 6px;
}

.q-count {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--oxblood);
  margin-bottom: 0.4rem;
}

.form-row + .form-row {
  margin-top: 1.5rem;
}

.form-row > label,
.sub-legend {
  display: block;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.req {
  color: var(--red);
  font-weight: 700;
}

.hint {
  margin: 0 0 0.6rem;
}

.intake input[type="text"],
.intake input[type="email"],
.intake input[type="tel"],
.intake textarea {
  display: block;
  width: 100%;
  max-width: 32em;
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--field-bg);
  border: 2px solid var(--charcoal);
  border-radius: 6px;
}

.intake textarea {
  min-height: 6.5rem;
  line-height: 1.45;
  resize: vertical;
}

.intake input:focus-visible,
.intake textarea:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 2px;
}

.intake [aria-invalid="true"] {
  border-color: var(--red);
  border-width: 3px;
}

.sub-group {
  border: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  min-width: 0;
}

.sub-group legend {
  margin-bottom: 0.35rem;
}

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
}

.choice input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--oxblood);
}

.choice label {
  flex: 1;
  padding: 0.4rem 0;
  cursor: pointer;
}

.error {
  color: var(--red);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.form-note {
  margin: 2rem 0 0;
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.honeypot {
  display: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-bottom: var(--gutter);
}

.footer-panel {
  background: var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.footer-panel p {
  margin-bottom: 0.5rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.footer-nav {
  margin: 0.5rem 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Phones ---------- */

@media (max-width: 30em) {
  .actions .button,
  .form-nav .button {
    width: 100%;
  }

  .header-panel {
    padding: 0.5rem 1rem;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .intake.is-stepped.has-moved .step:not([hidden]) {
    animation: wv-fade 0.2s ease-out;
  }
}

@keyframes wv-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- High contrast / forced colors ---------- */

@media (forced-colors: active) {
  .field {
    display: none;
  }

  .panel,
  .header-panel,
  .footer-panel {
    border: 2px solid CanvasText;
  }

  .button {
    border-color: ButtonText;
  }

  .points li::before,
  .checks li::before {
    background: CanvasText;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
  }

  .field,
  .skip-link,
  .site-nav,
  .form-nav {
    display: none !important;
  }

  .panel,
  .header-panel,
  .footer-panel {
    box-shadow: none;
    padding: 0;
  }
}
