/* Case Study Nav Override */
.nav {
  padding: 32px 48px;
}

.nav__logo {
  filter: brightness(0) invert(1);
}

.nav__name,
.nav__link,
.nav__cta {
  color: white;
}

.nav--scrolled .nav__logo {
  filter: none;
}

.nav__link:hover,
.nav__cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav--scrolled .nav__name,
.nav--scrolled .nav__link,
.nav--scrolled .nav__cta {
  color: #111;
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__cta:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Case Study Pages */
.cs-hero {
  background-color: #252b3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 560px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.cs-hero .container {
  position: relative;
  z-index: 1;
}

.cs-hero__inner {
  display: flex;
  align-items: center;
}

.cs-hero__text {
  text-align: left;
  flex: 1;
  padding-left: 40px;
  padding-right: 120px;
}

.cs-hero__label {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.cs-hero__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: white;
  max-width: 500px;
  margin: 0 0 20px;
}

.cs-hero__category {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  font-weight: 400;
}

.cs-hero__mockup {
  position: absolute;
  right: 15%;
  top: 65%;
  transform: translateY(-30%);
  z-index: 0;
}

.cs-hero__mockup img {
  width: 240px;
  height: auto;
}

.cs-hero__mockup--wide img {
  width: 380px;
}

/* Overview Section */
.cs-overview {
  background-color: white;
  padding: 140px 0 80px;
}

.cs-overview__title-section {
  margin-bottom: 30px;
}

.cs-overview__label {
  color: var(--gray);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.cs-overview__grid {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 30px;
}

.cs-overview__description {
  color: var(--black);
  line-height: 1.7;
}

.cs-overview__meta-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.cs-overview__meta-value {
  color: var(--gray);
  line-height: 1.7;
}

/* Body Content */
.cs-body {
  padding: 60px 0;
}

.cs-body__content {
  max-width: var(--max-width-xs);
  margin: 0 auto;
  padding: 0 48px;
}

.cs-body__section-label {
  color: var(--gray);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-top: 80px;
  margin-bottom: 8px;
}

.cs-body__section-label:first-child {
  margin-top: 0;
}

.cs-body h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-top: 10px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.cs-body h4 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-top: 40px;
  margin-bottom: 14px;
}

.cs-body p {
  color: var(--gray);
  margin-top: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 17px;
}

.cs-body ul,
.cs-body ol {
  color: var(--gray);
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}

.cs-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.cs-body a {
  color: var(--black);
  text-decoration: underline;
}

.cs-body a:hover {
  opacity: 0.7;
}

.cs-body img {
  border-radius: 4px;
  margin: 30px 0;
  width: 100%;
}

.cs-body img.float-left {
  float: left;
  width: 50%;
  margin: 10px 30px 20px 0;
}

.cs-body img.float-right {
  float: right;
  width: 50%;
  margin: 10px 0 20px 30px;
}

.cs-body .clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.cs-body blockquote {
  border-left: 3px solid var(--black);
  padding-left: 20px;
  margin: 30px 0;
  color: var(--gray);
  font-style: italic;
}

/* Video embed */
.cs-video {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin: 30px 0;
}

.cs-video video {
  width: 100%;
  display: block;
}

.cs-video--phone {
  border-radius: 8px;
  background: #f0f4fb;
  padding: 40px 0;
}

.cs-video--phone video {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 30px;
  clip-path: inset(4px);
}

.cs-video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
  background: #f0f4fb;
  padding: 40px;
  border-radius: 4px;
}

.cs-video-row h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Back link */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
  text-decoration: none;
}

.cs-back:hover {
  color: var(--black);
}

/* Responsive */
@media (max-width: 991px) {
  .cs-overview__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-hero__title {
    font-size: 28px;
  }

  .cs-hero {
    height: auto;
    min-height: 300px;
    max-height: none;
    padding: 60px 0;
  }

  .cs-hero__text {
    text-align: center;
    max-width: 100%;
    padding-left: 0;
  }

  .cs-hero__title {
    margin: 0 auto 12px;
    max-width: 100%;
  }

  .cs-hero__mockup {
    display: none;
  }

  .cs-body__content {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .cs-hero {
    padding: 60px 0;
  }

  .cs-hero__title {
    font-size: 24px;
  }

  .cs-video-row {
    grid-template-columns: 1fr;
  }
}
