/* offers.css — three swing tags on a gold rail over rose velvet.
   js/tags.js swings each .tag (rotate about its rail point); a tap flips .tag__card. */

.offers {
  position: relative;
  padding: 84px var(--gutter) 70px;
  background: var(--rose-deep) url("../assets/img/velvet.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.offers::before {
  /* a soft vignette so the type sits on the velvet */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 45%, rgba(120, 60, 56, 0) 30%, rgba(90, 44, 42, 0.38) 100%);
  pointer-events: none;
}
.offers > * { position: relative; }
.offers__title {
  margin: 10px auto 0;
  max-width: 11em;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.04;
  text-shadow: 0 2px 20px rgba(80, 30, 30, 0.35);
}

.rail {
  width: min(100%, 540px);
  height: 7px;
  margin: 38px auto 0;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-4), var(--gold-2) 45%, var(--gold-1));
  box-shadow: 0 4px 10px rgba(70, 30, 26, 0.35);
}

.tags {
  display: flex;
  justify-content: center;
  gap: 3%;
  width: min(100%, 540px);
  margin: 0 auto;
}
.tag {
  --drop: 44px;
  position: relative;
  flex: 0 0 31%;
  padding-top: var(--drop);
  transform-origin: 50% 0;
  /* clip-path on the faces would clip a box-shadow, so the shadow lives here */
  filter: drop-shadow(0 16px 14px rgba(60, 20, 20, 0.38));
}
.tag:nth-child(2) { --drop: 86px; }
.tag:nth-child(3) { --drop: 58px; }
.tag::before {
  /* the gold thread from the rail down to the hole */
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 1.5px;
  height: calc(var(--drop) + 18px);
  margin-left: -0.75px;
  background: linear-gradient(var(--gold-3), var(--gold-1));
}

.tag__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 8.4;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: perspective(700px) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-swing);
  -webkit-tap-highlight-color: transparent;
}
.tag.is-flipped .tag__card { transform: perspective(700px) rotateY(180deg); }

.tag__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 8px 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
}
.tag__face::after {
  /* inner gold keyline, following the notched shape */
  content: "";
  position: absolute;
  inset: 5px;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  border: 1px solid rgba(201, 154, 62, 0.75);
  pointer-events: none;
}
.tag__hole {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--gold-2);
}
.tag__front { background: linear-gradient(170deg, #fbf6ee, #f0e4d3); color: var(--wine); }
.tag__back {
  transform: rotateY(180deg);
  background: linear-gradient(170deg, #fff8f0, #f4dcd2);
  color: var(--ink);
}
.tag__roman { font-family: var(--f-display); font-size: 34px; font-weight: 500; line-height: 1; }
.tag__gem { width: 26px; height: 18px; color: var(--gold-2); }
.tag__label { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; }
.tag__tap { font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

.tag__big {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.tag__lead { font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.35; color: var(--wine); }
.tag__tail { font-family: var(--f-display); font-style: italic; font-size: 15px; line-height: 1.15; color: var(--ink-soft); }
.tag.is-flipped .tag__big { animation: foil-sweep 1.6s var(--ease-out) 0.35s both; }

.offers__hint {
  margin-top: 30px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  opacity: 0.9;
}
.offers__note {
  margin: 10px auto 0;
  max-width: 26em;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.72;
}
