/* Crystal Diamonds Ltd | Christmas 2026 + 10th anniversary (refined header)
 * Scoped seasonal stylesheet. Use independent CD_CHRISTMAS_2026 and CD_ANNIVERSARY_2026 switches.
 * Original site styles and functionality remain untouched.
 */

/* ---------- Global festive page background cleanup ---------- */
body,
#body-bg {
  background-color: #f5faff !important;
  background-image:
    radial-gradient(circle at 93% 10%, rgba(209, 235, 255, .56), transparent 29%),
    linear-gradient(112deg, #ffffff 16%, #f5faff 70%, #e9f4ff 100%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

body {
  position: relative;
}

#body-bg {
  min-height: 100vh;
}

body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(24, 122, 226, .11) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(213, 30, 120, .11) 1.5px, transparent 2px);
  background-size: 92px 80px, 148px 112px;
  background-position: 18px 18px, 71px 45px;
}

#body-bg,
#pre-header,
#header,
#hornav,
#container_hornav,
#content,
#base,
#footer,
#copyright {
  position: relative;
  z-index: 1;
}

#pre-header {
  background: rgba(245, 250, 255, .86) !important;
}

/* ---------- Shared anniversary masthead ---------- */
#header.cd-festive-header {
  height: auto;
  min-height: 154px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 93% 10%, rgba(209, 235, 255, .56), transparent 29%),
    linear-gradient(112deg, #ffffff 16%, #f5faff 70%, #e9f4ff 100%);
  border-top: 3px solid #0878ee;
}
#header.cd-festive-header:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(24, 122, 226, .15) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(213, 30, 120, .15) 1.5px, transparent 2px);
  background-size: 92px 80px, 148px 112px;
  background-position: 18px 18px, 71px 45px;
}
#header.cd-festive-header:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: rgba(15, 117, 190, .12);
}
.cd-festive-header .cd-festive-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 19px;
}
.cd-header-brand { flex: 1 1 49%; min-width: 0; }
.cd-brand-link { display: block; width: 100%; max-width: 490px; }
.cd-brand-logo { display: block; width: 100%; height: auto; margin: 0; }
.cd-brand-logo-mobile { display: none; }
.cd-brand-subtitle {
  display: block;
  margin: 3px 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #51718c;
}
.cd-anniversary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 1 46%;
  min-width: 0;
}
.cd-anniversary-digits { top: 29%; font-size: 33px; font-weight: 800; letter-spacing: -.07em; padding-right: 2px; }
.cd-anniversary-years { top: 60%; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.cd-anniversary-message { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cd-anniversary-kicker {
  color: #0879cf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.3;
}
.cd-anniversary-kicker span { color: #d8a34a; }
.cd-anniversary-message strong {
  font-size: clamp(19px, 2.22vw, 28px);
  font-weight: 800;
  color: #153957;
  line-height: 1.07;
  letter-spacing: -.035em;
}
.cd-anniversary-message strong em { color: #d61c76; font-style: normal; white-space: nowrap; }
.cd-anniversary-thanks { color: #5b7286; font-size: 12px; line-height: 1.45; max-width: 275px; }

#header.cd-anniversary-only:after { display: none; }

/* ---------- Discreet snowfall control (no ribbon in the header) ---------- */
.cd-snow-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d1e5f5;
  background: rgba(255, 255, 255, .92);
  color: #327aa7;
  box-shadow: 0 2px 10px rgba(35, 72, 101, .12);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.cd-snow-toggle:hover, .cd-snow-toggle:focus-visible { background: #e7f5ff; color: #145b87; }
.cd-snow-toggle:focus-visible { outline: 2px solid #126bb3; outline-offset: 3px; }
.cd-snow-toggle[aria-pressed="false"] { opacity: .55; }
.cd-snow-toggle:disabled { opacity: .45; cursor: default; }

/* ---------- Homepage anniversary hero ---------- */
.cd-seasonal-hero-container { background: #fff; padding-left: 0 !important; padding-right: 0 !important; }
.cd-seasonal-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 47px 36px;
  border-bottom: 4px solid #f1c4d6;
  background:
    radial-gradient(ellipse 370px 310px at 97% 97%, rgba(153, 212, 253, .48), transparent 74%),
    radial-gradient(ellipse 290px 210px at 8% 2%, rgba(255, 233, 244, .92), transparent 74%),
    linear-gradient(113deg, #fffafc 0%, #fff 43%, #f2f9ff 100%);
}
.cd-seasonal-hero:before {
  content: '';
  pointer-events: none;
  position: absolute;
  width: 390px;
  height: 390px;
  right: -66px;
  top: 35px;
  z-index: -1;
  border: 1px solid rgba(29, 139, 219, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 37px rgba(64, 162, 233, .035), 0 0 0 75px rgba(64, 162, 233, .035);
}
.cd-hero-text { position: relative; z-index: 3; flex: 1 1 51%; min-width: 0; padding-right: 8px; }
.cd-hero-eyebrow {
  display: inline-block;
  color: #c42175;
  background: #fff;
  border: 1px solid #f1c9dc;
  border-radius: 24px;
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .15em;
  white-space: nowrap;
}
.cd-hero-eyebrow span { color: #dea84b; }
.cd-hero-text h1 {
  color: #173d5b;
  font-size: clamp(32px, 3.95vw, 48px);
  letter-spacing: -.045em;
  font-weight: 800;
  line-height: 1.08;
  margin: 24px 0 18px;
}
.cd-hero-text h1 span { color: #d91d7b; }
.cd-hero-text p {
  color: #546a7a;
  font-size: 16px;
  line-height: 1.6;
  max-width: 445px;
  margin: 0 0 17px;
}
.cd-hero-text p strong { color: #1d5f92; }
.cd-hero-greeting { color: #2875a9; font-size: 14px; font-weight: 600; margin-bottom: 21px; }
.cd-hero-greeting span { color: #1d8ccf; margin-right: 7px; }
.cd-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #d31e77;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 4px 18px;
  box-shadow: 0 5px 10px rgba(188, 24, 105, .14);
}
.cd-hero-button:hover, .cd-hero-button:focus { color: #fff; background: #a8145c; text-decoration: none; }
.cd-hero-picture {
  position: relative;
  z-index: 2;
  flex: 0 1 48%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-hero-art-frame {
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  filter: drop-shadow(0 18px 21px rgba(49, 119, 163, .11));
}
.cd-hero-art-frame img { display: block; width: 100%; height: auto; }
.cd-hero-picture-badge {
  position: absolute;
  bottom: 3%;
  right: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 73px;
  height: 73px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #d41d77;
  color: #fff;
  box-shadow: 0 6px 19px rgba(149, 34, 92, .25);
  transform: rotate(8deg);
}
.cd-hero-picture-badge b { font: 800 33px/.95 Arial, sans-serif; }
.cd-hero-picture-badge small { font: 800 9px/1.2 Arial, sans-serif; letter-spacing: .15em; }
.cd-hero-pine { position: absolute; width: 172px; z-index: 1; pointer-events: none; opacity: .8; }
.cd-hero-pine-right { top: -29px; right: -27px; transform: rotate(88deg); }
.cd-hero-spark { position: absolute; pointer-events: none; z-index: 1; color: #dcb56e; }
.cd-hero-spark-one { top: 30%; left: 51%; font-size: 25px; }
.cd-hero-spark-two { bottom: 12%; right: 43%; font-size: 21px; }

/* ---------- Light, non-interactive snowfall ---------- */
#cd-snowfall {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout style paint;
}
#cd-snowfall[hidden] { display: none !important; }
.cd-snowflake {
  position: absolute;
  top: -30px;
  display: block;
  line-height: 1;
  color: #a9d8f9;
  opacity: var(--cd-opacity, .53);
  text-shadow: 0 0 2px #fff, 0 0 5px rgba(255, 255, 255, .7);
  animation: cd-snow-fall var(--cd-duration, 15s) linear var(--cd-delay, 0s) infinite;
  will-change: transform;
}
#cd-snowfall.cd-snow-paused .cd-snowflake { animation-play-state: paused; }
@keyframes cd-snow-fall {
  from { transform: translate3d(0, -35px, 0) rotate(0deg); }
  to { transform: translate3d(var(--cd-drift, 40px), calc(100vh + 65px), 0) rotate(280deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cd-festive-header .cd-festive-header-inner { gap: 12px; }
  .cd-brand-subtitle { font-size: 10px; letter-spacing: .12em; }
  .cd-anniversary { gap: 8px; }
    .cd-anniversary-thanks { font-size: 11px; }
  .cd-seasonal-hero { padding-left: 33px; padding-right: 29px; }
}
@media (max-width: 767px) {
  #header.cd-festive-header { min-height: 0; }
  .cd-festive-header .cd-festive-header-inner {
    flex-direction: column;
    gap: 3px;
    padding: 15px 20px 17px;
    align-items: center;
  }
  .cd-header-brand { flex: none; width: 100%; text-align: center; }
  .cd-brand-link { max-width: 250px; margin: 0 auto; }
  .cd-brand-logo-desktop { display: none; }
  .cd-brand-logo-mobile { display: block; }
  .cd-brand-subtitle { margin: 2px 0 0; font-size: 10px; letter-spacing: .11em; }
  .cd-anniversary { flex: none; width: 100%; justify-content: center; gap: 4px; }
    .cd-anniversary-message { gap: 3px; }
  .cd-anniversary-kicker { font-size: 9px; }
  .cd-anniversary-message strong { font-size: 21px; }
  .cd-anniversary-thanks { max-width: 230px; font-size: 10px; }
  .cd-snow-toggle { left: 12px; bottom: 12px; width: 31px; height: 31px; font-size: 16px; }
  .cd-seasonal-hero { flex-direction: column; padding: 30px 22px 15px; gap: 7px; min-height: 0; }
  .cd-hero-text { width: 100%; padding-right: 0; }
  .cd-hero-text h1 { font-size: clamp(31px, 7.2vw, 45px); margin: 19px 0 13px; }
  .cd-hero-text p { font-size: 15px; line-height: 1.56; max-width: 540px; }
  .cd-hero-greeting { font-size: 13px; margin-bottom: 16px; }
  .cd-hero-picture { width: 100%; max-width: 390px; margin: 2px auto 0; }
  .cd-hero-art-frame { max-width: 350px; }
  .cd-hero-picture-badge { width: 66px; height: 66px; right: 4%; }
  .cd-hero-picture-badge b { font-size: 30px; }
  .cd-hero-pine-right { width: 140px; }
}
@media (max-width: 420px) {
  .cd-anniversary-message strong { font-size: 19px; }
  .cd-anniversary-thanks { max-width: 205px; }
  .cd-ribbon-inner { flex-wrap: wrap; column-gap: 9px; row-gap: 3px; }
  .cd-seasonal-hero { padding-left: 16px; padding-right: 16px; }
  .cd-hero-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .cd-hero-text h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-snowflake { animation: none !important; }
  .cd-hero-button, .cd-snow-toggle { transition: none; }
}

/* ---------- Cleanup for holiday layout v3 ---------- */
#hornav .container {
  box-shadow: 0 -4px 0 #318CE7 inset, 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.cd-seasonal-hero-wrap,
.cd-seasonal-hero-container {
  background: transparent !important;
}


/* ---------- v4 navigation + footer light refresh ---------- */
.bottom-border-shadow {
  background-image: none !important;
  -webkit-moz-box-shadow: none !important;
  box-shadow: none !important;
}

#hornav {
  background: transparent !important;
}

#hornav .container {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 -4px 0 #9dc9f1 inset, 0 10px 24px rgba(36, 86, 120, 0.08) !important;
  border: 1px solid rgba(70, 136, 192, .12);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

#hornav ul#hornavmenu > li > a,
#hornav ul#hornavmenu > li > span {
  color: #48657d !important;
  font-weight: 700;
}

#hornav li [class^="fa-"]:before,
#hornav li [class*=" fa-"]:before {
  color: #7fa3c0;
}

#hornav ul#hornavmenu > li > a:hover,
#hornav ul#hornavmenu > li > span:hover,
#hornav ul#hornavmenu > li > a.active,
#hornav ul#hornavmenu > li > span.active,
#hornav ul#hornavmenu > li > a.current,
#hornav ul#hornavmenu > li > span.current {
  background: linear-gradient(180deg, #db2b80 0%, #c91d70 100%) !important;
  color: #fff !important;
}

#hornav ul#hornavmenu > li > a:hover:before,
#hornav ul#hornavmenu > li > span:hover:before,
#hornav ul#hornavmenu > li > a.active:before,
#hornav ul#hornavmenu > li > span.active:before,
#hornav ul#hornavmenu > li > a.current:before,
#hornav ul#hornavmenu > li > span.current:before {
  color: #fff !important;
}

#hornav ul ul {
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid rgba(126, 168, 207, .2);
  box-shadow: 0 10px 24px rgba(42, 87, 120, .1);
}

#hornav ul ul:before {
  border-top-color: rgba(255, 255, 255, .98) !important;
}

#hornav ul ul li a,
#hornav ul ul li span {
  color: #557084 !important;
}

#hornav ul ul li a:hover,
#hornav ul ul li a:focus,
#hornav ul ul li:hover a {
  background: #f3f9ff !important;
  color: #cf1f74 !important;
}

#hornav ul.social-icons li {
  background: rgba(236, 245, 253, .88) !important;
  border-left: 1px solid rgba(126, 168, 207, .18);
}

#hornav ul.social-icons li a {
  border-color: rgba(120, 166, 207, .12) !important;
}

#base {
  background: rgba(234, 242, 250, .94) !important;
  color: #5f7182 !important;
  box-shadow: 0 -4px 0 #9dc9f1 inset;
}

#base .container.bottom-border {
  box-shadow: none !important;
  border-top: 1px solid rgba(117, 166, 208, .2);
}

#base h3 {
  color: #173d5b !important;
  opacity: 1 !important;
}

#base li a,
#base a {
  color: #cc2074 !important;
}

#base li a:hover,
#base a:hover {
  color: #155b88 !important;
}

#footer {
  background: rgba(227, 237, 247, .97) !important;
  color: #617587 !important;
  border-top: 1px solid rgba(117, 166, 208, .24);
}

#footermenu ul li {
  border-right: 1px solid rgba(117, 166, 208, .22) !important;
}

