/* Christmas 2026 pages (christmas.php, christmas-parties.php)
   Palette: Heritage Navy #1B2D50, Antique Gold #96794A, Warm Ivory #F5EDD8,
   Slate Blue #C8DCE8, Pearl #FAF6ED. Buttons: Burnt Terracotta #C1502E. */

.xm-main {
  --xm-navy: #1B2D50;
  --xm-gold: #96794A;
  --xm-ivory: #F5EDD8;
  --xm-slate: #C8DCE8;
  --xm-pearl: #FAF6ED;
  --xm-terra: #C1502E;
  background: var(--xm-pearl);
  color: var(--xm-navy);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.xm-main h1, .xm-main h2, .xm-main h3 {
  font-family: "Playfair Display", serif;
  color: inherit;
  line-height: 1.2;
}

.xm-main a { color: var(--xm-navy); }
.xm-main p { margin-bottom: 1rem; }

/* ---------- Hero ---------- */
.xm-hero {
  position: relative;
  padding: 150px 0 90px;
  background: var(--xm-navy);
  color: var(--xm-pearl);
  text-align: center;
  overflow: hidden;
}
.xm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(27, 45, 80, 0.7), rgba(27, 45, 80, 0.7));
}
.xm-hero .container { position: relative; z-index: 2; max-width: 820px; }
.xm-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--xm-pearl);
  margin-bottom: 12px;
  
}
.xm-hero__sub {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--xm-ivory);
  margin-bottom: 22px;
}
.xm-hero p { color: var(--xm-pearl); }
.xm-hero a:not(.xm-btn) { color: var(--xm-pearl); text-decoration: underline; text-underline-offset: 3px; }
.xm-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

.xm-orn { margin: 4px auto 14px; line-height: 0; }
.xm-orn svg { display: block; margin: 0 auto; max-width: 100%; }

/* ---------- Jump links ---------- */
.xm-jump {
  background: var(--xm-ivory);
  border-bottom: 2px solid var(--xm-gold);
  padding: 16px 0;
  text-align: center;
}
.xm-jump a {
  display: inline-block;
  margin: 2px 4px;
  padding: 2px 6px;
  color: var(--xm-navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.xm-jump a:hover { text-decoration: underline; text-underline-offset: 4px; }
.xm-jump .xm-dot { color: var(--xm-gold); }

/* ---------- Sections ---------- */
.xm-section { padding: 80px 0; scroll-margin-top: 90px; }
.xm-section--pearl { background: var(--xm-pearl); }
.xm-section--ivory { background: var(--xm-ivory); }
.xm-section--navy { background: var(--xm-navy); color: var(--xm-pearl); }
.xm-section--navy h2, .xm-section--navy h3 { color: var(--xm-pearl); }
.xm-section--navy a:not(.xm-btn) { color: var(--xm-pearl); }

.xm-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--xm-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.xm-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 18px; }
.xm-section h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.xm-section__intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }

.xm-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 6px solid var(--xm-pearl);
  box-shadow: 0 10px 30px rgba(27, 45, 80, 0.25);
}

/* ---------- Price boxes ---------- */
.xm-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 22px;
  padding: 16px 22px;
  background: var(--xm-slate);
  color: var(--xm-navy);
  border-left: 5px solid var(--xm-gold);
  border-radius: 4px;
}
.xm-price__item { display: flex; flex-direction: column; }
.xm-price__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.xm-price__amt { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 700; line-height: 1.2; }
.xm-price__note { font-size: 14px; flex-basis: 100%; }

/* ---------- Buttons ---------- */
.xm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.xm-btns--center { justify-content: center; }
.xm-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--xm-terra);
  border: 2px solid var(--xm-terra);
  border-radius: 5px;
  color: var(--xm-pearl) !important;
  font: 700 14px "Open Sans", sans-serif;
  letter-spacing: .5px;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: 0.3s;
}
.xm-btn:hover, .xm-btn:focus {
  background: var(--xm-navy);
  border-color: var(--xm-navy);
  color: var(--xm-pearl) !important;
}
.xm-btn--outline {
  background: transparent;
  border-color: var(--xm-navy);
  color: var(--xm-navy) !important;
}
.xm-btn--outline:hover, .xm-btn--outline:focus {
  background: var(--xm-navy);
  color: var(--xm-pearl) !important;
}
.xm-hero .xm-btn--outline,
.xm-section--navy .xm-btn--outline {
  border-color: var(--xm-pearl);
  color: var(--xm-pearl) !important;
}
.xm-hero .xm-btn--outline:hover,
.xm-section--navy .xm-btn--outline:hover {
  background: var(--xm-pearl);
  border-color: var(--xm-pearl);
  color: var(--xm-navy) !important;
}
.xm-section--navy .xm-btn:hover { background: var(--xm-pearl); border-color: var(--xm-pearl); color: var(--xm-navy) !important; }

/* ---------- Cards (Christmas Eve/Day/Boxing Day, party packages) ---------- */
.xm-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--xm-pearl);
  color: var(--xm-navy);
  border-top: 5px solid var(--xm-gold);
  border-radius: 4px;
}
.xm-card h3 { color: var(--xm-navy) !important; }
.xm-card__meta { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.xm-card__price { font-family: "Playfair Display", serif; font-size: 32px; font-weight: 700; line-height: 1.2; }
.xm-card__price small { font-family: "Open Sans", sans-serif; font-size: 14px; font-weight: 600; }
.xm-card .xm-btns { margin-top: auto; padding-top: 12px; justify-content: center; }
.xm-card .xm-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xm-card--ivory { background: var(--xm-ivory); }

.xm-list { list-style: none; margin: 0 0 18px; padding: 0; }
.xm-list li { position: relative; padding: 4px 0 4px 26px; }
.xm-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--xm-gold);
  font-weight: 700;
}

