/* ============= HORIZON SEGMENT ======================  */
:root {
  /* Colors */
  --color-brand-primary: #22338b;
  --color-background-primary: #ffffff;
  --color-text-body: #212529;
  --color-background-ui: #f4f6f8;
  --color-accent-primary: #f12f20;
  --color-accent-secondary: #f24537;

  /* Fonts */
  --font-primary: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "Source Sans 3", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --type-0: 0.75rem;
  /* 12px */
  --type-1: 0.875rem;
  /* 14px */
  --type-base: 1rem;
  /* 16px */
  --type-2: 1.125rem;
  /* 18px */
  --type-3: 1.5rem;
  /* 24px */
  --type-4: 2rem;
  /* 32px */
  --type-5: 2.5rem;
  /* 40px */

  /* Spacing scale (modular) */
  --space-0: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 48px;
  --space-6: 64px;

  /* Layout */
  --page-gutter: 24px;
  --container-max: 100%;
  --radius-default: 8px;

  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 1024px;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--type-base);
  color: var(--color-text-body);
  background: var(--color-background-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Page container & sections — guarantees equal spacing from edges and consistent vertical rhythm */
.main {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

section {
  padding-block-start: var(--space-1);
  padding-block-end: var(--space-1);
}

/* Section modifiers */
.section--compact {
  padding-block: var(--space-3);
}

.section--dense {
  padding-block: var(--space-2);
}

/* Headings — derive from tokens; use font-primary for headings */
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2) 0;
  font-family: var(--font-primary);
  line-height: 1.2;
  color: var(--color-brand-primary);
}

h1 {
  font-size: var(--type-5);
  font-weight: 700;
}

h2 {
  font-size: var(--type-4);
  font-weight: 700;
}

h3 {
  font-size: var(--type-3);
  font-weight: 600;
  color: var(--color-text-body);
}

h4 {
  font-size: var(--type-2);
  font-weight: 600;
  color: var(--color-text-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.header-second-lvl {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 1.5rem;
}

/* Paragraphs and text utilities */
p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--type-base);
  font-family: var(--font-secondary);
  font-weight: 400;
}

.paragraph-heading {
  font-size: var(--type-2);
  max-width: 90%;
}
.red {
  color: var(--color-accent-primary);
}

/* Links */
a {
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s ease;
}

a:hover,
a:focus {
  color: var(--color-accent-secondary);
  text-decoration: underline;
  outline: none;
}

/* Accessible focus */
:focus {
  outline: 3px solid
    color-mix(in srgb, var(--color-accent-primary) 20%, transparent);
  outline-offset: 2px;
}

/* Buttons */

#mainNavbar .btn-cta {
  background-color: #f12f20;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
#case-study .btn-cta {
  background-color: #f12f20;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

/* CTA (keeps your naming but uses tokens) */
.btn-cta {
  background-color: var(--color-accent-primary);
  color: var(--color-background-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.18s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--color-accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.section-spacing {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-5);
  overflow-x: hidden;
}

.third-lvl-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .section-spacing {
    padding-inline: var(--space-2);
  }
}

@media (max-width: 485px) {
  .section-spacing {
    padding-inline: var(--space-1);
  }
}

/* Cards & grid helpers */
.grid {
  display: grid;
  gap: var(--space-3);
}

.grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-background-primary);
  border-radius: var(--radius-default);
  padding: var(--space-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Utilities (small, safe set) */
.u-hidden {
  display: none !important;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-text-center {
  text-align: center;
}

/* Avoid negative-margin hacks: provide overlap pattern */
.overlap {
  position: relative;
}

.overlap--pull-up {
  transform: translateY(-var(--space-2));
}

/* use only named modifiers */

/* Form elements */
input,
textarea,
select,
button {
  font-family: var(--font-secondary);
  font-size: var(--type-base);
  color: var(--color-text-body);
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(34, 51, 139, 0.06);
  border-color: var(--color-brand-primary);
}

/* Responsive adjustments */
@media (max-width: calc(var(--bp-md) - 1px)) {
  .grid--cols-2,
  .grid--cols-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: var(--space-2);
  }

  h1 {
    font-size: calc(var(--type-5) * 0.9);
  }

  h2 {
    font-size: calc(var(--type-4) * 0.95);
  }
}




/* NAVIGATION BAR */

.toggler-icon {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-brand-primary);
  border-radius: 2px;
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.25s ease,
    background-color 0.25s ease;
}

