:root {
  --jf-blue: #09568d;
  --jf-blue-light: #0d7ac2;
  --jf-text: #eaf2f9;
  --jf-dark: #050b12;
}

body.jafita-managed-page {
  margin: 0;
  background: #dfe5ec;
}

body.jafita-managed-page .site-main,
body.jafita-managed-page .page-content,
body.jafita-managed-page .entry-content,
body.jafita-managed-page .elementor-location-header,
body.jafita-managed-page .elementor-location-footer,
body.jafita-managed-page .elementor,
body.jafita-managed-page .elementor-section-wrap,
body.jafita-managed-page .elementor-widget-wrap,
body.jafita-managed-page .elementor-widget-shortcode,
body.jafita-managed-page .elementor-widget-shortcode > .elementor-widget-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.jafita-managed-page .page-header,
body.jafita-managed-page .entry-title,
body.jafita-managed-page #site-header,
body.jafita-managed-page #site-footer {
  display: none !important;
}

.jf-header,
.jf-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.jf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 15, 26, 0.9);
  color: var(--jf-text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-bar .jf-header {
  top: 32px;
}

.jf-header__inner {
  width: 100%;
  max-width: 1440px;
  height: 88px;
  margin: 0 auto;
  padding: 0 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.jf-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.jf-brand img {
  width: 176px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.jf-brand__line {
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.22);
}

.jf-brand__tagline {
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.jf-primary-nav {
  margin-left: auto;
}

.jf-menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.jf-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.jf-menu-toggle:hover,
.jf-menu-toggle:focus-visible {
  border-color: #62b9ed;
  color: #62b9ed;
}

.jf-menu,
.jf-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jf-menu {
  display: flex;
  align-items: center;
  gap: 31px;
}

.jf-menu li {
  margin: 0;
  padding: 0;
}

.jf-menu a {
  display: block;
  white-space: nowrap;
  color: rgba(234, 242, 249, 0.76);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.jf-menu a:hover,
.jf-menu .current-menu-item > a,
.jf-menu .current_page_item > a {
  color: #fff;
}

.jf-quote {
  width: 128px;
  height: 44px;
  flex: 0 0 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--jf-blue);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.jf-quote:hover {
  background: var(--jf-blue-light);
}

.jf-quote:active,
.jf-footer__contact:active {
  transform: translateY(1px);
}

.jf-footer {
  background: var(--jf-dark);
  color: var(--jf-text);
}

.jf-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 86px 44px;
}

.jf-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr 1fr;
  gap: 48px;
}

.jf-footer__brand img {
  width: 176px;
  display: block;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.jf-footer p {
  max-width: 340px;
  margin: 0;
  color: rgba(234, 242, 249, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.jf-footer p a,
.jf-footer__address {
  color: rgba(234, 242, 249, 0.68);
  text-decoration: none;
}

.jf-footer p a:hover {
  color: #62b9ed;
}

.jf-footer h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.jf-footer-menu li {
  margin: 0 0 12px;
}

.jf-footer-menu a,
.jf-footer__contact {
  color: rgba(234, 242, 249, 0.68);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease;
}

.jf-footer-menu a:hover,
.jf-footer__contact:hover {
  color: #fff;
}

.jf-footer__contact {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-weight: 700;
}

.jf-footer__copyright {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(234, 242, 249, 0.48);
  font-size: 12px;
  line-height: 1.6;
}

.jf-footer__bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.jf-footer__privacy {
  color: rgba(234, 242, 249, 0.68);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}

.jf-footer__privacy:hover,
.jf-footer__privacy:focus-visible {
  color: #62b9ed;
}

.jf-footer__privacy:focus-visible {
  outline: 2px solid #62b9ed;
  outline-offset: 4px;
}

.jf-footer__social {
  min-width: 0;
}

.jf-footer__social-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jf-footer__social-menu li {
  margin: 0;
}

.jf-footer__social-menu a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: rgba(234, 242, 249, 0.68);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease;
}

.jf-footer__social-menu a:hover {
  color: #62b9ed;
}

.jf-footer__social-menu a:focus-visible {
  outline: 2px solid #62b9ed;
  outline-offset: 4px;
}

.jafita-managed-page .news-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.jafita-managed-page .strip-image > a {
  display: block;
  height: 100%;
}

.jafita-managed-page .strip-image > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1180px) {
  .jf-header__inner {
    padding: 0 42px;
  }

  .jf-menu {
    gap: 18px;
  }

  .jf-menu a {
    font-size: 13px;
  }

  .jf-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .admin-bar .jf-header {
    top: 46px;
  }

  .jf-header__inner {
    min-height: 76px;
    height: auto;
    padding: 14px 20px;
    gap: 14px;
  }

  .jf-brand img {
    width: 138px;
  }

  .jf-brand__line,
  .jf-brand__tagline {
    display: none;
  }

  .jf-quote {
    width: 108px;
    height: 38px;
    flex-basis: 108px;
    margin-left: auto;
    font-size: 12px;
  }

  .jf-footer__inner {
    padding: 58px 20px 34px;
  }

  .jf-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .jf-footer__copyright {
    display: block;
    line-height: 1.8;
  }

  .jf-footer__copyright span {
    display: block;
  }

  .jf-footer__bottom-links {
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 10px;
  }

  .jf-footer__social-menu {
    justify-content: flex-start;
    margin-top: 12px;
    gap: 8px 18px;
  }

  .jf-footer__social-menu a {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .jf-header__inner {
    position: relative;
    box-sizing: border-box;
  }

  .jf-menu-toggle {
    display: inline-flex;
  }

  .jf-primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #06101b;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  }

  .jf-header.is-menu-open .jf-primary-nav {
    display: block;
  }

  .jf-menu {
    display: grid;
    gap: 0;
  }

  .jf-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .jf-menu a {
    padding: 14px 0;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
