/* Package card (snippets/package-card.liquid): mirrors the flyer cards.
   Ivory card with a gold double border that arches up around the icon badge (the notch),
   a swallow-tail ribbon with the name, big price with a raised $, italic subtitle, accent check
   list, diamond rule, two-line italic tagline, CTA row. */

.pkg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 56px;
  column-gap: 24px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}
.pkg-grid > * {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin: 0;
  justify-self: center;
}

@media (min-width: 700px) {
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 64px; }
  .pkg-grid > * { max-width: none; }
}
@media (min-width: 1100px) {
  .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 2.2vw, 32px); }
}

.pkg-card {
  --pad: 26px;
  --pkg-line: #CBA75C;
  --pkg-line: color-mix(in srgb, var(--c-gold) 55%, var(--c-gold-light));
  --pkg-line-inner: #D8BA7A;
  --pkg-line-inner: color-mix(in srgb, var(--c-gold) 35%, var(--c-gold-light));
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px var(--pad) 26px;
  text-align: center;
  background-color: var(--c-ivory);
  background-image: linear-gradient(180deg, var(--c-ivory) 0%, var(--c-ivory) 45%, #FCF6EB 100%);
  border: 1px solid var(--pkg-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  container-type: inline-size;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* inner line of the double border */
.pkg-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--pkg-line-inner);
  border-radius: 11px;
  pointer-events: none;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 1100px) and (max-width: 1299px) {
  .pkg-card { --pad: 20px; }
}

/* Icon badge: both border lines arch up around it, like the flyer's notch.
   ::before = ivory arch fill + outer line (also hides the straight lines under the arch),
   ::after  = inner arch line, meeting the inner border 6px below. */
.pkg-card__badge {
  position: absolute;
  top: -36.5px;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  color: var(--accent-text, var(--accent));
  pointer-events: none;
}
.pkg-card__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--pkg-line);
  border-radius: 50%;
  background: var(--c-ivory);
  clip-path: path('M0 37 L0 36 A36 36 0 0 1 72 36 L72 37 L63.6 37 L63.6 44.5 L8.4 44.5 L8.4 37 Z');
}
.pkg-card__badge::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--pkg-line-inner);
  border-radius: 50%;
  clip-path: inset(0 0 21.5px 0);
}
.pkg-card__badge .icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  transform: translateY(4px);
}

/* Ribbon: reaches 10px into the card padding on both sides, swallow-tail ends,
   small darker folds tucked under each end. */
.pkg-card__ribbon {
  position: relative;
  z-index: 1;
  margin: 0 -10px 20px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 1.1rem;
  font-size: clamp(.86rem, 7.4cqi, 1.15rem);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-white);
}
.pkg-card__ribbon::before,
.pkg-card__ribbon::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 10px;
  height: 7px;
  background: linear-gradient(rgba(0, 0, 0, .36), rgba(0, 0, 0, .36)), var(--ribbon-bg, var(--accent));
}
.pkg-card__ribbon::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pkg-card__ribbon::after { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }

.pkg-card__ribbon-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px 10px;
  background-color: var(--ribbon-bg, var(--accent));
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .09) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
  box-shadow: inset 0 2px 0 rgba(255, 236, 190, .22);
  text-wrap: balance;
}
/* Gold ribbon: deepened so white text passes AA at any size */
.accent-gold .pkg-card__ribbon { --ribbon-bg: #946B1C; --ribbon-bg: color-mix(in srgb, var(--c-gold-ribbon) 82%, #3C2800); }
.accent-gold .pkg-card__ribbon-band { background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .08) 100%); }

/* Price */
.pkg-card__price {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent-text, var(--accent));
  font-variant-numeric: lining-nums;
}
.pkg-card__price .price { font-size: inherit; }
.pkg-card__price .price sup { font-size: .4em; top: -.85em; margin-right: 0; }

.pkg-card__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--accent-text, var(--accent));
  text-wrap: balance;
}
@media (min-width: 700px) {
  /* reserve two lines so check lists start at the same height across a row */
  .pkg-card__subtitle { min-height: 2.5em; }
}

/* Check list grows so rules and taglines line up across the row */
.pkg-card__features {
  flex: 1 1 auto;
  margin: 0 0 24px;
  text-align: left;
}
.pkg-card__features li {
  margin-bottom: 12px;
  font-size: .98rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.pkg-card__features li > .icon { margin-top: .08em; }

.pkg-card__rule { margin-bottom: 12px; }
.pkg-card__rule .ornament-rule__ornament .icon { width: 11px; height: 11px; }

.pkg-card__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35em;
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--accent-text, var(--accent));
}
.pkg-card__tagline > span { display: block; max-width: 11em; text-wrap: balance; }

/* Actions */
.pkg-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pkg-card__actions .btn {
  padding-inline: 14px;
  letter-spacing: .1em;
  font-size: clamp(.75rem, 5.4cqi, .85rem);
}
.pkg-card__details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .5em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.pkg-card__details .icon { color: var(--accent); transition: transform .25s var(--ease); }
.pkg-card__details:hover { color: var(--accent-text, var(--accent)); text-decoration-color: currentColor; }
.pkg-card__details:hover .icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .pkg-card:hover { transform: none; }
}
