/* Custom development page only — image-led sales page */

/* ---------- hero on image ---------- */

.cd-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(72vh, 620px);
  overflow: hidden;
  background: #1c1714;
}

.cd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 42%;
}

.cd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 11, 0.88), rgba(18, 14, 11, 0.46) 46%, rgba(18, 14, 11, 0.1));
}

.cd-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(30px, 4.4vw, 54px);
  color: #fff;
}

.cd-hero .eyebrow { color: rgba(255, 255, 255, 0.72); }

.cd-hero h1 {
  max-width: 22ch;
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cd-hero-lede {
  max-width: 48ch;
  margin: 18px 0 0;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
}

.cd-hero-actions { margin-top: 26px; }

.cd-hero .btn {
  color: #231b16;
  background: #fff;
  border-color: #fff;
}

.cd-hero .btn:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.cd-hero .btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.cd-hero .btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.cd-hero-caption {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
  .cd-hero { min-height: 64vh; }
  .cd-hero h1 br { display: none; }
}

/* ---------- start matrix: one large, two small, one tall ---------- */

.cd-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.cd-start-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.cd-start-tile img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.cd-start-a { grid-column: 1 / -1; }
.cd-start-a img { aspect-ratio: 21 / 9; }

.cd-start-b img,
.cd-start-c img,
.cd-start-d img { aspect-ratio: 4 / 3; }

.cd-start-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.cd-start-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 860px) {
  .cd-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-start-d { grid-column: span 2; }
  .cd-start-d img { aspect-ratio: 21 / 9; }
}

@media (max-width: 560px) {
  .cd-start-grid { grid-template-columns: minmax(0, 1fr); }
  .cd-start-d { grid-column: auto; }
  .cd-start-d img { aspect-ratio: 4 / 3; }
}

/* ---------- design-restoration comparison ---------- */

.cd-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.cd-compare-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.cd-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cd-slot--filled {
  padding: 0;
  border-style: solid;
  background: var(--surface);
  overflow: hidden;
}

.cd-slot--filled img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-slot-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.cd-slot-note { font-size: 12px; line-height: 1.6; }

.cd-compare-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.cd-compare-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.cd-compare-foot {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 760px) {
  .cd-compare { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- capability rows: alternating image and text ---------- */

.cd-cap-list {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.2vw, 40px);
}

.cd-cap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3.6vw, 52px);
  align-items: center;
}

.cd-cap:nth-child(even) .cd-cap-media { order: 2; }

.cd-cap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.cd-cap-no {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.cd-cap-body h3 {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.cd-cap-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 42ch;
}

@media (max-width: 760px) {
  .cd-cap { grid-template-columns: minmax(0, 1fr); }
  .cd-cap:nth-child(even) .cd-cap-media { order: 0; }
}

/* ---------- three production checks inside the capability section ---------- */

.cd-checkband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.cd-checkband img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}

.cd-checks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cd-checks li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cd-checks .cd-check-no {
  padding-top: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brand-strong);
}

.cd-checks strong { font-size: 1rem; font-weight: 600; }

.cd-checks p {
  grid-column: 2;
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 860px) {
  .cd-checkband { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- five-step cooperation flow ---------- */

.cd-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cd-steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cd-steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.cd-step-no {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brand-strong);
}

.cd-steps h3 { font-size: 1.02rem; }

.cd-step-facts { margin: 0; }

.cd-step-facts dt {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-step-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 1000px) {
  .cd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-steps li:first-child { padding-left: 18px; border-left: 1px solid var(--line); }
  .cd-steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .cd-steps { grid-template-columns: minmax(0, 1fr); }
  .cd-steps li,
  .cd-steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- project evidence: one large, two stacked ---------- */

.cd-proj-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  height: clamp(340px, 40vw, 520px);
}

.cd-proj {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--surface);
  border-radius: var(--radius);
}

.cd-proj-main { grid-row: span 2; }

.cd-proj img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cd-proj::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 17, 13, 0.82), rgba(24, 17, 13, 0.2) 58%, rgba(24, 17, 13, 0));
}

.cd-proj:hover { color: #fff; }
.cd-proj:hover img { transform: scale(1.03); }

.cd-proj-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
}

.cd-proj-name { font-size: 1.02rem; font-weight: 600; }
.cd-proj-note { font-size: 12.5px; line-height: 1.5; opacity: 0.86; }

.cd-proj-tag {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
}

@media (max-width: 760px) {
  .cd-proj-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    height: auto;
  }
  .cd-proj { aspect-ratio: 16 / 9; }
  .cd-proj-main { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- wide workshop figure + three facts ---------- */

.cd-wide { margin: 0 0 clamp(26px, 3.4vw, 40px); }

.cd-wide img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.cd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cd-fact h3 { margin-bottom: 8px; font-size: 1rem; }

.cd-fact p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 760px) {
  .cd-wide img { aspect-ratio: 4 / 3; }
  .cd-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- contact block ---------- */

.cd-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.cd-contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cd-contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cd-contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-contact-value { font-size: 15px; }

.cd-contact-item:hover .cd-contact-value { color: var(--brand-strong); }

@media (max-width: 760px) {
  .cd-contact { grid-template-columns: minmax(0, 1fr); }
}
