/* ================= BO OTHER SERVICES WIDGET — default styling =================
   Scoped under .bo-os-wrap. Self-contained: own CSS vars, own namespaced
   classes, own reveal system. Does not depend on theme globals so it
   renders correctly even without the parent theme stylesheet loaded.
   ========================================================================= */

.bo-os-wrap{
  --os-navy: #031B39;
  --os-slate-light: #8B97A8;
  --os-line: #E4E8EE;
  --os-ease: cubic-bezier(.22,1,.36,1);
  --os-ease-spring: cubic-bezier(.34,1.56,.64,1);

  --os-section-bg: #ffffff;
  --os-v-padding: 72px;

  --os-eyebrow-color: #1083E6;
  --os-heading-color: #031B39;

  --os-card-bg: #F7F9FC;
  --os-card-hover-bg: #ffffff;
  --os-card-border: #E4E8EE;
  --os-card-hover-border: #031B39;
  --os-card-radius: 12px;
  --os-card-gap: 12px;
  --os-cols: 2;

  --os-icon-bg: #ffffff;
  --os-icon-border: #E4E8EE;
  --os-icon-color: #031B39;
  --os-icon-hover-bg: #031B39;
  --os-icon-hover-border: #031B39;
  --os-icon-hover-color: #ffffff;

  --os-arrow-color: #031B39;

  font-family:'Roboto', sans-serif;
}

.bo-os-wrap .os-section{
  padding: var(--os-v-padding) 0;
  background: var(--os-section-bg);
}

.bo-os-wrap .os-inner{
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.bo-os-wrap .os-header{
  margin-bottom: 40px;
}
.bo-os-wrap .os-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--os-eyebrow-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bo-os-wrap .os-eyebrow::before{
  content: '';
  width: 18px; height: 1px;
  background: var(--os-eyebrow-color);
  display: inline-block;
}
.bo-os-wrap .os-heading{
  font-family:'Roboto Slab', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--os-heading-color);
  font-size: 30px;
  margin: 0;
}

/* ---------- Grid ---------- */
.bo-os-wrap .os-grid{
  display: grid;
  grid-template-columns: repeat(var(--os-cols), 1fr);
  gap: var(--os-card-gap);
}

/* ---------- Card ---------- */
.bo-os-wrap .os-card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--os-card-border);
  border-radius: var(--os-card-radius);
  background: var(--os-card-bg);
  transition: all .3s var(--os-ease);
  text-decoration: none;
}
.bo-os-wrap .os-card:hover{
  border-color: var(--os-card-hover-border);
  background: var(--os-card-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(3,27,57,.2);
}

.bo-os-wrap .os-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--os-icon-bg);
  border: 1px solid var(--os-icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s var(--os-ease-spring);
}
.bo-os-wrap .os-card:hover .os-icon{
  background: var(--os-icon-hover-bg);
  border-color: var(--os-icon-hover-border);
}
.bo-os-wrap .os-icon svg{
  width: 17px;
  height: 17px;
  stroke: var(--os-icon-color);
  transition: stroke .3s var(--os-ease);
}
.bo-os-wrap .os-card:hover .os-icon svg{
  stroke: var(--os-icon-hover-color);
}

.bo-os-wrap .os-card-text{ min-width: 0; }
.bo-os-wrap .os-card h4, .bo-os-wrap .os-card [data-bo-html-heading="h4"]{
  font-size: 14px;
  font-weight: 600;
  font-family:'Roboto', sans-serif;
  letter-spacing: 0;
  margin: 0 0 3px;
  color: var(--os-navy);
}
.bo-os-wrap .os-card p, .bo-os-wrap .os-card [data-bo-html-text="p"]{
  font-size: 12px;
  color: var(--os-slate-light);
  margin: 0;
  line-height: 1.4;
}

.bo-os-wrap .os-arrow{
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: .35;
  stroke: var(--os-arrow-color);
  transition: opacity .3s var(--os-ease), transform .3s var(--os-ease);
}
.bo-os-wrap .os-card:hover .os-arrow{
  opacity: 1;
  transform: translateX(3px);
}

/* ---------- Reveal / stagger (self-contained) ---------- */
.bo-os-wrap .os-reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--os-ease), transform .8s var(--os-ease);
}
.bo-os-wrap .os-reveal.os-in{ opacity: 1; transform: translateY(0); }

.bo-os-wrap .os-stagger .os-card{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--os-ease), transform .55s var(--os-ease);
}
.bo-os-wrap .os-stagger.os-in .os-card{ opacity: 1; transform: translateY(0); }
.bo-os-wrap .os-stagger.os-in .os-card:nth-child(1){ transition-delay: .05s; }
.bo-os-wrap .os-stagger.os-in .os-card:nth-child(2){ transition-delay: .10s; }
.bo-os-wrap .os-stagger.os-in .os-card:nth-child(3){ transition-delay: .15s; }
.bo-os-wrap .os-stagger.os-in .os-card:nth-child(n+4){ transition-delay: .20s; }

@media (prefers-reduced-motion: reduce){
  .bo-os-wrap .os-reveal,
  .bo-os-wrap .os-stagger .os-card{ opacity: 1; transform: none; transition: none; }
}

/* ---------- Editor-active safety net ----------
   Elementor adds this class to the preview iframe <body> so plugins can
   force-show scroll-reveal content while editing, independent of any
   IntersectionObserver timing. Belt-and-suspenders alongside the JS check. */
body.elementor-editor-active .bo-os-wrap .os-reveal,
body.elementor-editor-active .bo-os-wrap .os-stagger .os-card{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px){
  .bo-os-wrap{ --os-v-padding: 56px; }
  .bo-os-wrap .os-inner{ padding: 0 28px; }
  .bo-os-wrap .os-heading{ font-size: 26px; }
}

/* Mobile — ultra-compact */
@media (max-width: 767px){
  .bo-os-wrap{ --os-v-padding: 40px; }
  .bo-os-wrap .os-inner{ padding: 0 18px; }
  .bo-os-wrap .os-header{ margin-bottom: 26px; }
  .bo-os-wrap .os-eyebrow{ font-size: 10px; margin-bottom: 8px; }
  .bo-os-wrap .os-heading{ font-size: 21px; }
  .bo-os-wrap .os-grid{ grid-template-columns: 1fr !important; }
  .bo-os-wrap .os-card{ padding: 14px 14px; gap: 12px; }
  .bo-os-wrap .os-icon{ width: 34px; height: 34px; border-radius: 8px; }
  .bo-os-wrap .os-icon svg{ width: 15px; height: 15px; }
  .bo-os-wrap .os-card h4, .bo-os-wrap .os-card [data-bo-html-heading="h4"]{ font-size: 13px; }
  .bo-os-wrap .os-card p, .bo-os-wrap .os-card [data-bo-html-text="p"]{ font-size: 11px; }
  .bo-os-wrap .os-arrow{ width: 12px; height: 12px; }
}

/* Small mobile */
@media (max-width: 420px){
  .bo-os-wrap .os-heading{ font-size: 19px; }
  .bo-os-wrap .os-card{ padding: 12px; }
}