/* =========================
   UKÁZKY TVORBY – sekce na hlavní stránce
   a samostatná stránka ukazky.html
========================= */

.references {
  background: var(--cream);
  padding: 110px 7% 100px;
  color: var(--forest);
}

.references-container {
  max-width: 1300px;
  margin: 0 auto;
}

.references-heading {
  margin-bottom: 50px;
}

.references-heading .section-label {
  display: inline-block;
  margin-bottom: 25px;

  color: #8C7563;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
}

.references-heading h2 {
  margin: 0;

  color: var(--forest);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -3px;
}

.references-heading h2 span {
  color: #8C7563;
  font-style: italic;
}


/* MŘÍŽKA */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  gap: 20px;
}


/* KARTA – stejný styl jako ostatní karty */

.ref-card {
  display: flex;
  flex-direction: column;

  padding: 24px 28px 26px;

  border: 1px solid #EFE9E2;
  border-radius: 15px;

  background: #FBFAF6;
  color: var(--forest);
  text-decoration: none;

  box-shadow: 0 10px 28px rgba(59, 47, 42, .07);

  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ref-card:hover {
  transform: translateY(-6px);
  border-color: #E0D5C8;
  box-shadow: 0 18px 40px rgba(59, 47, 42, .12);
}

.ref-card:focus-visible {
  outline: 2px solid #8C7563;
  outline-offset: 3px;
}

.ref-label {
  margin: 4px 0 16px;

  color: #8C7563;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}


/* NÁHLED WEBU */

.ref-thumb {
  display: block;
  text-decoration: none;
  position: relative;

  aspect-ratio: 16 / 10;
  margin-bottom: 22px;

  overflow: hidden;

  border: 1px solid #E6DDD2;
  border-radius: 12px;

  background:
    radial-gradient(circle at 50% 55%, #FBFAF6 0%, rgba(251, 250, 246, 0) 70%),
    #F0EAE2;
}

.ref-browser-bar {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 4px;

  height: 24px;
  padding: 0 10px;

  background: #EEE7DD;
}

.ref-browser-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8C7563;
}

.ref-browser-bar span {
  margin-left: auto;
  margin-right: auto;

  color: #6E625B;
  font-size: 9px;
  font-weight: 700;
}

/* screenshot webu – vyplní celý náhled pod lištou */
.ref-thumb img {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 1;

  width: 100%;
  height: calc(100% - 24px);

  object-fit: cover;
  object-position: top center;

  transition: transform .6s ease;
}

.ref-thumb:hover img,
.ref-card:hover .ref-thumb img {
  transform: scale(1.04);
}

/* zástupná grafika, dokud není screenshot */
.ref-placeholder {
  position: absolute;
  inset: 24px 0 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;

  padding: 0 14%;
}

.ref-line {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #E8DFD3;
}

.ref-line--accent {
  background: #3B2F2A;
}

.ref-btn {
  display: block;
  width: 56px;
  height: 14px;
  margin-top: 4px;
  border-radius: 10px;
  background: #3B2F2A;
}


/* TEXT */

.ref-card h3 {
  color: var(--forest);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.25;
}

.ref-card p {
  margin-top: 12px;

  color: #6E625B;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
}

.ref-tags {
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 18px 0 24px;
}

.ref-tags li {
  padding: 6px 12px;

  border: 1px solid #E0D5C8;
  border-radius: 30px;

  background: #F4F0E6;
  color: var(--forest);

  font-size: 11px;
  font-weight: 800;
}

.references-intro {
  max-width: 460px;
  margin-top: 22px;

  color: #6E625B;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}

.ref-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #EFE9E2;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--forest);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.ref-link i {
  font-size: 17px;
  transition: transform .3s ease;
}

.ref-link:hover i {
  transform: translate(3px, -3px);
}

.ref-choose {
  padding: 9px 15px;

  border-radius: 30px;

  background: var(--forest);
  color: var(--cream);
  text-decoration: none;

  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;

  transition: .3s ease;
}

.ref-choose:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
}


/* CHCETE VIDĚT VÍC? */

.references-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  margin-top: 50px;
}

.references-more p {
  color: var(--forest);
  font-size: 18px;
  font-weight: 900;
}

.references-more-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 16px 26px;

  border-radius: 35px;

  background: var(--forest);
  color: var(--cream);
  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  transition: .3s ease;
}

.references-more-button i {
  font-size: 17px;
  transition: transform .3s ease;
}

.references-more-button:hover {
  background: var(--forest-dark);
  transform: translateY(-3px);
}

.references-more-button:hover i {
  transform: translateX(4px);
}


/* STRÁNKA reference.html – mřížka na šalvějovém pozadí */

.references-page .ref-card {
  border-color: rgba(59, 47, 42, .06);
  box-shadow: 0 10px 28px rgba(59, 47, 42, .10);
}

.references-page .ref-grid {
  row-gap: 24px;
}


/* TABLET */

@media (max-width: 1000px) {

  .ref-grid {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }

  .ref-card {
    padding: 20px 20px 22px;
  }

  .ref-card h3 {
    font-size: 20px;
  }

  /* na hlavní stránce: třetí karta vycentrovaná pod dvěma */
  .references .ref-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 400px);
  }
}


/* MOBIL */

@media (max-width: 650px) {

  .references {
    padding: 80px 6% 75px;
  }

  .references-heading {
    margin-bottom: 35px;
  }

  .references-heading h2 {
    letter-spacing: -2px;
  }

  .ref-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ref-card {
    padding: 22px 24px 24px;
  }

  .references .ref-card:nth-child(3):last-child {
    grid-column: auto;
    width: 100%;
  }

  .references-more {
    margin-top: 35px;
  }
}


/* NADPIS SEKCE NA STŘED */

.references-heading {
  text-align: center;
}

.references-intro {
  margin-left: auto;
  margin-right: auto;
}


/* poslední sekce navazuje přímo na patičku – bez zaoblení dole */
.references-page {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
