/* Pooch Purrfect Pet Spa: Christmas
   Loaded on every page only while CHRISTMAS is True in tools/build.py. A copy of fall.css
   with each fall drawing swapped for a Christmas one in the same spot, so the two seasons
   decorate the site the same way. Every decoration sits behind the page's text and buttons,
   can't be clicked, and is skipped by screen readers. The drawings are in assets/christmas/.
   Ornaments and presents are in the brand colors (pink, aqua, lavender, mustard), with
   pine green and berry red only where Christmas needs them (the tree, the bough, the hat). */

:root {
  --berry: #e2525c;
  --pine: #3f9a78;
  --mustard: #f2c14e;
  --frost: #eef7f6;
  --scatter: url("assets/christmas/scatter.svg");
}

.hero, .page-head, .award-band, .closer, .table-talk, .locked, .site-footer,
.section.tint-pink, .section.tint-lav, .section.tint-aqua { position: relative; isolation: isolate; }

/* ---------- A fir branch with two ornaments reaching into the top corner. Needles are layered like a
   flat illustration: dark ones behind the stem, lighter outlined ones crossing over it ---------- */
.hero::before, .page-head::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; right: 0; width: clamp(110px, 26vw, 250px); aspect-ratio: 230 / 190;
  background: url("assets/christmas/fir-branch.svg") right top / contain no-repeat;
  opacity: .9;
}
.hero::before { width: clamp(78px, 22vw, 250px); }
.page-head::before { width: clamp(62px, 18vw, 210px); }
/* Keeps the award line clear of the twig on phones. */
.hero-award { max-width: min(34ch, calc(100% - 62px)); }
@media (min-width: 900px) { .hero-award { max-width: 34ch; } }

/* ---------- One snowflake drifts into the home page, once ----------
   It falls from above the top edge, sways side to side on the way down, and comes to
   rest beside the hero photos. Same timing as the Halloween spider: just after the
   two hero photos settle. Nothing moves for devices that ask for reduced motion. */
/* Desktop only: on a phone there's no empty space for it to land in. */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; display: none;
  background: url("assets/christmas/snowflake.svg") center / contain no-repeat;
  rotate: 0deg;
}
@media (min-width: 900px) { .hero::after { display: block; bottom: 34px; left: 47%; width: 50px; aspect-ratio: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: snow-fall 3.2s cubic-bezier(.35, .1, .45, 1) both .9s; }
  @keyframes snow-fall {
    0%   { translate: -30px -420px; rotate: -40deg; opacity: 0; }
    10%  { opacity: 1; }
    30%  { translate: 40px -290px; rotate: 30deg; }
    55%  { translate: -34px -150px; rotate: -24deg; }
    80%  { translate: 18px -40px; rotate: 26deg; }
    100% { translate: 0 0; rotate: 0deg; }
  }
}

/* ---------- Snowflakes over the awards ---------- */
.award-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 10px; right: 12px; width: 110px; aspect-ratio: 210 / 90;
  background: var(--white); opacity: .5;
  -webkit-mask: var(--scatter) center / contain no-repeat; mask: var(--scatter) center / contain no-repeat;
}
@media (min-width: 900px) { .award-band::before { top: 24px; right: 7%; width: 200px; } }

/* ---------- Presents and candy canes in the bottom corners of the tinted sections ---------- */
.section.tint-pink::after, .section.tint-lav::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 0; right: 5%; width: 76px; aspect-ratio: 182 / 126;
  background: url("assets/christmas/presents.svg") center bottom / contain no-repeat;
}
.section.tint-lav::after { bottom: 6px; right: auto; left: 5%; width: 58px; aspect-ratio: 130 / 110; background-image: url("assets/christmas/candycanes.svg"); }
@media (min-width: 900px) {
  .section.tint-pink::after { width: 124px; }
  .section.tint-lav::after { width: 88px; bottom: 10px; }
}

