/* Gaoqiao English-homepage Christmas layer, 2026.
   Production seasonal CSS extracted from the 2026-11-30 reviewed visual preview.
   Review-only banner and disabled-action styles are not included.
   Disable mu-plugin gq-christmas-home-2026.php to remove this layer. */

.gq-christmas-home {
  --gq-season-forest: #234d3e;
  --gq-season-forest-deep: #16352c;
  --gq-season-cream: #f8f6ee;
  --gq-season-gold: #f9d840;
  --gq-season-red: #c81722;
  accent-color: #327047;
}

.gq-christmas-home ::selection {
  background: #f9d840;
  color: #202a25;
}

/* String of lights under the site header (sits on the existing tricolor rule). */
.gq-header-lights {
  position: relative;
  z-index: 2;
  height: 22px;
  margin-top: -6px;
  overflow: visible;
  pointer-events: none;
  line-height: 0;
  background: transparent;
}

.gq-festive-lights,
.gq-header-lights {
  line-height: 0;
}

.gq-festive-lights__svg {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}

.gq-light-bulb {
  filter: drop-shadow(0 0 3px rgba(249, 216, 64, 0.45));
}

/* Seasonal strip: forest, cream, gold CTA, holly, lights, light snow. */
.gq-season-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 120%, rgba(200, 23, 34, 0.16), transparent 52%),
    radial-gradient(ellipse at 92% -20%, rgba(249, 216, 64, 0.14), transparent 46%),
    var(--gq-season-forest-deep);
  color: var(--gq-season-cream);
  border-bottom: 1px solid #2f5a49;
}

.gq-season-banner > .gq-festive-lights {
  position: relative;
  z-index: 2;
  padding-top: 2px;
}

.gq-season-banner__inner {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "mark title cta"
    "mark text cta";
  column-gap: 18px 28px;
  row-gap: 6px;
  align-items: center;
}

.gq-season-banner__mark {
  grid-area: mark;
  width: 52px;
  height: 52px;
  flex: none;
}

.gq-holly {
  display: block;
  width: 52px;
  height: 52px;
}

.gq-season-banner__title {
  grid-area: title;
  margin: 0;
  color: var(--gq-season-cream);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.gq-season-banner__text {
  grid-area: text;
  margin: 0;
  color: #e6efe8;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 62ch;
}

.gq-season-banner__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--gq-season-gold);
  color: #202a25 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gq-season-banner__cta:hover,
.gq-season-banner__cta:focus-visible {
  background: #ffe36a;
  transform: translateY(-1px);
}

.gq-season-banner__cta:focus-visible {
  outline: 3px solid #ffe36a;
  outline-offset: 3px;
}

/* Light snowfall inside the seasonal banner only (plus a quieter hero field). */
.gq-snowfall,
.gq-hero-snow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.gq-flake {
  position: absolute;
  top: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: gq-fall 11s linear infinite;
}

.gq-hero-snow .gq-flake {
  opacity: 0.35;
  width: 4px;
  height: 4px;
  background: #c81722;
  box-shadow: 0 0 0 1.5px #fff inset;
  background: #fff;
}

.gq-flake--0 { left: 6%; animation-duration: 10s; animation-delay: -2s; }
.gq-flake--1 { left: 14%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -6s; }
.gq-flake--2 { left: 22%; animation-duration: 9s; animation-delay: -1s; }
.gq-flake--3 { left: 31%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: -8s; }
.gq-flake--4 { left: 39%; animation-duration: 11s; animation-delay: -3s; }
.gq-flake--5 { left: 47%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -9s; }
.gq-flake--6 { left: 55%; animation-duration: 14s; animation-delay: -4s; }
.gq-flake--7 { left: 63%; animation-duration: 10s; animation-delay: -7s; }
.gq-flake--8 { left: 71%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: -1.5s; }
.gq-flake--9 { left: 78%; animation-duration: 11s; animation-delay: -5s; }
.gq-flake--10 { left: 84%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -10s; }
.gq-flake--11 { left: 91%; animation-duration: 9s; animation-delay: -2.5s; }
.gq-flake--12 { left: 11%; animation-duration: 17s; animation-delay: -12s; }
.gq-flake--13 { left: 58%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: -6.5s; }
.gq-flake--14 { left: 96%; animation-duration: 14s; animation-delay: -3.5s; }
.gq-flake--15 { left: 3%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: -11s; }

