/* Past Solds page and listing pages. Scoped to .sb so the WordPress theme styles elsewhere are untouched. */
.sb {
  --sb-green: #83a23d;
  --sb-olive: #4f5f2c;
  --sb-olive-deep: #3c4922;
  --sb-orange: #a1462f;
  --sb-cream: #f5f3ef;
  --sb-sand: #e9e4da;
  --sb-grey: #d0ccc3;
  --sb-ink: #222;
  --sb-muted: #5d5a54;
  --sb-serif: 'Bitter', Georgia, serif;
  --sb-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --sb-wrap: 1180px;
  --sb-gutter: max(16px, calc((100% - var(--sb-wrap)) / 2 + 16px));
  font-family: var(--sb-sans);
  color: var(--sb-ink);
  -webkit-font-smoothing: antialiased;
}
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb h1, .sb h2, .sb h3, .sb p, .sb dl, .sb dd, .sb ul, .sb figure { margin: 0; padding: 0; }
.sb h1, .sb h2, .sb h3 { font-family: var(--sb-serif); font-weight: 400; color: inherit; letter-spacing: -0.01em; text-transform: none; }
.sb a { color: inherit; text-decoration: none; }
.sb button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; border-radius: 0;
}
.sb img { display: block; max-width: 100%; }
.sb-wrap { width: 100%; max-width: var(--sb-wrap); margin: 0 auto; padding: 0 16px; }
.sb-eyebrow {
  font-family: var(--sb-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sb-green); margin-bottom: 14px;
}
.sb-badge {
  display: inline-block; background: var(--sb-orange); color: #fff; font-family: var(--sb-sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 12px 6px; border-radius: 2px; line-height: 1;
}
.sb :focus-visible { outline: 3px solid var(--sb-green); outline-offset: 3px; }

/* ---------- Past Solds ---------- */
.sb-solds { background: var(--sb-cream); overflow: hidden; }
.sb-solds__head { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 44px); position: relative; }
.sb-solds__head::after {
  content: ''; position: absolute; right: -6vw; top: 18%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border-radius: 50%; background: radial-gradient(circle, rgba(131,162,61,0.13), rgba(131,162,61,0) 68%); pointer-events: none;
}
.sb-solds__title {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 400; line-height: 0.95; color: var(--sb-olive-deep);
  margin-bottom: 26px; position: relative; z-index: 1;
}
.sb-solds__title span { color: var(--sb-green); }
.sb-lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.6; max-width: 640px; color: var(--sb-muted); position: relative; z-index: 1; }
.sb-lede strong { color: var(--sb-ink); font-weight: 700; }

.sb-carousel { padding: 8px 0 clamp(56px, 8vw, 96px); position: relative; }
.sb-carousel::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: var(--sb-sand);
}
.sb-carousel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; position: relative;
}
.sb-counter { font-family: var(--sb-serif); font-size: 18px; color: var(--sb-muted); font-variant-numeric: tabular-nums; }
.sb-counter b { color: var(--sb-ink); font-weight: 400; }
.sb-controls { display: flex; gap: 10px; }
.sb .sb-ctl {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--sb-olive); color: var(--sb-olive);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.sb .sb-ctl:hover { background: var(--sb-olive); color: #fff; }
.sb .sb-ctl svg { width: 18px; height: 18px; }
.sb .sb-track {
  list-style: none; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px var(--sb-gutter) 18px; scroll-padding-inline: var(--sb-gutter); scrollbar-width: none; position: relative;
  margin: 0;
}
.sb-track::-webkit-scrollbar { display: none; }
.sb-card {
  flex: 0 0 calc((min(100vw, var(--sb-wrap)) - 32px - 48px) / 3); scroll-snap-align: start; list-style: none; margin: 0;
}
.sb-card a {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(34,34,34,.06), 0 12px 30px -18px rgba(34,34,34,.35); transition: transform .35s ease, box-shadow .35s ease;
}
.sb-card a:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(34,34,34,.06), 0 22px 40px -20px rgba(34,34,34,.45); }
.sb-card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sb-grey); }
.sb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.sb-card a:hover .sb-card__img img { transform: scale(1.04); }
.sb-card__img .sb-badge { position: absolute; top: 14px; left: 14px; }
.sb-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sb-card h3 { font-size: 22px; font-weight: 400; line-height: 1.25; margin-bottom: 8px; color: var(--sb-ink); }
.sb-card p.sb-card__sub { font-size: 15px; line-height: 1.5; color: var(--sb-muted); margin-bottom: 18px; }
.sb-card__link {
  margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-olive);
}
.sb-card__link::after { content: ' \2192'; transition: margin .25s; }
.sb-card a:hover .sb-card__link::after { margin-left: 6px; }
.sb-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; position: relative; flex-wrap: wrap; }
.sb .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(79,95,44,.25); transition: background .2s, transform .2s; }
.sb .sb-dot[aria-current="true"] { background: var(--sb-olive); transform: scale(1.3); }

