/* The promo pop-up. The owner's own design: exact colours and fonts (League Spartan, Bebas Neue, hosted by us).
   Every size is written as a number times --u, one design pixel. --u is 1px on a big screen and shrinks so the whole card
   always fits inside 92% of the screen width and 94% of its height. Text never gets smaller than a readable minimum. */
@font-face { font-family: 'League Spartan'; src: url(/fonts/league-spartan-latin.woff2) format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url(/fonts/bebas-neue-latin.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

.pp-backdrop {
  --u: min(1px, calc(92vw / 560), max(calc(94vh / 780), 0.62px));
  --pp-green: #2d4f35;
  --pp-cream: #fbf7e6;
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); overflow: auto; padding: 8px;
  animation: pp-fade .25s ease;
}
.pp-backdrop[hidden] { display: none; }
body.pp-open { overflow: hidden; }

.pp-card {
  position: relative; box-sizing: border-box; width: calc(560 * var(--u)); margin: auto;
  background: var(--pp-cream); color: var(--pp-green); font-family: 'League Spartan', 'Quicksand', system-ui, sans-serif;
  border: calc(3 * var(--u)) solid var(--pp-green); border-radius: calc(28 * var(--u));
  padding: calc(36 * var(--u)) calc(40 * var(--u)) calc(32 * var(--u));
  display: flex; flex-direction: column; align-items: center; gap: calc(22 * var(--u));
  animation: pp-rise .3s cubic-bezier(.2, .8, .2, 1);
}

.pp-close {
  position: absolute; top: calc(16 * var(--u)); right: calc(16 * var(--u)); display: flex; align-items: center; justify-content: center;
  width: max(44px, calc(44 * var(--u))); height: max(44px, calc(44 * var(--u))); padding: 0; border: 0; background: transparent; color: var(--pp-green); cursor: pointer; border-radius: 50%;
}
.pp-close:hover { background: rgba(45, 79, 53, .1); }
.pp-card:focus { outline: none; }
.pp-close:focus-visible, .pp-book:focus-visible { outline: 3px solid var(--pp-green); outline-offset: 3px; }

.pp-logo { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); }
.pp-logo-text { font-size: max(34px, calc(64 * var(--u))); font-weight: 800; letter-spacing: calc(-2 * var(--u)); line-height: .95; }
.pp-logo-sub { font-size: max(11px, calc(17 * var(--u))); font-weight: 500; letter-spacing: calc(11 * var(--u)); margin-right: calc(-11 * var(--u)); }

.pp-badge { background: var(--pp-green); color: var(--pp-cream); font-size: max(12px, calc(18 * var(--u))); font-weight: 700; letter-spacing: calc(4 * var(--u)); padding: calc(10 * var(--u)) calc(22 * var(--u)) calc(7 * var(--u)); border-radius: 999px; }

.pp-headline { margin: 0; font-size: max(22px, calc(40 * var(--u))); font-weight: 800; line-height: 1.05; text-align: center; letter-spacing: calc(-1 * var(--u)); }

.pp-offers { display: flex; flex-direction: column; gap: calc(12 * var(--u)); width: 100%; }
.pp-offer { color: var(--pp-green); text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .2s; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: calc(12 * var(--u)); border: calc(3 * var(--u)) solid var(--pp-green); border-radius: calc(18 * var(--u)); padding: calc(16 * var(--u)) calc(20 * var(--u)); }
.pp-offer-solid { background: var(--pp-green); color: var(--pp-cream); }
.pp-offer:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45, 79, 53, .22); }
.pp-offer:focus-visible { outline: 3px solid var(--pp-green); outline-offset: 3px; }
.pp-offer-text { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.pp-offer-title { font-size: max(13px, calc(20 * var(--u))); font-weight: 700; letter-spacing: calc(2 * var(--u)); }
.pp-offer-sub { font-size: max(12px, calc(17 * var(--u))); font-weight: 500; line-height: 1.2; }
.pp-price { display: flex; align-items: baseline; gap: calc(10 * var(--u)); flex: none; }
.pp-was { font-size: max(12px, calc(18 * var(--u))); font-weight: 600; text-decoration: line-through; opacity: .85; }
.pp-now { font-size: max(30px, calc(52 * var(--u))); font-weight: 800; letter-spacing: calc(-2 * var(--u)); line-height: 1; }

.pp-code-block { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u)); width: 100%; }
.pp-code-label { font-size: max(11px, calc(16 * var(--u))); font-weight: 600; letter-spacing: calc(3 * var(--u)); text-align: center; }
.pp-code { box-sizing: border-box; width: 100%; border: calc(3 * var(--u)) dashed var(--pp-green); border-radius: calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u)); text-align: center; font-family: 'Bebas Neue', 'League Spartan', sans-serif; font-size: max(28px, calc(48 * var(--u))); letter-spacing: calc(6 * var(--u)); line-height: 1.1; user-select: all; }