#footermenu ul li a,
#copyright,
#copyright p,
#copyright a {
  color: #4f6579 !important;
}

#footermenu ul li a:hover,
#copyright a:hover {
  color: #d12078 !important;
}

@media (max-width: 767px) {
  #hornav .container {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* ---------- v5 final width + softer footer polish ---------- */
.cd-seasonal-hero-wrap .container.no-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cd-seasonal-hero {
  border-left: 0;
  border-right: 0;
}

#base .company-house-badge {
  display: inline-block;
  background: transparent;
  padding: 0;
}

#base .company-house-badge img {
  display: inline-block;
  width: 225px;
  max-width: 100%;
  height: auto;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent;
}



/* ---------- v7 nav stacking + mobile drawer ---------- */
/* Keep expanded menus above the slideshow and body sections.
   The original template's old 21-level nav and matched stacking contexts
   let the later hero/section backgrounds paint on top of the menus. */
#hornav,
.is-sticky #hornav {
  position: relative !important;
  z-index: 500 !important;
  overflow: visible !important;
}

/* Some sticky-menu plugins wrap the navigation in an extra stacking context. */
.sticky-wrapper:has(> #hornav),
.sticky-wrapper:has(> .is-sticky > #hornav) {
  position: relative;
  z-index: 500;
}

#hornav .container,
#hornav .row,
#hornav #hornavmenu,
#hornav #hornavmenu > li {
  overflow: visible !important;
}

