/* =============================================
   VOLT DESIGN SYSTEM — PAGE-SPECIFIC STYLES
   ============================================= */

/* ---- Color Variables ---- */
.case-study--volt {
  --cs-900: #092d2e;
  --cs-800: #114335;
  --cs-200: #f5f5f5;
  --cs-100: #f1f1f1;
  --cs-000: #ffffff;
  --cs-600: #b4c0bc;
  --cs-400: #2caa7c;
  --volt-icon-bg: #f4f5f6;
  --volt-icon-border: #e8ebed;
  overflow-x: hidden;
}

/* ---- Nav Colors ---- */
.case-study--volt .nav .nav-link {
  color: var(--david-400);
}

.case-study--volt .nav .nav-link:hover {
  background: var(--david-400);
  color: var(--david-000);
}

/* ---- Hero ---- */
.cs-hero--volt {
  background-image: url("../assets/projects/david-energy-ds/Image 00.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.cs-hero--volt .cs-meta-item,
.cs-hero--volt .cs-meta-item a {
  color: var(--cs-200);
}

.cs-hero--volt .cs-meta-item a {
  text-decoration: underline;
}

.cs-hero--volt .cs-meta-divider {
  border-top-color: rgba(255, 255, 255, 0.3);
}

/* ---- Section Variants ---- */
.cs-section-dark--bordered {
  border-top: 0;
  border-bottom: 0;
}

.volt-section-content {
  gap: 72px;
  background: var(--david-200);
  padding-bottom: 24px;
}

/* ---- Two Column Variants ---- */
.cs-two-col--top {
  align-items: flex-start;
}

.cs-col-left--wide,
.cs-col-right--wide {
  flex: 1;
  max-width: 604px;
}

.cs-col-left--wide .cs-heading,
.cs-col-right--wide .cs-heading {
  color: var(--cs-900);
}

.case-study--volt .cs-col-right--wide,
.case-study--volt .cs-col-left--wide {
  gap: 16px;
}

/* ---- Image Box Variants ---- */
.cs-image-box--wide {
  width: 100%;
  border-radius: 4px;
  border: 0;
}

.case-study--volt .cs-image-box,
.case-study--volt .cs-image-box::after {
  border-radius: 6px;
}

.case-study--volt .cs-images-row {
  padding: 0;
}

/* =============================================
   PRINCIPLES GRID
   ============================================= */
.volt-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 32px;
}

.volt-principle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cs-900);
}

.cs-section-dark .volt-principle {
  color: var(--cs-200);
}

/* =============================================
   ICONOGRAPHY
   ============================================= */
.volt-icons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.volt-icon-box,
.volt-illustration-box {
  background: var(--volt-icon-bg);
  border: 1px solid var(--volt-icon-border);
  border-radius: 6px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.volt-illustration-box {
  flex: 1;
  border-radius: 8px;
}

.volt-icon-box img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.volt-illustration-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.volt-illustrations-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.volt-typography-showcase {
  display: flex;
  gap: 64px;
  margin-top: 32px;
  align-items: flex-start;
}

.volt-font-sample {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.volt-typography-card {
  background: var(--david-100);
  padding: 32px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 352px;
  max-height: 352px;
  overflow: hidden;
  border: 1px solid var(--cs-900-05);
  box-sizing: border-box;
}

.volt-typography-card img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.volt-typography-card--base {
  width: fit-content;
  justify-self: start;
}

.volt-typography-card--align-right {
  width: 100%;
}

/* Image swap for responsive */
.volt-typography-card .volt-img-mobile {
  display: none;
}

/* =============================================
   FULL BLEED IMAGES
   ============================================= */
.volt-full-bleed {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

.volt-full-bleed .cs-image-box,
.volt-full-bleed .cs-image-box::after,
.volt-full-bleed .volt-image-plain,
.volt-full-bleed .volt-image-plain::after,
.volt-full-bleed img {
  border-radius: 0;
}

.volt-full-bleed .cs-image-box,
.volt-full-bleed .cs-image-box--full {
  width: 100%;
}

.volt-full-bleed .cs-image-box--full {
  height: auto;
  aspect-ratio: auto;
}

.volt-full-bleed img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.volt-image-plain {
  border-radius: 6px;
}

.volt-image-plain::after {
  border: 0;
  border-radius: 6px;
}

/* =============================================
   GALLERY
   ============================================= */
.volt-gallery .cs-images-row {
  padding: 0 32px;
}

.volt-gallery .volt-full-bleed {
  padding: 0;
}

/* =============================================
   IMPACT SECTION
   ============================================= */
.case-study--volt .cs-impact-section {
  background: var(--cs-100);
  border-top: 0;
  border-bottom: 0;
}

.case-study--volt .cs-impact-section .header-3,
.case-study--volt .cs-impact-section .subtitle-2,
.case-study--volt .cs-impact-section .body-3,
.case-study--volt .cs-impact-section .header-4 {
  color: var(--cs-900) !important;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1239px) {
  .volt-principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .volt-icons-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .volt-icon-box {
    height: 120px;
  }

  .volt-icon-box img {
    width: 48px;
    height: 48px;
  }

  .volt-illustration-box {
    height: 120px;
  }

  .volt-illustrations-row {
    gap: 16px;
    margin-top: 16px;
  }

  .volt-typography-showcase {
    gap: 32px;
  }

  .volt-typography-card {
    height: 284px;
    max-height: 284px;
  }

  /* Keep challenge/solution side-by-side on tablet */
  .case-study--volt .cs-two-col--top {
    flex-direction: row;
    gap: 48px;
  }

  .case-study--volt .cs-col-left--wide,
  .case-study--volt .cs-col-right--wide {
    max-width: 50%;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 767px) {
  .cs-hero--volt {
    background-image: url("../assets/projects/david-energy-ds/Image 00-mobile.jpg");
  }

  .case-study--volt .cs-two-col--top {
    flex-direction: column;
    gap: 32px;
  }

  .case-study--volt .cs-col-left--wide,
  .case-study--volt .cs-col-right--wide {
    max-width: 100%;
  }

  .volt-principles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .volt-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .volt-icon-box {
    height: 100px;
    padding: 16px;
  }

  .volt-icon-box img {
    width: 40px;
    height: 40px;
  }

  .volt-illustrations-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .volt-illustration-box {
    height: 100px;
  }

  .volt-typography-showcase {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .volt-font-sample {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .volt-typography-card {
    height: 200px;
    max-height: 200px;
    padding: 16px;
  }

  .volt-typography-card--base {
    width: 100%;
  }

  .volt-typography-card--align-right {
    min-height: 240px;
    height: auto;
    max-height: 320px;
  }

  .volt-typography-card .volt-img-desktop {
    display: none;
  }

  .volt-typography-card .volt-img-mobile {
    display: block;
  }

  .volt-gallery .cs-images-row {
    padding: 0 20px;
  }

  .volt-gallery .volt-full-bleed {
    padding: 0;
  }
}
