/* ==========================================================================
   Christmas theme for htranchservices.com  (seasonal overlay)

   Loaded AFTER styles.css on every page. It only adds decoration and swaps a few
   accent colours; the page layout, forms, phone links and tracking are untouched.

   To take it down after the holidays: delete the christmas.css <link> line from
   each page, e.g.   sed -i '/christmas\.css/d' *.html   then delete this file and
   deploy. Nothing else depends on it.
   ========================================================================== */

:root {
  --holly: #a8232b;
  --holly-deep: #821a21;
}

/* ---------- Greeting band + string of lights (top of every page) ---------- */
.topbar { position: relative; z-index: 51; }
.topbar::before {
  content: "\1F384  Happy Holidays from all of us at H&T Ranch Services  \1F384";
  display: block; text-align: center;
  padding: 6px 16px; background: var(--holly); color: #fff;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
}
@media (max-width: 640px) {
  .topbar::before { content: "\1F384  Happy Holidays from H&T Ranch Services  \1F384"; font-size: .8rem; }
}
/* The lights hang from the bottom edge of the top bar over the header's own padding,
   so they add no height. */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 1 Q15 7 30 1 Q45 7 60 1 Q75 7 90 1 Q105 7 120 1' fill='none' stroke='rgb(71,89,76)' stroke-width='1.2'/%3E%3Crect x='13.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='15' cy='9' rx='2.8' ry='3.8' fill='rgb(224,70,70)'/%3E%3Ccircle cx='14' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='43.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='45' cy='9' rx='2.8' ry='3.8' fill='rgb(244,192,77)'/%3E%3Ccircle cx='44' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='73.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='75' cy='9' rx='2.8' ry='3.8' fill='rgb(70,179,107)'/%3E%3Ccircle cx='74' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='103.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='105' cy='9' rx='2.8' ry='3.8' fill='rgb(255,240,184)'/%3E%3Ccircle cx='104' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3C/svg%3E") 0 0 / 120px 14px repeat-x;
  pointer-events: none; animation: xmas-twinkle 3.2s ease-in-out infinite;
}

/* ---------- Candy-cane edge under the sticky header ---------- */
header { border-bottom: 0; }
header::after {
  content: ""; display: block; height: 5px;
  background: repeating-linear-gradient(135deg, var(--holly) 0 10px, #fff 10px 20px);
}

/* ---------- Falling snow over the hero photos ---------- */
.hero, .page-hero { overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: -400px; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Ccircle cx='223.4' cy='365.8' r='2.6' fill='white' fill-opacity='0.66'/%3E%3Ccircle cx='234.1' cy='76.8' r='2.7' fill='white' fill-opacity='0.68'/%3E%3Ccircle cx='314.3' cy='41.6' r='2.9' fill='white' fill-opacity='0.59'/%3E%3Ccircle cx='321.3' cy='275.8' r='2.1' fill='white' fill-opacity='0.47'/%3E%3Ccircle cx='380.9' cy='259.9' r='3.4' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='10.1' cy='211.1' r='2.2' fill='white' fill-opacity='0.48'/%3E%3Ccircle cx='99.0' cy='16.1' r='2.3' fill='white' fill-opacity='0.66'/%3E%3Ccircle cx='333.8' cy='207.5' r='2.6' fill='white' fill-opacity='0.74'/%3E%3Ccircle cx='263.5' cy='183.3' r='2.7' fill='white' fill-opacity='0.58'/%3E%3Ccircle cx='392.9' cy='332.4' r='3.4' fill='white' fill-opacity='0.77'/%3E%3Ccircle cx='94.2' cy='117.5' r='2.4' fill='white' fill-opacity='0.48'/%3E%3Ccircle cx='161.2' cy='335.1' r='3.1' fill='white' fill-opacity='0.62'/%3E%3Ccircle cx='335.2' cy='5.5' r='3.3' fill='white' fill-opacity='0.54'/%3E%3Ccircle cx='188.3' cy='387.1' r='3.3' fill='white' fill-opacity='0.63'/%3E%3C/svg%3E") 0 0 / 400px 400px repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='186.5' cy='175.7' r='1.6' fill='white' fill-opacity='0.49'/%3E%3Ccircle cx='85.3' cy='105.8' r='1.4' fill='white' fill-opacity='0.51'/%3E%3Ccircle cx='89.3' cy='45.9' r='1.1' fill='white' fill-opacity='0.65'/%3E%3Ccircle cx='19.6' cy='140.7' r='1.0' fill='white' fill-opacity='0.64'/%3E%3Ccircle cx='145.2' cy='72.8' r='1.4' fill='white' fill-opacity='0.48'/%3E%3Ccircle cx='117.2' cy='130.5' r='1.5' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='73.6' cy='150.0' r='1.7' fill='white' fill-opacity='0.62'/%3E%3Ccircle cx='131.0' cy='64.1' r='1.4' fill='white' fill-opacity='0.49'/%3E%3Ccircle cx='142.1' cy='117.5' r='1.3' fill='white' fill-opacity='0.65'/%3E%3C/svg%3E") 0 0 / 200px 200px repeat;
  pointer-events: none; will-change: transform;
  animation: xmas-snow 16s linear infinite;
}
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

/* ---------- Holly red accents ---------- */
.btn-primary { background: var(--holly); color: #fff; }
.btn-primary:hover { background: var(--holly-deep); box-shadow: 0 8px 20px rgba(168, 35, 43, .4); }
/* ".nav-links a" in styles.css sets the link colour and would win over .btn-primary. */
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }
.about-points .tick, .check-list .tick { background: var(--holly); }
.about-points .tick svg, .check-list .tick svg { stroke: #fff; }
.cta-band { background: linear-gradient(120deg, var(--holly), var(--holly-deep)); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--holly); border-color: var(--holly); }
.call-bar { border-top-color: var(--holly); }

/* ---------- Footer: lights and a greeting ---------- */
footer { position: relative; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 1 Q15 7 30 1 Q45 7 60 1 Q75 7 90 1 Q105 7 120 1' fill='none' stroke='rgb(71,89,76)' stroke-width='1.2'/%3E%3Crect x='13.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='15' cy='9' rx='2.8' ry='3.8' fill='rgb(224,70,70)'/%3E%3Ccircle cx='14' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='43.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='45' cy='9' rx='2.8' ry='3.8' fill='rgb(244,192,77)'/%3E%3Ccircle cx='44' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='73.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='75' cy='9' rx='2.8' ry='3.8' fill='rgb(70,179,107)'/%3E%3Ccircle cx='74' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3Crect x='103.5' y='3.6' width='3' height='2.4' rx='.6' fill='rgb(71,89,76)'/%3E%3Cellipse cx='105' cy='9' rx='2.8' ry='3.8' fill='rgb(255,240,184)'/%3E%3Ccircle cx='104' cy='7.8' r='.9' fill='white' fill-opacity='.65'/%3E%3C/svg%3E") 0 0 / 120px 14px repeat-x;
  pointer-events: none; animation: xmas-twinkle 3.2s ease-in-out infinite;
}
.footer-bottom::after { content: "Merry Christmas from the H&T crew \1F384"; }

/* ---------- Motion ---------- */
@keyframes xmas-snow {
  from { transform: translateY(0); }
  to   { transform: translateY(400px); }
}
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before, .topbar::after, footer::before { animation: none; }
}

/* ---------- Print: leave the decoration off the page ---------- */
@media print {
  .topbar::before, .topbar::after, header::after, .hero::before, .page-hero::before,
  footer::before, .footer-bottom::after { display: none; }
}