#hornav li:hover > ul,
#hornav li:focus-within > ul {
  z-index: 510 !important;
}

#hornav .menu-toggle {
  position: relative;
  z-index: 520;
}

#hornav .menu-toggle label {
  z-index: 522;
}

#hornav .nav-links {
  z-index: 521;
  background: rgba(249, 252, 255, .99) !important;
  border: 1px solid rgba(92, 145, 190, .22);
  border-top: 0;
  box-shadow: 0 12px 25px rgba(28, 68, 104, .15);
}

/* The old dark full-height menu pseudo-overlay obscured the light menu. */
#hornav .nav-links::before { display: none !important; }
#hornav .nav-links li a { color: #375571 !important; font-weight: 600; }
#hornav .nav-links li a:hover,
#hornav .nav-links li a:focus-visible { color: #bf216c !important; background: #edf5fc; }

@media (max-width: 1199px) {
  #hornav .nav-links {
    max-height: min(500px, calc(100vh - 90px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* The desktop menu appears only at Bootstrap's lg breakpoint (1200px).
   Restore the hamburger in the 1024–1199px tablet gap. */
@media (min-width: 1024px) and (max-width: 1199px) {
  #hornav .menu-toggle label,
  #hornav .nav-links { display: block; }
}

/* ---------- v8 footer icon contrast ---------- */
/* The original dark template rendered these icons as 20%-opacity white.
   Match them to the new light-blue footer without altering their labels. */
#base [class^="fa-"]::before,
#base [class*=" fa-"]::before,
#footermenu li [class^="fa-"]::before,
#footermenu li [class*=" fa-"]::before {
  color: #4b708f !important;
  opacity: 1 !important;
}
#base a[class^="fa-"]:hover::before,
#base a[class*=" fa-"]:hover::before,
#base a[class^="fa-"]:focus-visible::before,
#base a[class*=" fa-"]:focus-visible::before {
  color: #c31e70 !important;
}

/* ---------- v9 mobile hero simplification ---------- */
/* Mobile visitors already see the 10-year message in the hero; do not repeat
   it beneath the logo. Keep both anniversary and artwork on wider screens. */
@media (max-width: 767px) {
  #header.cd-festive-header .cd-anniversary {
    display: none !important;
  }
  #header.cd-festive-header .cd-festive-header-inner {
    gap: 0;
    padding-bottom: 14px;
  }
  /* Hide the illustration and its overlaid 10-years badge together. */
  .cd-seasonal-hero .cd-hero-picture {
    display: none !important;
  }
  .cd-seasonal-hero {
    min-height: 0;
    padding-bottom: 30px;
  }
  .cd-seasonal-hero .cd-hero-text {
    flex: 1 1 auto;
    width: 100%;
  }
}


