/* Demo pages only (demo/*.html). Contractor theme for the illustrative
   Sample Roofing Co. pack; never loaded by the marketing pages. */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/public-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/public-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/public-sans-latin-700.woff2') format('woff2'); }

.demo {
  --demo-ink: #16324F;
  --demo-surface: #FFFFFF;
  --demo-soft: #EEF3F7;
  --demo-action: #B44A27;
  --demo-action-hover: #933B1E;
  --demo-muted: #3F5468;
  --demo-line: #C9D5E0;
  margin: 0;
  background: var(--demo-surface);
  color: var(--demo-ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 27px;
}
.demo *, .demo *::before, .demo *::after { box-sizing: border-box; }
.demo img, .demo svg { max-width: 100%; height: auto; }
.demo a { color: var(--demo-ink); text-underline-offset: 3px; }
.demo :focus-visible { outline: 3px solid var(--demo-action); outline-offset: 3px; }

.demo .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo .skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--demo-ink); color: #fff; padding: 12px 16px; font-weight: 600; }
.demo .skip:focus { top: 12px; }

.demo .wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Label above the contractor shell */
.demo .demo-label { background: #FFF4D6; border-bottom: 2px solid #B8860B; color: #3A2C00; }
.demo .demo-label p { margin: 0; padding: 12px 0; font-size: 16px; line-height: 24px; }

/* Contractor shell */
.demo .shell { border-bottom: 1px solid var(--demo-line); }
.demo .c-head { background: var(--demo-surface); border-bottom: 1px solid var(--demo-line); }
.demo .c-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.demo .c-brand { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--demo-ink); }
.demo .c-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.demo .c-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.demo .c-nav a:hover { background: var(--demo-soft); }
.demo .c-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--demo-action); }

.demo .c-hero { background: var(--demo-soft); padding: 64px 0; }
.demo .c-hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.demo .eyebrow { margin: 0 0 12px; font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--demo-muted); }
.demo h1 { margin: 0 0 16px; font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.01em; }
.demo h2 { margin: 0 0 12px; font-size: 30px; line-height: 37px; font-weight: 700; }
.demo h3 { margin: 0 0 8px; font-size: 20px; line-height: 27px; font-weight: 700; }
.demo p { margin: 0 0 16px; max-width: 64ch; }
.demo .intro { color: var(--demo-muted); }
.demo .roofline { display: block; width: 100%; max-width: 480px; justify-self: end; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }

.demo .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--demo-action); color: #fff; border: 2px solid var(--demo-action); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.demo .btn:hover { background: var(--demo-action-hover); border-color: var(--demo-action-hover); }

.demo .c-section { padding: 56px 0; }
.demo .c-section + .c-section { border-top: 1px solid var(--demo-line); }
.demo .c-section.soft { background: var(--demo-soft); }
.demo .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.demo .card { border: 1px solid var(--demo-line); border-radius: 8px; padding: 22px; background: var(--demo-surface); }
.demo .card p { margin: 0; color: var(--demo-muted); }
.demo ul.details { margin: 0 0 20px; padding-left: 1.2em; }
.demo ul.details li { margin-bottom: 6px; }

/* Demo form: nothing is sent or saved (see assets/demo.js) */
.demo .demo-form { max-width: 560px; margin-top: 24px; }
.demo .field { margin-bottom: 18px; }
.demo .field label { display: block; font-weight: 600; margin-bottom: 6px; }
.demo .field input, .demo .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #6B7F92; border-radius: 6px; font: inherit; color: var(--demo-ink); background: #fff; }
.demo .field textarea { min-height: 120px; resize: vertical; }
.demo .demo-status { min-height: 27px; margin-top: 16px; font-weight: 600; }

.demo .storm-link { border: 2px solid var(--demo-ink); border-radius: 8px; padding: 18px 20px; background: var(--demo-surface); margin-bottom: 24px; }
.demo .storm-link p { margin: 0 0 8px; }
.demo .storm-link a { font-weight: 700; }

.demo .c-foot { padding: 24px 0; font-size: 16px; line-height: 24px; color: var(--demo-muted); }
.demo .c-foot p { margin: 0; }

/* Below the contractor shell */
.demo .demo-after { background: #F7F7F2; color: #202823; padding: 40px 0 48px; }
.demo .demo-after h2 { font-size: 24px; line-height: 31px; }
.demo .demo-after a { color: #202823; font-weight: 600; }
.demo .demo-after .after-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.demo .demo-after .after-links a { display: inline-flex; align-items: center; min-height: 48px; }
.demo .demo-after .after-links .btn { background: #A84322; border-color: #A84322; color: #fff; padding: 0 22px; }

@media (max-width: 900px) {
  .demo .c-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .demo .roofline { justify-self: start; max-width: 360px; }
  .demo .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .demo { font-size: 16px; line-height: 25px; }
  .demo .wrap { padding: 0 20px; }
  .demo .c-hero { padding: 40px 0; }
  .demo .c-section { padding: 40px 0; }
  .demo h1 { font-size: 34px; line-height: 39px; }
  .demo h2 { font-size: 25px; line-height: 31px; }
  .demo .c-nav a { padding: 0 8px; }
  .demo .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .demo * { transition: none !important; animation: none !important; }
}

/* Inert demo button (nothing to open from the example CTA) */
.demo .btn[aria-disabled="true"] { cursor: default; }
.demo .btn[aria-disabled="true"]:hover { background: var(--demo-action); border-color: var(--demo-action); }