/* ---------- Call to action ---------- */
.sb-cta {
  color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; isolation: isolate;
  background-color: var(--sb-olive-deep);
}
/* Blurred photo of a front porch, framed on the steps (Unsplash photo -zNNFDR3dPM, hosted with the site) */
.sb-cta::before {
  content: ''; position: absolute; inset: -24px; z-index: -2; pointer-events: none;
  background: url('/assets/cta-house.jpg') 50% 86% / cover no-repeat;
  filter: blur(3px); transform: scale(1.03);
}
/* Darker on the text side so the white copy stays readable */
.sb-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(28,34,16,.84) 0%, rgba(28,34,16,.66) 50%, rgba(28,34,16,.42) 100%);
}
.sb-cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; }
.sb-cta .sb-eyebrow { color: #c5d99a; }
.sb-cta h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 400; line-height: 1.08; margin-bottom: 16px; color: #fff; }
.sb-cta p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 520px; }
.sb-cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; justify-self: end; width: 100%; }
.sb a.sb-btn {
  display: block; text-align: center; padding: 17px 24px; border-radius: 3px; font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s;
}
.sb a.sb-btn--solid { background: var(--sb-green); color: #fff; }
.sb a.sb-btn--solid:hover { background: #95b84a; }
.sb a.sb-btn--ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.sb a.sb-btn--ghost:hover { background: #fff; color: var(--sb-olive-deep); border-color: #fff; }

/* ---------- Listing page ---------- */
.sb-hero { position: relative; height: min(88vh, 860px); min-height: 460px; background: var(--sb-olive-deep); overflow: hidden; }
/* svh = the screen height while the browser's address bar is showing, so the address is never hidden behind it */
@supports (height: 1svh) {
  .sb-hero { height: min(88svh, 860px); min-height: min(460px, calc(100svh - 90px)); }
}
.sb-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sb-zoom 14s ease-out both; }
.sb-hero--soft > img { filter: saturate(.92); }
.sb-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,14,.25) 0%, rgba(20,22,14,0) 30%, rgba(20,22,14,.15) 55%, rgba(20,22,14,.72) 100%);
}
.sb-hero--soft .sb-hero__shade { background: linear-gradient(180deg, rgba(20,22,14,.35) 0%, rgba(20,22,14,.3) 50%, rgba(20,22,14,.78) 100%); }
.sb-hero__inner { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 72px); color: #fff; }
.sb-hero__inner .sb-badge { margin-bottom: 18px; animation: sb-rise .8s .15s ease-out both; }
.sb-hero h1 {
  font-size: clamp(38px, 6.4vw, 84px); font-weight: 400; line-height: 1.02; color: #fff; max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.25); animation: sb-rise .9s .25s ease-out both;
}
.sb-hero__sub { font-size: clamp(17px, 1.8vw, 22px); margin-top: 14px; max-width: 46ch; color: rgba(255,255,255,.92); animation: sb-rise .9s .4s ease-out both; }
.sb a.sb-hero__count {
  position: absolute; right: var(--sb-gutter); bottom: clamp(36px, 7vh, 72px); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; border-bottom: 1.5px solid rgba(255,255,255,.6); padding-bottom: 4px;
}
@keyframes sb-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes sb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.sb-intro { background: var(--sb-cream); padding: clamp(48px, 7vw, 96px) 0; }
.sb-intro__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sb-intro h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.15; margin-bottom: 22px; color: var(--sb-olive-deep); }
.sb-intro__text p { font-size: 17px; line-height: 1.75; color: #3b3935; margin-bottom: 16px; }
.sb-facts { background: #fff; border-top: 4px solid var(--sb-green); padding: 0; border-radius: 0 0 4px 4px; box-shadow: 0 12px 30px -22px rgba(34,34,34,.4); }
.sb-facts h3 { font-size: 20px; font-weight: 400; margin: 0; }
.sb-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; }
.sb-facts dt, .sb-facts dd { padding: 11px 0; border-bottom: 1px solid var(--sb-sand); font-size: 15px; line-height: 1.45; }
.sb-facts dt { color: var(--sb-muted); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 14px; }
.sb-facts dd { color: var(--sb-ink); }
.sb a.sb-facts__plan {
  display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sb-olive); border-bottom: 1.5px solid var(--sb-green); padding-bottom: 3px;
}

