/* Christmas campaign pages (/christmas/). Shares the site's forest green, cream and gold, with Christmas red as the accent. */
:root {
  --forest-900: #0f3a21;
  --forest-800: #17502e;
  --forest-700: #1f6b3a;
  --green-600: #1f7a3f;
  --cream: #f8f5ee;
  --white: #ffffff;
  --ink: #17221c;
  --muted: #4f5b52;
  --xmas-red: #c0282d;
  --xmas-red-dark: #8f1d1d;
  --gold: #e8b53a;
  --line: rgba(20, 53, 31, 0.12);
  --shadow: 0 18px 40px rgba(20, 53, 31, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--forest-800); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--forest-900); line-height: 1.12; letter-spacing: -0.02em; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header and navigation: same structure as the services pages so nav-toggle.js works unchanged. */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.nowrap { white-space: nowrap; }

.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
  color: var(--forest-900);
}

.nav a { color: inherit; text-decoration: none; }
.nav a:hover,
.nav a:focus-visible,
.nav a.active { color: var(--green-600); }

.nav-toggle {
  display: none;
  padding: 0.7rem 1rem;
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  background: transparent;
  color: var(--forest-800);
  font-weight: 700;
  cursor: pointer;
}

.header-cta {
  display: inline-block;
  background: var(--green-600);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-red { background: var(--xmas-red); color: var(--white); }
.btn-red:hover, .btn-red:focus-visible { background: var(--xmas-red-dark); }

.btn-gold { background: var(--gold); color: var(--forest-900); }
.btn-gold:hover, .btn-gold:focus-visible { background: #f2c85a; }

.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark { border-color: var(--forest-800); color: var(--forest-800); background: transparent; }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--forest-800); color: var(--white); }

.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.day-card a:focus-visible,
.tip-source a:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Candy-stripe band across the top of each campaign page */
.candy-stripe {
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--xmas-red) 0 14px, var(--white) 14px 28px);
}

/* Falling snow (snow.js) sits over the page but under the sticky header and ignores clicks */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9;
}

/* Hero */
.xmas-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 181, 58, 0.22), transparent 42%),
    linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%);
  padding: 4.5rem 0 5rem;
}

.xmas-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.xmas-eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xmas-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 1.1rem;
}

.xmas-lede {
  max-width: 36rem;
  font-size: 1.12rem;
  color: #e4eee2;
  margin-bottom: 2rem;
}

.xmas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.xmas-art {
  margin: 0;
  text-align: center;
}

.xmas-art img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35));
}

.xmas-art figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #d9e6d6;
}

/* Page hero (secondary pages) */
.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%);
  padding: 3.5rem 0 3.75rem;
}

.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 0.9rem; }
.page-hero p { max-width: 42rem; color: #e4eee2; font-size: 1.08rem; margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Sections */
.xmas-section { padding: 4.25rem 0; }
.xmas-section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 0.6rem; }
.section-title p { max-width: 40rem; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* How it works cards */
.xmas-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.xmas-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--xmas-red);
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.xmas-card:nth-child(2) { border-top-color: var(--green-600); }
.xmas-card:nth-child(3) { border-top-color: var(--gold); }

.xmas-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.xmas-card p { color: var(--muted); margin-bottom: 0; }

/* Twelve-day calendar links */
.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.day-card a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.day-card a:hover,
.day-card a:focus-visible {
  border-color: var(--xmas-red);
  transform: translateY(-2px);
}

.day-number {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--xmas-red);
  margin-bottom: 0.35rem;
}

.day-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.day-title { font-weight: 700; color: var(--forest-900); }

/* Daily tips page */
.tips-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tip {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--xmas-red);
  border-radius: 1rem;
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.tip:nth-child(3n+2) { border-left-color: var(--green-600); }
.tip:nth-child(3n+3) { border-left-color: var(--gold); }

.tip-date {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xmas-red-dark);
}

.tip h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 0.9rem; }
.tip p { color: var(--ink); margin-bottom: 0.85rem; }
.tip p:last-child { margin-bottom: 0; }
.tip-cta { font-weight: 700; color: var(--forest-800); }

/* Character art on selected tips. The images are decorative, so they carry empty alt text. */
.tip { display: flow-root; }

.tip-art {
  float: right;
  width: 140px;
  height: auto;
  margin: -0.25rem -0.25rem 0.5rem 1.25rem;
  filter: drop-shadow(0 6px 8px rgba(20, 53, 31, 0.22));
}

