/* CLW Fleet Africa — Projects Hub & Landing Pages (strictly scoped to .clw-proj-*) */
.clw-proj-hub,
.clw-proj-detail {
  background: #f7f6ef;
  color: #173b2c;
}

.clw-proj-wrap {
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
}

.clw-proj-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 13px;
  color: #53665b;
}

.clw-proj-crumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-proj-crumb a:hover {
  color: #0f3d2e;
}

/* Hub Hero */
.clw-proj-hero {
  background: linear-gradient(135deg, #0f3d2e 0%, #173b2c 58%, #102b22 100%);
  color: #f8f7f2;
  padding-block: clamp(42px, 5.5vw, 84px);
  border-bottom: 3px solid #e6aa00;
}

.clw-proj-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6aa00;
  margin-bottom: 14px;
}

.clw-proj-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  background: #e6aa00;
  flex: none;
}

.clw-proj-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
  color: #fff;
}

.clw-proj-hero-lead {
  margin-top: 18px;
  max-width: 66ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.7;
  color: #dce6e0;
}

.clw-proj-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.clw-proj-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #486b5c;
  background: #ffffff10;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.clw-proj-pill:hover {
  background: #e6aa00;
  border-color: #e6aa00;
  color: #10241b;
}

.clw-proj-pill--primary {
  background: #e6aa00;
  border-color: #e6aa00;
  color: #10241b;
  font-weight: 700;
}

.clw-proj-pill--primary:hover {
  background: #f2be2e;
  border-color: #f2be2e;
}

/* Hub Sections */
.clw-proj-section {
  padding-block: clamp(44px, 5vw, 76px);
}

.clw-proj-section--alt {
  background: #eef0e6;
  border-top: 1px solid #d9ddd0;
  border-bottom: 1px solid #d9ddd0;
}

.clw-proj-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 30px;
}

.clw-proj-section-head h2 {
  font-size: clamp(1.625rem, 2.7vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #102b22;
  margin: 0;
}

.clw-proj-section-head p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: #465b50;
  margin-top: 10px;
}

.clw-proj-kicker--dark {
  color: #8f5600;
}

.clw-proj-kicker--dark::before {
  background: #c98600;
}

/* Project Cards Grid */
.clw-proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.clw-proj-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.clw-proj-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.clw-proj-card:hover {
  border-color: #173b2c;
  box-shadow: 0 12px 28px #0f3d2e14;
  transform: translateY(-2px);
}

.clw-proj-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecefe8;
  border-bottom: 1px solid #e4e7de;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.clw-proj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact native-size constraint for lower-resolution historical photos */
.clw-proj-card-media--native {
  padding: 12px;
  background: #e8ece3;
}

.clw-proj-card-media--native img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.clw-proj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: #102b22e8;
  color: #f8f7f2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.clw-proj-badge--accent {
  background: #e6aa00;
  color: #10241b;
}

.clw-proj-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 20px;
}

.clw-proj-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f5600;
  margin-bottom: 10px;
}

.clw-proj-card h3 {
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #102b22;
  margin: 0 0 12px;
}

.clw-proj-card h3 a:hover {
  color: #0b5d3f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-proj-card-desc {
  font-size: 14px;
  line-height: 1.68;
  color: #495d52;
  margin: 0 0 16px;
}

.clw-proj-card-facts {
  margin: auto 0 16px;
  padding: 0;
  border-top: 1px solid #eceee7;
  font-size: 13px;
}

.clw-proj-card-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid #eceee7;
}

.clw-proj-card-facts dt {
  color: #5b6e63;
}

.clw-proj-card-facts dd {
  margin: 0;
  font-weight: 600;
  color: #173b2c;
  text-align: right;
}

.clw-proj-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f3d2e;
}

.clw-proj-card-link:hover {
  color: #8f5600;
}

/* Partnerships & KD Strip (Hub Section 3) */
.clw-proj-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.clw-proj-partner-card {
  background: #fff;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.clw-proj-partner-card--wide {
  grid-column: span 2;
}