.gq-flake--h0 { left: 8%; animation-duration: 14s; animation-delay: -1s; }
.gq-flake--h1 { left: 18%; animation-duration: 16s; animation-delay: -7s; }
.gq-flake--h2 { left: 29%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -4s; }
.gq-flake--h3 { left: 41%; animation-duration: 18s; animation-delay: -9s; }
.gq-flake--h4 { left: 52%; animation-duration: 13s; animation-delay: -2s; }
.gq-flake--h5 { left: 63%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -11s; }
.gq-flake--h6 { left: 74%; animation-duration: 17s; animation-delay: -5s; }
.gq-flake--h7 { left: 83%; animation-duration: 12s; animation-delay: -8s; }
.gq-flake--h8 { left: 91%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -3s; }
.gq-flake--h9 { left: 97%; animation-duration: 14s; animation-delay: -10s; }

@keyframes gq-fall {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(50vh) translateX(8px); }
  100% { transform: translateY(110%) translateX(-6px); }
}

/* Hero: quiet atmosphere + hanging baubles that stay in the top padding / image column. */
.gq-hero--seasonal {
  position: relative;
}

.gq-hero--seasonal::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c81722 0 34%, #f9d840 34% 67%, #64a33e 67%);
  pointer-events: none;
  z-index: 2;
}

.gq-hero--seasonal .gq-hero-copy,
.gq-hero--seasonal .gq-hero-editorial {
  position: relative;
  z-index: 2;
}

.gq-hero-ornaments {
  position: absolute;
  top: 0;
  right: 6%;
  width: 160px;
  height: 120px;
  pointer-events: none;
  z-index: 3;
}

.gq-bauble {
  position: absolute;
  top: 0;
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  box-shadow: inset -3px -2px 0 rgba(255, 255, 255, 0.28), 0 3px 6px rgba(0, 0, 0, 0.18);
}

.gq-bauble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: 16px;
  background: #5a4a2a;
  transform: translateX(-50%);
}

.gq-bauble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 5px;
  border-radius: 1px;
  background: #c4a24a;
  transform: translateX(-50%);
}

