/* JBRSOFT home refresh — mobile-first, complements it-source.css */

.jbr-header-main-inner {
  position: relative;
  min-height: 72px;
}

/* Unify My Account button sizing across themes */
:root {
  --jbr-cta-h: 44px;
  --jbr-cta-px: 16px;
  --jbr-cta-radius: 999px;
}

.it-up-header-cta-btn a,
.web-account-button a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: var(--jbr-cta-h) !important;
  line-height: 1 !important;
  padding: 0 var(--jbr-cta-px) !important;
  border-radius: var(--jbr-cta-radius) !important;
  width: auto !important; /* override it-source fixed width */
  gap: 8px;
}

.it-up-header-cta-btn a { min-width: 0 !important; }

.web-account-button a .fa {
  margin-right: 0 !important; /* we use gap */
  font-size: 14px;
  line-height: 1;
}

.it-up-header-cta-btn a i,
.it-up-header-cta-btn a .fa {
  font-size: 14px;
  line-height: 1;
}

.web-account-button {
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.web-account-button a {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,0.20);
}

/* Make the main theme header look modern */
.main-header{
  /* Keep legacy layout behavior for internal pages.
     (Home uses a different header; its layout is handled separately.) */
  position: absolute;
  z-index: 999;
  width: 100%;
}

.main-header .header-upper {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.main-header .nav-outer .main-menu .navigation > li > a {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.main-header .nav-outer .main-menu .navigation > li:hover > a,
.main-header .nav-outer .main-menu .navigation > li.current > a {
  color: #2563eb;
}

.main-header .logo-box img {
  filter: drop-shadow(0 10px 18px rgba(15,23,42,0.10));
}

/* Align header vertical rhythm with CTA */
.main-header .header-upper {
  padding: 10px 0;
}

.main-header .header-upper .outer-box {
  padding-top: 0 !important;
  margin-top: 0 !important; /* override legacy 42px */
}

.main-header .main-box .logo-box{
  padding: 10px 0 !important; /* override legacy 30px */
}

/* Desktop alignment: keep menu and My Account perfectly in one row */
@media (min-width: 1024px) {
  .main-header .header-upper .auto-container > .clearfix {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .main-header .header-upper .logo-box,
  .main-header .header-upper .nav-outer,
  .main-header .header-upper .outer-box {
    float: none !important;
  }

  .main-header .header-upper .nav-outer {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
  }

  .main-header .header-upper .outer-box {
    display: flex;
    align-items: center;
    margin-left: 20px !important;
  }

  .main-header .header-upper .outer-box .search-box-outer {
    display: none !important; /* keeps CTA alignment clean */
  }

  .main-header .main-menu .navigation > li > a {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* Global topbar */
.jbr-topbar {
  background: #0b1220;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  padding: 8px 0;
}

.jbr-topbar .jbr-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jbr-topbar a {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
}

.jbr-topbar a:hover { color: #fff; }

.jbr-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jbr-topbar-sep { opacity: 0.35; }

.jbr-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 991px) {
  /* Any standalone home-style header (index, AMR profile, etc.) */
  .it-up-header-main .container {
    position: relative;
    min-height: 64px;
  }

  .it-up-header-main .jbr-mobile-menu-wrap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
  }

  .it-up-header-main .jbr-mobile-menu-wrap .mobile_menu_button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: block !important;
    color: #2563eb;
  }

  .it-up-header-main .it-up-brand-logo {
    padding-top: 8px;
  }

  .it-up-header-main .it-up-main-menu-wrap.d-none {
    display: none !important;
  }

  .it-up-header-main .it-up-header-cta-btn {
    margin-right: 52px;
  }

  :root { --jbr-cta-h: 40px; --jbr-cta-px: 14px; }
}

/* Hero */
.jbr-hero-section .jbr-hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2563eb;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Home hero spacing: reduce excessive top padding on some breakpoints */
@media screen and (max-width: 1024px) {
  .jbr-hero-section .it-up-banner-text {
    padding: 190px 0 50px !important;
  }
}

@media screen and (max-width: 480px) {
  .jbr-hero-section .it-up-banner-text {
    padding: 160px 0 45px !important;
  }
}

.jbr-hero-section .jbr-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  margin-right: 8px;
  vertical-align: middle;
}

.jbr-hero-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem) !important;
  line-height: 1.25 !important;
  max-width: 18ch;
  color: #0f172a;
}