.tip-art-wide {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 1.25rem auto 0;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.tip-links { margin-bottom: 0.85rem; font-size: 0.95rem; color: var(--muted); }
.tip-links a { color: var(--forest-800); font-weight: 700; }

.tip-source {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.tip-source a { color: var(--forest-800); }

.text-link { font-weight: 700; }

/* Ornament wheel promo */
.wheel-ornaments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wheel-ornaments img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 8px 10px rgba(20, 53, 31, 0.25));
}

.wheel-promo .xmas-actions { justify-content: center; }

/* Each ornament turns once around its vertical axis when it scrolls into view (twirl.js adds .is-twirling). */
@keyframes ornament-twirl {
  from { transform: perspective(600px) rotateY(0deg); }
  to { transform: perspective(600px) rotateY(360deg); }
}

.wheel-ornaments img.is-twirling { animation: ornament-twirl 1.8s cubic-bezier(0.45, 0.05, 0.25, 1); }

/* Advent calendar doors (tips page) */
.doors {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.door {
  position: relative;
  display: block;
  aspect-ratio: 159 / 150;
  border-radius: 10px;
  overflow: hidden;
  background: var(--forest-900);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.door img { display: block; width: 100%; height: 100%; object-fit: fill; }

.door-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f7e7b0;
  background: rgba(10, 30, 20, 0.86);
}

/* Without JavaScript every door is a plain link to its tip, so keep them looking available. */
.advent-js .door.is-locked { cursor: not-allowed; }
.advent-js .door.is-locked img { filter: grayscale(0.75) brightness(0.5); }
.advent-js .door.is-ready { box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(232, 181, 58, 0.65); cursor: pointer; }
.advent-js .door.is-ready:hover,
.advent-js .door.is-ready:focus-visible { transform: translateY(-3px); }
.advent-js .door.is-ready .door-status { background: var(--xmas-red); color: var(--white); }
.advent-js .door.is-opened img { filter: brightness(0.72); }
.advent-js .door.is-opened .door-status { background: var(--forest-700); }

.door:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.advent-note { min-height: 1.6em; margin-top: 0.4rem; font-weight: 700; color: var(--xmas-red-dark); }
.advent-empty { text-align: center; color: var(--muted); margin: 0; }

/* Tips stay hidden until their door is opened (advent.js adds .advent-js and .is-open). */
.advent-js .tip:not(.is-open) { display: none; }
.advent-js .tip.is-open { animation: tip-reveal 0.5s ease both; }
.advent-js #tips:has(.tip.is-open) .advent-empty { display: none; }

@keyframes tip-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Calendar poster on the landing page */
.advent-poster { margin: 0 auto 1.75rem; max-width: 520px; }
.advent-poster img { width: 100%; height: auto; border-radius: 1rem; box-shadow: var(--shadow); }
.xmas-section.alt .xmas-actions { justify-content: center; }

/* Countdown to Christmas */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.countdown-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  text-align: center;
}

.countdown-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--xmas-red-dark);
}

.countdown-fallback { margin: 0; color: var(--muted); font-size: 1.1rem; }
.countdown.is-live .countdown-fallback { display: none; }

.countdown-units { display: none; }
.countdown.is-live .countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}
.countdown.is-christmas .countdown-units { display: none; }

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.25rem 0.7rem;
  background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-700) 100%);
  border: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.countdown-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f7d673;
}

.countdown-label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e4eee2;
}

.countdown-message {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--xmas-red);
}

.countdown-caption { margin: 0.9rem 0 0; color: var(--muted); font-weight: 700; }

/* The narrowest phones: shrink the labels so MINUTES and SECONDS stay inside their tiles */
@media (max-width: 400px) {
  .countdown.is-live .countdown-units { gap: 0.5rem; }
  .countdown-label { font-size: 0.6rem; letter-spacing: 0.03em; }
}

/* Elves on the Toy Shop promo */
.toy-elves {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.5rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
}

.toy-elves img {
  height: 170px;
  width: auto;
  filter: drop-shadow(0 8px 10px rgba(20, 53, 31, 0.25));
  animation: elf-bob 2.8s ease-in-out infinite;
}

.toy-elves img:nth-child(2) { animation-delay: -0.9s; }
.toy-elves img:nth-child(3) { animation-delay: -1.8s; }

@keyframes elf-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

