/* Project catalog and photographic finish selector. */
.cd-section {
  --cd-ink: #0e250f;
  --cd-muted: #5b5757;
  --cd-rule: #d9e2d8;
  --cd-accent: #306e30;
  padding-block: clamp(64px, 7vw, 110px);
  color: var(--cd-ink);
}
.cd-about { background: #fff; }
.cd-services { background: #f7f9f6; }
.cd-section h2, .cd-quote h2 {
  margin: 0;
  font-size: clamp(32px, 3.7vw, 60px);
  line-height: 1.43;
  letter-spacing: -.035em;
  font-weight: 750;
}
.cd-section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: clamp(28px, 7vw, 104px);
  margin-bottom: clamp(24px, 3.3vw, 49px);
}
.cd-section-head > p, .cd-material-copy > p:not(.cd-kicker), .cd-quote p {
  margin: 0;
  color: var(--cd-muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.95;
}
.cd-section .cd-kicker {
  margin: 0 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cd-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.cd-kicker::before {
  content: "";
  width: 25px;
  height: 5px;
  border-block: 1px solid currentColor;
  transform: skewX(-25deg);
}
.cd-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 30px);
}
.cd-value { padding: 14px 4px; text-align: center; }
.cd-value p { max-width: 28ch; margin-inline: auto; }
.cd-value-frame {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: clamp(76px, 6.6vw, 110px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  color: #fff;
  border-radius: 22%;
  background: linear-gradient(145deg, #bad432 0%, #8dbf36 42%, #3a8e3c 100%);
  box-shadow: 5px 5px 0 -2px #fff, 5px 5px 0 0 #bad432;
}
.cd-value-frame::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1.5px solid #fff;
  border-radius: 20%;
}
.cd-value .cd-value-icon {
  display: block;
  width: 61%;
  height: 61%;
  fill: none;
  stroke: white;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd-icon-wash { fill: #0e250f30; stroke: none; }
.cd-icon-detail { stroke: #0e250f; stroke-width: 1.9; }
.cd-value h3, .cd-service h3, .cd-finish-view h3, .cd-additions h3 {
  margin: 0;
  color: inherit;
  line-height: 1.55;
  letter-spacing: -.018em;
}
.cd-value h3 { font-size: clamp(17px, 1.34vw, 23px); }
.cd-value p, .cd-service-copy > p, .cd-finish-view p {
  margin: 6px 0 0;
  color: var(--cd-muted);
  line-height: 1.85;
  font-size: 15px;
}

.cd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
}
.cd-service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e2d8;
  border-radius: 16px;
  background: white;
}
.cd-service-photo {
  aspect-ratio: 1.89;
  overflow: hidden;
  background: #222222;
}
.cd-service-photo img, .cd-finish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-service:nth-child(1) .cd-service-photo img { object-position: center 40%; }
.cd-service:nth-child(2) .cd-service-photo img { object-position: center 35%; }
.cd-service-copy {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: 28px clamp(17px, 2vw, 30px) 17px;
}
.cd-service-symbol {
  position: absolute;
  inset-inline-start: clamp(17px, 2vw, 30px);
  top: -26px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 12px;
  color: #0e250f;
  background: #bad432;
}
.cd-service-symbol svg { width: 25px; height: 25px; stroke-width: 1.45; }
.cd-service h3 { font-size: clamp(23px, 2vw, 32px); }
.cd-service-copy > p { margin-block: 5px 12px; }
.cd-service ul {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0 0 21px;
  list-style: none;
  color: #0e250f;
  font-size: 14px;
  font-weight: 550;
}
.cd-service li { display: flex; align-items: start; gap: 7px; }
.cd-service li svg {
  width: 15px;
  height: 15px;
  margin-block-start: .35em;
  color: #3a8e3c;
  stroke-width: 1.9;
}
.cd-service-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border-radius: 99px;
  padding: 8px 18px;
  color: #0e250f;
  background: #bad432;
  font-weight: 700;
  font-size: 14px;
}
.cd-service-link svg { width: 15px; height: 15px; }
.cd-service a:hover { color: white; background: #0e250f; }
.cd-additions a:hover, .cd-finish-view a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.cd-additions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 23px;
  margin-top: 17px;
  padding: 15px clamp(17px, 2vw, 30px);
  background: #eff5ef;
  color: #0e250f;
  border-radius: 16px;
}
.cd-additions h3 { margin-inline-end: auto; font-size: 17px; }
.cd-additions a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.cd-additions svg { width: 20px; height: 20px; color: #3a8e3c; }

.cd-materials { background: linear-gradient(135deg, #fff, #eff5ef); }
.cd-material-picker {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(36px, 7vw, 102px);
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
}
.cd-finish-input, .cd-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cd-material-copy h2 { margin-bottom: 15px; }
.cd-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 350px;
  margin-top: 23px;
}
.cd-swatch {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid #c4d1c3;
  border-radius: 24px;
  background: #ffffff;
  cursor: pointer;
  font-size: 15px;
  color: #0e250f;
}
.cd-swatch i {
  width: 25px;
  height: 25px;
  border: 1px solid #0003;
  border-radius: 50%;
  background: var(--sample);
}
.cd-swatch:hover { background: #fff; }
#cd-finish-graphite:checked ~ .cd-material-copy [for="cd-finish-graphite"],
#cd-finish-sky:checked ~ .cd-material-copy [for="cd-finish-sky"],
#cd-finish-amber:checked ~ .cd-material-copy [for="cd-finish-amber"],
#cd-finish-green:checked ~ .cd-material-copy [for="cd-finish-green"] {
  border-color: #0e250f;
  box-shadow: inset 0 0 0 1px #0e250f;
  background: #ffffff;
  font-weight: 750;
}
#cd-finish-graphite:focus-visible ~ .cd-material-copy [for="cd-finish-graphite"],
#cd-finish-sky:focus-visible ~ .cd-material-copy [for="cd-finish-sky"],
#cd-finish-amber:focus-visible ~ .cd-material-copy [for="cd-finish-amber"],
#cd-finish-green:focus-visible ~ .cd-material-copy [for="cd-finish-green"] { outline: 3px solid #3a8e3c; outline-offset: 2px; }
.cd-finish-stage { min-width: 0; }
.cd-finish-view { display: none; margin: 0; }
#cd-finish-graphite:checked ~ .cd-finish-stage #cd-view-graphite,
#cd-finish-sky:checked ~ .cd-finish-stage #cd-view-sky,
#cd-finish-amber:checked ~ .cd-finish-stage #cd-view-amber,
#cd-finish-green:checked ~ .cd-finish-stage #cd-view-green { display: block; }
.cd-finish-photo {
  aspect-ratio: 1.91;
  background: #222222;
  border-radius: 16px;
  overflow: hidden;
}
.cd-finish-photo img { object-position: center 46%; }
.cd-finish-view figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
}
.cd-finish-view h3 { font-size: 19px; }
.cd-finish-view p { margin-top: 2px; font-size: 14px; }
.cd-finish-view a { color: #306e30; font-weight: 700; font-size: 14px; white-space: nowrap; padding: 4px; }

.cd-quote {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(35px, 5vw, 69px);
  background: #222222;
  color: #ffffff;
}
.cd-quote::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background:
    linear-gradient(105deg, #222222 15%, #22222200 58%),
    repeating-linear-gradient(-23deg, transparent 0 48px, #bad43235 48px 49px, transparent 49px 94px);
}
.cd-quote-inner, .cd-quote-actions { display: flex; align-items: center; }
.cd-quote-inner { gap: 25px 50px; justify-content: space-between; }
.cd-quote h2 { font-size: clamp(28px, 2.9vw, 44px); }
.cd-quote p { color: #e6ede5; margin-top: 5px; font-size: 16px; }
.cd-quote-actions { gap: 9px; flex-shrink: 0; flex-wrap: wrap; }
.cd-quote .btn-green { background: #bad432; color: #0e250f; border: 1px solid #bad432; }
.cd-quote .btn-line { background: #0e250f; border: 1px solid #bad432; color: #fff; }
.cd-quote .btn { border-radius: 99px; }
.cd-quote .btn:hover { background: #fff; border-color: #fff; color: #0e250f; }

@media (max-width: 980px) {
  .cd-value { padding-inline: 13px; }
  .cd-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cd-service-grid .cd-service:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cd-service-grid .cd-service:last-child .cd-service-photo { height: 100%; aspect-ratio: auto; }
  .cd-service-grid .cd-service:last-child .cd-service-symbol { position: static; margin-bottom: 7px; }
  .cd-quote-inner { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .cd-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-material-picker { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cd-material-copy h2 br { display: none; }
  .cd-swatches { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 500px; }
  .cd-section-head { gap: 18px 30px; }
}
@media (max-width: 680px) {
  .cd-section-head, .cd-service-grid { grid-template-columns: minmax(0,1fr); }
  .cd-section-head { align-items: start; }
  .cd-service-grid .cd-service:last-child { display: flex; }
  .cd-service-grid .cd-service:last-child .cd-service-photo { height: auto; aspect-ratio: 1.89; }
  .cd-service-grid .cd-service:last-child .cd-service-symbol { position: absolute; margin: 0; }
  .cd-service-grid { gap: 17px; }
  .cd-additions { display: grid; gap: 8px; }
  .cd-additions a { min-height: 40px; }
  .cd-swatches { gap: 6px; }
  .cd-swatch { gap: 5px; flex-direction: column; justify-content: center; padding: 8px 3px; font-size: 14px; }
  .cd-swatch i { width: 33px; height: 22px; }
  .cd-value p { font-size: 14px; }
  .cd-quote-inner { align-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .cd-service-symbol, .cd-swatch { transition: background .18s ease, color .18s ease; }
  .cd-service:focus-within .cd-service-symbol { color: #bad432; background: #0e250f; }
  .cd-finish-view { animation: cd-develop .28s ease-out; }
  @keyframes cd-develop { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}