.jbr-hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  max-width: 36rem;
}

.jbr-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  margin-left: 12px;
  border-radius: 50px;
  border: 2px solid #2563eb;
  color: #2563eb !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.jbr-btn-outline:hover {
  background: #2563eb;
  color: #fff !important;
}

@media screen and (max-width: 576px) {
  .jbr-btn-outline {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
}

/* Trust strip */
.jbr-trust-strip {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: #e2e8f0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.jbr-trust-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.jbr-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.jbr-trust-item i {
  color: #38bdf8;
  font-size: 1.1rem;
}

/* Stats row: parent uses flex (it-source.css); improve wrapping on small screens */
.jbr-in-numbers-grid {
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .jbr-in-numbers-box .jbr-in-numbers-grid {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  .jbr-in-numbers-box .jbr-stat-item {
    flex: 1 1 42%;
    min-width: 140px;
  }
}

/* Featured solution cards — clearer hover */
.it-up-featured-innerbox {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.it-up-featured-innerbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Service tabs: horizontal scroll on small screens */
@media screen and (max-width: 991px) {
  .it-up-service-tab-btn ul.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
  }

  .it-up-service-tab-btn .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Professional client proof section */
.jbr-proof-section .it-up-section-title p {
  color: #64748b;
  max-width: 720px;
  margin: 10px auto 0;
}

.jbr-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.jbr-proof-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.jbr-proof-org {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.jbr-org-logo {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.jbr-org-meta strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.3;
}

.jbr-org-meta small {
  color: #64748b;
  font-size: 12px;
}

.jbr-proof-body {
  padding: 18px 20px 20px;
}

.jbr-proof-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.jbr-proof-body h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.3;
}

.jbr-proof-body p {
  color: #475569;
}

.jbr-proof-body ul {
  margin: 10px 0 8px;
  padding-left: 18px;
}

.jbr-proof-body ul li {
  color: #334155;
  margin-bottom: 5px;
}

.jbr-proof-author {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a !important;
}

.jbr-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #2563eb !important;
  font-weight: 700;
  text-decoration: none;
}

.jbr-proof-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 991px) {
  .jbr-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Icon-driven feature chips for AMR/PViMS sections */
.jbr-feature-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.jbr-feature-chip i {
  color: #2563eb;
}

/* AMR section redesign */
.jbr-amr-shell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.jbr-amr-intro {
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
}

.jbr-amr-card {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  min-height: 138px;
  padding: 14px 14px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jbr-amr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.jbr-amr-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.jbr-amr-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #0f172a;
  font-weight: 800;
}

.jbr-amr-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.jbr-amr-cta {
  margin-top: 12px;
}

@media screen and (max-width: 767px) {
  .jbr-amr-shell {
    padding: 16px 14px 8px;
  }

  .jbr-amr-card {
    min-height: auto;
  }
}

/* Light mobile drawer (overrides it-source dark panel) */
.mobile_menu_content.jbr-mobile-drawer {
  padding-top: 56px !important;
  background: #fff !important;
  width: min(320px, 92vw) !important;
  right: -340px !important; /* closed state */
  transition: right 0.35s ease !important; /* remove delayed slide */
  height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px !important;
}

.mobile_menu_content.jbr-mobile-drawer .main-navigation .navbar-nav li > a {
  color: #1e293b !important;
}

.mobile_menu_content.jbr-mobile-drawer .dropdown-menu .dropdown-item {
  color: #334155 !important;
}

/* Open state: slide drawer in without delay */
.it-up-mobile_menu_wrap.it-up-mobile_menu_on .mobile_menu_content.jbr-mobile-drawer {
  right: 0 !important;
  transition: right 0.35s ease !important;
}

/* Overlay: reduce long delay from it-source.css */
.it-up-mobile_menu_wrap .mobile_menu_overlay {
  transition: all 0.2s ease !important;
}
