/* Green Wood – Realizácie. Farby a písmo podľa témy Betheme (DM Sans, #55c593), hlavička ako na /referencie/. */

.gw-real-hero,
.gw-real {
  --gw-green: #55c593;
  --gw-green-dark: #32b87b;
  --gw-green-ink: #1f7a51;
  --gw-ink: #161922;
  --gw-text: #4a4f58;
  --gw-muted: #8a8f98;
  --gw-line: #e6e8ea;
  --gw-bg: #f7f7f7;
  --gw-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------ Hlavička */

.gw-real-hero {
  background-color: #2d3a33;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-bottom: 80px;
  font-family: var(--gw-font);
}
.gw-real-hero__box {
  width: 50%;
  box-sizing: border-box;
  background: var(--gw-green);
  padding: 80px 5% 65px;
  text-align: right;
}
.gw-real-hero .gw-real-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}
.gw-real-hero .gw-real-hero__title {
  margin: 0;
  color: #fff;
}

/* ------------------------------------------------------------ Obsah */

.gw-real {
  font-family: var(--gw-font);
  color: var(--gw-text);
  padding: 160px 0 40px;
  background: url(/wp-content/uploads/2020/10/corporation3-sectionbg2.png) no-repeat center top;
}
.gw-real-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--gw-muted);
  margin-bottom: 18px;
}
.gw-real-crumbs a { color: var(--gw-green-ink); text-decoration: none; }
.gw-real-crumbs a:hover { text-decoration: underline; }
.gw-real-crumbs [aria-current] { color: var(--gw-ink); }

.gw-real .gw-real-lead {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gw-text);
  margin: 0 0 32px;
}
.gw-real-head { margin-bottom: 8px; }
.gw-real-head .gw-real-lead { margin-bottom: 6px; }
.gw-real .gw-real-count { font-size: 14px; color: var(--gw-muted); margin: 0 0 28px; }

/* boxy (typy aj realizácie) */
.gw-real-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.gw-real-grid--typy { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.gw-real-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(22, 25, 34, .06), 0 8px 24px rgba(22, 25, 34, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gw-real-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(22, 25, 34, .06), 0 16px 36px rgba(22, 25, 34, .12);
}
.gw-real-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gw-bg); }
.gw-real-card__img img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gw-real-card:hover .gw-real-card__img img { transform: scale(1.04); }
.gw-real-card__body { display: block; padding: 16px 18px 18px; border-top: 3px solid var(--gw-green); }
.gw-real-card__title { display: block; color: var(--gw-ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
.gw-real-grid--typy .gw-real-card__title { font-size: 21px; }
.gw-real-card__meta { display: block; margin-top: 4px; color: var(--gw-muted); font-size: 14px; }

/* galéria */
.gw-real-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gw-real-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gw-bg);
  cursor: zoom-in;
}
.gw-real-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gw-real-photo:hover img { transform: scale(1.04); }
.gw-real-photo__n {
  position: absolute; left: 8px; bottom: 8px;
  min-width: 24px; padding: 2px 7px; border-radius: 12px;
  background: rgba(22, 25, 34, .65); color: #fff;
  font-size: 12px; font-weight: 600; text-align: center;
}

.gw-real-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 48px 0 56px; padding: 28px 32px;
  background: var(--gw-bg); border-left: 4px solid var(--gw-green); border-radius: 10px;
}
.gw-real-cta h3 { margin: 0 0 4px; color: var(--gw-ink); }
.gw-real-cta p { margin: 0; }
.gw-real .gw-real-btn {
  flex: none;
  display: inline-block; padding: 14px 26px; border-radius: 4px;
  background: var(--gw-green); color: #fff; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.gw-real .gw-real-btn:hover { background: var(--gw-green-dark); color: #fff; }
.gw-real .gw-real-h2 { margin: 0 0 24px; color: var(--gw-ink); }
.gw-real .gw-real-back { margin: 32px 0 0; }
.gw-real-back a { color: var(--gw-green-ink); font-weight: 600; text-decoration: none; }
.gw-real-back a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Lightbox */

.gw-lb {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 14, .94);
  opacity: 0; transition: opacity .2s;
  font-family: var(--gw-font, "DM Sans", sans-serif);
}
.gw-lb.is-open { opacity: 1; }
.gw-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); user-select: none; }
.gw-lb button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 52px; cursor: pointer;
  transition: background .2s;
}
.gw-lb button:hover { background: var(--gw-green, #55c593); }
.gw-lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gw-lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.gw-lb__close { right: 20px; top: 20px; }
.gw-lb__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ------------------------------------------------------------ Responzívne */

@media (max-width: 1100px) {
  .gw-real-grid, .gw-real-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gw-real-hero { padding-bottom: 120px; background-position: bottom center; }
  .gw-real-hero__box { width: 100%; text-align: center; padding: 48px 20px 40px; }
  .gw-real { padding-top: 80px; }
  .gw-real-grid, .gw-real-grid--typy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gw-real-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gw-real-card__body { padding: 12px 12px 14px; }
  .gw-real-card__title, .gw-real-grid--typy .gw-real-card__title { font-size: 16px; }
  .gw-real-cta { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .gw-lb__prev, .gw-lb__next { top: auto; bottom: 12px; transform: none; }
  .gw-lb__count { bottom: 30px; }
}
@media (max-width: 420px) {
  .gw-real-grid--typy { grid-template-columns: minmax(0, 1fr); }
}