.sb-photos { padding: clamp(48px, 7vw, 88px) 0; background: #fff; }
.sb-photos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sb-photos h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; color: var(--sb-olive-deep); }
.sb-photos__count { color: var(--sb-muted); font-size: 15px; }
.sb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sb .sb-grid button { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sb-sand); border-radius: 2px; }
.sb .sb-grid button:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.sb-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.sb .sb-grid button:hover img { transform: scale(1.035); }
.sb .sb-grid button[data-extra] { display: none; }
.sb .sb-grid.is-open button[data-extra] { display: block; }
.sb .sb-more {
  display: block; margin: 28px auto 0; padding: 15px 28px; border: 1.5px solid var(--sb-olive); color: var(--sb-olive);
  border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s;
}
.sb .sb-more:hover { background: var(--sb-olive); color: #fff; }
.sb-back { padding: 28px 16px 36px; }
.sb-back a { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-olive); }

.sb-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(16,17,12,.94); display: grid; place-items: center; }
.sb-lightbox[hidden] { display: none; }
.sb-lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sb .sb-lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .2s;
}
.sb .sb-lb-btn:hover { background: rgba(255,255,255,.2); }
.sb .sb-lb-btn svg { width: 22px; height: 22px; }
.sb .sb-lb-close { top: 18px; right: 18px; }
.sb .sb-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.sb .sb-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.sb-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sb-card { flex-basis: calc((100vw - 32px - 24px) / 2); }
  .sb-cta__inner, .sb-intro__grid { grid-template-columns: 1fr; }
  .sb-cta__actions { justify-self: start; }
}
@media (max-width: 640px) {
  .sb-card { flex-basis: 84vw; }
  .sb-track { gap: 14px; }
  .sb-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .sb .sb-grid button:nth-child(7n + 1) { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .sb a.sb-hero__count { display: none; }
  .sb-controls .sb-ctl { width: 42px; height: 42px; }
  .sb .sb-lb-prev, .sb .sb-lb-next { top: auto; bottom: 10px; transform: none; }
  .sb-hero { height: 78vh; }
  @supports (height: 1svh) { .sb-hero { height: 78svh; } }
}
@media (prefers-reduced-motion: reduce) {
  .sb *, .sb *::before, .sb *::after { animation: none !important; transition: none !important; }
  .sb-track { scroll-behavior: auto; }
}

/* The theme sets h1 font, size and line height with !important, so these need it too. */
.sb h1.sb-solds__title {
  font-family: var(--sb-serif) !important; font-size: clamp(40px, 5.5vw, 68px) !important; line-height: 0.95 !important;
  font-weight: 400 !important; color: var(--sb-olive-deep) !important;
  margin-bottom: 28px;
}
.sb .sb-hero h1 {
  font-family: var(--sb-serif) !important; font-size: clamp(38px, 6.4vw, 84px) !important; line-height: 1.02 !important;
  font-weight: 400 !important; color: #fff !important;
}
.sb ul.sb-list { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 2px; }
.sb ul.sb-list li { position: relative; padding: 9px 0 9px 26px; font-size: 16px; line-height: 1.5; color: #3b3935; border-bottom: 1px solid var(--sb-sand); list-style: none; margin: 0; }
.sb ul.sb-list li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--sb-green); }

/* Details card (collapsible) */
.sb-facts summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 28px; cursor: pointer; }
.sb-facts summary::-webkit-details-marker { display: none; }
.sb-facts summary svg { width: 20px; height: 20px; color: var(--sb-olive); transition: transform .25s ease; flex: none; }
.sb-facts[open] summary svg { transform: rotate(180deg); }
.sb-facts summary:hover h3 { color: var(--sb-olive); }
.sb-facts__body { padding: 0 28px 28px; }

/* Description: about one paragraph, then Read more */
.sb-desc { position: relative; max-height: calc(17px * 1.75 * 6); overflow: hidden; }
.sb-desc::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(245,243,239,0), var(--sb-cream)); }
.sb-desc.is-open { max-height: none; }
.sb-desc.is-open::after, .sb-desc.is-short::after { display: none; }
.sb .sb-readmore { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-olive); border-bottom: 1.5px solid var(--sb-green); padding-bottom: 3px; }
.sb .sb-readmore[hidden] { display: none; }
