/* Haclab Corporate Red Brand Layer — skins Iteck style-7 / style-5 / style-6 without mutating style.css */

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/josefin-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/josefin-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/josefin-sans-700.woff2') format('woff2');
}

:root {
  --haclab-red: #FF0000;
  --haclab-red-dark: #D60000;
  --haclab-red-deep: #990000;
  --haclab-red-soft: #FFF2F2;
  --haclab-red-tint: #FFE5E5;
  --haclab-ink: #0D1117;

  /* Active product accent defaults to corporate Haclab red */
  --product-accent: var(--haclab-red);
  --product-accent-dark: var(--haclab-red-dark);
  --product-dark: var(--haclab-ink);
  --product-soft: var(--haclab-red-soft);

  /* Override Iteck CSS variables */
  --color-main: #D60000;
  --color-primary: #D60000;
  --color-secondary: #FF0000;
  --color-blue2: #990000;
  --color-blue4: #D60000;
  --color-blue5: #D60000;
  --color-blue6: #D60000;
  --color-blue7: #D60000;
  --color-blue8: #0D1117;
  --color-darkBlue: #0D1117;
  --color-darkBlue2: #161B22;
  --color-gray: #F7F5F6;
  --color-gray2: #F3EFF0;
  --color-main-grad: linear-gradient(to right, #990000 0%, #D60000 50%, #FF0000 100%);
}

[data-product="abacus"] {
  --product-accent: #10B981;
  --product-accent-dark: #047857;
  --product-dark: #0A1628;
  --product-soft: #ECFDF5;
  --color-main: #047857;
  --color-blue5: #047857;
  --color-blue7: #047857;
}

[data-product="lenkit"] {
  --product-accent: #F59E0B;
  --product-accent-dark: #B45309;
  --product-dark: #0F1E2E;
  --product-soft: #FFFBEB;
  --color-main: #B45309;
  --color-blue5: #B45309;
  --color-blue7: #B45309;
}

[data-product="prosy"] {
  --product-accent: #0EA5E9;
  --product-accent-dark: #0369A1;
  --product-dark: #0F172A;
  --product-soft: #F0F9FF;
  --color-main: #0369A1;
  --color-blue5: #0369A1;
  --color-blue7: #0369A1;
}

[id] {
  scroll-margin-top: 5.5rem;
}

/* Josefin Sans Brand Wordmark (matching Mission Control) */
.haclab-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1;
  color: #0D1117;
}

.haclab-wordmark--light {
  color: #FFFFFF !important;
}

.haclab-wordmark__img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.haclab-wordmark__dot {
  color: #FF0000;
}

/* Override hardcoded purple & blue rules across Iteck style-7 / style-5 / style-6 / style-4 */
.color-blue7,
.color-blue5,
.color-blue4,
.color-blue6,
.color-main {
  color: var(--product-accent-dark) !important;
}

.bg-blue7,
.bg-blue5,
.bg-blue4,
.bg-blue6 {
  background-color: var(--product-accent-dark) !important;
}

.hover-blue7:hover,
.hover-blue2:hover {
  background-color: var(--haclab-red-deep) !important;
  border-color: var(--haclab-red-deep) !important;
  color: #FFFFFF !important;
}

.section-head.style-4 h5,
.project-card.style-7 .info h6,
.testimonials.style-7 .testi-card .author .inf p {
  color: #D60000 !important;
}