/* ---------- Cookies and milk for Santa, in the aqua sections ---------- */
.section.tint-aqua::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 10px; right: 5%; width: 82px; aspect-ratio: 160 / 90;
  background: url("assets/christmas/cookies.svg") center bottom / contain no-repeat;
}
@media (min-width: 900px) { .section.tint-aqua::after { width: 128px; bottom: 16px; } }

/* ---------- Snowflakes along the dark bands: the existing-client prices and the footer ----------
   One drawing used as a mask, so each band sets its own color. */
.locked::before, .site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 14px; right: 4%; width: 190px; aspect-ratio: 320 / 64;
  background: var(--white); opacity: .4;
  -webkit-mask: url("assets/christmas/drift.svg") center / contain no-repeat; mask: url("assets/christmas/drift.svg") center / contain no-repeat;
}
.site-footer::before { background: var(--white); opacity: .3; top: 18px; width: 150px; }
@media (min-width: 900px) {
  .locked::before { width: 300px; top: 26px; }
  .site-footer::before { width: 240px; right: max(4%, calc((100vw - var(--max)) / 2)); }
}

/* ---------- A dog in a Santa hat, peeking over the footer ---------- */
.closer::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 0; right: 5%; width: 96px; aspect-ratio: 240 / 150;
  background: url("assets/christmas/santa-dog.svg") center bottom / contain no-repeat;
}
@media (min-width: 900px) { .closer::after { width: 150px; right: max(5%, calc((100vw - var(--max)) / 2 - 160px)); } }

/* ---------- Christmas trees, gingerbread dogs, reindeer ----------
   The Christmas versions of fall's cornucopias, corn and turkeys. */

/* A reindeer dog sitting in the gap under the first hero photo. */
.arches::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  right: 0; bottom: -10px; width: 58px; aspect-ratio: 188 / 152; /* phones: beside the caption */
  background: url("assets/christmas/reindeer.svg") center bottom / contain no-repeat;
}
@media (min-width: 900px) { .arches::after { right: auto; left: 14%; bottom: 40px; width: 104px; } }

/* A little tree in the bottom-left corner of the pink sections, across from the presents. */
.section.tint-pink::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 4px; left: 3%; width: 70px; aspect-ratio: 160 / 200;
  background: url("assets/christmas/tree.svg") left bottom / contain no-repeat;
}
@media (min-width: 900px) { .section.tint-pink::before { width: 100px; bottom: 8px; } }

/* A second one at the foot of each page heading, on screens wide enough to have room. */
.page-head::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; display: none;
  bottom: 6px; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: 92px; aspect-ratio: 160 / 200;
  background: url("assets/christmas/tree.svg") center bottom / contain no-repeat;
}
@media (min-width: 900px) { .page-head::after { display: block; } }

/* Two gingerbread dogs in the bottom-left corner of the aqua sections, across from the cookies. */
.section.tint-aqua::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 4px; left: 4%; width: 62px; aspect-ratio: 1;
  background: url("assets/christmas/gingerbread.svg") center bottom / contain no-repeat;
}
@media (min-width: 900px) { .section.tint-aqua::before { width: 96px; } }

/* A second reindeer in the holiday section, across from the present. */
.table-talk::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 6px; left: 5%; width: 76px; aspect-ratio: 188 / 152;
  background: url("assets/christmas/reindeer.svg") center bottom / contain no-repeat;
  transform: scaleX(-1);
}
@media (min-width: 900px) { .table-talk::before { width: 110px; left: max(3%, calc((100vw - var(--max)) / 2 - 30px)); } }

/* ---------- Room for the drawings (added December 3, 2026) ----------
   The bottom-corner drawings used to sit in the sections' normal padding and ran into the
   last line of content (the last award on the about page, the "rates are locked" link on the
   home page). These rules make each tinted section's bottom padding taller than its
   drawing, keep long page titles clear of the top-corner drawing on phones and tablets, and
   move the footer drawing into the empty space under the link columns. Checked on every page
   at 390, 768 and 1280 pixels wide with a script that measures each drawing against the text
   around it. */
