/* RLG site overrides — branding + UX fixes */

:root {
  --rlg-brand: #0d1e1e;
  --rlg-gold: #dfae4f;
  --rlg-white: #ffffff;
}

/* Brand wordmark (replaces Riesger logo image in header / mobile nav / footer) */
.rlg-brand {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1.15;
  color: #fff !important;
  max-width: min(100%, 280px);
  min-width: 7.5rem;
  position: relative;
  z-index: 5;
}
.rlg-brand__name,
.rlg-brand__tag {
  color: #fff !important;
}
.rlg-brand__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: 0.04em;
}
.rlg-brand__tag {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.15rem;
}

/* Logo widget was sized for an <img>; keep room for text wordmark */
.elementor-element-43ef45b5,
.elementor-element-43ef45b5 .elementor-widget-container,
.elementor-element-43ef45b5 a.rlg-brand {
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 44px;
}

/* Header bar stays dark (even when jkit adds sticky-pinned) — always light brand */
.elementor-location-header .rlg-brand,
.elementor-location-header .rlg-brand__name,
.elementor-location-header .rlg-brand__tag,
.elementor-element-6a2250d6 .rlg-brand,
.elementor-element-6a2250d6 .rlg-brand__name,
.elementor-element-6a2250d6 .rlg-brand__tag,
.elementor-element-43ef45b5 .rlg-brand,
.elementor-element-43ef45b5 .rlg-brand__name,
.elementor-element-43ef45b5 .rlg-brand__tag,
body.home .elementor-location-header .rlg-brand__name,
body.home .elementor-location-header .rlg-brand__tag {
  color: #fff !important;
}

/* Mobile drawer identity sits on a light panel */
.jkit-nav-site-title .rlg-brand__name,
.jkit-nav-site-title .rlg-brand__tag {
  color: var(--rlg-brand) !important;
}
.jkit-nav-site-title .rlg-brand__tag {
  opacity: 0.7;
}

/* Footer logo area — dark bg, keep white */
footer .rlg-brand__name,
footer .rlg-brand__tag,
.elementor-location-footer .rlg-brand__name,
.elementor-location-footer .rlg-brand__tag {
  color: #fff !important;
}

/* Footer Contact Us: long email was clipped in a narrow column */
.elementor-location-footer .elementor-element-271522fa,
.elementor-location-footer .elementor-element-271522fa .elementor-widget-wrap,
.elementor-location-footer .elementor-element-42181188,
.elementor-location-footer .elementor-element-b1bbc64 {
  overflow: visible !important;
  min-width: 0;
}
.elementor-location-footer .jkit-icon-box-wrapper {
  min-width: 0;
  max-width: 100%;
}
.elementor-location-footer .icon-box.icon-box-body {
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}
.elementor-location-footer .icon-box-description {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
  max-width: 100%;
  line-height: 1.35;
}

/* Back-to-top: show on all breakpoints (source hid it on tablet/mobile) */
.elementor-element-3da34292 {
  display: block !important;
  z-index: 9999 !important;
}
.elementor-element-3da34292.elementor-hidden-tablet,
.elementor-element-3da34292.elementor-hidden-mobile {
  display: block !important;
}
.elementor-element-3da34292 .icon-box-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-decoration: none !important;
}
.elementor-element-3da34292 .icon-box-link .icon {
  margin: 0 !important;
}
.elementor-element-3da34292 .jki-up-arrow1-light {
  color: #111 !important;
  font-size: 18px !important;
}

/* Fallback floating button if Elementor widget missing */
.rlg-back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.rlg-back-top.is-visible {
  display: inline-flex;
}
.rlg-back-top svg {
  width: 18px;
  height: 18px;
  display: block;
}
.rlg-back-top:hover {
  background: var(--rlg-gold);
  color: #0d1e1e;
}

html {
  scroll-behavior: smooth;
}