.gq-bauble--red {
  left: 18px;
  background: radial-gradient(circle at 35% 30%, #ef4a4f, #c81722 58%, #8e0f18);
  top: 0;
}

.gq-bauble--gold {
  left: 70px;
  top: 10px;
  width: 14px;
  height: 17px;
  background: radial-gradient(circle at 35% 30%, #ffe98a, #f9d840 58%, #c9a318);
}

.gq-bauble--green {
  left: 118px;
  top: 4px;
  width: 16px;
  height: 20px;
  background: radial-gradient(circle at 35% 30%, #6fbf84, #2e7d4f 58%, #1a4e32);
}

.gq-christmas-home .gq-contact-floats {
  bottom: calc(var(--gq-contact-clearance, 20px) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 780px) {
  .gq-header-lights {
    height: 18px;
  }

  .gq-festive-lights__svg {
    height: 22px;
  }

  .gq-season-banner__inner {
    width: min(1320px, calc(100% - 32px));
    padding: 12px 0 16px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "mark title"
      "text text"
      "cta cta";
    column-gap: 12px;
    row-gap: 8px;
  }

  .gq-season-banner__title {
    font-size: 1.12rem;
  }

  .gq-season-banner__cta {
    justify-self: start;
  }

  .gq-season-banner__mark,
  .gq-holly {
    width: 40px;
    height: 40px;
  }

  /* Baubles would crowd the stacked H1 on small screens — keep lights/holly/snow only. */
  .gq-hero-ornaments {
    display: none;
  }

  .gq-christmas-home .gq-hero .gq-actions {
    padding-bottom: calc(var(--gq-wa-bar-offset, 72px) + 16px);
  }

  .gq-christmas-home .gq-hero-copy {
    scroll-margin-bottom: calc(var(--gq-wa-bar-offset, 72px) + 16px);
  }
}

@media (max-width: 390px) {
  .gq-season-banner__inner {
    width: calc(100% - 24px);
    padding: 10px 0 14px;
    row-gap: 6px;
  }

  .gq-season-banner__title {
    font-size: 1.05rem;
  }

  .gq-season-banner__text {
    font-size: 0.9rem;
  }

  .gq-season-banner__cta {
    min-height: 44px;
    padding: 8px 14px;
  }

  .gq-header-lights {
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gq-season-banner__cta,
  .gq-season-banner__cta:hover {
    transition: none;
    transform: none;
  }

  .gq-flake,
  .gq-hero-snow .gq-flake {
    animation: none;
    opacity: 0.28;
    top: 12%;
  }

  .gq-flake--1, .gq-flake--5, .gq-flake--9, .gq-flake--h2 { top: 38%; }
  .gq-flake--3, .gq-flake--7, .gq-flake--11, .gq-flake--h6 { top: 62%; }
}

/* Decorative lights/baubles must not widen the page or shove fixed WhatsApp off-screen. */
html:has(body.gq-christmas-home),
body.gq-christmas-home { overflow-x: hidden; }

@media (min-width: 781px) {
  .gq-christmas-home .gq-wa-desktop {
    right: 16px !important;
    left: auto !important;
    transform: none !important;
  }
}

@media (max-width: 360px) {
  .gq-season-banner__text { display: none; }
  .gq-christmas-home .gq-hero.gq-hero--seasonal { padding-top: 16px; min-height: 0; }
  .gq-christmas-home .gq-hero p { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }

  .gq-season-banner__inner {
    padding: 8px 0 10px;
    row-gap: 4px;
  }
  .gq-season-banner__title { font-size: 0.98rem; }
  .gq-season-banner__text { font-size: 0.82rem; line-height: 1.4; }
  .gq-season-banner__cta { min-height: 40px; padding: 7px 12px; }
  .gq-season-banner__mark, .gq-holly { width: 32px; height: 32px; }
  .gq-header-lights { height: 14px; margin-top: -4px; }
  .gq-festive-lights__svg { height: 18px; }
}

/* ——— Stronger Christmas red + green (user: 红色 绿色元素) ———
   Gold stays as a thin accent only; it must not lead the seasonal colour. */

.gq-christmas-home {
  --gq-season-forest: #1f7a43;
  --gq-season-forest-deep: #165a34;
  --gq-season-green: #1b6b3c;
  --gq-season-red: #c81722;
  --gq-season-gold: #f9d840;
}

.gq-header-lights {
  height: 34px;
  margin-top: -8px;
}

.gq-festive-lights__svg {
  height: 36px;
}

.gq-light-bulb {
  filter: drop-shadow(0 0 4px rgba(200, 23, 34, 0.35));
}

.gq-season-banner {
  background:
    linear-gradient(#c81722, #c81722) top / 100% 8px no-repeat,
    linear-gradient(#c81722, #c81722) bottom / 100% 8px no-repeat,
    radial-gradient(ellipse at 10% 130%, rgba(200, 23, 34, 0.28), transparent 54%),
    radial-gradient(ellipse at 90% -30%, rgba(31, 122, 67, 0.35), transparent 50%),
    #165a34;
  border-bottom: 0;
}

.gq-season-banner__mark,
.gq-holly {
  width: 64px;
  height: 64px;
}

/* Compact bauble row in the seasonal banner — visible on mobile too, not over H1. */
.gq-banner-baubles {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  height: 44px;
  pointer-events: none;
}

.gq-banner-baubles .gq-bauble {
  position: relative;
  top: 0;
  left: auto;
  width: 22px;
  height: 26px;
}

.gq-banner-baubles .gq-bauble:nth-child(2) { top: 6px; width: 18px; height: 22px; }
.gq-banner-baubles .gq-bauble:nth-child(3) { top: 2px; width: 24px; height: 28px; }
.gq-banner-baubles .gq-bauble:nth-child(4) { top: 8px; width: 18px; height: 22px; }
.gq-banner-baubles .gq-bauble:nth-child(5) { top: 4px; width: 14px; height: 17px; }

.gq-season-banner__cta {
  background: var(--gq-season-red);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(128, 14, 22, 0.28);
  box-shadow: 0 0 0 1px #f9d840, 0 6px 16px rgba(128, 14, 22, 0.28);
}

.gq-season-banner__cta:hover,
.gq-season-banner__cta:focus-visible {
  background: #a5121b;
  color: #fff !important;
  transform: translateY(-1px);
}

.gq-season-banner__cta:focus-visible {
  outline: 3px solid #f9d840;
  outline-offset: 3px;
}

/* Larger hanging cluster in the desktop hero (image column / top padding). */
.gq-hero-ornaments {
  width: 230px;
  height: 160px;
  right: 5%;
}

.gq-hero-ornaments .gq-bauble--lg { width: 28px; height: 34px; }
.gq-hero-ornaments .gq-bauble--md { width: 22px; height: 26px; }
.gq-hero-ornaments .gq-bauble--sm { width: 14px; height: 17px; }
.gq-hero-ornaments .gq-bauble--red.gq-bauble--lg { left: 8px; top: 0; }
.gq-hero-ornaments .gq-bauble--green.gq-bauble--md { left: 56px; top: 18px; }
.gq-hero-ornaments .gq-bauble--red.gq-bauble--md { left: 104px; top: 6px; }
.gq-hero-ornaments .gq-bauble--green.gq-bauble--lg { left: 150px; top: 2px; }
.gq-hero-ornaments .gq-bauble--gold.gq-bauble--sm { left: 198px; top: 16px; }
.gq-hero-ornaments .gq-bauble::before { height: 22px; top: -20px; }

@media (max-width: 780px) {
  .gq-header-lights { height: 28px; margin-top: -6px; }
  .gq-festive-lights__svg { height: 28px; }
  .gq-season-banner__mark,
  .gq-holly { width: 52px; height: 52px; }
  .gq-banner-baubles { height: 38px; gap: 16px; }
  .gq-banner-baubles .gq-bauble { width: 18px; height: 22px; }
  .gq-banner-baubles .gq-bauble:nth-child(3) { width: 20px; height: 24px; }
  /* Hero hanging cluster still hidden on stacked layouts so it cannot sit on the H1.
     Red/green baubles remain visible in the seasonal banner above. */
  .gq-hero-ornaments { display: none; }
}

@media (max-width: 390px) {
  .gq-header-lights { height: 24px; }
  .gq-festive-lights__svg { height: 24px; }
  .gq-season-banner__mark,
  .gq-holly { width: 44px; height: 44px; }
  .gq-banner-baubles { height: 34px; gap: 12px; }
}

@media (max-width: 360px) {
  .gq-header-lights { height: 22px; margin-top: -4px; }
  .gq-festive-lights__svg { height: 22px; }
  .gq-season-banner__mark,
  .gq-holly { width: 40px; height: 40px; }
  .gq-banner-baubles { height: 30px; gap: 10px; }
  .gq-banner-baubles .gq-bauble { width: 16px; height: 19px; }
  .gq-banner-baubles .gq-bauble:nth-child(3) { width: 18px; height: 21px; }
  .gq-banner-baubles .gq-bauble:nth-child(5) { width: 12px; height: 14px; }
}

/* Clean red rails, avoid double-ornament clutter, recover mobile first-screen height. */
.gq-season-banner {
  overflow: visible;
}

.gq-season-banner::before,
.gq-season-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: #c81722;
  z-index: 3;
  pointer-events: none;
}

.gq-season-banner::before { top: 0; }
.gq-season-banner::after { bottom: -1px; }

/* Do not let the hero's thin tricolor rule break the red rail. */
.gq-hero--seasonal::before { display: none; }

@media (min-width: 781px) {
  /* Desktop already has a larger red/green hanging cluster on the hero. */
  .gq-banner-baubles { display: none; }
}

@media (max-width: 780px) {
  /* One light string is enough on small screens — keep the header lights.
     Hang banner baubles into the green field without adding a second lights row. */
  .gq-season-banner > .gq-festive-lights { display: none; }
  .gq-banner-baubles {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 36px;
    z-index: 2;
  }
  .gq-season-banner__inner { padding-top: 40px; }
}

@media (max-width: 360px) {
  .gq-header-lights { height: 20px; }
  .gq-festive-lights__svg { height: 20px; }
  .gq-banner-baubles { top: 8px; height: 28px; }
  .gq-season-banner__inner { padding-top: 32px; padding-bottom: 8px; }
  .gq-christmas-home .gq-hero.gq-hero--seasonal { padding-top: 12px; min-height: 0; }
  .gq-christmas-home .gq-hero .gq-eyebrow { margin-bottom: 8px; }
}

/* ——— Twinkling lights + drifting tree (user: 随机点亮 / 圣诞树漂) ———
   Keep the existing teardrop bulbs and wires. Motion is decorative only. */

.gq-light-bulb {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

.gq-drift-tree {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 88px;
  height: 118px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform;
  line-height: 0;
  filter: drop-shadow(0 6px 10px rgba(22, 90, 52, 0.28));
  transform: translate3d(-240px, -240px, 0);
}

.gq-drift-tree.gq-drift-tree--ready {
  opacity: 0.94;
  visibility: visible;
}

.gq-drift-tree__bob {
  width: 100%;
  height: 100%;
  transform-origin: 50% 85%;
  animation: gq-tree-bob 5.6s ease-in-out infinite;
}

.gq-drift-tree svg,
.gq-drift-tree__img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gq-drift-tree__img {
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes gq-tree-bob {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-6px) rotate(1.4deg); }
}

@media (max-width: 780px) {
  .gq-drift-tree {
    width: 48px;
    height: 64px;
  }
  .gq-drift-tree.gq-drift-tree--ready { opacity: 0.92; }
  .gq-drift-tree__bob { animation-duration: 6.2s; }
  /* A short green shelf to the right of the banner CTA, so the tree can
     sit and drift without covering the greeting or the button. */
  .gq-season-banner__inner { padding-bottom: 26px; }
}

@media (max-width: 390px) {
  .gq-drift-tree {
    width: 40px;
    height: 54px;
  }
  .gq-drift-tree.gq-drift-tree--ready { opacity: 0.9; }
    .gq-season-banner__inner { padding-bottom: 32px; }
}

@media (max-width: 360px) {
  .gq-drift-tree {
    width: 34px;
    height: 46px;
  }
  .gq-drift-tree.gq-drift-tree--ready { opacity: 0.9; }
    .gq-season-banner__inner { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .gq-light-bulb {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    filter: brightness(1.06) drop-shadow(0 0 3px rgba(200, 23, 34, 0.4));
  }

  .gq-drift-tree__bob,
  .gq-drift-tree {
    animation: none !important;
    transition: none !important;
  }

  .gq-drift-tree {
    opacity: 0.9;
  }
}

@media (max-width: 780px) {
  @keyframes gq-tree-bob {
    0%, 100% { transform: translateY(0) rotate(-0.8deg); }
    50% { transform: translateY(-3px) rotate(0.8deg); }
  }
}