/* The real logo, in a white badge so it reads on the red sections */
.section-logo {
  display: block;
  width: auto;
  height: 64px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Closing call to action and greeting */
.xmas-cta {
  background: var(--forest-900);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.xmas-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.9rem; }
.xmas-cta p { max-width: 40rem; margin: 0 auto 1.8rem; color: #e4eee2; font-size: 1.05rem; }
.xmas-cta .xmas-actions { justify-content: center; }
.xmas-cta .phone-line { margin-top: 1.25rem; font-size: 0.98rem; }
.xmas-cta .phone-line a { color: var(--gold); font-weight: 700; }

.greeting {
  padding: 3.5rem 0;
  text-align: center;
  background: var(--cream);
}

.greeting h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); color: var(--xmas-red-dark); margin-bottom: 0.8rem; }
.greeting p { max-width: 40rem; margin: 0 auto; color: var(--muted); }

/* Footer: same layout as the services pages */
.site-footer {
  background: #102c20;
  color: #c4d5c5;
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer strong { color: var(--white); }
.site-footer p { margin: 0.5rem 0 0; color: #8ea892; font-size: 0.95rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  justify-content: flex-end;
  align-content: flex-start;
}

.footer-links a { color: #dce8d8; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid #2c4a38;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: #8ea892;
}

/* Red, green and gold palette: green and red carry the page, gold is the accent. */
.site-header { border-bottom: 3px solid var(--gold); }
.nav a:hover,
.nav a:focus-visible,
.nav a.active { color: var(--xmas-red); }
.header-cta { background: var(--xmas-red); }
.header-cta:hover,
.header-cta:focus-visible { background: var(--xmas-red-dark); }

.xmas-hero,
.page-hero { border-bottom: 5px solid var(--gold); }
.xmas-hero .btn-red { border-color: var(--gold); }

/* A short gold rule under every section heading */
.section-title h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin: 0.7rem auto 0;
  border-radius: 2px;
  background: var(--gold);
}

/* Red sections: the poster on the landing page and the advent calendar */
.xmas-section.red {
  background: linear-gradient(135deg, #8f1d1d 0%, #b8262b 55%, #8f1d1d 100%);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.xmas-section.red .section-title h2 { color: var(--white); }
.xmas-section.red .section-title p { color: #ffe9e4; }
.xmas-section.red .advent-note { color: #ffe08a; }
.xmas-section.red .xmas-actions { justify-content: center; }
.advent-js .door.is-ready .door-status { background: var(--gold); color: var(--forest-900); }
.advent-poster img { border: 4px solid var(--gold); }

.xmas-card { border-color: rgba(185, 138, 20, 0.35); }
.xmas-cta {
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%);
  border-top: 4px solid var(--gold);
}
.greeting { border-top: 4px solid var(--gold); }
.site-footer { background: #0b2a19; border-top: 4px solid var(--gold); }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold); }

/* Tablet */
@media (max-width: 900px) {
  .xmas-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .xmas-art { order: -1; }
  .xmas-art img { max-width: 300px; }
  .xmas-cards { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doors { max-width: 560px; }
}

/* Phone: the navigation collapses behind the Menu button */
@media (max-width: 650px) {
  .brand img { height: 44px; }
  .site-header .container { gap: 0.6rem; }
  .nav-toggle { display: block; padding: 0.55rem 0.85rem; }
  .header-cta { padding: 0.6rem 0.9rem; font-size: 0.92rem; white-space: nowrap; }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-top: 1px solid var(--line); }
  .xmas-hero { padding: 3rem 0 3.5rem; }
  .xmas-hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .xmas-lede { font-size: 1.02rem; }
  .xmas-actions .btn { width: 100%; }
  .xmas-section { padding: 3rem 0; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .day-card a { padding: 0.9rem; }
  .day-number { font-size: 1.7rem; }
  .tip { padding: 1.3rem 1.2rem; }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
  .door-status { font-size: 0.66rem; }
  .tip-art { float: none; width: 112px; margin: 0 auto 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .xmas-cta { padding: 3rem 0; }
  .xmas-cta .xmas-actions .btn { width: 100%; }
  .wheel-ornaments { gap: 0.6rem; }
  .wheel-ornaments img { height: 76px; }
  .toy-elves img { height: 108px; }   /* three elves must fit a phone-width row */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .day-card a, .door { transition: none; }
  .advent-js .tip.is-open { animation: none; }
  .wheel-ornaments img.is-twirling { animation: none; }
  .day-card a:hover, .day-card a:focus-visible { transform: none; }
}