.pp-book { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; background: var(--pp-green); color: var(--pp-cream); text-decoration: none; text-align: center; font-size: max(15px, calc(22 * var(--u))); font-weight: 700; letter-spacing: calc(3 * var(--u)); padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(15 * var(--u)); border-radius: 999px; transition: transform .16s ease, filter .2s; }
.pp-book:hover { filter: brightness(1.12); transform: translateY(-1px); }

.pp-footer { font-size: max(11px, calc(16 * var(--u))); font-weight: 500; text-align: center; line-height: 1.35; }

@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pp-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-backdrop, .pp-card { animation: none; } .pp-book { transition: none; } }

/* ------------------------------------------------------------------------------------------------------------------
   The offers on the home page (between the hero and "What we do"): the same design as the pop-up, shown for good.
   ------------------------------------------------------------------------------------------------------------------ */
.ofs { --pp-green: #2d4f35; --pp-cream: #fbf7e6; font-family: 'League Spartan', 'Quicksand', system-ui, sans-serif; padding-top: 0; }
.ofs-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.ofs-badge { background: var(--pp-green); color: var(--pp-cream); font-size: .85rem; font-weight: 700; letter-spacing: .2em; padding: 7px 15px 5px; border-radius: 999px; }
.ofs-title { margin: 0; color: var(--pp-green); font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ofs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ofs-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; padding: 18px 20px; border: 3px solid var(--pp-green); border-radius: 20px; background: var(--pp-cream); color: var(--pp-green); text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .2s ease; }
.ofs-solid { background: var(--pp-green); color: var(--pp-cream); }
.ofs-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(45, 79, 53, .22); }
.ofs-card:focus-visible { outline: 3px solid var(--pp-green); outline-offset: 3px; }
.ofs-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ofs-name { font-size: 1.1rem; font-weight: 700; letter-spacing: .12em; }
.ofs-sub { font-size: 1.02rem; font-weight: 500; line-height: 1.25; }
.ofs-price { display: flex; align-items: baseline; gap: 8px; justify-self: end; }
.ofs-was { font-size: 1.05rem; font-weight: 600; text-decoration: line-through; opacity: .85; }
.ofs-now { font-size: 2.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ofs-book { grid-column: 1 / -1; display: block; padding: 13px 12px 10px; border-radius: 999px; background: var(--pp-green); color: var(--pp-cream); text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ofs-solid .ofs-book { background: var(--pp-cream); color: var(--pp-green); }
.ofs-fine { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.ofs-fine strong { color: var(--pp-green); letter-spacing: .06em; }

/* ------------------------------------------------------------------------------------------------------------------
   PHONES. Most visitors are on a phone, so below 560px the pop-up is not the desktop design shrunk down: it has its own
   sizes, with text that stays easy to read, big tap targets, and a card that fits the screen or scrolls inside it.
   ------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 560px) {
  .pp-backdrop { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .pp-card { width: min(100%, 420px); padding: 28px 18px 20px; gap: 14px; border-width: 3px; border-radius: 24px; }
  .pp-close { top: 8px; right: 8px; width: 44px; height: 44px; }
  .pp-logo { gap: 2px; }
  .pp-logo-text { font-size: 44px; letter-spacing: -1.5px; }
  .pp-logo-sub { font-size: 12px; letter-spacing: 8px; margin-right: -8px; }
  .pp-badge { font-size: 13px; letter-spacing: 3px; padding: 8px 16px 5px; }
  .pp-headline { font-size: 28px; letter-spacing: -.5px; }
  .pp-offers { gap: 10px; }
  .pp-offer { gap: 10px; padding: 13px 15px; border-width: 3px; border-radius: 16px; }
  .pp-offer-title { font-size: 15px; letter-spacing: 1.5px; }
  .pp-offer-sub { font-size: 14px; }
  .pp-price { gap: 7px; }
  .pp-was { font-size: 15px; }
  .pp-now { font-size: 40px; letter-spacing: -1.5px; }
  .pp-code-block { gap: 6px; }
  .pp-code-label { font-size: 12px; letter-spacing: 2px; }
  .pp-code { font-size: 38px; letter-spacing: 5px; padding: 9px 12px 5px; border-width: 3px; border-radius: 12px; }
  .pp-book { min-height: 54px; font-size: 18px; letter-spacing: 3px; padding: 16px 12px 13px; display: flex; align-items: center; justify-content: center; }
  .pp-footer { font-size: 13px; }
}
/* short phones (an iPhone SE, or a phone held sideways): tighten the spacing so most of it fits without scrolling */
@media (max-width: 560px) and (max-height: 700px) {
  .pp-card { padding-top: 22px; gap: 10px; }
  .pp-logo-text { font-size: 36px; }
  .pp-logo-sub { font-size: 11px; }
  .pp-headline { font-size: 24px; }
  .pp-now { font-size: 34px; }
  .pp-offer { padding: 10px 14px; }
  .pp-code { font-size: 32px; padding: 7px 10px 3px; }
  .pp-book { min-height: 50px; padding: 13px 12px 10px; }
}
@media (min-width: 561px) and (max-height: 560px) {
  .pp-card { margin-block: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ofs-card { transition: none; } }