/* Advanced professional toggler styling */
.advanced-toggler {
  --toggler-size: 48px;
  --toggler-bg: transparent;
  --toggler-radius: 10px;
  --bar-width: 22px;
  --bar-height: 2.6px;
  --bar-gap: 6px;
  --bar-color: #22338b;
  --focus-ring: 0 0 0 4px rgba(34, 51, 139, 0.08);

  display: inline-grid;
  place-items: center;
  width: var(--toggler-size);
  height: var(--toggler-size);
  padding: 8px;
  margin: 0;
  border-radius: var(--toggler-radius);
  background: var(--toggler-bg);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

/* subtle backdrop on large screens */
@media (min-width: 992px) {
  .advanced-toggler {
    background: rgba(255, 255, 255, 0);
  }
}

/* hit area and hover */

.advanced-toggler:active {
  transform: translateY(1px);
}

/* visually-hidden helper for accessible text */
.a11y-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* bars (three lines) */
.advanced-toggler .bar {
  display: block;
  width: var(--bar-width);
  height: var(--bar-height);
  background: var(--bar-color);
  border-radius: 2px;
  transition: transform 0.36s cubic-bezier(0.22, 0.9, 0.35, 1),
    opacity 0.2s ease, width 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  outline: none;
}

.advanced-toggler.collapsed .bar-1 {
  transform: translateY(0) rotate(0);
}

.advanced-toggler.collapsed .bar-2 {
  opacity: 1;
  transform: scaleX(1);
}

.advanced-toggler.collapsed .bar-3 {
  width: 16px;
  transform: translateY(0) rotate(0);
}

.advanced-toggler.open .bar-1 {
  transform: translateY(calc(var(--bar-gap) + 2px)) rotate(45deg) scaleX(1.05);
}

.advanced-toggler.open .bar-2 {
  opacity: 0;
  transform: scaleX(1);
}

.advanced-toggler.open .bar-3 {
  transform: translateY(calc(-1 * (var(--bar-gap) + 2px))) rotate(-45deg)
    scaleX(1.05);
}

.advanced-toggler.open .bar {
  background: var(--bar-color);
}

header nav {
  color: var(--color-brand-primary);
}

header .navbar {
  padding: 0;
}

/* adapt to dark navbar if needed — example modifier */
.navbar-dark .advanced-toggler .bar {
  background: #fff;
}

/* ====== Toggler variables ====== */
.advanced-toggler {
  --bar-width: 28px;
  --bar-thickness: 3px;
  --bar-gap: 6px;
  --shorter-scale: 0.62; /* shorter bar length ratio */
  --bar-color: #111;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bar-gap);
  width: 48px;
  height: 44px;
  padding: 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* basic bar styling */
.advanced-toggler .bar {
  display: block;
  width: var(--bar-width);
  height: var(--bar-thickness);
  background: var(--bar-color);
  border-radius: 3px;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease,
    width 0.18s ease;
  transform-origin: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.advanced-toggler .bar-3.shorter {
  width: calc(var(--bar-width) * var(--shorter-scale));
  align-self: flex-end;
  transform-origin: right center;
}

.advanced-toggler.collapsed .bar-1 {
  transform: translateY(0) rotate(0);
}
.advanced-toggler.collapsed .bar-2 {
  opacity: 1;
  transform: scaleX(1);
}
.advanced-toggler.collapsed .bar-3.shorter {
  transform: translateY(0) rotate(0);
}

/* ====== OPEN / ROTATE EFFECT ====== */
.advanced-toggler.open {
  transform: rotate(180deg);
  transition: transform 0.5s ease;
}

.advanced-toggler.open .bar-1,
.advanced-toggler.open .bar-3.shorter {
  opacity: 0;
  pointer-events: none;
}

/* keep the center bar visible as the single line */
.advanced-toggler.open .bar-2 {
  opacity: 1;
  box-shadow: #22338b;
}

/* focus styles (optional) */
.advanced-toggler:focus-visible {
  box-shadow: 0 0 0 4px rgba(34, 84, 160, 0.12) !important;
  border-radius: 6px;
}

/* responsive tweak */
@media (max-width: 420px) {
  .advanced-toggler {
    width: 42px;
    height: 40px;
    --bar-width: 22px;
    --bar-gap: 5px;
  }
  .advanced-toggler .bar-3.shorter {
    width: calc(var(--bar-width) * var(--shorter-scale));
  }
}


.dropdown-menu.clean-dropdown {
  border: none !important;
  background-color: transparent !important;
  /* transparent so it doesn't appear as a box */
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
  min-width: 220px;
}

.dropdown-menu.clean-dropdown .dropdown-item {
  background: #ffffff;
}

.dropdown-menu .dropdown-item:active {
  background: var(--color-brand-primary);

  /* item background */
}

.navbar .nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  color: var(--primary-blue) !important;
  padding: 0.5rem 0.75rem;
  border: none;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #e2001a !important;
  text-decoration: none !important;
  border: none;
}

.nav-item .dropdown-toggle::after {
  margin-left: 0.35rem;
}


.hero-media,
.hero-media .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* slightly darker overlay for legibility on mobile */
.hero > .position-absolute.w-100.h-100.bg-dark,
.position-absolute.bg-dark.opacity-25 {
  background: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important; /* ensure consistent overlay on mobile */
}

/* scale headings for mobile */
.hero .display-4 {
  font-size: 4.5rem;
  max-width: 80%;
  font-weight: 700;
}

.hero .lead {
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 89%;
  font-weight: 400;
}

/* CTA becomes full width (or near-full) on small screens */
.hero .btn.btn-lg {
  margin-top: -2rem;
}

/* For mobile when menu stacks - keep dropdown menu items full width */
@media (max-width: 991.98px) {
  .dropdown-menu.clean-dropdown {
    background-color: #fff !important;
    padding: 0.5rem 0;
  }

  .dropdown-menu.clean-dropdown .dropdown-item {
    margin: 0;
    border-radius: 0;
  }
}

/* Ensure toggler bars inherit brand color if you use tokens */
.advanced-toggler .bar {
  background: #22338b;
}

/* Make opened mobile navbar area white and full width; keep same gutter as container */
@media (max-width: 991.98px) {
  /* the shown collapse becomes a white panel; padding restored to match navbar gutters */
  #mainNavbar.collapse.show {
    background: #fff;
    position: absolute;
    top: calc(var(--navbar-height, 4.5rem));
    left: 0;
    right: 0;
    z-index: 1050;
    /* above page content but below any modal */
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.28);
  }

  #mainNavbar .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  #mainNavbar .nav-link {
    padding: 0.6rem 0.5rem;
    width: 100%;
    display: block;
    color: var(--color-brand-primary) !important;
  }

  /* make CTA full-width-ish on mobile */
  #mainNavbar .btn-cta {
    background-color: #f12f20;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
}

