/* ==========================================================================
   Case Study pages — l-case-* components
   Mobile-first. Desktop overrides via @media (min-width: ...).
   Uses design tokens from style.css (:root variables).
   ========================================================================== */

/* ---- Hero ---- */

.l-case-hero {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  margin-top: 2rem;
}

/* H1: 36px @ ≤430 → 72px @ ≥1024 */
.l-case-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6.06vw + 0.62rem, 4.5rem);
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
  padding: 0 1rem;
}

/* Lead + pull-quote shared scale: 20 → 32px at ≥1333px */
.l-case-hero__lead,
.l-case-quote__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.07125rem;
  color: var(--color-text);
  margin: 0;
}

.l-case-hero__lead {
  padding: 1.5rem 1rem;
  max-width: calc(67rem + 2rem); /* 1072px content + 2×1rem padding */
}

/* Hero image: aspect-ratio drives height across all viewports */
.l-case-hero__image-wrap {
  padding: 0;
}

/* Natural aspect ratio: HTML width/height attrs reserve space, no forced crop */
.l-case-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Content container
   ========================================================================== */

.l-case-content {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding: 0 1rem;
}

/* ---- Two-column row ----
   Mobile: stacked. Desktop ≥768px: 40/60 grid */

.l-case-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}

.l-case-row__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.l-case-row__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Uppercase labels (shared) */
.l-case-label,
.l-case-gallery__title,
.l-case-swiper__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin: 0;
}

.l-case-body-lead {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem; /* mobile: base */
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.l-case-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem; /* mobile: base */
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

/* Numbered list */
.l-case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.l-case-list__item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.875rem 0;
  border-top: 1px solid #d4d4d4;
}

.l-case-list__num {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #a3a3a3;
  flex-shrink: 0;
  min-width: 1.75rem;
}

.l-case-list__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ---- Pull quote ---- */
.l-case-quote {
  padding: 2rem 0;
}

.l-case-quote__text {
  max-width: 67rem; /* matches lead content width on desktop */
}

.l-case-quote__muted {
  color: #a3a3a3;
}

/* ---- Full-bleed image ---- */
.l-case-fullbleed {
  margin: 0 -1rem; /* cancel parent padding */
}

.l-case-fullbleed__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Standalone media block (in-flow image, no break-out) ---- */
.l-case-media {
  margin: 2rem 0;
}

.l-case-media__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Stacked image grid (e.g. mood gallery / collateral) ---- */
.l-case-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin: 2rem 0;
}

.l-case-stack__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Final section — labels left / content right
   Mobile: stacked. Desktop ≥768px: 40/60 grid
   ========================================================================== */

.l-case-final {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

.l-case-final > .l-case-label {
  margin-bottom: 0.5rem;
}

.l-case-final__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.l-case-final__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Credentials list */
.l-case-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.l-case-meta__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid #d4d4d4;
}

.l-case-meta__label,
.l-case-meta__value {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.l-case-meta__label {
  color: #a3a3a3;
  font-weight: 700;
  flex-shrink: 0;
}

.l-case-meta__value {
  color: var(--color-text);
  font-weight: 400;
  text-align: right;
}

/* ==========================================================================
   Wedding/photo gallery (Swiper)
   ========================================================================== */

.l-case-gallery {
  padding: 2rem 0;
  margin-right: -1rem; /* mobile: break out right edge for peek */
}

.l-case-gallery__title {
  margin-bottom: 1.5rem;
}

.l-case-gallery__swiper {
  overflow: visible;
}

.l-case-gallery__swiper .swiper-slide {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f0f0f0;
  height: auto;
}

.l-case-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Featured projects swiper
   ========================================================================== */

.l-case-swiper {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 1rem;
  margin-right: -1rem; /* peek extends to viewport edge */
}

.l-case-swiper__header {
  padding-bottom: 1.5rem;
}

.l-case-swiper__title {
  color: #7b7b7b;
}

.l-case-swiper__container {
  width: 100%;
  overflow: visible;
}

.l-case-swiper__container .swiper-slide {
  height: auto;
}

.l-case-swiper__container .c-project-card {
  width: 100%;
}

/* ==========================================================================
   Tablet ≥ 640px: slight typography bump
   ========================================================================== */

@media (min-width: 40rem) {
  .l-case-body-lead,
  .l-case-body,
  .l-case-list__num,
  .l-case-list__text {
    font-size: 1.25rem; /* 20px on tablet+ */
  }
}

/* ==========================================================================
   Desktop ≥ 768px: two-column rows, larger paddings
   ========================================================================== */

@media (min-width: 48rem) {
  .l-case-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2rem;
    padding: 3rem 0;
  }

  .l-case-row__right {
    margin-left: 2.5rem;
    /* Align top of right column with .l-case-body-lead on the left.
       Label line-height (1.22em) + row gap (1.5rem). */
    padding-top: calc(1.22rem + 1.5rem);
  }

  .l-case-quote,
  .l-case-gallery {
    padding: 3rem 0;
  }

  /* Disable mobile peek on desktop */
  .l-case-gallery {
    margin-right: 0;
  }

  .l-case-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    column-gap: 2rem;
    row-gap: 3rem;
    padding: 3rem 0;
  }

  .l-case-final > .l-case-label {
    align-self: start;
    margin-bottom: 0;
  }

  .l-case-final__content,
  .l-case-final__media,
  .l-case-meta {
    margin-left: 2.5rem;
  }

  /* Stack grid: 2 columns on tablet+ */
  .l-case-stack {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .l-case-stack--single {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Large desktop ≥ 1024px: more breathing room
   ========================================================================== */

@media (min-width: 64rem) {
  .l-case-row,
  .l-case-final {
    padding: 4rem 0;
  }

  .l-case-quote {
    padding: 4rem 0;
  }
}
