/* CAD Design page — responsive styling based on the supplied TradeCVD reference */
.cad-page {
  --cad-green: #397b08;
  --cad-green2: #548d13;
  --cad-ink: #101820;
  --cad-muted: #53605b;
  --cad-line: #e4e9e5;
  color: var(--cad-ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}
.cad-page *,
.cad-page *::before,
.cad-page *::after {
  box-sizing: border-box;
}
.cad-page h1,
.cad-page h2,
.cad-page h3,
.cad-page p {
  margin: 0;
}
.cad-page a {
  text-decoration: none;
  color: inherit;
}
.cad-wrap {
  width: min(calc(100% - 48px), 1320px);
  margin-inline: auto;
}
.cad-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #f5f7f8 0%, #f5f7f8 40%, #eef2f4 100%);
  padding: 78px 0 24px;
}
.cad-hero-image {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: center;
}
.cad-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f5f7f8 0%,
    #f5f7f8 38%,
    rgba(245, 247, 248, 0.91) 44%,
    transparent 62%
  );
}
.cad-hero-copy {
  /*max-width: 560px;*/
  padding: 24px 0 24px 18px;
}
.cad-breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #edf4e8;
  color: #356216;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 14px;
  margin-bottom: 26px;
}
.cad-kicker {
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #202722;
}
.cad-kicker::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--cad-green);
  margin: 0 0 3px 18px;
}
.cad-hero h1 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -1.4px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cad-hero h1 em {
  font-style: normal;
  color: var(--cad-green);
}
.cad-hero p {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.5;
}
.cad-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--cad-green);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}
.cad-btn-primary {
  background: var(--cad-green);
  color: #fff !important;
}
.cad-btn-outline {
  background: #fff;
  color: #17211b;
}
.cad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #315d151a;
}
.cad-featurebar {
  background: #fff;
  border-block: 1px solid #edf0ed;
}
.cad-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 17px 0;
}
.cad-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid #dce4d9;
}
.cad-feature:last-child {
  border: 0;
}
.cad-feature svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--cad-green);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.cad-feature strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.cad-feature span {
  font-size: 13px;
}
.cad-portfolio {
  padding: 26px 0 30px;
}
.cad-section-title {
  text-align: center;
  margin-bottom: 24px;
}
.cad-section-title h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.cad-section-title h2::before,
.cad-section-title h2::after {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--cad-green);
}
.cad-section-title p {
  margin-top: 9px;
  color: #303a35;
  font-size: 15px;
}
.cad-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}
.cad-filter {
  border: 1px solid #dfe5e2;
  background: #fff;
  border-radius: 11px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #202824;
}
.cad-filter svg {
  width: 22px;
  height: 22px;
  stroke: var(--cad-green);
  fill: none;
  stroke-width: 1.7;
}
.cad-filter.active {
  background: var(--cad-green);
  border-color: var(--cad-green);
  color: white;
}
.cad-filter.active svg {
  stroke: #fff;
}
.cad-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cad-card {
  overflow: hidden;
  border: 1px solid #e2e7e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 4px #0c171008;
  transition: 0.2s;
}
.cad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px #0c171012;
}
.cad-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.cad-card-caption {
  text-align: center;
  padding: 10px 12px 13px;
}
.cad-card-caption h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.cad-tag {
  display: inline-block;
  border-radius: 18px;
  background: #eaf3e4;
  color: #285b0b;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
}
.cad-process {
  display: grid;
  grid-template-columns: 27% 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border-radius: 15px;
  background: #f5f8f1;
  margin: 10px auto 26px auto;
}
.cad-process-intro {
  border-right: 1px solid #7ea65c;
  padding-right: 22px;
}
.cad-process-intro h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  margin-bottom: 9px;
}
.cad-process-intro p {
  font-size: 15px;
  line-height: 1.45;
}
.cad-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cad-step {
  position: relative;
  text-align: center;
}
.cad-step svg {
  width: 52px;
  height: 52px;
  stroke: var(--cad-green);
  fill: none;
  stroke-width: 1.65;
  margin-bottom: 7px;
}
.cad-step h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.cad-step p {
  font-size: 13px;
  line-height: 1.4;
}
.cad-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 15px;
  color: var(--cad-green);
  font-size: 23px;
}
.cad-cta {
  /*display: grid;*/
  /*grid-template-columns: 25% 1fr auto;*/
  /*align-items: center;*/
  /*gap: 18px;*/
  /*overflow: hidden;*/
  border-radius: 14px;
  background: linear-gradient(110deg, #17432f, #0d3320);
  color: #fff;
  padding: 14px;
  margin:auto auto 20px;
}
.cad-cta img {
  height: 116px;
  width: 100%;
  object-fit: cover;
  object-position: left;
  mask-image: linear-gradient(90deg, #000 75%, transparent);
}
.cad-cta-copy h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  margin-bottom: 5px;
}
.cad-cta-copy p {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.cad-cta .cad-btn {
  background: #fff;
  color: #28610b !important;
  border-color: #fff;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .cad-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cad-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .cad-feature:nth-child(2) {
    border: 0;
  }
  .cad-process {
    grid-template-columns: 1fr;
  }
  .cad-process-intro {
    border: 0;
    border-bottom: 1px solid #a7c391;
    padding: 0 0 15px;
  }
  .cad-cta {
    grid-template-columns: 20% 1fr;
    gap: 12px;
    padding: 12px 16px;
  }
  .cad-cta img {
    grid-row: span 2;
  }
  .cad-cta .cad-btn {
    justify-self: start;
  }
}
@media (max-width: 700px) {
  .cad-wrap {
    width: calc(100% - 30px);
  }
  .cad-hero {
    padding-top: 76px;
    display: block;
  }
  .cad-hero-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    display: block;
  }
  .cad-hero::after {
    display: none;
  }
  .cad-hero-copy {
    padding: 18px 0 24px;
    max-width: none;
  }
  .cad-breadcrumb {
    margin-bottom: 16px;
  }
  .cad-hero h1 {
    font-size: 34px;
  }
  .cad-feature {
    padding: 0 7px;
    gap: 7px;
  }
  .cad-feature svg {
    width: 26px;
    height: 26px;
  }
  .cad-feature strong {
    font-size: 13px;
  }
  .cad-feature span {
    font-size: 11px;
  }
  .cad-features {
    gap: 12px 4px;
  }
  .cad-section-title h2 {
    gap: 10px;
  }
  .cad-section-title h2::before,
  .cad-section-title h2::after {
    width: 22px;
  }
  .cad-section-title p {
    font-size: 13px;
  }
  .cad-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .cad-filter {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .cad-gallery {
    gap: 9px;
  }
  .cad-card-caption h3 {
    font-size: 13px;
  }
  .cad-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  .cad-process {
    padding: 20px 15px;
  }
  .cad-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .cad-step:not(:last-child)::after {
    display: none;
  }
  .cad-cta {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .cad-cta img {
    display: none;
  }
  .cad-cta-copy p {
    margin-bottom: 12px;
  }
  .cad-cta .cad-btn {
    white-space: normal;
  }
}