/* ---------- v10 festive cookie banner ---------- */
.cookie-consent-banner {
  background: linear-gradient(135deg, rgba(245, 250, 255, .98) 0%, rgba(231, 241, 250, .98) 100%) !important;
  color: #566f82 !important;
  border: 1px solid rgba(118, 170, 210, .28) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(34, 79, 110, .16) !important;
  backdrop-filter: blur(6px);
}

.cookie-consent-banner__header {
  color: #163d5c !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}

.cookie-consent-banner__header i,
.fa-cookie-bite,
.fa-cookie-bite svg {
  color: #d6a13f !important;
  fill: #d6a13f !important;
}

.cookie-consent-banner__description {
  color: #607789 !important;
}

.cookie-consent-banner__cta {
  background: linear-gradient(180deg, #e01980 0%, #c9166e 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  box-shadow: 0 5px 14px rgba(190, 31, 109, .18);
}

.cookie-consent-banner__cta:hover {
  background: linear-gradient(180deg, #c9166e 0%, #a9135a 100%) !important;
  color: #fff !important;
}

.cookie-consent-banner__cta--secondary {
  background: rgba(255, 255, 255, .7) !important;
  color: #18669a !important;
  border: 1px solid rgba(118, 170, 210, .45) !important;
  box-shadow: none !important;
}

.cookie-consent-banner__cta--secondary:hover {
  background: #e7f4ff !important;
  color: #0e5581 !important;
  border-color: rgba(68, 139, 193, .55) !important;
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    width: calc(100% - 24px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    transform: none !important;
    padding: 18px !important;
    border-radius: 12px !important;
  }

  .cookie-consent-banner__header {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .cookie-consent-banner__description {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .cookie-consent-banner__actions {
    justify-content: stretch !important;
    flex-direction: column !important;
  }

  .cookie-consent-banner__cta {
    width: 100% !important;
  }
}
