/* Case study pages — builds on styles.css */

body.case-study {
  background: #fff;
  color: #111;
}

/* hero */
.case-hero {
  background: #111;
  color: #fff;
  padding: 150px 0 70px;
}

.back-link {
  display: inline-block;
  color: #c1f8e9;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.back-link::before {
  content: "\2190  ";
}

.back-link:hover {
  color: #fff;
}

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00d93a;
  margin-bottom: 12px;
}

.case-hero h1 {
  font-family: "Ubuntu", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 20px;
}

.case-hero .lede {
  font-size: 19px;
  line-height: 1.65;
  color: #d4d4d4;
  max-width: 780px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #333;
}

.case-meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c1f8e9;
  margin-bottom: 6px;
}

.case-meta dd {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 6px;
  border: 2px solid #00aa2d;
  transition: all 0.3s ease-in-out;
}

.btn-solid {
  background: #00aa2d;
  color: #fff;
}

.btn-solid:hover {
  filter: brightness(1.1) drop-shadow(0 0 0.3rem #00aa2d);
}

.btn-ghost {
  color: #fff;
  border-color: #555;
}

.btn-ghost:hover {
  border-color: #00aa2d;
  color: #c1f8e9;
}

.btn[target="_blank"]::after {
  content: " \2197";
}

/* body */
.case-section {
  padding: 70px 0;
}

.case-section + .case-section {
  padding-top: 0;
}

.case-section .prose {
  max-width: 780px;
}

.case-section h2 {
  position: relative;
  font-family: "Ubuntu", sans-serif;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-left: 18px;
}

.case-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: #00aa2d;
}

.case-section p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 16px;
}

.case-section strong {
  color: #111;
}

.highlights {
  list-style: none;
  margin: 8px 0 0;
}

.highlights li {
  position: relative;
  font-size: 17px;
  line-height: 1.65;
  color: #333;
  padding-left: 32px;
  margin-bottom: 14px;
}

.highlights li::before {
  font: var(--fa-font-solid);
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 14px;
  color: #00aa2d;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 10px;
}

.split .panel {
  background: #f3f6f4;
  border-radius: 8px;
  padding: 24px 26px;
}

.split .panel h3 {
  font-family: "Ubuntu", sans-serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
}

.split .panel .highlights li {
  font-size: 16px;
  margin-bottom: 10px;
}

/* gallery */
.gallery {
  display: grid;
  gap: 50px;
}

.shot {
  margin: 0;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.3s ease;
}

.shot button:hover,
.shot button:focus-visible {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  outline: 3px solid #00aa2d;
  outline-offset: 3px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-top: 14px;
  max-width: 820px;
}

.shot figcaption b {
  color: #111;
  font-weight: 600;
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.shot.is-missing {
  display: none;
}

/* skills */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tags li {
  font-size: 14px;
  font-weight: 500;
  color: #007a20;
  background: #e8f7ec;
  border: 1px solid #bfe8ca;
  padding: 6px 14px;
  border-radius: 999px;
}

/* next project */
.next-project {
  display: block;
  background: #111;
  color: #fff;
  padding: 60px 0;
  transition: background 0.3s ease;
}

.next-project:hover {
  background: #0d1f14;
}

.next-project small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c1f8e9;
  margin-bottom: 8px;
}

.next-project span {
  font-family: "Ubuntu", sans-serif;
  font-size: 32px;
  font-weight: 500;
}

.next-project span::after {
  content: " \2192";
  color: #00d93a;
}

/* lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 94vh;
  margin: auto;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
}

.lightbox p {
  color: #ddd;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* footer on case study pages */
body.case-study footer h2 {
  font-family: "Ubuntu", sans-serif;
}

/* responsive */
@media (max-width: 947px) {
  .case-hero {
    padding: 120px 0 56px;
  }

  .case-hero h1 {
    font-size: 38px;
  }

  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .shot-row {
    grid-template-columns: 1fr;
  }

  .shot-row .shot:last-child {
    max-width: 360px;
  }
}

@media (max-width: 500px) {
  .case-hero h1 {
    font-size: 30px;
  }

  .case-hero .lede,
  .case-section p,
  .highlights li {
    font-size: 16px;
  }

  .case-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-section {
    padding: 50px 0;
  }

  .case-section h2 {
    font-size: 25px;
  }

  .next-project span {
    font-size: 24px;
  }
}
