/* Pricing section built by js/pricing-ranges.js. Themed through the --pr-* variables
   (a variant can override them on .pr; see css/v-d.css for the dark theme). */

.pr {
  --pr-ink: var(--ink, #3a2427);
  --pr-muted: var(--ink-soft, #6c5457);
  --pr-accent: var(--burgundy, #7b3239);
  --pr-card: #fffdfa;
  --pr-line: rgba(123, 50, 57, .16);
  --pr-soft: var(--blush-soft, #fdeeea);
  --pr-on-accent: #fff;
  --pr-glow: rgba(123, 50, 57, .28);
  max-width: 1080px; margin-inline: auto; color: var(--pr-ink);
}

/* the range shown on each service card, and the note under the prices */
.card__price { margin: -.3rem 0 1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft, #6c5457); }
.card__price strong { font-family: var(--font-display, serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0; color: var(--burgundy, #7b3239); }
.pricing__note { max-width: 640px; margin: 2rem auto 0; text-align: center; font-size: .82rem; color: var(--ink-soft, #6c5457); }

/* "Selected: Christenings · Premium · £550 – £850" above the enquiry form */
.form__pkg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .6rem .6rem .6rem 1rem; border: 1px solid rgba(123, 50, 57, .2); border-radius: 999px; background: var(--blush-soft, #fdeeea); font-size: .82rem; color: var(--burgundy-deep, #5a2128); }
.form__pkg[hidden] { display: none; }
.form__pkg button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(123, 50, 57, .12); color: var(--burgundy, #7b3239); line-height: 1; cursor: pointer; }

/* ---- tabs: each one already shows its starting price ---- */
.pr__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.pr__tab { display: grid; gap: 1px; justify-items: center; min-width: 132px; padding: .8rem 1.4rem .7rem; border: 1px solid var(--pr-line); border-radius: 18px; background: var(--pr-card); color: var(--pr-ink); font: inherit; text-align: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease, ease), box-shadow .3s; }
.pr__tab > span { font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.pr__tab small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); transition: color .3s; }
.pr__tab:hover { border-color: var(--pr-accent); transform: translateY(-2px); }
.pr__tab.is-on { background: var(--pr-accent); border-color: var(--pr-accent); color: var(--pr-on-accent); box-shadow: 0 16px 30px -16px var(--pr-glow); }
.pr__tab.is-on small { color: inherit; opacity: .85; }

.pr__panel[hidden] { display: none; }
.pr__panel { animation: pr-in .55s var(--ease, ease); }
@keyframes pr-in { from { opacity: 0; transform: translateY(12px); } }
.pr__d { max-width: 36em; margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; font-size: 1.02rem; color: var(--pr-muted); }

/* ---- a card per price: big arch photo, then the price ---- */
.pr__tiers { display: grid; gap: clamp(22px, 3.4vw, 44px); }
.pr__tiers--2 { grid-template-columns: 1fr 1fr; }
.pr__tiers--1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.pr__tier { display: flex; flex-direction: column; text-align: center; }

.pr__show { position: relative; width: 100%; aspect-ratio: 4 / 4.9; border-radius: 999px 999px 26px 26px; overflow: hidden; background: rgba(127, 127, 127, .14); box-shadow: 0 34px 60px -34px var(--pr-glow); isolation: isolate; }
.pr__slide { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; background: none; opacity: 0; cursor: zoom-in; transition: opacity 1.1s ease; }
.pr__slide.is-on { z-index: 1; opacity: 1; }
.pr__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.pr__slide.is-on img { transform: scale(1); }
.pr__show::after { content: ''; position: absolute; inset: auto 0 0 0; z-index: 2; height: 28%; background: linear-gradient(0deg, rgba(40, 12, 16, .5), transparent); pointer-events: none; }
.pr__count { position: absolute; z-index: 3; left: 50%; bottom: 16px; translate: -50% 0; padding: .28rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .7rem; font-weight: 500; letter-spacing: .1em; color: #3a2427; }
.pr__nav { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #3a2427; font-size: 1.5rem; line-height: 1; opacity: 0; transition: opacity .3s, transform .3s var(--ease, ease); cursor: pointer; }
.pr__nav--prev { left: 14px; } .pr__nav--next { right: 14px; }
.pr__show:hover .pr__nav, .pr__nav:focus-visible { opacity: 1; }
.pr__nav:hover { transform: scale(1.08); }

.pr__info { display: grid; justify-items: center; gap: .7rem; padding: 26px 8px 0; }
.pr__lvl { display: inline-block; padding: .3rem 1rem; border: 1px solid var(--pr-line); border-radius: 999px; background: var(--pr-soft); font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--pr-accent); }
.pr__tier--premium .pr__lvl { background: var(--pr-accent); border-color: var(--pr-accent); color: var(--pr-on-accent); }
.pr__tier--premium .pr__lvl::before { content: '✦ '; }
.pr__price { margin: 0; font-family: var(--font-display, serif); font-size: clamp(2.6rem, 5.2vw, 3.8rem); line-height: 1; color: var(--pr-accent); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.pr__price b { font-weight: 500; }
.pr__price i { margin: 0 .2em; font-style: normal; opacity: .55; }
.pr__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: .4rem; }
.pr__all { padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none; font: inherit; font-size: .82rem; color: var(--pr-muted); cursor: pointer; transition: color .25s; }
.pr__all:hover { color: var(--pr-accent); }

/* weddings and bouquets: no figure yet, so the photo sits beside the message */
.pr__tier--req { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: clamp(26px, 5vw, 64px); text-align: left; max-width: 900px; margin-inline: auto; }
.pr__tier--req .pr__info { justify-items: start; padding: 0; }
.pr__tier--req .pr__actions { justify-content: flex-start; }
.pr__price--req { font-size: clamp(2rem, 3.8vw, 2.8rem); white-space: normal; }
.pr__reqp { margin: 0; font-size: 1.02rem; color: var(--pr-muted); max-width: 26em; }

@media (max-width: 860px) {
  .pr__tiers--2 { grid-template-columns: minmax(0, 480px); justify-content: center; }
  .pr__tier--req { grid-template-columns: 1fr; text-align: center; }
  .pr__tier--req .pr__info { justify-items: center; }
  .pr__tier--req .pr__actions { justify-content: center; }
  .pr__tier--req .pr__show { max-width: 440px; margin-inline: auto; }
  .pr__nav { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }
}
@media (max-width: 620px) {
  .pr__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -18px; padding: 4px 18px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pr__tabs::-webkit-scrollbar { display: none; }
  .pr__tab { flex: none; min-width: 124px; scroll-snap-align: start; }
  .pr__info { padding-top: 22px; }
  .pr__actions { flex-direction: column; width: 100%; }
  .pr__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pr__slide img { transform: none; transition: none; }
}
