/*
 * PRINTBAY — Christmas decoration for the EXISTING public website markup.
 * Replace /assets/css/client/printbay-christmas.css with this file.
 * No additional HTML classes, wrappers, scripts or stylesheet links.
 * The five PNGs already use the site's /assets/ directory.
 *
 * The existing header is fixed and its wrapper has a 68px offset.
 * Do not change their height, position, padding or scroll behavior here.
 */

#wrapper > .header > .navbar-site {
  --christmas-content-width: 100vw;
  --christmas-corner-size: 20px;
  --christmas-lights-height: 16px;
  --christmas-lights-width: 800px;
}

/* Follow the existing Bootstrap / Printbay container breakpoints. */
@media (min-width: 576px) {
  #wrapper > .header > .navbar-site {
    --christmas-content-width: 540px;
    --christmas-corner-size: clamp(
      18px,
      calc((100vw - var(--christmas-content-width)) / 2 + 10px),
      32px
    );
  }
}

@media (min-width: 768px) {
  #wrapper > .header > .navbar-site {
    --christmas-content-width: 720px;
    --christmas-corner-size: clamp(
      18px,
      calc((100vw - var(--christmas-content-width)) / 2 + 10px),
      136px
    );
  }
}

@media (min-width: 992px) {
  #wrapper > .header > .navbar-site {
    --christmas-content-width: 960px;
  }
}

@media (min-width: 1200px) {
  #wrapper > .header > .navbar-site {
    --christmas-content-width: 1140px;
  }
}

@media (min-width: 1400px) {
  #wrapper > .header > .navbar-site {
    --christmas-content-width: 1400px;
  }
}

/* Both header corners share one existing, previously unused pseudo-element. */
#wrapper > .header > .navbar-site::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--christmas-corner-size);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  background-image:
    url("/assets/christmas-header-left.png"),
    url("/assets/christmas-header-right.png");
  background-position: left top, right top;
  background-size:
    var(--christmas-corner-size) auto,
    var(--christmas-corner-size) auto;
  background-repeat: no-repeat;
}

/* The transparent lights PNG has a centered wire on a padded canvas.
 * Crop its transparent space with this shallow decorative area, while
 * preserving its aspect ratio. No header spacing changes are required.
 */
#wrapper > .header > .navbar-site::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--christmas-lights-height);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  background-image: url("/assets/christmas-lights-strip.png");
  background-position: left center;
  background-size: var(--christmas-lights-width) auto;
  background-repeat: repeat-x;
}

/* The website itself adds .stuck when it collapses the fixed header. */
#wrapper > .header > .navbar-site.stuck {
  --christmas-corner-size: 18px;
  --christmas-lights-height: 10px;
  --christmas-lights-width: 640px;
}

/* Existing category-menu wrapper: a fine gold lower divider. */
#wrapper > .header-black {
  border-bottom: 1px solid #d7c6a0;
}

/* Existing footer background. Use longhands and sufficient specificity:
 * the site's printbay.min.css is loaded AFTER this stylesheet.
 * Keep its existing gray background, top padding and column layout.
 */
#wrapper > footer.main-footer > .footer-content {
  --christmas-footer-left-size: 360px;
  --christmas-footer-right-size: 320px;
  --christmas-footer-space: 194px;
  background-image:
    url("/assets/christmas-footer-left.png"),
    url("/assets/christmas-footer-right.png");
  background-position: left bottom, right bottom;
  background-size:
    min(var(--christmas-footer-left-size), 46vw) auto,
    min(var(--christmas-footer-right-size), 43vw) auto;
  background-repeat: no-repeat;
  padding-bottom: var(--christmas-footer-space);
  border-top-color: #d7c6a0;
}

/* Decorative seasonal greeting below the existing footer logo/tagline.
 * Generated text is used only for this nonessential seasonal decoration.
 * No new HTML element is required.
 */
#wrapper > footer.main-footer > .footer-content > .footer-bar
  > .page-bottom-info-inner > .text-center::after {
  content: "Καλές γιορτές, με όμορφες δημιουργίες.";
  display: block;
  margin-top: 16px;
  padding-inline: 16px;
  color: #203d2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 27px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 767px) {
  #wrapper > .header > .navbar-site {
    --christmas-lights-height: 12px;
    --christmas-lights-width: 640px;
  }

  #wrapper > footer.main-footer > .footer-content {
    --christmas-footer-left-size: 174px;
    --christmas-footer-right-size: 156px;
    --christmas-footer-space: 110px;
  }
}

@media print {
  #wrapper > .header > .navbar-site::before,
  #wrapper > .header > .navbar-site::after,
  #wrapper > footer.main-footer > .footer-content > .footer-bar
    > .page-bottom-info-inner > .text-center::after {
    content: none;
    display: none;
  }

  #wrapper > footer.main-footer > .footer-content {
    background-image: none;
    padding-bottom: 40px;
  }

  #wrapper > .header-black,
  #wrapper > footer.main-footer > .footer-content {
    border-color: rgba(0, 0, 0, 0.1);
  }
}