.advanced-toggler.open .bar-1 {
  transform: translateY(calc(var(--bar-gap, 6px) + 2px)) rotate(45deg)
    scaleX(1.05);
}

.advanced-toggler.open .bar-2 {
  opacity: 1;
  transform: scaleX(1);
}

.advanced-toggler.open .bar-3 {
  transform: translateY(calc(-1 * (var(--bar-gap, 6px) + 2px))) rotate(-45deg)
    scaleX(1.05);
}

/* ensure collapsed initial styles */
.advanced-toggler.collapsed .bar-1,
.advanced-toggler.collapsed .bar-3 {
  transform: none;
}

.advanced-toggler.collapsed .bar-2 {
  opacity: 1;
  transform: scaleX(1);
}

.navbar .advanced-toggler .bar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.nav-open {
  overflow: hidden;
}

/* HERO SECTION */
.hero-section .py-6 {
  width: 100vw;
}

.hero-section .py-6 .hero {
  min-height: 100vh;
  background: url("images/hero-bg.jpg") 
}

.hero-section .badge {
  background-color: muted;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(241, 47, 32, 0.25);
}
.hero .btn.btn-lg {
  background-color: #f12f20;
  color: #fff;
  font-weight: 700;
}

/* hero container sizing */
#home .hero-media {
  overflow: hidden;
}
.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* adjust 0.15 to your taste */
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0b1220; 
  overflow: hidden;
}

/* shared image rules */
.hero-img-new {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  backface-visibility: hidden;
  animation-name: heroFade;
  animation-duration: 18s; /* total cycle length */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* staggered start times so images overlap */
.hero-img-new.fade-one {
  animation-delay: 0s;
}
.hero-img-new.fade-two {
  animation-delay: 6s;
} /* 18s / 3 */
.hero-img-new.fade-three {
  animation-delay: 12s;
}

/* keyframes: fade in, stay, fade out — planned overlap prevents blank frame */
@keyframes heroFade {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  } /* fade in quickly */
  33% {
    opacity: 1;
  } /* remain visible */
  39% {
    opacity: 0;
  } /* fade out */
  100% {
    opacity: 0;
  } /* rest until next cycle (delay handles this) */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-img {
    animation: none;
    opacity: 1;
  }
  .hero-media {
    background-color: transparent;
  }
}

/* layout height adjustments */
.container.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

#home > div[style] {
  /* the spacer div to set min height */
  height: var(--hero-height-mobile);
}

@media (min-width: 768px) {
  .container.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 992px) {
  #home > div[style] {
    height: var(--hero-height-desktop);
  }
}

/* ensure contrast for small viewports */
@media (max-width: 575.98px) {
  .lead {
    font-size: 0.98rem;
  }

  .display-6 {
    font-size: 1.6rem;
  }
}

.badge {
  font-size: 0.95rem;
}


.fade-on-desktop {
  display: none;
}

/* ========== HERO: mobile responsive overrides ========== */