/* ---------- Table ---------- */
.xm-table-wrap { overflow-x: auto; margin: 28px 0 8px; }
.xm-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--xm-pearl); color: var(--xm-navy); }
.xm-table th {
  background: var(--xm-navy);
  color: var(--xm-pearl);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.xm-table td { padding: 14px 16px; border-bottom: 1px solid var(--xm-slate); vertical-align: top; }
.xm-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }

.xm-timings { list-style: none; margin: 0 0 18px; padding: 0; }
.xm-timings li { padding: 3px 0; }

/* ---------- Good to know ---------- */
.xm-know { margin: 0; }
.xm-know dt { font-weight: 700; margin-top: 18px; }
.xm-know dd { margin: 0; }

.xm-backlink { margin-top: 28px; text-align: center; }

@media (max-width: 767px) {
  .xm-hero { padding: 120px 0 60px; }
  .xm-hero h1 { font-size: 34px; }
  .xm-hero__sub { font-size: 19px; }
  .xm-section { padding: 56px 0; }
  .xm-section h2 { font-size: 30px; }
  .xm-btns .xm-btn, .xm-hero__btns .xm-btn { width: 100%; }
}

/* ---------- Christmas hero decoration ---------- */
.xm-hero { padding-top: 165px; padding-bottom: 120px; }

/* Garland of baubles draped across the top of the hero */
.xm-garland {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cpath d='M0 8 Q60 60 120 8' fill='none' stroke='%2396794A' stroke-width='2'/%3E%3Cg%3E%3Crect x='28' y='16' width='4' height='4' fill='%2396794A'/%3E%3Ccircle cx='30' cy='28' r='8' fill='%23F5EDD8'/%3E%3Crect x='58' y='33' width='4' height='4' fill='%2396794A'/%3E%3Ccircle cx='60' cy='46' r='9' fill='%2396794A'/%3E%3Crect x='88' y='16' width='4' height='4' fill='%2396794A'/%3E%3Ccircle cx='90' cy='28' r='8' fill='%23C8DCE8'/%3E%3C/g%3E%3C/svg%3E") repeat-x top center;
  background-size: 120px 70px;
}

/* Snowflake divider under the H1 */
.xm-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 4px auto 18px;
  max-width: 260px;
  color: var(--xm-ivory);
  font-size: 22px;
  line-height: 1;
}
.xm-divider::before, .xm-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--xm-gold);
}

@media (max-width: 767px) {
  .xm-hero { padding-top: 140px; padding-bottom: 100px; }
  .xm-garland { top: 64px; height: 56px; background-size: 96px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-stars span { animation: none; }
}

/* ---------- Christmas Eve / Day / Boxing Day cards: centred, aligned buttons ---------- */
.xm-card .xm-btns { justify-content: center; margin-top: auto; padding-top: 20px; }
.xm-card .xm-btns .xm-btn { width: 100%; }

/* ---------- Hero: fir-tree skyline + twinkling stars ---------- */
.xm-trees {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='70' viewBox='0 0 160 70'%3E%3Cg fill='%23F5EDD8'%3E%3Cpolygon points='30,4 44,26 37,26 50,46 41,46 56,66 4,66 19,46 10,46 23,26 16,26'/%3E%3Crect x='27' y='66' width='6' height='4'/%3E%3Cpolygon points='95,24 106,40 100,40 110,54 103,54 114,66 76,66 87,54 80,54 90,40 84,40'/%3E%3Crect x='92' y='66' width='6' height='4'/%3E%3Cpolygon points='140,34 148,46 144,46 151,56 147,56 154,66 126,66 133,56 129,56 136,46 132,46'/%3E%3Crect x='137' y='66' width='6' height='4'/%3E%3C/g%3E%3Ccircle cx='30' cy='5' r='3' fill='%2396794A'/%3E%3C/svg%3E") repeat-x bottom left;
  background-size: 160px 70px;
}
.xm-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.xm-stars span { position: absolute; color: var(--xm-ivory); font-size: 18px; line-height: 1; animation: xm-twinkle 3.2s ease-in-out infinite; }
.xm-stars span:nth-child(1) { top: 22%; left: 8%;  font-size: 22px; }
.xm-stars span:nth-child(2) { top: 44%; left: 16%; font-size: 14px; animation-delay: .8s; }
.xm-stars span:nth-child(3) { top: 30%; left: 28%; font-size: 12px; animation-delay: 1.6s; color: var(--xm-gold); }
.xm-stars span:nth-child(4) { top: 24%; right: 9%; font-size: 24px; animation-delay: .4s; }
.xm-stars span:nth-child(5) { top: 50%; right: 18%; font-size: 14px; animation-delay: 1.2s; }
.xm-stars span:nth-child(6) { top: 34%; right: 30%; font-size: 12px; animation-delay: 2s; color: var(--xm-gold); }
@keyframes xm-twinkle { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 767px) {
  .xm-trees { height: 52px; background-size: 120px 52px; }
  .xm-stars span:nth-child(2), .xm-stars span:nth-child(5) { display: none; }
}

/* ---------- Card buttons: always full width + centred (override anything else) ---------- */
.xm-card .xm-btns {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: auto 0 0 0 !important;
  padding-top: 20px !important;
}
.xm-card .xm-btns .xm-btn {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}