.clw-proj-partner-card--full {
  grid-column: 1 / -1;
}

.clw-proj-partner-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #e4e7de;
}

.clw-proj-partner-photos--single {
  grid-template-columns: 1fr;
}

.clw-proj-partner-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ecefe8;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.clw-proj-partner-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.clw-proj-partner-photo-btn:hover img {
  transform: scale(1.03);
}

.clw-proj-partner-copy {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clw-proj-partner-copy h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: #102b22;
  margin: 0 0 10px;
}

.clw-proj-partner-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: #495d52;
  margin: 0 0 16px;
}

.clw-proj-partner-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0f3d2e;
}

.clw-proj-partner-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-proj-partner-links a:hover {
  color: #8f5600;
}

/* =========================================================
   Detail Landing Page
   ========================================================= */
.clw-proj-detail-header {
  padding: 24px 0 34px;
  border-bottom: 1px solid #dce0d4;
}

.clw-proj-detail-header h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24ch;
  color: #102b22;
  margin: 0;
}

.clw-proj-detail-deck {
  margin-top: 18px;
  max-width: 72ch;
  font-size: clamp(1rem, 1.35vw, 1.175rem);
  line-height: 1.68;
  color: #455a4f;
}

.clw-proj-facts-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d7dbd0;
  border-top: 3px solid #173b2c;
  border-radius: 3px;
}

.clw-proj-facts-bar div {
  min-width: 0;
}

.clw-proj-facts-bar dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #607468;
  margin-bottom: 4px;
}

.clw-proj-facts-bar dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #102b22;
  line-height: 1.4;
}

/* Detail Hero Stage — strictly enforces native pixel cap */
.clw-proj-hero-stage {
  margin-top: 30px;
}

.clw-proj-stage-frame {
  background: #e9ede4;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clw-proj-stage-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  max-width: 100%;
}

.clw-proj-stage-btn img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
}

.clw-proj-stage-cap {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #4f6358;
  text-align: center;
  max-width: 74ch;
}

/* Detail Two-Column Body */
.clw-proj-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  padding-block: 42px 54px;
  align-items: start;
}

.clw-proj-body {
  min-width: 0;
}

.clw-proj-body h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #102b22;
  margin: 36px 0 14px;
}

.clw-proj-body h2:first-child {
  margin-top: 0;
}

.clw-proj-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #2f4439;
  margin: 0 0 18px;
}

.clw-proj-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 22px;
  color: #2f4439;
}

.clw-proj-body li {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.clw-proj-body a {
  color: #0f3d2e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-proj-body a:hover {
  color: #8f5600;
}

/* Spec Table inside Body */
.clw-proj-table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  background: #fff;
}

.clw-proj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.clw-proj-table th,
.clw-proj-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e6e9e0;
  vertical-align: top;
}

.clw-proj-table tr:last-child th,
.clw-proj-table tr:last-child td {
  border-bottom: 0;
}

.clw-proj-table th {
  width: 34%;
  font-weight: 700;
  color: #102b22;
  background: #f2f4ec;
}

.clw-proj-table td {
  color: #2f4439;
  line-height: 1.65;
}

/* In-Body Photo Gallery */
.clw-proj-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.clw-proj-gallery--single {
  grid-template-columns: 1fr;
}

.clw-proj-gallery figure {
  background: #fff;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clw-proj-zoom {
  display: inline-flex;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  max-width: 100%;
}

.clw-proj-zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
}

.clw-proj-gallery figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #4f6358;
  width: 100%;
}

/* Detail Aside */
.clw-proj-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clw-proj-aside-box {
  background: #e8eddf;
  border: 1px solid #d2d9c9;
  border-top: 3px solid #e6aa00;
  border-radius: 4px;
  padding: 24px;
}

.clw-proj-aside-box h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  color: #102b22;
  margin: 0 0 12px;
}

.clw-proj-aside-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #3d5246;
  margin: 0 0 18px;
}

.clw-proj-aside-box .button {
  width: 100%;
  justify-content: space-between;
}