.hero-img.object-cover,
.hero-media img.hero-img-new {
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.fade-on-desktop {
  display: none;
}

@media (max-width: 1400px) {
  .hero .display-4 {
    font-size: 4rem;
    line-height: 1;
  }

  .hero .btn.btn-lg {
    font-size: 1rem;
    padding: 10px 15px;
    margin-top: -2rem;
  }
}

/* Default desktop behavior (kept intact) */
@media (min-width: 992px) {
  .hero {
    min-height: 100vh;
  }

  .fade-on-desktop {
    display: block;
  }
}

/* Mobile & tablet: breakpoint <= 991.98px */
@media (max-width: 991.98px) {
  /* make hero shorter and let content flow */
  .hero {
    background-position: center;
  }

  .hero-media,
  .hero-media .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* slightly darker overlay for legibility on mobile */
  .hero > .position-absolute.w-100.h-100.bg-dark,
  .position-absolute.bg-dark.opacity-25 {
    background: rgba(0, 0, 0, 0.48) !important;
    opacity: 1 !important;
  }

  /* scale headings for mobile */
  .hero .display-4 {
    font-size: 2.4rem;
    line-height: 1.5;
    font-weight: 700;
    max-width: 70%;
  }

  .hero .lead {
    font-size: 1.4rem;
    line-height: 1.3;
    max-width: 70%;
  }

  .hero .badge {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.45rem;
    align-items: center;
    justify-content: center;
  }

  /* CTA becomes full width (or near-full) on small screens */
  .hero .btn.btn-lg {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.45rem;
    align-items: center;
    justify-content: center;
  }

  .hero .col-12.col-lg-8,
  .container.position-relative.z-2 .row > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* stack order: keep hero content above images */
  .hero .container.position-relative {
    z-index: 5;
    position: relative;
  }

  /* show only one hero image on mobile to reduce bandwidth */
  .hero-media img.hero-img:first-child {
    display: block;
  }

  .hero-media img.hero-img:nth-child(n + 2) {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero .hero-side {
  }

  .hero .display-4 {
    font-size: 2.5rem;
    max-width: 80%;
  }

  .hero .lead {
    font-size: 1.2rem;
    max-width: 80%;
  }

  .hero .btn.btn-lg {
    font-size: 1rem;
    padding: 10px 15px;
  }
}

@media (max-width: 485px) {
  .hero .hero-side {
  }

  .hero .display-4 {
    font-size: 2.2rem;
    padding-top: 2rem;
    width: 80%;
  }

  .hero .lead {
    font-size: 1.2rem;
    width: 100vw;
  }

  .hero .badge {
    font-size: 1rem;
    padding: 5px 10px;
  }
  .hero .btn.btn-lg {
    font-size: 1rem;
    padding: 5px 10px;
  }
}

/* tiny UX polish for very small phones */
@media (max-width: 375px) {
  .hero .display-4 {
    font-size: 1.45rem !important;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .hero .btn.btn-lg {
    font-size: 0.5rem;
    padding: 5px 10px;
  }
}

/* ======= ABOUT SECTION =========*/

.about-title span {
  color: var(--color-accent-primary);
}

/* Image styling */
.about-image-wrapper {
  text-align: center;
}

.about-image-wrapper .about-image {
  width: auto;
  object-fit: cover;
  height: 68vh;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.05);
}

/* ============== SOLUTIONS SECTION ============= */

.solutions-section .btn {
  background-color: var(--color-accent-primary);
  color: var(--color-background-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  margin: auto;
  align-self: center;
}

.service-card img.card-img-top {
  display: block;
  width: 100%;
  height: 220px;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.service-card .card-body {
  padding: 1.25rem;
}

#solutions .card img {
  transition: transform 0.5s ease;
}
#solutions .card:hover img {
  transform: scale(1.1);
}

#solutions a {
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .service-card img.card-img-top {
    height: auto;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center center;
    padding: 0;
    background-color: transparent;
  }
}

.service-card .card-title {
  margin-bottom: 0.5rem;
}
.service-card .card-text {
  margin-bottom: 0.75rem;
  color: #556170;
  line-height: 1.5;
}

/* ============== PRODUCT SECTION ============= */

.product-card .img-wrap {
  height: 180px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.product-card .img-wrap img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.product-card > img.card-img-top {
  height: 180px;
  max-height: 180px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  padding: 0.5rem;
  background-color: #fff;
  object-fit: contain;
}
.product-card .card-title {
  color: var(--color-accent-primary);
}

.products-section .btn-see-more {
  background-color: var(--color-accent-primary);
  color: var(--color-background-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.18s ease;
}
.products-section .section-spacing {
  align-items: stretch; /* ensure vertical stretching */
}

.products-section .section-spacing > * {
  flex: 1 1 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .product-card .img-wrap,
  .product-card > img.card-img-top {
    height: 150px;
    max-height: 150px;
    padding: 0.4rem;
  }
}
@media (max-width: 498px) {
  .hidden {
    display: none;
  }
}

/* ============== INDUSTRY SECTION ============= */
.industries-section a {
  background-color: var(--color-accent-primary);
  color: var(--color-background-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  margin: auto;
  align-self: center;
}

.industries .carousel-inner > .carousel-item > .d-flex {
  transition: transform 0.6s ease-in-out;
}

/* Cards styling */
.industries .card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 24%;
  height: 420px;
  flex: 0 0 auto;
}

.industries .card img {
  transition: transform 0.2s ease;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.industries .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.industries .card:hover img {
  transform: scale(1.3);
}

.industries .card:hover::after {
  opacity: 0.9;
}

.industries .card-img-overlay {
  z-index: 2;
}
.card-img-overlay .card-title,
.card-img-overlay .card-text {
  margin-bottom: 0;
}
.industries-section .card-img-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 120px; /* ensures all text blocks sit at the same level */
  padding: 1rem;
}

.industries-section .card-title,
.industries-section .card-text {
  margin-bottom: 0;
}
/* Indicators - mobile only */
.industries-indicators {
  position: relative;               /* will be placed under carousel */
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
}

/* dot button */
.industries-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  transform: scale(1);
}

/* active dot */
.industries-indicators button.active {
  background: rgba(0,0,0,0.9);
  transform: scale(1.15);
}

/* Anchor for screen-readers */
.industries-indicators button[aria-label] { 
  position: relative;
}

/* hide on large screens */
@media (min-width: 992px) {
  .industries-indicators { display: none !important; }
}

/* small visual spacing tweak so dots sit nicely under the horizontal scroller */
@media (max-width: 991.98px) {
  .industries .carousel-inner { padding-bottom: 18px; } /* leaves room for dots */
  .industries-indicators { margin-bottom: 0.5rem; }
}


@media (max-width: 991.98px) {
  .industries .carousel-inner {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .industries .carousel-item {
    display: flex !important;
    flex-wrap: nowrap;
    width: auto !important;
  }

  .industries .card {
    flex: 0 0 48%;
    width: 48%;
  }

  /* hide arrow controls on small devices */
  .industries .carousel-control-prev,
  .industries .carousel-control-next {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .industries .card img {
    height: 220px;
    object-fit: cover;
  }
}

/* ============== TESTIMONIAL SECTION ============= */

.mySwiper,
.mySwiper .swiper-wrapper,
.mySwiper .swiper-slide {
  box-sizing: border-box;
}
.mySwiper {
  width: 100%;
}
.mySwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  min-height: 50px;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.testimonial-text {
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.testimonial-name {
  color: #fff;
  font-weight: 700;
  margin-top: 8px;
}
.testimonial-role {
  color: #e9eef7;
  font-size: 0.9rem;
}

.testimonials-section {
  position: relative;
  padding: 3.5rem 0;
  background: url("../assets/images/construction.jpg") center/cover no-repeat;
  background-attachment: fixed;
}
.testimonials-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}
.testimonials-section .container {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* swiper controls */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.85);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #e2001a;
}

/* responsive tweaks (optional) */
@media (max-width: 991.98px) {
  .testimonial-card {
    min-height: 150px;
  }
}
@media (max-width: 575.98px) {
  .testimonial-card {
    min-height: 140px;
  }
}

.mySwiper,
.mySwiper .swiper-wrapper,
.mySwiper .swiper-slide {
  box-sizing: border-box;
}

.mySwiper .swiper-slide {
  display: flex;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* adjust this value to taste (desktop default) */
  min-height: 240px;
  height: 100%;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
}

@media (max-width: 575.98px) {
  .testimonial-card {
    min-height: 160px;
  }
}

/* =============== Clients & Partners ============= */

#stakeholders-clients .section-spacing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#stakeholders-clients .section-spacing > .text-center,
#stakeholders-clients .section-spacing .text-center.mx-auto {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#stakeholders-clients .paragraph-heading {
  margin-top: 0;
  margin-bottom: 0;
}

.logos-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* light background */
}

.logos-section h2 {
  text-align: center;
  font-weight: 600;
  color: #0d47a1;
  margin-bottom: 40px;
}

.client-logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

:root {
  --marquee-duration: 20s; 
  --logo-height-sm: 40px;
  --logo-height-md: 48px;
  --logo-height-lg: 64px;
}

.logo-marquee {
  position: relative;
}

.logo-tracked {
  gap: 1.75rem; /* space between logos */
  padding: 0.75rem 2rem;
  align-items: center;
  display: flex;
  animation: marquee var(--marquee-duration) linear infinite;
}

/* Logo sizing and containment */
.logo-item {
  height: 8rem;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 1;
  transition: filter 0.24s ease, transform 0.18s ease, opacity 0.18s ease;
}
.logo-item:hover {
  filter: none;
  transform: translateY(-4px);
  opacity: 1;
}

/* responsive logo sizes */
@media (max-width: 575.98px) {
  .logo-item {
    height: var(--logo-height-sm);
  }
  .logo-track {
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (min-width: 992px) {
  .logo-item {
    height: var(--logo-height-lg);
  }
  .logo-track {
    gap: 2rem;
  }
}

.logo-track + .logo-track {
  margin-left: -2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* pause on hover for accessibility */
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

/* reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}
/* Keep card image rounded on small screens */
.spec-card img {
  border-radius: 0.375rem;
}

/* ensure table scroll on xs */
#spec-sheet-display-area .table-responsive {
  overflow-x: auto;
}

/* small visual tweaks */
.spec-card .card-body {
  padding: 1rem;
}
.spec-card th {
  width: 40%;
  min-width: 130px;
  background: #fbfbfb;
  font-weight: 600;
}
.spec-card td {
  vertical-align: middle;
}

.object-cover {
  object-fit: cover;
}

/* responsive limits */
@media (max-width: 575.98px) {
  .spec-card img {
    max-height: 160px;
    object-fit: cover;
  }
}
@media (min-width: 576px) {
  .spec-card img {
    max-height: 240px;
    object-fit: cover;
  }
}

/* ========= STAKEHOLDERS SECTION ========== */
.portal-card {
  border: 0;
  border-radius: 0; /* squared corners */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

/* image block (first card) — keep same look */
.portal-img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.portal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-card.square {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.portal-card.square .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  padding: 1.25rem;
  text-align: center;
}

/* For the image-only card, ensure it displays as a square too */
.portal-card.image-only {
  aspect-ratio: 1 / 1;
  padding: 0;
}

/* typography & button keep existing look */
.portal-card .card-title {
  color: #22338b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portal-card .card-text {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* CTA same style as before */
article .btn-portal {
  background: #f12f20;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

/* Responsive: on small screens maintain visual balance */
@media (max-width: 767.98px) {
  .portal-card.square,
  .portal-card.image-only {
    aspect-ratio: 1.05 / 1; /* slightly taller on narrow screens for readability */
  }
  .portal-img img {
    object-position: center;
  }
}

/* ======== FREQUENTLY ASKED QUESTIONS ========= */

/* Accordion */
.accordion-button {
  color: var(--primary-blue);
}
.accordion-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.faq-section .section-spacing {
  display: block;
  align-items: unset;
}
/* Force accordion titles to appear lighter */
.accordion-button {
  font-weight: 400 !important;
}

/* ============= CONTACT US FORM ============*/
/* ============================
   CONTACT SECTION STYLING
============================ */

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.contact-second-title {
  margin-top: -1.5rem;
}

/* Map container styling */
.map-container {
  width: 100%;
  height: 395px;
  background: #e9eef6;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 139, 0.08);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  max-width: 560px;
  font-size: 0.9rem;
}

/* Contact button unified style */
form .contact-btn {
  background-color: var(--color-accent-primary);
  color: var(--color-background-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.18s ease;
}
.contact-btn:hover {
  background: #d11c15;
}

/* Responsive alignment */
@media (max-width: 767.98px) {
  .contact-title {
    text-align: center;
    font-size: 1.35rem;
  }
}

@media (max-width: 767.98px) {
  .map-container {
    height: 220px;
  }
  .map-caption {
    font-size: 0.8rem;
  }
}

/* ============== FOOTER ================ */
.footer {
  background: var(--color-brand-primary);
  padding: 0 1.8rem;
}
.footer h5 {
  font-size: 1.1rem;
  color: #fff;
}
.footer p,
.footer li a,
.footer li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cfd6e0;
}
.footer ul li {
  margin-bottom: 0.4rem;
}
.footer .social-links a {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.footer .social-links a:hover {
  color: #f15a24; /* Accent orange */
}

/* =============Floating button  ============*/
/* FAB Container */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #22338b;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

/* Bouncing Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.fab-main.active i {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.fab-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 70px;
  right: 0;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.fab-container.open .fab-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #000;
  color: #fff; /* pure black icons */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp {
  background: #25d366;
}
.call {
  background: #007bff;
}
.email {
  background: #f49225;
}

.fab-option:hover {
  transform: scale(1.1);
}

/* ============================
   STYLING FOR THE VARIOUS PAGES OF THIS WEBSITE
============================ */

/* ============= ABOUT US PAGE ============== */

#about-story h4,
#about-story h2 {
  color: var(--color-brand-primary);
}
.about-page {
  color: var(--neutral-dark);
}
#about-story img {
  height: 86vh;
}

/* Hero */
.about-hero {
  background: linear-gradient(
    180deg,
    rgba(34, 51, 139, 0.92),
    rgba(34, 51, 139, 0.78)
  );
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.about-hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  margin-top: 0.25rem;
  font-weight: 700;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52rem;
}

/* CEO */
.ceo-section {
  background: transparent;
}
.ceo-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

/* Overview */
.company-overview {
  background: var(--neutral-light);
}
.overview-list {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}
.overview-list li {
  padding: 0.45rem 0;
  color: var(--muted);
}

.card-body ul li {
  margin-top: 1rem;
}

/* Accordion */
.accordion-button {
  font-weight: 700;
  color: var(--primary-blue);
}
.accordion-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.core-values-section {
  padding: 4rem 0;
  background-color: #f8fafc;
}
.core-values-section .section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #22338b;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}
.core-values-section .section-sub {
  color: #6b7280;
  max-width: 920px;
  margin: 0 auto 2rem;
}

.values-row {
  gap: 1.25rem;
}
.value-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid rgba(19, 59, 122, 0.06);
  box-shadow: 0 10px 30px rgba(19, 59, 122, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(19, 59, 122, 0.12);
}
.value-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #22338b;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.value-desc {
  color: #6b7280;
  line-height: 1.6;
}

/* Mission & Vision polish */
.mission-vision .card {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(19, 59, 122, 0.06);
  height: 100%;
}
.mission-vision h3 {
  color: #22338b;
  font-weight: 700;
}
.mission-vision p {
  color: #4b5563;
}

/* Team cards equal height and spacing */
.team-grid .team-card {
  height: 100%;
  border-radius: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(19, 59, 122, 0.06);
}
.team-grid .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(19, 59, 122, 0.1);
}
.team-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

/* Small screens adjustments */
@media (max-width: 575.98px) {
  .core-values-section {
    padding: 2.25rem 0;
  }
  .core-values-section .section-title {
    font-size: 1.5rem;
  }
}

/* ===================== PRODUCT PAGE =============== */
/* product page */
/* Hero Section */
.products-hero {
  background: #f4f6f8;
  color: #fff;
}
.products-hero .eyebrow {
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
}
.search .filter-btn {
  width: auto !important;
  min-width: 3.5rem;
  white-space: nowrap;
}


@media (max-width: 575.98px) {
  .search .container.d-flex {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .search section.py-3 > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search .container > .d-flex.gap-2 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .search .container > .d-flex.gap-2 .filter-btn {
    flex: 0 0 auto;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.85rem;
  }

  .search .container > .ms-auto.w-100.w-md-auto {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .search #productSearch.form-control {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .search section.py-3 > .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .search .container > .d-flex.gap-2 {
    flex: 1 1 60%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .search .filter-btn {
    font-size: 0.9rem;
  }
}

/* Small accessibility focus outline for keyboard users */
.filter-btn:focus,
#productSearch:focus {
  outline: 3px solid rgba(33, 51, 139, 0.12);
  outline-offset: 2px;
}

/* band backgrounds */
.category-band {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}
.band-light {
  background: linear-gradient(
    180deg,
    rgba(228, 232, 247, 0.6),
    rgba(228, 232, 247, 0.6)
  );
}
.band-muted {
  background: linear-gradient(
    180deg,
    rgba(219, 226, 245, 0.55),
    rgba(219, 226, 245, 0.55)
  );
}

/* category left column */
.category-title {
  font-size: 1.6rem;
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.category-tagline {
  color: #2f3650;
  line-height: 1.5;
}

/* product tiles */
.product-tiles .product-card {
  border-radius: 10px;
  overflow: hidden;
}
.product-img {
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.product-name {
  color: var(--brand-blue);
  font-size: 1rem;
}
.product-short {
  min-height: 2.8rem;
} /* keep short text consistent */
.product-price {
  color: #0b4aa6;
  font-size: 0.98rem;
  margin-top: 0.35rem;
}
.card-body .btn-cta {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  background-color: var(--color-accent-primary);
  color: #fff;
}
/* Prouct Category Page */
/* Scoped styles for products-category.php */
.page-hero {
  background: #f7f9ff;
  padding-bottom: 2.5rem;
}
.eyebrow {
  font-size: 0.85rem;
  color: #6b7280;
}
.product-detail-card {
  border-radius: 12px;
  overflow: hidden;
}
.product-detail-img {
  height: 240px;
  background-color: #f1f5ff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.product-title {
  color: #0b3a6b;
  font-weight: 700;
}
.btn-cta {
  color: #fff;
  border: none;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.card-body .btn-cta {
  background-color: #f12f20;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

@media (max-width: 767.98px) {
  .product-detail-img {
    height: 260px;
    background-size: cover;
  }
}

/* responsive */
@media (max-width: 991.98px) {
  .product-img {
    height: 220px;
  }
  .category-title {
    font-size: 1.25rem;
  }
  .category-band {
    padding: 1.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .product-tiles .product-tile {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    margin-bottom: 1rem;
  }

  .product-tiles .product-card {
    height: 100%;
  }

  .product-img {
    height: 140px; /* reduced from 180px */
    background-size: contain;
    background-position: center;
  }
  .card-body .btn-cta {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.68rem;
    background-color: var(--color-accent-primary);
    color: #fff;
  }
}

/* Filters area */
.filter-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* small utilities */
.empty-msg {
  color: #6b7280;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(16, 24, 40, 0.04);
}

/* ======= PRODUCT PAGE SPECIFICATION SHEET ====== */

/* Keep card image rounded on small screens */
.spec-card img {
  border-radius: 0.375rem;
}

/* ensure table scroll on xs */
#spec-sheet-display-area .table-responsive {
  overflow-x: auto;
}

/* small visual tweaks */
.spec-card .card-body {
  padding: 1rem;
}
.spec-card th {
  width: 40%;
  min-width: 130px;
  background: #fbfbfb;
  font-weight: 600;
}
.spec-card td {
  vertical-align: middle;
}

.object-cover {
  object-fit: cover;
}

/* responsive limits */
@media (max-width: 575.98px) {
  .spec-card img {
    max-height: 160px;
    object-fit: cover;
  }
}
@media (min-width: 576px) {
  .spec-card img {
    max-height: 240px;
    object-fit: cover;
  }
}

/* 2. Brand Colors */
.text-horizon-blue {
  color: #22338b;
}
.bg-horizon-blue {
  background-color: #22338b;
}
.border-horizon-blue {
  border-color: #22338b !important;
} /* Use !important to override Bootstrap */

.text-segment-red {
  color: #f12f20;
}
.bg-segment-red {
  background-color: #f12f20;
}

/* 3. Custom Button Style */
.btn-segment-red {
  background-color: #f12f20; /* Segment Red */
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 8px; /* rounded-3 */
  border: none;
  transition: background-color 0.3s ease;
}
.btn-segment-red:hover {
  background-color: #f24537; /* Flame Orange */
  color: #ffffff;
}

/* 4. Spec Sheet Container Styles (from original) */
/* These styles are applied to the container *inside* the modal body */
.spec-sheet-container {
  background-color: white;
  padding: 2.5rem;
  margin: 0; /* No margin inside the modal */
  border-radius: 8px;
  max-width: 100%;
}
.spec-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #22338b; /* Horizon Blue border */
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.spec-sheet-header img {
  height: 48px; /* Adjust logo size */
}
.spec-sheet-title h2 {
  color: #22338b; /* Horizon Blue */
  font-size: 1.25rem; /* 20px - fs-5 */
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.spec-sheet-title h3 {
  color: #212529; /* Off-black */
  font-size: 1.75rem; /* 28px - fs-3 */
  font-weight: 700;
}
.spec-sheet-container h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px - fs-5 */
  color: #22338b; /* Horizon Blue */
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0; /* Light border */
}

/* 5. Table Styles (from original) */
.spec-sheet-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem; /* Slightly smaller table text */
  border-color: #e2e8f0; /* Match original border color */
}
.spec-sheet-container th,
.spec-sheet-container td {
  border: 1px solid #e2e8f0; /* Lighter border for table cells */
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}
.spec-sheet-container th {
  background-color: #f4f6f8; /* Light Gray */
  font-weight: 600;
  width: 35%; /* Fixed width for header column */
}
.spec-sheet-container td {
  line-height: 1.5;
}
.spec-sheet-container table table th,
.spec-sheet-container table table td {
  font-size: 0.875rem; /* Smaller nested table text */
}

/* 6. Modal & Print Styles */
.modal-body {
  padding: 0; /* Let the spec sheet control its own padding */
  background-color: #f4f6f8; /* Match original page background */
}
/* When printing, hide everything except the modal body */
@media print {
  body.modal-open {
    visibility: hidden; /* Hide the main page content */
  }
  .no-print {
    display: none !important; /* Hide dropdown */
  }
  .modal-backdrop {
    display: none !important; /* Hide the dark overlay */
  }
  .modal.show {
    position: static !important; /* Reset modal position */
    visibility: visible !important; /* Show the modal */
  }
  .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important; /* Reset any transforms */
  }
  .modal-content {
    visibility: visible !important; /* Show modal content */
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
  .modal-header,
  .modal-footer {
    display: none !important; /* Hide modal header/footer */
  }
  .modal-body {
    padding: 0 !important; /* No padding on the body */
  }
  .spec-sheet-container {
    box-shadow: none;
    border: none;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    padding: 1rem !important; /* Add padding for print */
  }
  h5 {
    padding-top: 1rem; /* Add space before section headers in print */
  }
  table {
    page-break-inside: auto; /* Allow tables to break across pages if needed */
  }
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
}

/* =========== INDUSTRIES PAGE ========== */

/* Industries Section */
.industries {
  font-family: "Source Sans 3", sans-serif;
  color: #212529;
  background-color: #f4f6f8; /* bg-light-gray */
}
.industries h1,
.industries h2,
.industries h3,
.industries h4,
.industries h5,
.industries h6,
.font-montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* 2. Brand Colors */
.text-horizon-blue {
  color: #22338b;
}
.bg-horizon-blue {
  background-color: #22338b;
}
.border-horizon-blue {
  border-color: #22338b !important;
}

.text-segment-red {
  color: #f12f20;
}
.bg-segment-red {
  background-color: #f12f20;
}
.text-danger {
  color: #ef4444 !important;
} /* Obligatory asterisk */

.bg-light-gray {
  background-color: #f4f6f8;
}

/* 3. Primary Button (CTA) */
.btn-segment-red-cta {
  display: inline-block;
  background-color: #f12f20; /* bg-segment-red */
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 32px;
  font-size: 0.875rem;
  border-radius: 8px; /* rounded-lg */
  transition: background-color 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-segment-red-cta:hover {
  background-color: #f24537; /* hover:bg-flame-orange */
  color: #ffffff;
}

/* 4. Tab Navigation Styles */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}
.nav-tabs .nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: #6b7280; /* text-gray-500 */
  border: none;
  border-bottom: 4px solid transparent;
  padding: 1rem 0.5rem;
}
.nav-tabs .nav-link.active {
  color: #22338b; /* text-horizon-blue */
  border-color: #22338b; /* border-horizon-blue */
  background-color: #fff;
}
.nav-tabs .nav-link:not(.active):hover {
  color: #111827; /* text-gray-900 */
  background-color: #f9fafb; /* bg-gray-50 */
  border-color: transparent;
}

/* 5. Hero & Content Styling */
/* .hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}
.hero-img-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px; 
} */

/* 6. Solution Card Style */
.card-solution {
  border-top: 4px solid #22338b;
  height: 100%; /* Make cards in a row equal height */
}

/* ================== ARTICLES PAGE ============== */

.text-horizon-blue {
  color: #22338b;
}
.bg-horizon-blue {
  background-color: #22338b;
}
.text-segment-red {
  color: #f12f20;
}
.bg-segment-red {
  background-color: #f12f20;
}
.bg-light-gray {
  background-color: #f4f6f8;
}

/* 2. Custom Button Style (from original .btn-secondary) */
.btn-horizon-primary {
  background-color: #22338b;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  border: none;
}
.btn-horizon-primary:hover {
  background-color: #2a3e9a;
  color: #ffffff;
}

/* 3. Main Insights Modal (Table of Contents) Styles */
#insights-modal-toc .list-group-item {
  padding: 1rem;
  transition: background-color 0.2s ease-in-out;
}
#insights-modal-toc .list-group-item:hover {
  background-color: #f4f6f8; /* bg-light-gray */
}
#insights-modal-toc .open-article-btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: #f12f20; /* Segment Red */
  font-weight: bold;
  font-size: 0.875rem;
  text-decoration: none;
}
#insights-modal-toc .list-group-item:hover .open-article-btn {
  text-decoration: underline;
}
#insights-modal-toc .list-group-item h3 {
  font-size: 1.15rem; /* Slightly larger than default */
}

/* 4. Article Modal Styles */
.article-modal .modal-body {
  padding: 0; /* Remove all padding from modal-body */
  position: relative; /* For positioning the close button */
}

/* Custom close button positioned over the header */
.article-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 110;
  /* Bootstrap's white 'x' button */
  filter: invert(1) grayscale(100) brightness(200%);
}
.article-modal-close:hover {
  filter: invert(1) grayscale(100) brightness(150%);
}

