/* New styles for /websites/ pages only. Every selector must include a class starting with ws-.
   Use the shared variables (--accent, --ink, --muted, --line, --card) before writing any value. */
.hero-cta.ws-center { text-align: center; }
.ws-code { overflow-x: auto; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; }


.ws-gallery-lead.band,
.ws-demo-lead.band,
.ws-content-band.band,
.ws-gallery-end.band { min-height: auto; }
.ws-gallery-lead.band, .ws-demo-lead.band { padding-top: min(25vh, 8rem); }

.ws-template-heading h1, .ws-demo-heading h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.ws-template-heading p { color: var(--muted); margin: 0 0 24px; }
.ws-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ws-template-card {
  display: block;
  height: 100%;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.ws-template-card:hover { border-color: var(--link); }
.ws-template-card:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.ws-preview { background: var(--card); }
.ws-preview-brand {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.ws-preview-scene { position: relative; isolation: isolate; display: grid; aspect-ratio: 2 / 1; overflow: hidden; }
.ws-preview-scene img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.ws-preview-headline {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 1;
  max-width: 20ch;
  color: #ffffff;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.05;
}
.ws-preview-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(25deg, rgb(8 8 8 / .94), transparent 74%); }
.ws-preview-split .ws-preview-scene, .ws-preview-dispatch .ws-preview-scene {
  grid-template-columns: 1fr 1fr;
  background: #f5f7fc;
}
.ws-preview-split .ws-preview-scene img, .ws-preview-dispatch .ws-preview-scene img { grid-column: 2; grid-row: 1; }
.ws-preview-split .ws-preview-headline, .ws-preview-dispatch .ws-preview-headline {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: #121212;
  padding: 16px;
}
.ws-preview-split .ws-preview-scene::after, .ws-preview-dispatch .ws-preview-scene::after,
.ws-preview-portfolio .ws-preview-scene::after { display: none; }
.ws-preview-dispatch .ws-preview-scene img { grid-column: 1; }
.ws-preview-dispatch .ws-preview-headline { grid-column: 2; }
.ws-preview-panorama .ws-preview-headline,
.ws-preview-portfolio .ws-preview-headline { max-width: 26ch; }
.ws-preview-portfolio .ws-preview-scene { grid-template-rows: minmax(0, 1fr) auto; background: #f5f7fc; }
.ws-preview-portfolio .ws-preview-headline { position: static; padding: 8px 16px; color: #121212; }
.ws-template-label { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px; }
.ws-template-label h3 { margin: 0 0 4px; color: var(--ink); }
.ws-template-label span { display: block; font-size: 14px; color: var(--muted); }
.ws-template-label .ws-template-open { color: var(--link); font-weight: 700; text-decoration: underline; white-space: nowrap; }

.ws-template-actions, .ws-demo-top, .ws-demo-bar, .ws-demo-nav, .ws-demo-actions, .ws-template-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.ws-template-actions a, .ws-demo-top a, .ws-demo-nav a, .ws-demo-actions a,
.ws-template-links a, .ws-demo-brand, .ws-estimate-demo a, .ws-estimate-demo summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.ws-demo-top { justify-content: space-between; border-bottom: 1px solid var(--line); }
.ws-demo-top a { font-size: 14px; text-underline-offset: .2em; }
.ws-demo-bar { justify-content: space-between; margin: 8px 0 16px; }
.ws-demo-brand { font-weight: 800; text-decoration: none; }
.ws-demo-nav { gap: 0 16px; }
.ws-demo-nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.ws-demo-nav a:hover, .ws-demo-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.ws-demo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  isolation: isolate;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.ws-demo-heading { padding: clamp(24px, 4vw, 48px); z-index: 1; }
.ws-demo-heading .eyebrow { margin: 0 0 12px; }
.ws-demo-intro { margin: 0 0 16px; color: var(--muted); }
.ws-demo-hero img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 0; aspect-ratio: 4 / 3; }
.ws-demo-inner .ws-demo-heading h1 { font-size: clamp(2.1rem, 3.85vw, 3rem); }
.ws-demo-cover, .ws-demo-panorama { grid-template-columns: 1fr; min-height: clamp(23rem, 38vw, 30rem); }
.ws-demo-cover img, .ws-demo-panorama img { position: absolute; inset: 0; height: 100%; }
.ws-demo-cover::after, .ws-demo-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 8 8 / .94) 8%, rgb(8 8 8 / .68) 46%, transparent 86%);
}
.ws-demo-cover .ws-demo-heading, .ws-demo-panorama .ws-demo-heading { max-width: 39rem; }
.ws-demo-panorama { align-items: end; }
.ws-demo-panorama::after { background: linear-gradient(30deg, rgb(8 8 8 / .94) 10%, rgb(8 8 8 / .66) 48%, transparent 80%); }
.ws-demo-panorama .ws-demo-heading { padding-bottom: 32px; }
.ws-demo-split, .ws-demo-portfolio { background: #f5f7fc; color: #121212; }
.ws-demo-split .ws-demo-intro, .ws-demo-portfolio .ws-demo-intro,
.ws-demo-split .eyebrow, .ws-demo-portfolio .eyebrow { color: #4b4f58; }
.ws-demo-portfolio { grid-template-columns: 1fr; gap: 0; }
.ws-demo-portfolio .ws-demo-heading { max-width: 41rem; padding-bottom: 24px; }
.ws-demo-portfolio img { aspect-ratio: 3 / 1; }
.ws-demo-dispatch img { grid-row: 1; grid-column: 1; }
.ws-demo-dispatch .ws-demo-heading { grid-row: 1; grid-column: 2; }
.ws-demo-roofing img { object-position: center 42%; }
.ws-demo-landscaping img, .ws-demo-carpentry img { object-position: center 62%; }

.ws-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ws-service-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  text-decoration: none;
}
.ws-service-grid a:hover { border-color: var(--link); }
.ws-service-grid strong { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.ws-service-grid span { font-size: 14px; color: var(--muted); }
.ws-template-links { padding: 0; margin: 0; list-style: none; }
.ws-template-copy { max-width: 72ch; margin-inline: auto; }
.ws-template-copy section + section { margin-top: 24px; }
.ws-template-copy h2 { margin: 0 0 8px; }
.ws-estimate-demo { max-width: 72ch; }
.ws-estimate-demo dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 16px; }
.ws-estimate-demo dt { font-weight: 700; }
.ws-estimate-demo dd { margin: 0; }
.ws-estimate-demo summary { cursor: pointer; color: var(--link); text-decoration: underline; }
.ws-template-credits li { margin-bottom: 12px; }

@media (max-width: 700px) {
  .ws-gallery-lead.band, .ws-demo-lead.band { padding-top: 88px; }
  .ws-template-grid, .ws-demo-hero { grid-template-columns: minmax(0, 1fr); }
  .ws-template-label { flex-wrap: wrap; }
  .ws-demo-bar, .ws-demo-nav { gap: 0 12px; }
  .ws-demo-hero img { aspect-ratio: 16 / 9; }
  .ws-demo-dispatch img { grid-column: 1; grid-row: 2; }
  .ws-demo-dispatch .ws-demo-heading { grid-column: 1; grid-row: 1; }
  .ws-demo-cover, .ws-demo-panorama { align-items: end; min-height: 27rem; }
  .ws-demo-cover::after, .ws-demo-panorama::after {
    background: linear-gradient(0deg, rgb(8 8 8 / .97) 7%, rgb(8 8 8 / .74) 51%, transparent 95%);
  }
  .ws-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .ws-template-label, .ws-service-grid a { padding: 12px; }
  .ws-demo-top { gap: 0 12px; }
}

/* Contractor showroom — scoped to the template index, not the demo layouts. */
.ws-showroom.band { min-height: 0; padding: 104px 0 48px; }
.ws-showroom-more.band, .ws-showroom-end.band { min-height: 0; padding: 48px 0; }
.ws-showroom-intro { max-width: 760px; margin: 0 0 32px; }
.ws-showroom-intro h1 { font-size: clamp(2.1rem,5.2vw,3.8rem); line-height: 1.07; letter-spacing: -.04em; font-weight: 800; margin: 12px 0; }
.ws-showroom-intro p { margin: 0; color: var(--muted); font-size: 20px; }
.ws-showroom-sectionhead { margin: 0 0 20px; }
.ws-showroom-sectionhead h2 { margin: 0 0 8px; font-size: 26px; }
.ws-showroom-sectionhead > span, .ws-showroom-sectionhead p { display: block; font-size: 14px; color: var(--muted); margin: 0; }
.ws-showroom-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; gap:24px; margin:0; padding:0; }
.ws-showroom-item { min-width:0; margin:0; }
.ws-showroom-card { display:block; height:100%; background:var(--card); color:var(--ink) !important; border:1px solid var(--card-line); border-radius:16px; overflow:hidden; text-decoration:none; }
.ws-showroom-card:hover { border-color:var(--link); }
.ws-showroom-card:focus-visible { outline:2px solid var(--link); outline-offset:4px; }
.ws-showroom-browser { overflow:hidden; color:#121212; background:#ffffff; }
.ws-showroom-chrome { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; gap:8px; font-size:12px; color:#4b4f58; background:#eceff7; border-bottom:1px solid var(--card-line); }
.ws-showroom-dots { letter-spacing:2px; opacity:.62; }
.ws-showroom-brand { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; padding:8px 16px; }
.ws-showroom-brand strong { font-size:14px; font-weight:800; line-height:1.2; }
.ws-showroom-brand > span { font-size:12px; color:#4b4f58; white-space:nowrap; }
.ws-showroom-photo { position:relative; isolation:isolate; aspect-ratio: 16/9; overflow:hidden; }
.ws-showroom-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.ws-showroom-photo::after { content:""; position:absolute; inset:0; z-index:0; background:linear-gradient(90deg,rgb(8 8 8 / .91),rgb(8 8 8 / .56) 50%,rgb(8 8 8 / .08)); }
.ws-showroom-overlay { position:absolute; z-index:1; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:24px; max-width:80%; color:#ffffff; gap:12px; }
.ws-showroom-trade { font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.ws-showroom-overlay strong { display:block; font-size:clamp(1.25rem,2.5vw,2.2rem); font-weight:800; letter-spacing:-.025em; line-height:1.12; }
.ws-showroom-mini-cta { background:var(--accent); color:#ffffff; font-size:12px; font-weight:700; padding:8px 12px; border-radius:4px; }
.ws-showroom-mini-services { display:block; text-align:center; padding:12px 8px; background:#f5f7fc; color:#121212; font-size:12px; font-weight:600; line-height:1.4; }
.ws-showroom-info { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px; }
.ws-showroom-info > div { min-width:0; }
.ws-showroom-number { font-size:12px; font-weight:700; letter-spacing:.09em; color:var(--muted); }
.ws-showroom-info h3 { margin:4px 0; font-size:20px; font-weight:800; color:var(--ink); }
.ws-showroom-sub { font-size:14px; color:var(--muted); }
.ws-showroom-link { flex:0 0 auto; font-size:14px; font-weight:700; color:var(--link); text-align:right; }
.ws-showroom-newtab { display:block; font-size:12px; font-weight:400; color:var(--muted); margin-top:4px; }
.ws-showroom-hvac .ws-showroom-photo img { object-position: center 56%; }
.ws-showroom-contact { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.ws-showroom-contact h2 { margin:0 0 8px; }
.ws-showroom-contact p { margin:0; color:var(--muted); }
.ws-showroom-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
@media(max-width:760px) {
 .ws-showroom.band { padding:88px 0 32px; }
 .ws-showroom-more.band,.ws-showroom-end.band { padding:32px 0; }
 .ws-showroom-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
 .ws-showroom-intro { margin-bottom:24px; }
 .ws-showroom-intro p { font-size:17px; }
 .ws-showroom-contact { align-items:flex-start; flex-direction:column; }
 .ws-showroom-overlay strong { font-size:clamp(1.25rem,5vw,2.2rem); }
}
@media(max-width:420px) {
 .ws-showroom-brand > span { display:none; }
 .ws-showroom-overlay { padding:16px; gap:8px; }
 .ws-showroom-info { padding:12px; align-items:flex-start; }
 .ws-showroom-link { font-size:12px; }
 .ws-showroom-info h3 { font-size:17px; }
}
