/* Catalogue area: /hire/ aisle landing + cph_category aisle pages.
   Option B "High Street" heritage skin: ivory / deep green / holly red / antique
   gold; Young Serif display + Karla body; 2px green frames, soft shadows. */

/* ---------- /hire/ intro ---------- */
.catalogue-intro { padding-bottom: clamp(36px, 5vw, 64px); }
.catalogue-intro .kicker { margin: 0 0 10px 0; }
.catalogue-intro__title { margin-bottom: 26px; }
.catalogue-intro__title-alt { color: var(--red); }
.catalogue-intro__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
@media (min-width: 560px) {
  .catalogue-intro__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.catalogue-intro__lede {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}
.catalogue-intro__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  padding: clamp(14px, 2vw, 22px) clamp(20px, 2.6vw, 30px);
  transform: rotate(-2deg);
}
.catalogue-intro__stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1;
  color: var(--green);
}
.catalogue-intro__stat-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- /hire/ bottom CTA (gold band: ink/green text only — cream fails AA on gold) ---------- */
.catalogue-cta { background: var(--gold); color: var(--ink); }
.catalogue-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.catalogue-cta__title { font-size: clamp(26px, 3.2vw, 46px); }
.catalogue-cta__copy { margin: 0; font-size: 17px; font-weight: 600; }
.catalogue-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}
.catalogue-cta__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch target */
  padding: 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
/* Red on gold = 2.5:1 — green (4.3:1, bold) is the passing hover on this band. */
.catalogue-cta__email:hover { color: var(--green); text-decoration-thickness: 3px; }

/* ---------- aisle page: heritage header band ---------- */
.cat-hero { border-bottom: 2px solid var(--green); }
.cat-hero--cream { background: var(--cream); color: var(--ink); }
.cat-hero--green { background: var(--green); color: var(--cream); }
.cat-hero--red { background: var(--red); color: var(--cream); }
.cat-hero__inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 84px);
}
@media (min-width: 860px) {
  .cat-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cat-hero__kicker {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
/* Cream @ .8 over red composites below AA at 13px — full opacity on red. */
.cat-hero--red .cat-hero__kicker { opacity: 1; }
.cat-hero__kicker a { color: inherit; text-decoration: underline; }
.cat-hero--cream .cat-hero__kicker a:hover { color: var(--red); }
/* Gold passes on deep green; on red it fails (2.5:1) — cream + heavier underline there. */
.cat-hero--green .cat-hero__kicker a:hover { color: var(--gold); }
.cat-hero--red .cat-hero__kicker a:hover { color: var(--cream); text-decoration-thickness: 3px; }
.cat-hero__title { font-size: clamp(34px, 5.4vw, 74px); overflow-wrap: break-word; }
.cat-hero__desc {
  margin: 16px 0 0 0;
  max-width: 640px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}
.cat-hero__count {
  margin: 14px 0 0 0;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-hero--cream .cat-hero__count { color: var(--red); }
/* Cream, not gold, on colour bands: gold fails AA at 13px on red. */
.cat-hero--green .cat-hero__count,
.cat-hero--red .cat-hero__count { color: var(--cream); }

.cat-hero__stamp { position: relative; flex: 0 0 auto; align-self: flex-end; padding: 14px 26px 26px 0; }
@media (min-width: 860px) {
  .cat-hero__stamp { align-self: auto; }
}
.cat-hero__stamp-img {
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  object-fit: cover;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--paper);
  transform: rotate(-2deg);
  box-shadow: 0 14px 34px rgba(20, 68, 43, 0.16);
}
/* On the colour bands a green frame vanishes — cream framing, deeper ink-toned shade. */
.cat-hero--green .cat-hero__stamp-img,
.cat-hero--red .cat-hero__stamp-img {
  border-color: var(--cream);
  box-shadow: 0 14px 34px rgba(34, 48, 31, 0.35);
}
.cat-hero__sticker {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  font-size: 13px;
}

/* ---------- aisle page: grid + cards ---------- */
.cat-grid-section { padding-top: clamp(36px, 5vw, 64px); }
.prop-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  color: var(--ink-soft);
}
.prop-card__meta { flex-wrap: wrap; flex-direction: column; align-items: stretch; }
.prop-card__meta .btn-small {
  flex: 0 0 auto;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 560px) {
  .prop-card__meta { flex-direction: row; align-items: center; }
}

/* ---------- aisle page: sibling chips ---------- */
.cat-siblings { border-top: 2px solid var(--green); background: var(--paper); }
.cat-siblings__inner { padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(36px, 5vw, 56px); }
.cat-siblings .kicker { margin: 0 0 16px 0; color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px; /* ~48px tall: 20px line + 24px padding + 4px border (touch target) */
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chip:hover {
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 68, 43, 0.25);
}
.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 11px;
}
.chip--all { background: var(--gold); color: var(--ink); }

