/* =========================================================================
   CHRISTMAS THEME (added Dec 1 2026)
   Loaded only while the theme is scheduled (ola_christmas option) or in a
   ?xmas_preview link. Every rule is scoped to classes the head script adds
   (html.xmas-on-<piece>) or to elements christmas.js creates (.xmas-*).
   ========================================================================= */

/* ---- Snow ------------------------------------------------------------- */
.xmas-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ---- Candy cane accents (eyebrow and divider stripes) ------------------ */
html.xmas-on-accent .eyebrow::before,
html.xmas-on-accent .m-stripe {
  background: repeating-linear-gradient(-45deg, #e22718 0 4px, #ffffff 4px 8px);
}

/* ---- Red and green hero glow ----------------------------------------- */
html.xmas-on-glow .hero {
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(22,163,74,0.22), transparent 55%),
    radial-gradient(90% 80% at 12% 92%, rgba(226,39,24,0.20), transparent 55%),
    linear-gradient(180deg, #0b0b0c 0%, #050505 55%, #000 100%);
}
html.xmas-on-glow .page-hero {
  background:
    radial-gradient(100% 120% at 85% 0%, rgba(22,163,74,0.18), transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(226,39,24,0.14), transparent 55%),
    linear-gradient(180deg, #0a0a0b, #000);
}

/* ---- Greeting pill on the home hero photo ----------------------------- */
.xmas-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.xmas-pill svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) {
  .xmas-pill { left: 12px; top: 12px; font-size: 13px; padding: 7px 14px 7px 10px; gap: 6px; }
  .xmas-pill svg { width: 17px; height: 17px; }
}

/* ---- String of lights under the header -------------------------------- */
.site-header .xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='16' viewBox='0 0 56 16'%3E%3Cpath d='M0 1.5Q28 15 56 1.5' fill='none' stroke='%235a5a5a' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 16px;
}
.site-header:has(.nav-toggle:checked) .xmas-lights { display: none; }
.xmas-bulb {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  animation: xmas-twinkle 3s ease-in-out infinite;
}
.xmas-bulb::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: -3px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: #6b6b6b;
}
.xmas-bulb--r { background: #ff3b30; box-shadow: 0 0 8px 2px rgba(255,59,48,0.65); }
.xmas-bulb--g { background: #22c55e; box-shadow: 0 0 8px 2px rgba(34,197,94,0.6); }
.xmas-bulb--y { background: #fbbf24; box-shadow: 0 0 8px 2px rgba(251,191,36,0.6); }
.xmas-bulb--b { background: #3b8cff; box-shadow: 0 0 8px 2px rgba(59,140,255,0.65); }
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-bulb { animation: none; }
}
/* Room for the bulbs on the holiday hours banner */
html.xmas-on-lights .hb__inner { padding-top: 26px; }

/* ---- Santa hat on the logo -------------------------------------------- */
html.xmas-on-hat .site-header .brand { position: relative; }
.xmas-hat {
  position: absolute;
  left: 41%;
  top: -10%;
  width: 16%;
  pointer-events: none;
  transform: rotate(10deg);
  transform-origin: 50% 90%;
}
.xmas-hat svg { display: block; width: 100%; height: auto; }

/* ---- Greeting section on the home page -------------------------------- */
.xmas-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(22,163,74,0.24), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(226,39,24,0.22), transparent 60%),
    linear-gradient(180deg, #070707, #000);
  border-bottom: 1px solid var(--hairline-strong);
}
.xmas-band::before,
.xmas-band::after {
  content: "";
  position: absolute;
  top: 0;
  width: 130px;
  height: 170px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 170'%3E%3Cpath d='M22 0v66M66 0v108M108 0v40' stroke='%23666' stroke-width='1.2'/%3E%3Crect x='17.5' y='64' width='9' height='7' rx='1.5' fill='%23b5b5b5'/%3E%3Ccircle cx='22' cy='88' r='17' fill='%23e22718'/%3E%3Cellipse cx='16' cy='81' rx='4.5' ry='3' fill='%23fff' opacity='.35'/%3E%3Crect x='61.5' y='106' width='9' height='7' rx='1.5' fill='%23b5b5b5'/%3E%3Ccircle cx='66' cy='131' r='19' fill='%2316a34a'/%3E%3Cellipse cx='59' cy='123' rx='5' ry='3.2' fill='%23fff' opacity='.35'/%3E%3Crect x='103.5' y='38' width='9' height='7' rx='1.5' fill='%23b5b5b5'/%3E%3Ccircle cx='108' cy='58' r='14' fill='%23f5b301'/%3E%3Cellipse cx='103' cy='52' rx='3.8' ry='2.5' fill='%23fff' opacity='.4'/%3E%3C/svg%3E") no-repeat top center / contain;
}
.xmas-band::before { left: clamp(16px, 6vw, 120px); }
.xmas-band::after { right: clamp(16px, 6vw, 120px); transform: scaleX(-1); }
@media (max-width: 900px) {
  .xmas-band::before, .xmas-band::after { display: none; }
}
.xmas-band .container { position: relative; z-index: 1; }
.xmas-band__inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.xmas-band__title {
  font-weight: var(--weight-display);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  margin-block: var(--space-md);
  text-wrap: balance;
}
.xmas-band__title span { color: var(--brand-red); }
.xmas-band .lead { margin-inline: auto; }
.xmas-band .btn-row { justify-content: center; margin-top: var(--space-xl); }
.xmas-band .btn { border-radius: 999px; padding-inline: 28px; }
@media (max-width: 600px) {
  .xmas-band .btn-row { flex-direction: column; width: 100%; }
  .xmas-band .btn { width: 100%; }
}

/* =========================================================================
   STYLE 4: CLASSIC CHRISTMAS (same look as Ogden Auto Service)
   Artwork in assets/xmas/ (copied from the Ogden theme, wire lightened for
   the black header).
   ========================================================================= */

/* ---- Announcement bar above the header (markup from functions.php) ----- */
html.xmas-on-bar .xm-bar { display: block !important; }
.xm-bar {
  position: relative;
  z-index: 101;
  background: #14532d;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(45deg, #d62828 0 10px, #ffffff 10px 20px) 6;
}
.xm-bar__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.xm-bar a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.xm-bar a:hover { color: #ffe08a; }
.xm-ico { width: 22px; height: 18px; flex: 0 0 auto; background: url(xmas/holly.svg) no-repeat center / contain; }
.xm-m { display: none; }
@media (max-width: 640px) {
  .xm-bar { font-size: 13px; }
  .xm-bar__in { padding: 8px 12px; gap: 6px; }
  .xm-bar .xm-ico:last-child { display: none; }
  .xm-d { display: none; }
  .xm-m { display: inline; }
}

/* ---- Garland with lights under the header ----------------------------- */
.xm-deco { position: relative; height: 0; z-index: 99; pointer-events: none; }
.xm-garland {
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 44px;
  background: url(xmas/garland.svg) repeat-x 0 0 / 120px 44px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
.xm-lights { position: absolute; left: 0; right: 0; top: 0; height: 30px; overflow: hidden; background: url(xmas/wire.svg) repeat-x 0 6px / 56px 20px; }
.xm-bulb {
  position: absolute;
  top: 13px;
  width: 9px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: xm-twinkle 2.4s ease-in-out infinite;
}
.xm-bulb::before { content: ""; position: absolute; left: 2px; top: -4px; width: 5px; height: 5px; background: #3b3b3b; border-radius: 1px; }
.xm-bulb--r { background: #ff3b30; box-shadow: 0 0 8px 2px rgba(255,59,48,0.75); }
.xm-bulb--y { background: #ffd60a; box-shadow: 0 0 8px 2px rgba(255,214,10,0.75); }
.xm-bulb--g { background: #34c759; box-shadow: 0 0 8px 2px rgba(52,199,89,0.7); }
.xm-bulb--b { background: #3a8dff; box-shadow: 0 0 8px 2px rgba(58,141,255,0.75); }
@keyframes xm-twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: 0.45; filter: brightness(0.7); }
}
.site-header:has(.nav-toggle:checked) + .xm-deco { display: none; }
/* Room for the garland on the holiday hours banner */
html.xmas-on-garland .hb__inner { padding-top: 40px; }

/* ---- Hanging ornaments in the home hero ------------------------------- */
.xm-orn {
  position: absolute;
  top: 0;
  width: 2px;
  pointer-events: none;
  z-index: 3;
  transform-origin: top center;
  animation: xm-sway 5s ease-in-out infinite;
}
.xm-orn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: #b8962e; }
.xm-orn i { position: absolute; left: -23px; bottom: -52px; width: 48px; height: 56px; background-size: contain; background-repeat: no-repeat; }
.xm-orn--red i { background-image: url(xmas/orn-red.svg); }
.xm-orn--gold i { background-image: url(xmas/orn-gold.svg); }
.xm-orn--blue i { background-image: url(xmas/orn-blue.svg); }
.xm-orn--green i { background-image: url(xmas/orn-green.svg); }
@keyframes xm-sway {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
}

/* ---- Bow on the home hero photo --------------------------------------- */
html.xmas-on-bow #page-home .hero-media { overflow: visible; }
html.xmas-on-bow #page-home .hero-media .hero-slide { border-radius: 24px; overflow: hidden; }
.xm-bow {
  position: absolute;
  top: -34px;
  left: -30px;
  width: 110px;
  height: 100px;
  background: url(xmas/bow.svg) no-repeat center / contain;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
}

/* ---- Candy cane edge on the footer ------------------------------------ */
html.xmas-on-footer .site-footer { position: relative; }
html.xmas-on-footer .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(45deg, #d62828 0 12px, #ffffff 12px 24px);
}

/* The left ornament needs the wide side margin of big screens, otherwise it
   lands on the hero eyebrow */
@media (max-width: 1399px) {
  .xm-orn--red { display: none; }
}
@media (max-width: 900px) {
  .xm-orn { display: none; }
  .xm-bow { width: 80px; height: 72px; top: -24px; left: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-bulb, .xm-orn { animation: none; }
}
@media print {
  .xm-bar, .xm-deco, .xm-orn, .xm-bow, .xmas-snow, .xmas-lights, .xmas-hat { display: none !important; }
}