/* ============================================================
   CASE STUDY — PAGE STYLES
   Shared base: assets/css/style.css
============================================================ */

/* @font-face declarations now live in assets/css/root.css */

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  height: 247px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 30, 0.45);
}

.page-hero__title {
  position: relative;
  z-index: 2;
  font-family: Helvetica, sans-serif;
  font-size: 75px;
  letter-spacing: -3.75px;
  background: linear-gradient(90deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: normal;
  white-space: nowrap;
}

/* ── SHARED CARD STYLES ── */
.cs-section {
  background: var(--black);
  padding: 40px 20px;
}

/* ── THREE-COLUMN GRID ── */
.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.cs-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.cs-card:hover .cs-card__img {
  transform: scale(1.04);
}

.cs-card__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.cs-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.cs-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.cs-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cs-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: HelveticaL, sans-serif;
  font-size: 12px;
  line-height: 26px;
  color: var(--green-alt);
}

.cs-card__meta-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cs-card__title {
  font-family: 'Cal Sans', sans-serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cs-card__desc {
  font-family: HelveticaL, sans-serif;
  font-size: 13px;
  line-height: 26px;
  color: var(--white);
}

/* ── TWO-COLUMN PORTRAIT ── */
.cs-grid-2 {
  display: flex;
  position: relative;
  width: 100%;
}

.cs-grid-2 .cs-grid_wrapper {
  padding: 20px 20px 20px;
  background: var(--mesh-gradient);
  height: 84vh;
  margin: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── GRID-2 META ICONS: match reference image ── */
.cs-grid-2 .cs-card__meta-item {
  position: relative;
  padding-left: 24px;
  line-height: normal;
}

.cs-grid-2 .cs-card__meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cs-grid-2 .cs-card__meta-item:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

.cs-grid-2 .cs-card__meta-item:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.cs-grid-2 .cs-card__img {
  height: 100%;
}

.cs-card--tall .cs-card__img {
  height: 849px;
}

.cs-card--tall-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 13%, rgba(0, 0, 0, 0.7) 68%);
  pointer-events: none;
}

/* ── FULL WIDTH LANDSCAPE ── */
.cs-wide {
  padding: 40px 0px;
}

/* ── CS-WIDE OVERRIDE: content below image, per reference design ── */
.cs-wide__card {
  height: auto;
  display: block;
  width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.cs-wide__card img {
  height: 600px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.cs-wide__overlay {
  display: none;
}

.cs-wide__body {
  position: static;
  padding: 24px 0 0;
}

.cs-wide__meta-item {
  position: relative;
  padding-left: 24px;
}

.cs-wide__meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cs-wide__meta-item:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

.cs-wide__meta-item:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.cs-wide__desc {
  max-width: none;
}


/* ── RESPONSIVE ── */

@media (max-width: 1100px) {
  .cs-wide__card {
    height: auto;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
  }

}

@media (max-width: 900px) {
  .page-hero__title {
    font-size: 40px;
    letter-spacing: -2px;
  }

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

  .cs-card__img {
    height: 320px;
  }

  .cs-grid-2 {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .cs-grid-2 .cs-grid_wrapper {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 10px;
    gap: 10px;
    margin: 10px;
  }

  .cs-card--tall .cs-card__img {
    height: 360px;
  }

  .cs-wide {
    padding: 0 16px 16px;
  }



  .cs-wide__body {
    padding: 24px;
  }

  .cs-section {
    padding: 20px 16px;
  }
}

@media (max-width: 900px) {
  .cs-wide__card img {
    height: 280px;
  }

  .cs-wide__body {
    padding-top: 16px;
  }

  .cs-wide__card {
    padding: 0 10px;
  }
}

/* ── GRID-3 CARD OVERRIDE: content below image, per reference design ── */
.cs-grid-3 .cs-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.cs-grid-3 .cs-card__overlay {
  display: none;
}

.cs-grid-3 .cs-card__body {
  position: static;
  padding: 20px 0 0;
}

.cs-grid-3 .cs-card:hover .cs-card__img {
  transform: none;
}

.cs-grid-3 .cs-card__meta-item {
  position: relative;
  padding-left: 24px;
  line-height: normal;
}

.cs-grid-3 .cs-card__meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cs-grid-3 .cs-card__meta-item:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

.cs-grid-3 .cs-card__meta-item:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23addc55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.cs-grid-3 .cs-card__title {
  margin-top: 6px;
}

.cs-grid-3 .cs-card__desc {
  opacity: 0.85;
}

/* responsive — keeps step with your existing 900px breakpoint */
@media (max-width: 900px) {
  .cs-grid-3 .cs-card__img {
    height: 280px;
  }

  .cs-grid-3 .cs-card__body {
    padding-top: 16px;
  }
}

/* ── ROW 3 VARIANT: overlay-card layout to match sd-cs section ──
   (Row 3 reuses .cs-grid-3, so every rule here is scoped to
   .cs-grid-3--alt specifically and does not touch Row 1) ── */
.cs-grid-3--alt {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  background: var(--mesh-gradient);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cs-grid-3--alt .cs-grid_wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.cs-grid-3--alt .cs-card {
  display: block;
  width: 100%;
}

.cs-grid-3--alt .cs-card__overlay {
  display: block;
}

.cs-grid-3--alt .cs-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.cs-grid-3--alt .cs-card__img {
  height: 550px;
}

.cs-grid-3--alt .cs-card:hover .cs-card__img {
  transform: scale(1.04);
}

.cs-grid-3--alt .cs-card__meta-item {
  line-height: 26px;
}

.cs-grid-3--alt .cs-card__title {
  margin-top: 0;
}

.cs-grid-3--alt .cs-card__desc {
  opacity: 1;
}


@media (max-width: 900px) {
  .cs-grid-3--alt .cs-card__img {
    height: 300px;
    object-fit: cover;
    object-position: top;
  }

  .cs-grid-3--alt .cs-grid_wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
  }
}

@media (min-width: 1500px) {
  .cs-grid-3 {
    gap: 20px;
    max-width: 1400px;
  }

  .cs-card__meta-item {
    font-size: 16px;
  }

  .cs-card__title {
    font-size: 26px;
  }

  .cs-card__desc {
    font-size: 17px;
  }

  .cs-grid-2 .cs-card__img {
    height: 849px;
  }

  .cs-wide__card {
    height: auto;
    width: 1400px;
  }

  .cs-wide__card img {
    width: 100%;
    object-fit: cover;
    object-position: top;
  }

  .cs-grid-3--alt {
    max-width: 100%;
  }
}