.section.tint-pink { padding-bottom: 112px; }
.section.tint-aqua { padding-bottom: 84px; }
.section.tint-lav { padding-bottom: 76px; }
@media (min-width: 900px) {
  .section.tint-pink { padding-bottom: 150px; }
  .section.tint-aqua { padding-bottom: 124px; }
  .section.tint-lav { padding-bottom: 112px; }
}
@media (max-width: 1099px) { .page-head h1 { padding-right: 18vw; } }
@media (min-width: 900px) { .site-footer::before { top: auto; bottom: 120px; } }

/* ---------- 404 ---------- */
.lost-ornament { width: 72px; margin-bottom: 18px; transform: rotate(-14deg); }

/* ---------- Holiday safety (home page) ----------
   The few things that are fine sit inside an ornament; the hazards are listed beside it. */
.table-talk { background: var(--frost); padding: 64px 0; overflow: hidden; }
.table-grid { display: grid; gap: 40px; }
.table-copy h2 { font-variation-settings: "WONK" 1; font-size: clamp(2rem, 7vw, 3.2rem); max-width: 15ch; }
.table-copy .lede { color: var(--ink); max-width: 38ch; }
.table-help { max-width: 44ch; color: var(--muted); font-size: .98rem; margin: 0; }
.table-help a[href^="tel"] { white-space: nowrap; font-weight: 700; }

.table-food { display: grid; gap: 34px; align-items: center; }
.plate {
  width: min(100%, 340px); aspect-ratio: 1; justify-self: center;
  display: grid; place-content: center; text-align: center; padding: 18%;
  background: var(--white); border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 0 0 14px var(--white), inset 0 0 0 16px var(--pink), 6px 8px 0 var(--aqua);
  position: relative; margin-top: 30px;
}
/* The cap and hook that make the round list an ornament. */
.plate::before {
  content: ""; position: absolute; left: 50%; top: -24px; translate: -50% 0;
  width: 54px; height: 26px; border-radius: 6px 6px 3px 3px;
  background: var(--mustard); border: 2px solid var(--ink);
}
.plate::after {
  content: ""; position: absolute; left: 50%; top: -42px; translate: -50% 0;
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
}
.plate h3 { font-size: 1.3rem; margin: 0 0 .5em; }
.plate ul { list-style: none; margin: 0; padding: 0; font-size: .98rem; line-height: 1.35; }
.plate li + li { margin-top: .55em; padding-top: .55em; border-top: 1.5px dotted var(--line); }

.off-plate h3 { font-size: 1.3rem; margin: 0 0 .6em; }
.off-plate ul { list-style: none; margin: 0; padding: 0; }
.off-plate li { position: relative; padding: 0 0 0 30px; margin-bottom: .55em; line-height: 1.4; }
/* A small crossed-out mark: these stay off the plate. */
.off-plate li::before, .off-plate li::after {
  content: ""; position: absolute; left: 4px; top: .7em; width: 15px; height: 2.5px; border-radius: 2px; background: var(--berry);
}
.off-plate li::before { rotate: 45deg; }
.off-plate li::after { rotate: -45deg; }

/* Somebody's dog climbed into a present. */
.table-talk::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: 0; right: 4%; width: 110px; aspect-ratio: 220 / 124;
  background: url("assets/christmas/gift-tail.svg") center bottom / contain no-repeat;
}
.table-talk { padding-bottom: 96px; }

@media (min-width: 900px) {
  .table-talk::after { width: 170px; right: max(3%, calc((100vw - var(--max)) / 2 - 40px)); }
  .table-talk { padding: 104px 0; }
  .table-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .table-food { grid-template-columns: auto 1fr; gap: 44px; }
  .plate { width: 300px; }
}
@media (min-width: 1100px) { .plate { width: 330px; } }
