@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/**
 * Arial scaled to Montserrat's wider letters, so text barely moves when the web font arrives.
 */
@font-face {
  font-family: "Montserrat fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 112%;
  ascent-override: 86%;
  descent-override: 22%;
}

:root {
  --purple: #57176e;
  --purple-dark: #3f0f52;
  --yellow: #ffc520;
  --yellow-light: #ffd659;
  --lavender: #f4eff7;
  --ink: #2a1433;
  --muted: #5d4968;
  --line: #ded3e5;
  --error: #b42318;
  --error-bg: #fdecea;
  --success: #1c6440;
  --success-bg: #e2f2e8;

  --font: "Montserrat", "Montserrat fallback", Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --step-3: clamp(2.25rem, 1.45rem + 3.4vw, 3.75rem);
  --number: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --price: clamp(2.625rem, 1.9rem + 2.8vw, 4.5rem);
  --gutter: 1rem;
  --section: 3.5rem;
  --radius: 6px;
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; --step-0: 1.125rem; --step-1: 1.5rem; }
}

@media (min-width: 60em) {
  :root { --gutter: 2rem; --section: 5.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }
svg[hidden] { display: none; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  color: var(--purple);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 0.75em; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { text-decoration-thickness: 0.14em; }

img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--purple);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Header and footer carry the logo as it appears on the Facebook page: white and yellow on purple. */

.masthead, .footer { background: var(--purple); color: #fff; }
.masthead :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { width: auto; height: 2.25rem; }

.wordmark {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-pet { color: var(--yellow); }

.masthead-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.masthead-call:hover { background: var(--yellow-light); }

/* Below 30em the bar only has room for "Call"; the number stays in the link text for screen readers. */
@media (max-width: 29.99em) {
  .masthead-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Hero */

.hero-grid { display: grid; }

.hero-photo {
  order: -1;
  display: block;
  margin-inline: calc(var(--gutter) * -1);
}

.hero-photo img {
  width: 100%;
  height: min(20rem, 36svh);
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-copy { padding: 1.75rem 0 var(--section); }

.hero h1 { font-size: var(--step-3); max-width: 12ch; }

.lede {
  margin-top: 1rem;
  max-width: 34em;
}

.hero-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.call-block {
  display: block;
  padding: 0.85rem 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--purple);
  color: #fff;
  text-decoration: none;
}
.call-block:hover { background: var(--purple-dark); }
.call-label { display: block; font-weight: 600; font-size: 0.95rem; }
.call-number {
  display: block;
  margin-top: 0.15rem;
  color: var(--yellow);
  font-size: var(--number);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.button-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.button-primary:disabled { cursor: progress; opacity: 0.75; }

.button-outline { border-color: var(--purple); color: var(--purple); background: #fff; }
.button-outline:hover { background: var(--lavender); }

@media (min-width: 40em) {
  .hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; }
  .hero-actions .button { padding-inline: 2rem; }
}

@media (min-width: 48em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(18rem, 36vw, 27.5rem);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: 3rem 3.5rem;
  }
  .hero-photo { order: 0; margin: 0; }
  .hero-photo img { height: auto; aspect-ratio: 1 / 1.1; border-radius: var(--radius); }
  .hero-copy { padding: 0; }
}

/* Prices: a yellow board, like the Facebook cover, with the price as the biggest thing in each column. */

.prices {
  padding: var(--section) 0;
  background: var(--yellow);
}

.prices h2 { font-size: var(--step-2); }
.prices-note { margin-top: 0.5rem; font-weight: 500; }

.price-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

.price-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.price-text {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 3px solid var(--purple);
}

.price {
  order: -1;
  color: var(--purple);
  font-size: var(--price);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-from {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.price-item h3 { margin-top: 0.6rem; font-size: var(--step-1); }
.price-text p:last-child { margin-top: 0.4rem; }

@media (min-width: 40em) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .price-photo img { aspect-ratio: 4 / 3; }
}

@media (min-width: 60em) {
  .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* Day-30 strip */

.day30 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
}
.day30[hidden] { display: none; }

.day30 h3 { font-size: var(--step-1); }
.day30 label { font-weight: 600; }
.day30 input { max-width: 15rem; }

.day30-hint { color: var(--muted); font-weight: 500; }
.day30-result strong { color: var(--purple); font-weight: 800; }
.day30-result .button { margin-top: 0.75rem; }
.day30-result > * { animation: arrive 150ms ease-out; }

@keyframes arrive {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .day30-result > * { animation: none; }
}

@media (min-width: 60em) {
  .day30 {
    grid-template-columns: 14rem 17rem minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
  }
  .day30-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
  .day30-result .button { margin-top: 0; }
}

/* Form fields */

label, legend { display: block; font-weight: 700; }

input[type="text"], input[type="tel"], input[type="date"], textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  min-height: 3rem;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="date"] { max-width: 15rem; appearance: none; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; min-height: 7rem; }

input:focus-visible, textarea:focus-visible { outline-offset: 1px; }

.field [aria-invalid="true"], .day30 [aria-invalid="true"] { border-color: var(--error); }

.optional { font-weight: 500; color: var(--muted); }
.hint { margin-top: 0.2rem; color: var(--muted); font-size: 0.95em; }

.error {
  margin-top: 0.4rem;
  color: var(--error);
  font-weight: 700;
}
.error[hidden] { display: none; }

/* Booking */

.book {
  padding: var(--section) 0;
  background: var(--lavender);
}

.book h2 { font-size: var(--step-2); }
.book-intro p { margin-top: 0.75rem; max-width: 30em; }
.book-photo { display: none; }

.booking {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.field { margin: 0; padding: 0; border: 0; min-width: 0; }

legend { padding: 0; margin-bottom: 0.6rem; }

.choices { display: grid; gap: 0.5rem; }

.choice { position: relative; }

.choice input {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  transform: translateY(-50%);
  accent-color: var(--purple);
}

.choice label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.75rem;
  min-height: 3.25rem;
  padding: 0.8rem 1rem 0.8rem 3.1rem;
  background: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.choice input:checked + label { border-color: var(--purple); }
.choice input:focus-visible + label { outline: 3px solid var(--purple); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
#service-field[aria-invalid="true"] .choice label { border-color: var(--error); }

.choice-price { font-weight: 500; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.form-status:empty { display: none; }
.form-status {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border-left: 6px solid;
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--purple); }
.form-status.is-success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.form-status.is-error { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.form-status p { font-weight: 700; }
.form-status p + p { margin-top: 0.35rem; }

.button-submit { justify-self: start; }

@media (max-width: 29.99em) {
  .button-submit { justify-self: stretch; }
}

.noscript { font-weight: 700; }

@media (min-width: 60em) {
  .book-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
    gap: 4rem;
    align-items: start;
  }
  .booking { margin-top: 0; }
  .book-photo { display: block; max-width: 26rem; margin-top: 2rem; }
  .book-photo img { border-radius: var(--radius); }
}

.form-privacy { color: var(--muted); font-size: 0.95em; }

/* Privacy page: a reading column, with the short version kept in view beside it on wide screens. */

.policy {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem var(--section);
}

.policy-head h1 { font-size: var(--step-2); }
.policy-updated { margin-top: 0.5rem; color: var(--muted); font-weight: 500; }

.policy-summary {
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--yellow);
  border-radius: var(--radius);
}
.policy-summary h2 { font-size: var(--step-1); }
.policy-summary ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.policy-summary li + li { margin-top: 0.6rem; }
.policy-summary li::marker { color: var(--purple); }

.policy-body { max-width: 40rem; }
.policy-body section + section { margin-top: 2.5rem; }
.policy-body h2 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.policy-body p, .policy-body li { line-height: 1.7; }
.policy-body ul { margin: 0.75rem 0; padding-left: 1.2rem; }
.policy-body li + li { margin-top: 0.35rem; }

.policy-fields { margin: 1rem 0 1.25rem; border-top: 2px solid var(--purple); }
.policy-fields div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.policy-fields dt { color: var(--purple); font-weight: 700; }
.policy-fields dd { margin: 0.15rem 0 0; }

.policy-choice { padding: 1rem 1.1rem; background: var(--lavender); border-radius: var(--radius); }
.policy-choice .link-button { color: var(--purple); }

@media (min-width: 40em) {
  .policy-fields div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; }
  .policy-fields dd { margin: 0; }
}

@media (min-width: 60em) {
  .policy {
    grid-template-columns: minmax(0, 40rem) 22rem;
    justify-content: space-between;
    column-gap: 4rem;
    padding-top: 3.5rem;
  }
  .policy-head { grid-column: 1 / -1; }
  .policy-summary { grid-column: 2; grid-row: 2; position: sticky; top: 2rem; align-self: start; }
  .policy-body { grid-column: 1; grid-row: 2; }
}

/* Footer */

.footer { padding: 3rem 0 1.5rem; }

.footer-grid { display: grid; gap: 2.5rem; }

.footer .tagline { margin-top: 0.5rem; font-weight: 500; }
.footer-about p:last-child { margin-top: 1rem; max-width: 26em; }

.footer h2 { color: #fff; font-size: var(--step-1); }

.footer-number {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--yellow);
  font-size: var(--number);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
}
.footer-number:hover { text-decoration: underline; }

.contact {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.contact a { font-weight: 700; overflow-wrap: anywhere; }

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-size: 0.95rem;
}
.copyright p + p { margin-top: 0; }
.privacy-notes p + p { margin-top: 0.35rem; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/**
 * Cookie choice: a card in the masthead's colours. On phones the header's call button and the hero's
 * call and booking buttons fill both edges of the first screen, so the card hangs under the masthead
 * over the hero photo. Its anchor has no height and sticks to the top, so the card follows the scroll
 * without moving anything on the page. Pages without the photo (the 404 page) have their text and
 * phone link there instead, so consent.js puts the card at the bottom.
 */

.consent-anchor {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 0;
}

.consent {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  right: var(--gutter);
  max-width: 30rem;
  margin-inline: auto;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0.75rem 2rem rgb(42 20 51 / 0.35);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: arrive 200ms ease-out;
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent:focus-visible, .consent :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.consent-button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--purple);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent-button:hover { background: var(--yellow-light); }

.consent-anchor.at-bottom { position: static; }
.consent-anchor.at-bottom .consent { position: fixed; top: auto; bottom: var(--gutter); z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}

/* With room to spare, the card sits in the corner over the photo and price board, clear of the buttons. */
@media (min-width: 48em) and (min-height: 30em) {
  .consent-anchor { position: static; }
  .consent {
    position: fixed;
    top: auto;
    left: auto;
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 1;
    width: 23rem;
    max-width: calc(100% - 2 * var(--gutter));
    margin: 0;
  }
}

/* 404 page */

.lost { padding-block: var(--section); min-height: 60vh; }
.lost h1 { font-size: var(--step-2); }
.lost p { margin-top: 1rem; max-width: 32em; }
.lost .button { margin-top: 1.75rem; }

.footer-slim { padding-top: 0; }
.footer-slim .copyright { margin-top: 0; border-top: 0; }
