/* RMX Theme — BeTheme classic header + chrome for Remaks akumulatori */
:root {
  --rmx-accent: #0095eb;
  --rmx-accent-2: #4da2f9;
  --rmx-accent-hover: #0089f7;
  --rmx-accent-deep: #007cc3;
  --rmx-navy: #1b3a8e;
  --rmx-navy-2: #132e76;
  --rmx-navy-3: #003590;
  --rmx-gold: #fac23c;
  --rmx-dark: #161922;
  --rmx-text: #58595b;
  --rmx-muted: #868ea3;
  --rmx-grey-bg: #f5f5f5;
  --rmx-header-h: 90px;
  --rmx-font: "Montserrat Alternates", Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rmx-font-display: "Montserrat", "Montserrat Alternates", sans-serif;
}

body.rmx-theme {
  font-family: var(--rmx-font);
  font-size: 15px;
  line-height: 28px;
  font-weight: 400;
  color: var(--rmx-text);
  background: #fff;
  margin: 0;
  overflow-x: hidden;
  padding-top: var(--rmx-header-h);
}
/* Home template — no white flash between grey sections */
body.page-template-rmx-home,
body.page-template-rmx-home .rmx-wrapper {
  background-color: #f5f5f5 !important;
}
body.page-template-rmx-home .rmx-header-wrap,
body.page-template-rmx-home .rmx-topbar {
  background-color: #fff;
}
html {
  overflow-x: hidden;
}

body.rmx-theme h1,
body.rmx-theme h2,
body.rmx-theme h3,
body.rmx-theme h4,
body.rmx-theme h5,
body.rmx-theme h6 {
  font-family: var(--rmx-font);
  font-weight: 400;
  color: var(--rmx-dark);
}

a { color: var(--rmx-accent); }
a:hover { color: var(--rmx-accent-hover); }

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.rmx-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.rmx-theme-main { flex: 1; padding: 48px 0 64px; }

/* —— Fixed sticky header (overflow on html/body breaks position:sticky) —— */
.rmx-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background: #fff;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.rmx-header {
  position: relative;
}
.rmx-topbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}
body.rmx-is-scrolled .rmx-header-wrap,
body.rmx-is-scrolled .rmx-topbar {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}
.rmx-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--rmx-header-h);
  gap: 16px;
}
.rmx-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.rmx-logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 240px;
}

.rmx-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.rmx-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--rmx-dark);
  margin: 6px 0;
  border-radius: 1px;
}

.rmx-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.rmx-nav__link {
  display: block;
  padding: 10px 16px;
  color: var(--rmx-dark) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.rmx-nav__link:hover,
.rmx-nav__item.is-current > .rmx-nav__link {
  color: var(--rmx-accent) !important;
}

@media (max-width: 991.98px) {
  .rmx-nav-toggle { display: block; }
  .rmx-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 0 20px;
  }
  .rmx-nav.is-open { display: block; }
  .rmx-nav__list { flex-direction: column; align-items: stretch; }
  .rmx-nav__link { padding: 14px 24px; }
  body.rmx-nav-open { overflow: hidden; }
}

/* —— Footer —— */
.rmx-footer {
  background: #fff;
  border-top: 1px solid #eee;
}
.rmx-footer__copy {
  padding: 28px 0;
  text-align: center;
}
.rmx-footer__text {
  color: #929292;
  font-size: 14px;
}
.rmx-footer__text a { color: var(--rmx-accent); }

/* —— Back to top —— */
.rmx-back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1030;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rmx-accent);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 149, 235, 0.35);
}
.rmx-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* —— GDPR cookie card —— */
#mfn-gdpr,
.rmx-gdpr {
  display: none;
  align-items: center;
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  flex-direction: column;
  padding: 28px 28px 24px;
  bottom: 28px;
  left: 28px;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 37, 88, 0.18);
}
#mfn-gdpr.show,
.rmx-gdpr.show { display: flex; }
.rmx-gdpr__image {
  line-height: 0;
  margin-bottom: 14px;
}
.rmx-gdpr__icon {
  display: block;
  width: 56px;
  height: 56px;
}
.rmx-gdpr__content {
  margin-bottom: 10px;
  text-align: center;
  color: #58595b;
  font-size: 13px;
  line-height: 1.5;
}
.rmx-gdpr__readmore {
  margin-bottom: 14px;
  color: #1b3a8e;
  font-size: 13px;
  font-weight: 600;
}
.rmx-gdpr__readmore:hover { color: #0089f7; }
.rmx-gdpr__button {
  background-color: #0095eb;
  color: #fff;
  border: 0;
  border-radius: 50px;
  padding: 11px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}
.rmx-gdpr__button:hover {
  background-color: #0089f7;
  color: #fff;
}

@media (max-width: 575.98px) {
  #mfn-gdpr,
  .rmx-gdpr {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 22px;
  }
}

/* —— Scroll reveal —— */
html[data-rmx-reveal] body.rmx-has-reveal .rmx-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rmx-reveal-delay, 0s);
  will-change: opacity, transform;
}
html[data-rmx-reveal="up"] body.rmx-has-reveal .rmx-reveal {
  opacity: 0;
  transform: translateY(1.75rem);
}
html[data-rmx-reveal] body.rmx-has-reveal .rmx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html[data-rmx-reveal] body.rmx-has-reveal .rmx-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.rmx-theme-entry__title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 24px;
}
.rmx-prose { font-size: 15px; line-height: 1.85; }
.rmx-prose h2, .rmx-prose h3 { margin: 1.6em 0 0.6em; }
.rmx-prose p { margin: 0 0 1em; }
.rmx-theme-404 { text-align: center; padding: 80px 0; }
.rmx-theme-404 h1 { font-size: 72px; }

html.rmx-nav-lock { overflow: hidden; }
