
/* HARDI BAU - Referenciak */

.references-section {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 130px 40px 145px;
}

.references-section > .eyebrow {
  color: #52728c;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.references-section > h2 {
  max-width: 950px;
  margin: 25px 0 28px;
  color: #15283b;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 700;
}

.references-section > .lead {
  max-width: 780px;
  margin: 0 0 60px;
  color: #536273;
  font-size: 19px;
  line-height: 1.75;
}

.references-section .references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.references-grid > .tile {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 18px;
  box-shadow: none;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.references-grid > .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20,45,65,.08);
}

.references-grid > .tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
}

.references-grid > .tile img:hover {
  transform: scale(1.025);
}

.references-grid > .tile .tag {
  display: block;
  width: fit-content;
  margin: 26px 30px 12px;
  color: #52728c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.references-grid > .tile h3 {
  margin: 0 30px 15px;
  color: #19364f;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.references-grid > .tile p:not(.tag) {
  margin: 0 30px 30px;
  color: #596777;
  font-size: 16px;
  line-height: 1.7;
}

.references-grid > .tile p.tag {
  margin-top: 0;
  color: #718092;
  font-size: 12px;
}

.references-section #emptyProjects:not([hidden]) {
  margin-top: 25px;
}

.references-section #emptyProjects[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .references-section {
    padding: 85px 24px 95px;
  }

  .references-section > h2 {
    font-size: clamp(38px, 9vw, 55px);
  }

  .references-section > .lead {
    margin-bottom: 40px;
    font-size: 17px;
  }

  .references-section .references-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .references-grid > .tile .tag {
    margin-left: 24px;
    margin-right: 24px;
  }

  .references-grid > .tile h3 {
    margin-left: 24px;
    margin-right: 24px;
  }

  .references-grid > .tile p:not(.tag) {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .references-grid > .tile,
  .references-grid > .tile img {
    transition: none;
  }

  .references-grid > .tile:hover,
  .references-grid > .tile img:hover {
    transform: none;
  }
}
