/* Robert Waltos Homes — site styles. Tokens match the invoice and letterhead. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-normal-400-600.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibmplexsans-normal-400-600.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibmplexsans-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibmplexmono-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --spruce: #0F2429;
  --spruce-2: #183539;
  --spruce-3: #0A1A1E;
  --copper: #C2551D;
  --copper-dk: #A9481A;
  --copper-lt: #E58A58;
  --paper: #F1F2EF;
  --paper-2: #E6E8E3;
  --ink: #15181A;
  --ink-2: #4E555A;
  --mist: #C8D2D2;
  --rule: #C9CAC4;
  --white: #FFFFFF;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.62 var(--sans); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper-dk); }
:focus-visible { outline: 3px solid var(--copper-lt); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.008em; color: var(--spruce); }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin: 0; font-variation-settings: "opsz" 120; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 14px; font-variation-settings: "opsz" 96; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 40ch; }
.intro { color: var(--ink-2); max-width: 58ch; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 600 16px/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: var(--copper-dk); color: var(--white); }
.btn-line { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--white); color: var(--white); }
.btn-ink { border-color: var(--spruce); color: var(--spruce); background: transparent; }
.btn-ink:hover { background: var(--spruce); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { background: var(--spruce); color: var(--white); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font: 600 19px/1 var(--display); letter-spacing: .02em; }
.brand-name small { display: block; font: 500 12px/1 var(--sans); letter-spacing: .32em; color: var(--copper-lt); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: #D5DCDC; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--copper-lt); text-underline-offset: 8px; }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 15px; color: var(--white); }
.nav-phone { font-variant-numeric: tabular-nums; }
.menu-btn { display: none; background: transparent; border: 1px solid rgba(255,255,255,.4); color: var(--white); min-height: 42px; padding: 0 14px; font: 500 15px/1 var(--sans); cursor: pointer; }

/* Page hero: the drawing sheet */
.hero { position: relative; background: var(--spruce); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 84px); }
.hero.compact .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.hero h1 { color: var(--white); }
.hero .lede { color: #D5DCDC; margin: 22px 0 30px; }
.hero.compact .lede { margin-bottom: 0; }
.crumbs { font-size: 14px; color: #9FB0B2; margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #6F8486; }
.crumbs a { text-decoration: none; color: #C8D2D2; }
.crumbs a:hover { color: var(--white); }

.sheet { position: relative; margin: 0; border: 1px solid rgba(255,255,255,.35); background: rgba(15,36,41,.6); }
.sheet svg.drawing { display: block; width: 100%; height: auto; }
.title-block { display: grid; grid-template-columns: 1.3fr 1fr; border-top: 1px solid rgba(255,255,255,.35); font-size: 14px; }
.title-block > div { padding: 12px 16px; }
.title-block > div + div { border-left: 1px solid rgba(255,255,255,.35); }
.tb-k { font: 400 11px/1.3 var(--mono); color: #9FB0B2; letter-spacing: .04em; }
.tb-v { font: 500 16px/1.35 var(--display); margin-top: 3px; color: var(--white); }
.tb-v a { text-decoration: none; color: var(--white); }

.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draft 2.4s cubic-bezier(.4,.1,.2,1) forwards; }
.draw.d2 { animation-delay: .45s; } .draw.d3 { animation-delay: .9s; } .draw.d4 { animation-delay: 1.35s; }
.dim { opacity: 0; animation: fadein .6s ease 2.2s forwards; }
@keyframes draft { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .dim { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Bands */
.band { padding: clamp(60px, 8vw, 108px) 0; }
.band-tight { padding: clamp(44px, 6vw, 72px) 0; }
.band-paper { background: var(--paper); }
.band-spruce { background: var(--spruce-2); color: var(--white); }
.band-spruce h2, .band-spruce h3 { color: var(--white); }
.band-spruce .intro, .band-spruce p { color: #C8D2D2; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.head-row .more { font-weight: 500; white-space: nowrap; }

/* Lists of things */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); margin-top: 44px; }
.row { padding: 24px 0 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.row svg { width: 44px; height: 44px; }
.row h3 { margin-top: 2px; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row p { margin: 0; color: var(--ink-2); max-width: 46ch; }

.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 44px; }
.plate { display: block; text-decoration: none; color: inherit; }
.plate figure { margin: 0; border: 1px solid var(--rule); background: var(--white); }
.band-paper .plate figure { background: var(--white); }
.plate svg { display: block; width: 100%; height: auto; }
.plate figcaption { border-top: 1px solid var(--rule); padding: 10px 14px; font: 400 12px/1.3 var(--mono); color: var(--ink-2); letter-spacing: .03em; }
.plate h3 { margin: 16px 0 6px; }
.plate p { color: var(--ink-2); margin: 0; font-size: 16px; }
.plate:hover h3 { color: var(--copper-dk); }

.places { columns: 3 220px; column-gap: 40px; margin: 36px 0 0; padding: 0; list-style: none; }
.places li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--rule); }
.places a { text-decoration: none; font: 500 19px/1.3 var(--display); }
.places a:hover { color: var(--copper-dk); }
.places span { display: block; font-size: 14px; color: var(--ink-2); }
.band-spruce .places li { border-color: rgba(255,255,255,.2); }
.band-spruce .places a { color: var(--white); }
.band-spruce .places span { color: #9FB0B2; }

.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; border-top: 2px solid var(--copper); }
.steps li { position: relative; padding-right: clamp(16px, 2.4vw, 32px); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; background: var(--white); border: 2px solid var(--copper); color: var(--copper); font: 600 20px/1 var(--display); position: relative; }
.band-paper .steps li::before { background: var(--paper); }
.steps h3 { font-size: 21px; margin: 22px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Long-form */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; font-size: clamp(28px, 3vw, 36px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--copper); }
.aside { position: sticky; top: 24px; border: 1px solid var(--rule); background: var(--paper); padding: 22px 22px 24px; }
.aside h2 { font-size: 24px; margin-bottom: 10px; }
.aside p { color: var(--ink-2); font-size: 16px; }
.aside .phone-sm { display: block; font: 500 26px/1.1 var(--display); text-decoration: none; color: var(--spruce); margin: 6px 0 14px; }
.aside .btn { width: 100%; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }

.facts { list-style: none; padding: 0; margin: 0 0 1.4em; }
.facts li { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.facts p { margin: 0 0 6px; }
.source { font-size: 14px; color: var(--ink-2); }
.source a { color: var(--ink-2); }
.callout { border-left: 4px solid var(--copper); background: var(--paper); padding: 18px 22px; margin: 0 0 1.6em; }
.callout p:last-child { margin-bottom: 0; }

.faq { margin-top: 36px; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 600 20px/1.3 var(--display); color: var(--spruce); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 12px; height: 12px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 32px; }
.faq .answer { padding: 0 0 22px; max-width: var(--measure); color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta { background: var(--spruce); color: var(--white); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cta h2 { color: var(--white); }
.cta p { color: #D5DCDC; margin: 0; max-width: 46ch; }
.phone { display: block; font: 500 clamp(36px, 4.6vw, 58px)/1 var(--display); text-decoration: none; letter-spacing: -.01em; color: var(--white); }
.phone:hover { color: var(--copper-lt); }
.cta .email { display: inline-block; margin: 14px 0 22px; font-size: 19px; color: #D5DCDC; text-decoration-color: var(--copper-lt); }
.cta .email:hover { color: var(--white); }

/* Forms */
.form { display: grid; gap: 22px; max-width: 760px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form legend { font: 600 24px/1.2 var(--display); color: var(--spruce); margin-bottom: 12px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-2); margin: -2px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1.5px solid #9DA3A0; padding: 12px 14px; border-radius: 0; min-height: 50px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--copper-lt); outline-offset: 0; border-color: var(--spruce); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border: 1.5px solid #9DA3A0; font-size: 15px; background: var(--white); }
.choice input:checked + span { border-color: var(--spruce); background: var(--spruce); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--copper-lt); outline-offset: 2px; }
.upload { border: 1.5px dashed #9DA3A0; background: var(--paper); padding: 18px; }
.upload input { font: inherit; max-width: 100%; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--spruce); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.error { color: #8A3A12; background: #FBEDE4; border-left: 4px solid var(--copper); padding: 12px 16px; }
.form-status.ok { color: var(--spruce); }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.site-foot { background: var(--spruce-3); color: #9FB0B2; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-foot h2 { font: 600 13px/1.2 var(--sans); letter-spacing: .08em; color: var(--white); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: #C8D2D2; }
.site-foot a:hover { color: var(--white); }
.foot-brand p { margin: 14px 0 0; max-width: 32ch; }
.foot-contact { margin-top: 18px; display: grid; gap: 4px; }
.foot-contact a { color: var(--white); font: 500 20px/1.3 var(--display); }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 22px; font-size: 14px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav a.nav-link { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--spruce); border-top: 1px solid rgba(255,255,255,.15); padding: 8px var(--gutter) 22px; display: none; }
  .nav-panel.open { display: block; }
  .nav-panel a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #E4E9E9; text-decoration: none; font-size: 17px; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1021px) { .nav-panel { display: none !important; } }
@media (max-width: 900px) {
  .hero .wrap, .hero.compact .wrap { grid-template-columns: 1fr; }
  .hero.compact .sheet { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rows { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .nav .nav-phone { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps, .plates { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .title-block { grid-template-columns: 1fr; }
  .title-block > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .foot-grid { grid-template-columns: 1fr; }
  .nav .btn-copper { padding: 0 12px; }
}
@media print {
  .site-head, .site-foot, .cta, .hero::before { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero h1, .hero .lede { color: var(--ink); }
}
