/* Santa for Hire South Wales. Styled after its logo: green glitter, a red and white
   Santa hat, white storybook lettering, with snow falling over the top. */

@font-face { font-family: "DM Serif Display"; src: url("../fonts/dmserifdisplay.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --pine: #0b4d17;
  --green: #138a26;
  --leaf: #5fd35a;
  --red: #d7151f;
  --berry: #a30d14;
  --snow: #ffffff;
  --cream: #fff6e6;
  --gold: #f6c945;
  --mist: #d6f1d6;
  --yellow: #ffe63b;
  --serif: "DM Serif Display", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--snow); font: 500 18px/1.55 "Nunito", system-ui, sans-serif; overflow-x: hidden;
  /* Glitter: tiny sparks of light green and gold over deep green, like the logo background. */
  background-color: var(--pine);
  background-image:
    radial-gradient(circle, rgba(220,255,140,.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(140,240,120,.55) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255,230,120,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.6) 0 .8px, transparent 1.3px),
    radial-gradient(ellipse 120% 900px at 50% 0%, #1a9a2e 0%, #0f6e1f 45%, var(--pine) 100%);
  background-size: 23px 29px, 37px 31px, 53px 47px, 71px 67px, 100% 100%;
  background-position: 0 0, 11px 17px, 30px 8px, 5px 40px, 0 0;
  background-repeat: repeat, repeat, repeat, repeat, no-repeat;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; position: relative; }

/* Placeholders: anything still to confirm wears a dashed outline and a tag. */
.ph { outline: 2px dashed var(--yellow); outline-offset: 4px; position: relative; }
.ph[data-ph]::after {
  content: attr(data-ph); position: absolute; top: -14px; left: 6px; z-index: 5;
  padding: 2px 7px; background: var(--yellow); color: #000;
  font: 700 10px/1.4 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
.ribbon { display: inline-block; background: var(--red); color: var(--snow); padding: 8px 22px; border-radius: 6px;
  font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 4px 0 var(--berry), 0 8px 20px rgba(0,0,0,.25); }

.btn { display: inline-block; font-weight: 800; font-size: 18px; text-decoration: none; padding: 14px 26px; border-radius: 999px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--berry), 0 0 0 3px #fff; }
.btn-line { border: 3px solid #fff; color: #fff; overflow-wrap: anywhere; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 16px 0 70px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 3; }
.bar .home { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 2px solid currentColor; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; background: rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.bar .home:hover, .bar .home:focus-visible { transform: translateX(-3px); background: rgba(0,0,0,.6); }
.bar .home::before { content: "\2190"; font-size: 1.15em; }
@media (max-width: 420px) { .bar .home .long { display: none; } }
.bar .tel { font-weight: 800; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--red); white-space: nowrap; }

.hero-grid { display: grid; gap: 40px; align-items: center; margin-top: 26px; position: relative; z-index: 2; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-copy { text-align: center; }
@media (min-width: 880px) { .hero-copy { text-align: left; } }
.logo { width: clamp(170px, 26vw, 230px); border-radius: 50%; border: 6px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35); margin: 0 auto; }
@media (min-width: 880px) { .logo { margin: 0; } }
.kicker { margin: 22px 0 6px; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); color: var(--gold); }
.hero h1 { font-size: clamp(44px, 7vw, 82px); text-shadow: 0 3px 0 rgba(0,0,0,.25); text-wrap: balance; }
.said { margin: 18px 0 0; font-size: clamp(19px, 2.2vw, 22px); max-width: 40ch; color: var(--cream); }
@media (max-width: 879px) { .said { margin-inline: auto; } }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; justify-content: center; }
@media (min-width: 880px) { .hero .ctas { justify-content: flex-start; } }

.photo { margin: 0; justify-self: center; width: min(420px, 100%); background: #fff; padding: 12px 12px 0; border-radius: 6px; rotate: 2.5deg;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.photo img { border-radius: 3px; }
.photo figcaption { color: var(--berry); font-family: var(--serif); font-size: 22px; text-align: center; padding: 8px 0 12px; }

/* Snow. brand.js adds the flakes. */
.fall { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fall i { position: absolute; top: -20px; border-radius: 50%; opacity: .85; filter: blur(.4px); animation: snow var(--t) linear var(--w) infinite; }
@keyframes snow { to { transform: translate(var(--x), 110vh); } }

/* ---------- Sections ---------- */
section { padding: 70px 0; position: relative; }
.head { text-align: center; margin-bottom: 36px; }
.head h2 { margin-top: 18px; font-size: clamp(34px, 5.4vw, 58px); text-wrap: balance; }

.tags { display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
@media (min-width: 720px) { .tags { grid-template-columns: 1fr 1fr; } }
/* Each price sits on a gift tag. */
.tag { position: relative; background: var(--cream); color: #3a1a12; border-radius: 18px 18px 18px 18px; padding: 40px 28px 28px; text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.3); border: 3px dashed rgba(163,13,20,.35); background-clip: padding-box; }
.tag::before { content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; translate: -50% 0; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px var(--gold); }
.tag h3 { font-size: 32px; color: var(--green); margin-top: 8px; }
.tag .price { font-family: var(--serif); font-size: clamp(60px, 9vw, 84px); line-height: 1; margin: 10px 0 12px; color: var(--red); }
.tag .price small { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 18px; color: #6b3a2e; }
.tag .price sup { font-size: .4em; }
.tag p { margin: 0; }
.star-note { text-align: center; margin: 24px auto 0; max-width: 52ch; color: var(--mist); }

.visit { background: linear-gradient(180deg, transparent, rgba(0,0,0,.18) 30%, rgba(0,0,0,.18) 70%, transparent); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; position: relative; background: rgba(5,52,16,.92); border: 2px solid rgba(255,255,255,.25); border-radius: 18px; padding: 62px 20px 22px; color: var(--cream); }
.steps li::before { content: counter(step); position: absolute; top: 16px; left: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--serif); font-size: 22px; box-shadow: 0 0 0 3px #fff; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; color: #fff; margin-bottom: 6px; }

.two { display: grid; gap: 26px; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.card { border-radius: 22px; padding: 30px 28px; }
.card h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 18px; }
.trust { background: #fff; color: #2b1a12; box-shadow: 0 14px 40px rgba(0,0,0,.3); border-top: 14px solid var(--red); }
.trust h2 { color: var(--green); }
.baubles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 700; }
.baubles li { position: relative; padding-left: 34px; }
.baubles li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a8a, var(--red) 55%, var(--berry)); }
.baubles li:nth-child(even)::before { background: radial-gradient(circle at 35% 30%, #fff2a8, var(--gold) 55%, #b98a12); }
.baubles li::after { content: ""; position: absolute; left: 7px; top: calc(.2em - 4px); width: 6px; height: 5px; background: #c9c9c9; border-radius: 1px; }
.when { background: var(--red); box-shadow: 0 14px 40px rgba(0,0,0,.3); border: 3px solid #fff; outline: 6px solid var(--red); outline-offset: 0; }
.when .big { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.when p { margin: 0; }

.reviews { display: grid; gap: 22px; max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; background: var(--cream); color: #2b1a12; border-radius: 22px; padding: 28px; position: relative; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.review blockquote::before { content: "\201C"; display: block; font-size: 70px; line-height: .6; color: var(--red); margin-bottom: 4px; }
.review figcaption { margin-top: 12px; font-weight: 800; color: var(--green); }
.thanks { list-style: none; padding: 0; margin: 34px auto 0; max-width: 960px; display: grid; gap: 16px; }
@media (min-width: 760px) { .thanks { grid-template-columns: 1fr 1fr; } }
.thanks li { background: rgba(5,52,16,.92); border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; padding: 14px 18px; color: var(--cream); font-style: italic; }
.thanks-note { text-align: center; color: var(--mist); font-size: 15px; margin: 14px 0 0; }

.book { text-align: center; padding-bottom: 30px; }
.book h2 { margin-top: 18px; font-size: clamp(34px, 5.4vw, 58px); }
.book .num { display: inline-block; margin: 14px 0 24px; font-family: var(--serif); font-size: clamp(44px, 9vw, 92px); text-decoration: none; color: #fff; text-shadow: 0 4px 0 var(--berry); }
.foot { margin-top: 60px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--mist); font-size: 15px; text-align: left; }

/* ---------- Motion ---------- */
.logo { animation: drop .9s cubic-bezier(.3,1.5,.5,1) .2s both, swing 5s ease-in-out 1.2s infinite alternate; transform-origin: 50% -40%; }
@keyframes drop { from { transform: translateY(-60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swing { from { rotate: -3deg; } to { rotate: 3deg; } }
.kicker, .hero h1, .said, .hero .ctas { animation: up .8s cubic-bezier(.2,.9,.3,1) both; }
.kicker { animation-delay: .5s; } .hero h1 { animation-delay: .65s; } .said { animation-delay: .8s; } .hero .ctas { animation-delay: .95s; }
.photo { animation: up 1s cubic-bezier(.2,.9,.3,1) .7s both; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.btn-red { animation: glow 2.6s ease-in-out 2s infinite alternate; }
@keyframes glow { to { box-shadow: 0 4px 0 var(--berry), 0 0 0 3px #fff, 0 0 26px rgba(255,255,255,.55); } }

/* Fairy lights along the top, twinkling one after another. */
.lights { position: absolute; left: 0; top: 0; width: 100%; height: 70px; z-index: 2; pointer-events: none; }
.lights .b ellipse { filter: drop-shadow(0 0 6px var(--c)); animation: twinkle 1.5s ease-in-out var(--d) infinite alternate; }
@keyframes twinkle { from { opacity: .35; filter: none; } to { opacity: 1; filter: drop-shadow(0 0 8px var(--c)) drop-shadow(0 0 16px var(--c)); } }

/* A full moon, and Santa's sleigh crossing in front of it every so often. */
.moon { position: absolute; right: 7%; top: 70px; width: 110px; height: 110px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, #fffdf0, #f3efd6 60%, #dcd6b4); box-shadow: 0 0 60px 20px rgba(255,250,220,.25); opacity: .9; }
.sleigh { position: absolute; top: 90px; left: 0; width: 320px; z-index: 1; pointer-events: none; opacity: 0; animation: fly 16s linear 2.5s infinite; }
.sleigh .deer { transform-box: fill-box; transform-origin: 50% 50%; animation: gallop .5s ease-in-out infinite alternate; }
.sleigh .ride { transform-box: fill-box; transform-origin: 50% 50%; animation: gallop .9s ease-in-out infinite alternate; }
.sleigh .deer + .deer { animation-delay: -.25s; }
@keyframes fly { 0% { transform: translate(-260px, 40px) rotate(-6deg); opacity: 0; } 3% { opacity: .95; }
  45% { transform: translate(110vw, -30px) rotate(-6deg); opacity: .95; } 46%, 100% { transform: translate(110vw, -30px); opacity: 0; } }
@keyframes gallop { from { transform: translateY(-2px) rotate(-3deg); } to { transform: translateY(2px) rotate(3deg); } }
.photo { position: relative; z-index: 2; }

/* The headline catches gold light. */
.hero h1 { background: linear-gradient(105deg, #fff 40%, #ffe9a0 48%, #fff 56%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.motion .hero h1 { animation: up .8s cubic-bezier(.2,.9,.3,1) .65s both, goldshine 5s ease-in-out 2s infinite; }
@keyframes goldshine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }

/* Price tags hang and sway from their string hole. */
.tag { transform-origin: 50% 0; animation: sway 3.4s ease-in-out infinite alternate; }
.tag:nth-child(2) { animation-delay: -1.7s; }
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.tag .price span { display: inline-block; min-width: 1.1em; font-variant-numeric: tabular-nums; }

/* Step icons sit in the top corner of each card. */
.steps .si { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; }
.steps li:hover { translate: 0 -6px; }
.steps li { transition: translate .3s cubic-bezier(.3,1.6,.5,1); }
/* Step and service icons: each has its own small loop. */
@keyframes spin { to { rotate: 360deg; } }
.si.chat { animation: pop 2.4s ease-in-out infinite; transform-origin: 20% 90%; }
@keyframes pop { 0%, 60%, 100% { transform: none; } 70% { transform: scale(1.15) rotate(-6deg); } 80% { transform: scale(.96); } }
.si.memo { animation: scribble 1.8s ease-in-out infinite; }
@keyframes scribble { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.si.story { animation: flap 3s ease-in-out infinite; }
@keyframes flap { 0%, 60%, 100% { transform: none; } 70% { transform: scaleX(.8) translateY(-3px); } 80% { transform: scaleX(1.05); } }
.si.gift { animation: giftbounce 2.6s cubic-bezier(.3,0,.4,1) infinite; transform-origin: 50% 100%; }
@keyframes giftbounce { 0%, 50%, 100% { transform: none; } 15% { transform: translateY(-10px) rotate(-6deg); } 30% { transform: scale(1.1, .9); } 40% { transform: none; } }
.svc .svi { transform-origin: 50% 100%; }
.svc.mug .svi { animation: scribble 2.4s ease-in-out infinite; }
.svc.house .svi { animation: giftbounce 3s cubic-bezier(.3,0,.4,1) .4s infinite; }
.svc.cracker .svi { animation: pop 2.2s ease-in-out .8s infinite; }
.svc.grotto .svi { animation: tree 3.2s ease-in-out infinite; }
@keyframes tree { 0%, 100% { rotate: -3deg; filter: none; } 50% { rotate: 3deg; filter: drop-shadow(0 0 8px rgba(246,201,69,.8)); } }
.clock { width: 64px; height: 64px; margin-bottom: 12px; animation: tick 1s steps(2) infinite; }
@keyframes tick { 0% { rotate: -4deg; } 100% { rotate: 4deg; } }
.bell svg { width: 100%; height: auto; }

/* Bauble bullets bob gently, each a little out of step. */
.baubles li::before, .baubles li::after { animation: bob 2.2s ease-in-out infinite alternate; }
.baubles li:nth-child(2)::before, .baubles li:nth-child(2)::after { animation-delay: -.6s; }
.baubles li:nth-child(3)::before, .baubles li:nth-child(3)::after { animation-delay: -1.2s; }
.baubles li:nth-child(4)::before, .baubles li:nth-child(4)::after { animation-delay: -1.8s; }
@keyframes bob { to { transform: translateY(-3px) rotate(8deg); } }

/* Reviews: the quote mark pops; thank-you notes slide in from the side. */
.review blockquote::before { transform-origin: 0 100%; animation: quote 3s ease-in-out infinite; }
@keyframes quote { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.25) rotate(-8deg); } }
.motion .thanks .reveal { transform: translateX(-40px); }
.motion .thanks .reveal.in { transform: none; }

/* Booking: the sleigh bell rings and the number glows. */
.bell { width: 64px; margin: 18px auto 0; transform-origin: 50% 10%; animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 50%, 100% { rotate: 0deg; } 10% { rotate: 18deg; } 20% { rotate: -14deg; } 30% { rotate: 10deg; } 40% { rotate: -5deg; } }
.book .num { animation: numglow 2.6s ease-in-out infinite alternate; }
@keyframes numglow { to { text-shadow: 0 4px 0 var(--berry), 0 0 30px rgba(255,240,180,.7); } }
@media (max-width: 600px) { .moon { width: 70px; height: 70px; right: 4%; } .sleigh { width: 210px; } }

/* Services: each icon has its own little loop. */
.services { padding-bottom: 10px; }
.svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.svc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(5,52,16,.92); border: 2px solid rgba(255,255,255,.25); }
.svc .svi { flex: none; width: 52px; height: 52px; }
.svc b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.helpers { margin-top: 22px; }
.helpers > div { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: var(--cream); color: #2b1a12; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.helpers p { margin: 0; font-size: 20px; }
.helpers b { font-family: var(--serif); font-weight: 400; color: var(--green); font-size: 24px; }
.helpers .duo { flex: none; display: flex; align-items: flex-end; gap: 6px; }
.helpers .elfhat { width: 74px; transform-origin: 30% 90%; animation: hatwob 2.8s ease-in-out infinite; }
.helpers .elfhat .bell { transform-box: fill-box; transform-origin: 50% 0; animation: jingle 1.4s ease-in-out infinite; }
.helpers .mrsclaus { width: 62px; animation: nod 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hatwob { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
@keyframes jingle { 0%, 100% { rotate: -14deg; } 50% { rotate: 14deg; } }
@keyframes nod { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -6deg; } 88% { rotate: 4deg; } }

.motion .reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease var(--rd, 0s), transform .8s cubic-bezier(.2,.9,.3,1.1) var(--rd, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
