/* ===================================================================
   UNIFIED DESIGN — applied to every static page.
   Same visual system as the new home page and the SOC 2 service page.
   =================================================================== */

:root{
  --s2-primary:#006ac7;
  --s2-primary-dark:#00529b;
  --s2-secondary:#34AD54;
  --s2-light:#EEF9FF;
  --s2-btn:#7912A8;
  --s2-btn-dark:#5e0e83;
  --s2-body:#6B6A75;
  --s2-line:#dfe8f2;
  --s2-head:'Trebuchet MS', sans-serif;
  --s2-ui:'Nunito', sans-serif;
}

/* ---------- Base typography / scroll performance ---------- */
html{ scroll-behavior:auto; }
body.legacy-page{
  font-family:'Rubik', sans-serif;
  color:var(--s2-body);
  background:#fff;
  text-align:left;
}
body.legacy-page p{ font-size:18px; line-height:1.65; text-align:left; }
body.legacy-page li{ font-size:1rem; line-height:1.6; text-align:left; }
body.legacy-page h1, body.legacy-page h2, body.legacy-page h3,
body.legacy-page h4, body.legacy-page h5{
  font-family:var(--s2-head);
  color:var(--s2-primary);
  scroll-margin-top:100px;
}
body.legacy-page a{ color:var(--s2-primary); }
body.legacy-page section{ scroll-margin-top:100px; }

/* Disable heavy entrance/scroll animations — removes scroll lag */
body.legacy-page .wow,
body.legacy-page .animated,
body.legacy-page .fadeInUp,
body.legacy-page .zoomIn,
body.legacy-page .slideInUp{
  animation:none !important;
  visibility:visible !important;
  opacity:1 !important;
  transform:none !important;
}
body.legacy-page *{ transition-duration:.15s !important; }
body.legacy-page #spinner{ display:none !important; }

/* ---------- Navbar (same on every page) ---------- */
body.legacy-page .navbar,
body.legacy-page .sticky-top.navbar-dark{
  background:#fff !important;
  box-shadow:0 2px 18px rgba(0,106,199,.09);
  border-bottom:1px solid var(--s2-line);
}
body.legacy-page .navbar-brand img.logo{ max-width:255px; height:auto; }
body.legacy-page .navbar-dark .navbar-nav .nav-link,
body.legacy-page .sticky-top.navbar-dark .navbar-nav .nav-link{
  font-family:var(--s2-ui);
  font-weight:700;
  font-size:1rem;
  color:#20242b;
  padding:12px 0;
  margin-left:24px;
  position:relative;
}
body.legacy-page .navbar-nav .nav-link:hover,
body.legacy-page .navbar-nav .nav-link.active{ color:var(--s2-primary); }
body.legacy-page .navbar-dark .navbar-nav .nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:4px;
  height:3px; background:var(--s2-secondary);
  transform:scaleX(0); transform-origin:left; transition:transform .18s ease;
}
body.legacy-page .navbar-dark .navbar-nav .nav-link:hover::after,
body.legacy-page .navbar-dark .navbar-nav .nav-link.active::after{ transform:scaleX(1); }
body.legacy-page .dropdown-menu{
  border:1px solid var(--s2-line);
  border-top:3px solid var(--s2-secondary);
  border-radius:4px;
  box-shadow:0 14px 34px rgba(0,106,199,.12);
  padding:.5rem 0;
  min-width:290px;
}
body.legacy-page .dropdown-item{
  font-family:var(--s2-ui); font-weight:600; font-size:.94rem;
  color:var(--s2-body); padding:.55rem 1.1rem;
}
body.legacy-page .dropdown-item:hover,
body.legacy-page .dropdown-item.active{ background:var(--s2-light); color:var(--s2-primary); }
body.legacy-page .navbar-toggler{ color:var(--s2-primary) !important; border-color:var(--s2-primary) !important; }
@media (max-width:991.98px){
  body.legacy-page .navbar, body.legacy-page .sticky-top.navbar-dark{ position:relative; }
  body.legacy-page .navbar-dark .navbar-nav .nav-link,
  body.legacy-page .sticky-top.navbar-dark .navbar-nav .nav-link{ margin-left:0; padding:10px 0; }
}