.clw-proj-aside-links {
  background: #fff;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  padding: 20px 22px;
}

.clw-proj-aside-links h3 {
  font-size: 1rem;
  color: #102b22;
  margin: 0 0 12px;
}

.clw-proj-aside-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clw-proj-aside-links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-block: 6px;
  border-top: 1px solid #eceee7;
  font-size: 14px;
  font-weight: 600;
  color: #173b2c;
}

.clw-proj-aside-links li a:hover {
  color: #8f5600;
}

/* Related Real Products Grid */
.clw-proj-related-section {
  background: #eef0e6;
  border-top: 1px solid #d9ddd0;
  border-bottom: 1px solid #d9ddd0;
  padding-block: clamp(40px, 5vw, 66px);
}

.clw-proj-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.clw-proj-prod-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #d7dbd0;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.clw-proj-prod-card:hover {
  border-color: #173b2c;
  box-shadow: 0 8px 20px #0f3d2e12;
}

.clw-proj-prod-photo {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid #eceee7;
  padding: 10px;
  display: grid;
  place-items: center;
}

.clw-proj-prod-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clw-proj-prod-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
}

.clw-proj-prod-copy h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: #102b22;
  margin: 0 0 10px;
}

.clw-proj-prod-price {
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  color: #0f3d2e;
  padding-bottom: 10px;
}

.clw-proj-prod-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eceee7;
  font-size: 13px;
  font-weight: 700;
  color: #173b2c;
}

/* Other Projects Navigation */
.clw-proj-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Inquiry Section */
.clw-proj-quote {
  padding-block: clamp(40px, 5vw, 68px);
}

.clw-proj-quote-inner {
  max-width: 980px;
  margin-inline: auto;
}

.clw-proj-quote-inner > h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #102b22;
  margin: 0 0 10px;
}

.clw-proj-quote-inner > p {
  font-size: 15px;
  color: #4a5e53;
  margin: 0 0 24px;
}

.clw-proj-quote .inquiry > h2 {
  display: none;
}

/* Accessible Lightbox Dialog */
.clw-proj-lightbox {
  max-width: min(94vw, 1340px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid #355245;
  border-radius: 6px;
  background: #0d1f18;
  color: #f5f6f0;
  overflow: hidden;
}

.clw-proj-lightbox::backdrop {
  background: #07120ee0;
}

.clw-proj-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #122920;
  border-bottom: 1px solid #244035;
}

.clw-proj-lb-count {
  font-size: 13px;
  font-weight: 600;
  color: #cfe0d6;
}

.clw-proj-lb-controls {
  display: flex;
  gap: 8px;
}

.clw-proj-lb-btn {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #3c5f50;
  border-radius: 3px;
  background: #173429;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.clw-proj-lb-btn:hover {
  background: #e6aa00;
  border-color: #e6aa00;
  color: #10241b;
}

.clw-proj-lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  max-height: calc(92vh - 68px);
  overflow: auto;
}

.clw-proj-lb-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 2px;
}

.clw-proj-lb-cap {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #dce6e0;
  text-align: center;
  max-width: 76ch;
}

@media (max-width: 1080px) {
  .clw-proj-grid--three,
  .clw-proj-partners-grid,
  .clw-proj-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clw-proj-partner-card--wide {
    grid-column: span 2;
  }
  .clw-proj-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clw-proj-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .clw-proj-aside {
    position: static;
  }
  .clw-proj-facts-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .clw-proj-wrap {
    width: calc(100% - 32px);
  }
  .clw-proj-grid,
  .clw-proj-grid--three,
  .clw-proj-partners-grid,
  .clw-proj-gallery,
  .clw-proj-prod-grid,
  .clw-proj-more-grid {
    grid-template-columns: 1fr;
  }
  .clw-proj-partner-card--wide {
    grid-column: auto;
  }
  .clw-proj-partner-photos {
    grid-template-columns: 1fr;
  }
  .clw-proj-facts-bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .clw-proj-table th {
    width: 40%;
  }
}
