/* The offers section: the green showcase with the notices behind glass. */

.offers {
  background: var(--wood-mid);
}

.offers .grid {
  align-items: center;
}

.offers-head {
  grid-column: 1 / span 4;
}

/* The frame is a painted wooden profile: light on the edges that face the light, dark on the others */
.showcase {
  --pin: 10px;
  --frame-light: #2f6247;
  --frame-dark: #0c1f16;
  grid-column: 5 / span 8;
  position: relative;
  padding: 24px;
  background: var(--green-door);
  border: 4px solid;
  border-color: var(--frame-light) var(--frame-dark) var(--frame-dark) var(--frame-light);
}

.showcase-lock {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 12px;
  height: 34px;
  translate: 0 -50%;
  border-radius: 3px;
  background: #b8913a;
}

.showcase-back {
  position: relative;
  overflow: clip;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: clamp(28px, 3vw, 44px);
  background: #284a39;
  border: 4px solid;
  border-color: var(--frame-dark) var(--frame-light) var(--frame-light) var(--frame-dark);
}

/* The pane of glass: a faint tint over the whole case and a lasting reflection in its upper corner */
.showcase-back::after {
  content: "";
  position: absolute;
  top: -30%;
  right: 6%;
  width: 16%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 20px calc(100% - 20px), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

/* Each notice keeps a thin darker paper edge at the bottom, where it stands off the backing */
.notice {
  position: relative;
  padding: 34px 28px 26px;
  background: #f7f1e3;
  color: var(--ink);
  border-bottom: 3px solid #cfc3a8;
}

.notice::before, .notice::after {
  content: "";
  position: absolute;
  top: 12px;
  width: var(--pin);
  height: var(--pin);
  border-radius: 50%;
  background: #b8913a;
}

.notice::before {
  left: 14px;
}

.notice::after {
  right: 14px;
}

.notice-wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
  text-align: center;
}

.notice:nth-child(1) {
  rotate: 0.4deg;
}

.notice:nth-child(2) {
  rotate: -0.8deg;
}

.notice:nth-child(3) {
  rotate: 0.6deg;
}

.notice h3 {
  margin-bottom: 10px;
}

.notice p {
  margin: 0;
}

/* A soft band of light that crosses the glass once */
.showcase-glare {
  position: absolute;
  z-index: 1;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 32px calc(100% - 32px), transparent);
  transform: translateX(-150%) skewX(-18deg);
  pointer-events: none;
}

@media (max-width: 920px) {
  .showcase {
    padding: 12px;
  }

  .showcase-back {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}
