/* Case Study Pages — builds on top of styles.css design tokens */

/* --- Body --- */
.caseStudyBody {
  background: var(--white);
}

/* --- Title strip (page hero) --- */
.titlePart {
  background: var(--black);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 72px 5% 56px;
  text-align: center;
}

.titlePart h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: none;
  color: var(--white);
  line-height: 1;
}

/* --- Main two-column layout --- */
.mainCaseStudy {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 5% 96px;
  width: 100%;
}

/* --- Left column: sticky text content --- */
.leftFloat {
  position: sticky;
  top: 110px;
  align-self: start;   /* explicit — prevents grid stretch that breaks sticky */
  width: auto;
  padding-right: 0;
  margin: 0;
}

.backToHome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.875rem/1 var(--ff-body);
  color: var(--blue);
  text-decoration: none;
  border-bottom: none;
  margin-bottom: 40px;
}

.backToHome:hover { text-decoration: underline; }

.paragraphBlock {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.paragraphBlock:last-of-type { border-bottom: none; }
.paragraphBlock1 { padding-top: 0; }

.leftFloat h2 {
  font: 700 1.4rem/1.2 var(--ff-body);
  color: var(--black);
}

.leftFloat h3 {
  font: 700 1.1rem/1.2 var(--ff-body);
  color: var(--black);
}

.paragraphBlock p,
.backToHome {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.paragraphBlockMore p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}

/* Client rating stars */
.clientRating {
  padding-top: 0;
  color: var(--orange);
  font-size: 1.35rem;
  letter-spacing: 3px;
}


/* --- Right column: scrolls naturally past sticky left text --- */
.rightImage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.rightImageFile {
  width: 100%;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: block;
}

/* Hide old wave divider section */
.contactPageDividor { display: none; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .mainCaseStudy {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 64px;
  }
  .leftFloat { position: static; }
  .rightImage {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .titlePart { padding: 48px 20px 36px; }
  .mainCaseStudy { padding: 40px 20px 56px; }
}