/* 5. Article Header (Image/Overlay) */
.article-header {
  position: relative;
  padding: 3rem 2rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background-size: cover;
  background-position: center;
  /* Match Bootstrap's modal top-corner rounding */
  border-radius: var(--bs-modal-inner-border-radius)
    var(--bs-modal-inner-border-radius) 0 0;
}
.article-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--bs-modal-inner-border-radius)
    var(--bs-modal-inner-border-radius) 0 0;
  z-index: 1;
}
.article-header h2,
.article-header p {
  position: relative; /* Ensure text is above overlay */
  z-index: 2;
}
.article-header h2 {
  font-size: 1.75rem; /* fs-3 */
  font-weight: 700;
}
.article-header p {
  color: rgba(255, 255, 255, 0.75); /* text-gray-300 equivalent */
}

/* 6. Article Body (Text Content) */
.article-body {
  padding: 2rem;
}
.article-body h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* fs-5 */
  color: #22338b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #f4f6f8;
  padding-bottom: 0.5rem;
}
.article-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.article-body ul {
  list-style-type: disc;
  margin-left: 1.5rem; /* Replicates Tailwind's ml-6 */
  margin-bottom: 1rem;
  padding-left: 1rem; /* Bootstrap list-style fix */
}

#articles img {
  height: 20rem;
}

/* ============== SOLUTION PAGE ============= */

.service-page {
  font-family: var(--ff);
  color: #152536;
}
.service-hero {
  background: linear-gradient(
    180deg,
    rgba(34, 51, 139, 0.92),
    rgba(34, 51, 139, 0.78)
  );
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.object-cover {
  object-fit: cover;
  height: 220px;
  width: 100%;
}
.section-title {
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--primary-blue);
}
.cap-card {
  background: var(--card);
  border-radius: 12px;
}
.cap-card h5 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cap-card p {
  color: var(--muted);
  margin-bottom: 0;
  flex-grow: 1;
}
.card .card-body {
  min-height: 110px;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.bg-light {
  background: #f8f9fa;
}

/* ============== INDUSTRIES PAGE ============= */
.bottom-bar {
  background: var(--color-brand-primary);
  padding: 5rem 0;
  color: #fff;
}

.bottom-bar p {
  color: rgb(172, 168, 168);
}

.capability-card h5 {
  font-weight: 500;
}
#home .btn-cta {
  background-color: #f12f20;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

section .bottom-bar .btn-cta {
  background-color: #f12f20;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

/* ============ PROJECTS PAGE ============== */
.case-card img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}
