/* ======================================================
   RIDDLER'S PROJECT FOOTER
   Premium dark / gold footer - desktop only
   ====================================================== */

/* ======================================================
   1) FOOTER SPACING RESET
   Removes unwanted Blocksy / widget spacing above footer
   ====================================================== */

.rp-home-news-section {
  padding-bottom: 14px !important;
  margin-bottom: 0 !important;
}

.rp-footer,
.rp-footer__inner,
.rp-footer__socials {
  margin-top: 0 !important;
}

.rp-footer {
  padding-top: 0 !important;
  /* Sticky-footer fallback: keeps the footer attached to the bottom of short pages,
     even when the shortcode is not placed in the real theme footer. */
  position: sticky;
  top: 100vh;
  top: 100svh;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(218,188,115,0.055), transparent 34%),
    linear-gradient(180deg, #343431 0%, #2f302d 100%);
  border-top: 1px solid rgba(185,155,94,0.46);
}

.rp-footer__inner > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Blocksy footer wrappers */
.ct-footer [data-row] {
  margin-top: 0 !important;
}

.ct-footer [data-row] > div {
  padding-top: 0 !important;
}

.ct-footer .widget,
.ct-footer .widget_block,
.ct-footer .widget_custom_html,
.ct-footer .textwidget,
.ct-footer .custom-html-widget {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ct-footer .widget:first-child,
.ct-footer .widget_block:first-child,
.ct-footer .widget_custom_html:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove the empty strip that some Blocksy footer rows can leave below the custom footer. */
.ct-footer,
.ct-footer [data-row],
.ct-footer [data-row] > div,
.ct-footer .ct-container,
.ct-footer [data-column],
.ct-footer .ct-widget,
.ct-footer .widget,
.ct-footer .widget_block,
.ct-footer .widget_custom_html,
.ct-footer .textwidget,
.ct-footer .custom-html-widget {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

/* Keep the footer visually full-width even when the shortcode is placed
   inside a Blocksy / Elementor / page-content container. */
.ct-footer,
.ct-footer [data-row],
.ct-footer [data-row] > div,
.ct-footer .ct-container,
.ct-footer .ct-widget,
.ct-footer .widget,
.ct-footer .widget_block,
.ct-footer .widget_custom_html,
.ct-footer .textwidget,
.ct-footer .custom-html-widget {
  background: transparent !important;
}

html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* ======================================================
   1B) STICKY FOOTER FOR SHORT DESKTOP PAGES
   Keeps the footer visually attached to the bottom of the
   viewport when the page content is shorter than the screen.
   ====================================================== */

@media (min-width: 1025px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    min-height: 100svh;
  }

  #main-container {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  #main-container > header,
  #main-container > #header,
  #main-container > .ct-header {
    flex: 0 0 auto;
  }

  #main-container > main,
  #main-container > #main,
  #main-container > .site-main,
  #main-container > .ct-main {
    flex: 1 0 auto;
  }

  #main-container > footer,
  #main-container > #footer,
  #main-container > .ct-footer {
    flex: 0 0 auto;
    margin-top: auto !important;
  }

  /* If the shortcode is placed inside the page content instead of the real theme footer,
     the sticky positioning on .rp-footer below handles the final bottom alignment. */
}

/* ======================================================
   2) FOOTER BASE
   ====================================================== */

.rp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(218,188,115,0.035) 50%,
      transparent 100%
    );
}

.rp-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 30px 16px !important;
  text-align: center;
}

.rp-footer *,
.rp-footer *::before,
.rp-footer *::after {
  box-sizing: border-box;
}

/* ======================================================
   3) SOCIAL ICONS
   ====================================================== */

.rp-footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
}

.rp-footer__social-link {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #c9a85f;
  background: rgba(185,155,94,0.035);
  border: 1px solid rgba(185,155,94,0.18);
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transform: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.rp-footer__social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.rp-footer__social-link:hover,
.rp-footer__social-link:focus {
  color: #e3c37a;
  background: rgba(185,155,94,0.075);
  border-color: rgba(218,188,115,0.34);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.22),
    0 0 18px rgba(218,188,115,0.075);
  transform: translateY(-2px);
  outline: none;
}

.rp-footer__social-link:focus-visible {
  outline: 2px solid rgba(218,188,115,0.65);
  outline-offset: 4px;
}

/* ======================================================
   4) DIVIDERS
   ====================================================== */

.rp-footer__divider {
  width: 100%;
  max-width: 960px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    rgba(185,155,94,0) 0%,
    rgba(185,155,94,0.25) 18%,
    rgba(185,155,94,0.30) 50%,
    rgba(185,155,94,0.25) 82%,
    rgba(185,155,94,0) 100%
  );
}

.rp-footer__divider--bottom {
  opacity: 0.72;
}

/* ======================================================
   5) LEGAL LINKS
   ====================================================== */

.rp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px clamp(20px, 3.2vw, 46px);
  padding: 15px 0 13px;
}

.rp-footer__legal-link,
.rp-footer__legal-link:visited {
  position: relative;
  display: inline-block;
  color: #f3efe6;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.rp-footer__legal-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #c9a85f;
  transform: translateX(-50%);
  transition: width 0.25s ease, background 0.25s ease;
}

.rp-footer__legal-link:hover,
.rp-footer__legal-link:focus {
  color: #dabc73;
  outline: none;
}

.rp-footer__legal-link:hover::after,
.rp-footer__legal-link:focus::after {
  width: 100%;
  background: #dabc73;
}

.rp-footer__legal-link:focus-visible {
  outline: 2px solid rgba(218,188,115,0.55);
  outline-offset: 8px;
  border-radius: 4px;
}

.rp-footer__legal-link.cmplz-show-banner {
  cursor: pointer;
}

/* ======================================================
   6) COPYRIGHT
   ====================================================== */

.rp-footer__bottom {
  padding-top: 12px;
}

.rp-footer__copyright {
  margin: 0;
  color: rgba(224,224,224,0.82);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.6;
}

/* ======================================================
   7) DESKTOP ONLY
   Your mobile/tablet footer can stay handled elsewhere
   ====================================================== */

@media (max-width: 1024px) {
  .rp-footer {
    display: none;
  }
}