.section-head.style-4 h2 span,
header.style-7 .info h1 .text-grad {
  background-image: linear-gradient(to right, #990000 0%, #D60000 50%, #FF0000 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head.style-5 h2 span {
  color: var(--product-accent-dark) !important;
}

[data-product] .section-head.style-4 h5 {
  color: var(--product-accent-dark) !important;
}

header.style-7 .info h1 .num {
  color: #0D1117;
}

header.style-7 .info .btn-icon-circle,
.features.style-7 .btn-icon-circle.bg-blue7,
.testimonials.style-7 .get-qoute-banner .btn-icon-circle.bg-blue7 {
  background-color: #D60000 !important;
  color: #FFFFFF !important;
}

header.style-7 .info .btn-icon-circle:hover,
.features.style-7 .btn-icon-circle.bg-blue7:hover,
.testimonials.style-7 .get-qoute-banner .btn-icon-circle.bg-blue7:hover {
  background-color: #990000 !important;
}

/* style-7 banner & dark choose-us */
.chat-banner.style-7 {
  background: linear-gradient(135deg, #D60000 0%, #8A0000 100%) !important;
}

.side_menu.style-7 .pages_links::-webkit-scrollbar,
.side_menu.style-7 .pages_links::-webkit-scrollbar-corner {
  background: #D60000 !important;
}

.side_menu.style-7 .pages_links ul li a:hover,
.side_menu.style-7 .pages_links ul li a.active {
  color: #FF0000 !important;
}

.navbar.style-7 .navbar-nav .nav-item .nav-link.active,
.navbar.style-7 .navbar-nav .nav-item .nav-link:hover,
.navbar.style-5 .navbar-nav .nav-item .nav-link.active,
.navbar.style-5 .navbar-nav .nav-item .nav-link:hover {
  color: #D60000 !important;
}

.navbar.style-7 .dropdown-menu,
.navbar.style-5 .dropdown-menu {
  border-radius: 14px;
  border: 1px solid #EAE6E8;
  box-shadow: 0 18px 40px rgba(13, 17, 23, 0.12);
  padding: 0.5rem;
  min-width: 270px;
}

.navbar.style-7 .dropdown-menu .dropdown-item,
.navbar.style-5 .dropdown-menu .dropdown-item {
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.navbar.style-7 .dropdown-menu .dropdown-item:hover {
  background-color: var(--haclab-red-soft);
  color: #0D1117 !important;
}

/* Pure CSS dropdown caret so FontAwesome Pro isn't required for dropdown toggles */
.navbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: 0.18em;
  content: "";
  border-top: 0.32em solid;
  border-right: 0.32em solid transparent;
  border-bottom: 0;
  border-left: 0.32em solid transparent;
  font-family: inherit !important;
}

/* style-5 hero, buttons, pricing & portfolio surfaces */
header.style-5 {
  background-image: linear-gradient(to top, #ffffff 0%, #fff4f4 74%, #ffe8e8 100%) !important;
}

[data-product="abacus"] header.style-5 {
  background-image: linear-gradient(to top, #ffffff 0%, #ecfdf5 74%, #d1fae5 100%) !important;
}

[data-product="lenkit"] header.style-5 {
  background-image: linear-gradient(to top, #ffffff 0%, #fffbeb 74%, #fef3c7 100%) !important;
}

[data-product="prosy"] header.style-5 {
  background-image: linear-gradient(to top, #ffffff 0%, #f0f9ff 74%, #e0f2fe 100%) !important;
}

.butn.blue5-3Dbutn,
.btn.blue5-3Dbutn {
  background-color: var(--product-accent-dark) !important;
  color: #FFFFFF !important;
  border-color: var(--product-accent-dark) !important;
  box-shadow: 0 10px 25px rgba(13, 17, 23, 0.18) !important;
}

.butn.blue5-3Dbutn:hover,
.btn.blue5-3Dbutn:hover {
  filter: brightness(0.9);
  color: #FFFFFF !important;
}

.butn.butn-gard::before,
.btn.butn-gard::before {
  background-image: linear-gradient(to right, #990000 10%, #FF0000 45%, #FF0000, #990000) !important;
}

.community.style-5 .content .commun-card .icon img,
.features-card.style-5 .icon img {
  filter: drop-shadow(0 15px 15px rgba(13, 17, 23, 0.12)) !important;
}

.services-slider.style-6 .swiper-slide.swiper-slide-active .service-card.style-6 {
  box-shadow: 0 18px 40px rgba(214, 0, 0, 0.12) !important;
}

.service-card.style-6 .icon {
  filter: drop-shadow(0 10px 18px rgba(214, 0, 0, 0.18)) !important;
}

.pricing.style-5 .bg-gray5,
.services-page.style-5 .features.style-5,
.bg-gray5 {
  background-color: #F8FAFC !important;
}

.pricing.style-5 .price-head .price-headItem .label {
  background-color: var(--product-accent-dark) !important;
  color: #FFFFFF !important;
}

.portfolio-page,
.portfolio-page .portfolio-projects {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%) !important;
}

.portfolio-page .controls .control.active,
.portfolio-page .controls .mixitup-control-active {
  background-color: #D60000 !important;
  color: #FFFFFF !important;
  border-color: #D60000 !important;
}

/* Re-tint subtle background glow shapes toward Haclab red */
.head7_bg {
  filter: hue-rotate(115deg) saturate(1.45);
}

.blog.style-7 {
  background-color: #F8FAFC !important;
}

.blog.style-7 .shap_color {
  display: none !important;
}

/* Pure-CSS brand underline replacing head5_line.png & head5_pen.png */
.haclab-underline {
  position: relative;
  display: inline-block;
  color: var(--product-accent-dark);
}

.haclab-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 4px;
  border-radius: 999px;
  background-color: var(--product-accent-dark);
}

/* Clean pill tabs for Pricing Hub (rounded box on mobile stack) */
.haclab-pill-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  background: #F1F5F9;
  padding: 0.35rem;
  border-radius: 18px;
}

.haclab-pill-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.haclab-pill-tab.active {
  background: #0D1117;
  color: #FFFFFF;
}

/* Pricing & Download cards inside Iteck style-5 sections */
.haclab-plan-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.haclab-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 17, 23, 0.08);
}

.haclab-plan-card--featured {
  border-color: var(--product-accent-dark);
  box-shadow: 0 20px 45px rgba(13, 17, 23, 0.1);
}

/* Restore proper typography & bullets ONLY inside Markdown prose containers */
.haclab-prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #1E293B;
}

.haclab-prose ul {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.haclab-prose ol {
  list-style-type: decimal !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.haclab-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.haclab-prose a {
  color: #D60000 !important;
  text-decoration: underline !important;
  font-weight: 600;
}

/* Fix contact card small stacking without breaking Iteck's button <small> */
p.small,
div.small {
  display: block;
}

/* Sponsor strip product cards in header.style-7 */
html,
body {
  overflow-x: hidden;
}

.navbar .nav-side .btn {
  white-space: nowrap;
}

header.style-7 .sponsers .sponsers-content a.haclab-sponsor-pill {
  opacity: 1 !important;
  margin-inline-end: 14px !important;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 20px rgba(13, 17, 23, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

header.style-7 .sponsers .sponsers-content a.haclab-sponsor-pill:hover {
  transform: translateY(-2px);
  border-color: #D60000;
}

header.style-5 .main-img .page-img {
  width: 100%;
  height: auto !important;
}

.project-card.style-7 .img img {
  object-fit: cover;
  object-position: top left;
}

.contact.style-6 .content {
  border-top-color: #D60000 !important;
  overflow: hidden;
}

.contact.style-6 .content::before {
  background: linear-gradient(45deg, transparent, #FFF1F1, transparent, #F8FAFC, transparent) !important;
}

/* Override Bootstrap default blue accordion styling & Swiper blue navigation controls */
.accordion-button:not(.collapsed) {
  background-color: var(--product-soft) !important;
  color: var(--product-accent-dark) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  border-color: var(--product-accent-dark) !important;
  box-shadow: 0 0 0 0.2rem rgba(214, 0, 0, 0.12) !important;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%);
}

.blog-details-slider .swiper-button-next,
.blog-details-slider .swiper-button-prev {
  color: #0D1117 !important;
  background-color: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

.blog-details-slider .swiper-button-next:hover,
.blog-details-slider .swiper-button-prev:hover {
  background-color: #D60000 !important;
  color: #FFFFFF !important;
  border-color: #D60000 !important;
}

/* Editorial UI comparison & live ledger showcase frames */
.haclab-ui-frame {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(13, 17, 23, 0.08);
}

.haclab-ui-frame--dark {
  background: linear-gradient(145deg, #0D1117 0%, #161B22 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px rgba(13, 17, 23, 0.2);
}

.haclab-ui-frame__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.haclab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  display: inline-block;
}

.haclab-dot--red {
  background: #FF0000;
}

.haclab-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 575.98px) {
  .haclab-compare-row {
    grid-template-columns: 1fr;
  }
}

.haclab-compare-cell {
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.haclab-compare-cell--before {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
}

.haclab-compare-cell--after {
  background: var(--product-soft);
  border: 1px solid rgba(13, 17, 23, 0.08);
}

.haclab-compare-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.haclab-ledger-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.haclab-dark-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.haclab-sync-node-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

/* About page capability diagram card & crisp 404 + contact typography */
.about-page .choose-us.style-6 .img {
  margin: 0 !important;
  width: 100% !important;
  max-width: 520px;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1px solid #EAE6E8;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(13, 17, 23, 0.06);
}

.about-page .choose-us.style-6 .img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.haclab-404-code {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: #D60000;
  letter-spacing: 0.06em;
}

.haclab-contact-phone {
  letter-spacing: 0.04em;
  font-weight: 800;
}

/* Proportions & crisp styling for Haclab visuals, icons, services & CTAs */
header.style-7 .img .rock7 {
  max-width: 145px;
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(13, 17, 23, 0.22));
}

.chat-banner.style-7 {
  padding: 0 !important;
  overflow: hidden;
}

.chat-banner.style-7 .info {
  padding: 4.25rem 0 !important;
}

.chat-banner.style-7 .img-character {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 1.5rem;
}

.chat-banner.style-7 .img-character img {
  max-height: 390px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.chat-banner.style-7 .img-terminal img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

header.style-5 {
  position: relative;
  overflow: hidden;
  padding-bottom: 4.5rem;
}

header.style-5 .main-img {
  margin-top: 2.75rem !important;
}

.haclab-hero-window {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 28px 70px -18px rgba(15, 23, 42, 0.22), 0 8px 20px -8px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.haclab-hero-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.haclab-hero-window .page-img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

header.style-5 .handl-img {
  max-width: 185px;
  width: auto;
  height: auto;
  left: 2.5%;
  bottom: 2.5rem;
  opacity: 1;
  z-index: 15;
  filter: drop-shadow(0 20px 30px rgba(13, 17, 23, 0.2));
}

header.style-5 .handr-img {
  max-width: 265px;
  width: auto;
  height: auto;
  right: 2%;
  bottom: 0;
  opacity: 1;
  z-index: 15;
  animation: none !important;
  filter: drop-shadow(0 20px 32px rgba(13, 17, 23, 0.22));
}

.services.style-7 .service-item-style7 .img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #FFF2F2;
  border: 1px solid #FADBD8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.services.style-7 .service-item-style7 .img > img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.services.style-7 .service-item-style7 .img .icon.haclab-svc-num {
  width: 30px;
  height: 30px;
  line-height: 26px;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  background: #0D1117;
  border: 2px solid #FFFFFF;
  bottom: -8px;
  right: -8px;
}

.features-card.style-5 .icon img,
.features-card.style-7 .icon img,
.community.style-5 .content .commun-card .icon img,
.choose-us.style-7 .info li .icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.testimonials.style-7 .get-qoute-banner .img img {
  max-height: 180px;
  width: auto;
}

.choose-us.style-7 .choose-circle {
  opacity: 0.72;
}

/* Scroll-to-top positioned cleanly above WhatsApp floating CTA with zero overlap */
.to_top {
  bottom: 5.25rem !important;
  right: -60px;
  width: 42px;
  height: 42px;
  background: #0D1117 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(13, 17, 23, 0.22);
}

.to_top.show {
  right: 1.65rem !important;
}

.to_top i {
  color: #FFFFFF !important;
}

.haclab-wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1040;
  background: #16A34A;
  color: #FFFFFF !important;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.haclab-wa-float:hover {
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .haclab-wa-float {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    bottom: 1rem;
    right: 1rem;
  }

  .to_top {
    bottom: 4.5rem !important;
  }

  .to_top.show {
    right: 1.15rem !important;
  }
}