/* ---------- Page hero (same as home / SOC 2) ---------- */
body.legacy-page .bg-header,
body.legacy-page .container-fluid.bg-primary.py-5{
  background:linear-gradient(rgba(9,30,62,.86), rgba(9,30,62,.86)),
             url('/assets/site/themes/theme_entperma/img/carousel-1.jpg') center center/cover no-repeat !important;
  margin-bottom:0 !important;
  padding:4.5rem 0;
}
body.legacy-page .bg-header h1,
body.legacy-page .bg-header .display-4{
  color:#fff !important;
  font-family:var(--s2-head);
  font-weight:800;
  font-size:clamp(1.9rem,4.2vw,3.3rem);
  line-height:1.18;
  margin:0;
}
body.legacy-page .bg-header p,
body.legacy-page .bg-header .lead{ color:rgba(255,255,255,.9); }

/* ---------- Section headings ---------- */
body.legacy-page .section-title h1,
body.legacy-page .section-title h2{
  font-family:var(--s2-head); font-weight:800;
  font-size:clamp(1.45rem,2.8vw,2.15rem);
  line-height:1.25;
  position:relative; padding-bottom:.8rem; margin-bottom:1.3rem;
}
body.legacy-page .section-title::before,
body.legacy-page .section-title::after{ display:none !important; }
body.legacy-page .section-title h1::after,
body.legacy-page .section-title h2::after{
  content:''; position:absolute; left:0; bottom:0;
  width:60px; height:3px; background:var(--s2-secondary);
}
body.legacy-page .section-title h5,
body.legacy-page h5.fw-bold.text-primary.text-uppercase{
  font-family:var(--s2-ui); font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; font-size:.82rem; color:var(--s2-secondary) !important;
  display:block; margin-bottom:.5rem;
}
body.legacy-page .text-primary{ color:var(--s2-primary) !important; }

/* ---------- Content surfaces / light sections ---------- */
body.legacy-page .bg-light{ background:var(--s2-light) !important; }
body.legacy-page .team-info,
body.legacy-page .testimonial-item,
body.legacy-page .card,
body.legacy-page .bs-img{
  background:#fff;
  border:1px solid var(--s2-line);
  border-radius:6px;
  transition:box-shadow .18s ease, transform .18s ease;
}
body.legacy-page .team-info:hover,
body.legacy-page .testimonial-item:hover,
body.legacy-page .card:hover{ box-shadow:0 8px 24px rgba(0,106,199,.10); transform:translateY(-2px); }
body.legacy-page .team-info h1,
body.legacy-page .team-info h4{
  font-size:1.1rem; margin-bottom:.25rem;
}
body.legacy-page .team-info p{ font-size:.94rem; margin-bottom:.4rem; }
body.legacy-page .green-ticks ul{ list-style:none; padding-left:0; }
body.legacy-page .green-ticks li{ position:relative; padding-left:1.7rem; margin-bottom:.7rem; }
body.legacy-page .green-ticks li::before{
  content:'\f00c'; font-family:'Font Awesome 5 Free'; font-weight:900;
  position:absolute; left:0; top:.15rem; color:var(--s2-secondary);
}

/* ---------- Buttons ---------- */
body.legacy-page .btn,
body.legacy-page .btn-primary,
body.legacy-page a.btn.bg-primary{
  font-family:var(--s2-ui); font-weight:700; font-size:1rem;
  background:var(--s2-btn) !important;
  color:#fff !important;
  border:0 !important; border-radius:4px !important;
  padding:.7rem 1.6rem;
  text-decoration:none;
  display:inline-block;
}
body.legacy-page .btn:hover,
body.legacy-page .btn-primary:hover,
body.legacy-page a.btn.bg-primary:hover{ background:var(--s2-btn-dark) !important; color:#fff !important; }
body.legacy-page .btn-lg-square{ width:44px; height:44px; padding:0; }

/* ---------- Footer ---------- */
body.legacy-page .footer-about{ background:var(--s2-primary) !important; }
body.legacy-page .link-animated a{ transition:color .18s ease; }

/* ---------- Shared CTA band ---------- */
body.legacy-page .soc2-cta{
  background:linear-gradient(135deg, var(--s2-primary) 0%, var(--s2-primary-dark) 100%);
  color:#fff; padding:3rem 0;
}
body.legacy-page .soc2-cta h2{
  font-family:var(--s2-head); font-weight:800; color:#fff;
  font-size:clamp(1.4rem,2.6vw,2.05rem); margin-bottom:1rem;
}
body.legacy-page .soc2-cta p{ color:rgba(255,255,255,.92); font-size:1.08rem; }

@media (max-width:767.98px){
  body.legacy-page p{ font-size:16.5px; }
  body.legacy-page .bg-header,
  body.legacy-page .container-fluid.bg-primary.py-5{ padding:3rem 0; }
  body.legacy-page .navbar-brand img.logo{ max-width:200px; }
}