/* ---------- superwide: display type keeps growing (continuous at the boundary) ---------- */
@media (min-width: 2200px) {
  .cat-hero__title { font-size: clamp(74px, 3.4vw, 88px); }     /* 3.4vw@2200 ≈ 74.8 → continuous */
  .catalogue-cta__title { font-size: clamp(46px, 2.1vw, 56px); }/* 2.1vw@2200 ≈ 46.2 → continuous */
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .chip { transition: none; }
}

/* ---------- /hire/ advent-calendar doors — showpiece ----------
   Full-bleed garland scene on the SECTION (client call: background, not a card).
   Doors are two-faced 3D flaps: front = velvet/gold artwork, back = dark painted
   timber you glimpse as it swings past 90deg. Swing is slower and weightier
   (640ms strong ease-out, transitions so hover-out retargets mid-swing), the face
   darkens as it turns from the light, and hand-drawn gold sparkles twinkle over
   the reveal. Transform/opacity only; reduced motion = fade, static sparkle. */
.advent {
  background: var(--green) url(../img/board-scene.jpg) center / cover no-repeat;
  padding-top: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(44px, 6vw, 88px);
}
.advent__hint {
  display: none;
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(10, 20, 12, 0.8);
}
.advent__hint-touch,
.advent__hint-hover { display: none; }
@media (hover: none) {
  .advent__hint { display: block; }
  .advent__hint-touch { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .advent__hint { display: block; }
  .advent__hint-hover { display: inline; }
}
.advent__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1320px;
  display: grid;
  gap: clamp(14px, 1.8vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .advent__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .advent__grid { grid-auto-rows: 400px; }
  .advent-cell .advent-tile { aspect-ratio: auto; width: 100%; height: 100%; }
}
/* Always 3 across on desktop (client calls: no mosaic, no 6-across) — wider
   screens get BIGGER doors via taller rows, never more columns. */
@media (min-width: 1500px) {
  .advent__grid { grid-auto-rows: 440px; }
}

.advent-cell { perspective: 1400px; position: relative; }
.advent-cell:has(.advent-tile:hover),
.advent-cell:has(.advent-tile.is-open),
.advent-cell:has(.advent-tile:focus-visible) { z-index: 5; }

.advent-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.06;
  border-radius: 10px; /* no border — the artwork frames itself on the scene */
  color: var(--ink);
  filter: drop-shadow(0 16px 26px rgba(5, 12, 7, 0.45));
}
.advent-tile__inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }

/* --- behind the door --- */
.advent-reveal { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 10px; background: #241010; }
.advent-reveal::after {
  /* vignette: melts every artwork into its aperture (kills pale edges) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(20, 68, 43, 0.35), inset 0 0 52px rgba(8, 16, 10, 0.65);
  pointer-events: none;
}
.advent-reveal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 0.64s cubic-bezier(0.23, 1, 0.32, 1);
}
.advent-reveal__shade {
  /* cast shadow of the door, sweeping off as it opens */
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 16, 10, 0.72), rgba(8, 16, 10, 0.22) 55%, rgba(8, 16, 10, 0.05));
  opacity: 1;
  transition: opacity 0.58s cubic-bezier(0.23, 1, 0.32, 1);
}
.advent-reveal__plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(15, 24, 16, 0.88);
  color: var(--cream);
}
.advent-reveal__name {
  font-family: var(--display);
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.15;
}
.advent-reveal__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #E7C878; /* lighter gold — passes on the dark plate */
}

/* --- sparkles --- */
.advent-sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.3s ease 0.18s; }
.advent-sparkles .spark { position: absolute; color: #FFE9B8; opacity: 0; transform: scale(0.4); }
.advent-sparkles .spark--1 { top: 12%; left: 14%; width: 16px; }
.advent-sparkles .spark--2 { top: 22%; right: 12%; width: 11px; color: #C89B3C; }
.advent-sparkles .spark--3 { top: 44%; left: 8%; width: 9px; color: #C89B3C; }
.advent-sparkles .spark--4 { top: 8%; right: 30%; width: 8px; }
.advent-sparkles .spark--5 { top: 56%; right: 9%; width: 14px; }
.advent-sparkles .spark--6 { top: 34%; left: 30%; width: 7px; }
.advent-sparkles .spark--7 { top: 66%; left: 20%; width: 10px; color: #C89B3C; }
@keyframes cph-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(18deg); }
  60% { opacity: 0.35; transform: scale(0.7) rotate(28deg); }
}

/* --- the door: two faces on one swinging flap --- */
.advent-door {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
}
.advent-door__front,
.advent-door__back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
}
.advent-door__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #4A1218 url(../img/door-face.jpg) center / 100% 100% no-repeat;
  color: #F7E9C9;
}
.advent-door__front::after {
  /* the face falls into shadow as the door turns from the light */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.55), rgba(8, 6, 4, 0.2) 70%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.advent-door__back {
  transform: rotateY(180deg);
  background: linear-gradient(105deg, #2E0B0F, #1E0709 70%);
  box-shadow: inset 0 0 0 3px rgba(200, 155, 60, 0.28), inset 0 0 34px rgba(0, 0, 0, 0.6);
}
.advent-door__num {
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(20, 10, 6, 0.6);
}
.advent-door__name {
  font-family: var(--display);
  font-size: clamp(11px, 0.9vw, 15px);
  text-align: center;
  line-height: 1.2;
  max-width: 82%;
  color: #E7C878;
  text-shadow: 0 1px 6px rgba(20, 10, 6, 0.7);
}
.advent-door__star,
.advent-door__knob { display: none; }

/* --- open state: shared by touch .is-open, keyboard focus, and (gated) hover --- */
.advent-tile.is-open .advent-door,
.advent-tile:focus-visible .advent-door {
  transform: rotateY(-104deg);
  transition-duration: 0.64s;
}
.advent-tile.is-open .advent-door__front::after,
.advent-tile:focus-visible .advent-door__front::after { opacity: 1; }
.advent-tile.is-open .advent-reveal__img,
.advent-tile:focus-visible .advent-reveal__img { transform: scale(1); }
.advent-tile.is-open .advent-reveal__shade,
.advent-tile:focus-visible .advent-reveal__shade { opacity: 0; }
.advent-tile.is-open .advent-sparkles,
.advent-tile:focus-visible .advent-sparkles { opacity: 1; }
.advent-tile.is-open .advent-sparkles .spark,
.advent-tile:focus-visible .advent-sparkles .spark { animation: cph-twinkle 1.7s ease-in-out infinite; }
.advent-tile.is-open .spark--2, .advent-tile:focus-visible .spark--2 { animation-delay: 0.25s; }
.advent-tile.is-open .spark--3, .advent-tile:focus-visible .spark--3 { animation-delay: 0.55s; }
.advent-tile.is-open .spark--4, .advent-tile:focus-visible .spark--4 { animation-delay: 0.85s; }
.advent-tile.is-open .spark--5, .advent-tile:focus-visible .spark--5 { animation-delay: 0.4s; }
.advent-tile.is-open .spark--6, .advent-tile:focus-visible .spark--6 { animation-delay: 1.1s; }
.advent-tile.is-open .spark--7, .advent-tile:focus-visible .spark--7 { animation-delay: 0.7s; }

@media (hover: hover) and (pointer: fine) {
  .advent-tile:hover .advent-door { transform: rotateY(-104deg); transition-duration: 0.64s; }
  .advent-tile:hover .advent-door__front::after { opacity: 1; }
  .advent-tile:hover .advent-reveal__img { transform: scale(1); }
  .advent-tile:hover .advent-reveal__shade { opacity: 0; }
  .advent-tile:hover .advent-sparkles { opacity: 1; }
  .advent-tile:hover .advent-sparkles .spark { animation: cph-twinkle 1.7s ease-in-out infinite; }
  .advent-tile:hover .spark--2 { animation-delay: 0.25s; }
  .advent-tile:hover .spark--3 { animation-delay: 0.55s; }
  .advent-tile:hover .spark--4 { animation-delay: 0.85s; }
  .advent-tile:hover .spark--5 { animation-delay: 0.4s; }
  .advent-tile:hover .spark--6 { animation-delay: 1.1s; }
  .advent-tile:hover .spark--7 { animation-delay: 0.7s; }
}

@media (prefers-reduced-motion: reduce) {
  .advent-door,
  .advent-reveal__img,
  .advent-reveal__shade,
  .advent-door__front::after { transition: opacity 0.25s ease; }
  .advent-reveal__img { transform: none; }
  .advent-tile.is-open .advent-door,
  .advent-tile:focus-visible .advent-door { transform: none; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
  .advent-sparkles { transition: none; }
  .advent-tile.is-open .advent-sparkles .spark,
  .advent-tile:focus-visible .advent-sparkles .spark { animation: none; opacity: 0.55; transform: scale(0.8); }
  @media (hover: hover) and (pointer: fine) {
    .advent-tile:hover .advent-door { transform: none; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
    .advent-tile:hover .advent-reveal__img { transform: none; }
    .advent-tile:hover .advent-sparkles .spark { animation: none; opacity: 0.55; transform: scale(0.8); }
  }
}

/* link out of the calendar to the searchable full list */
.advent__all { margin: 0 0 18px 0; }
.advent__all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 1px 6px rgba(10, 20, 12, 0.8);
}
.advent__all a:hover { color: var(--gold); }

/* ---------- the twelve days (one line per aisle door, all real stock) ---------- */
.twelve-days { background: var(--paper); border-top: 2px solid var(--green); }
.twelve-days__inner { text-align: center; }
.twelve-days__inner .kicker { margin: 0 0 10px 0; }
.twelve-days__title { margin-bottom: clamp(22px, 3vw, 34px); color: var(--green); }
.twelve-days__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 34ch;
  text-align: left;
  columns: 1;
}
@media (min-width: 760px) { .twelve-days__list { columns: 2; column-gap: clamp(30px, 5vw, 72px); max-width: 70ch; } }
.twelve-days__line {
  break-inside: avoid;
  margin-bottom: 9px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
}
.twelve-days__n {
  font-family: var(--display);
  color: var(--gold);
  margin-right: 7px;
}
.twelve-days__line a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(20, 68, 43, 0.28); text-underline-offset: 3px; }
.twelve-days__line a:hover { color: var(--red); text-decoration-color: var(--red); }
.twelve-days__line--last { font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); }
.twelve-days__line--last .twelve-days__n { color: var(--red); }
