/* Wiseman General Contracting Custom Stylesheet */
:root {
  --wm-primary: #012d5e;
  --wm-navy-dark: #002146;
  --wm-secondary: #FD8F14;
  --wm-orange: #ff5722;
  --wm-accent: #05102C;
  --wm-bg-alt: #F3F7FF;
  --wm-border: #DFE8FE;
  --wm-heading: #0A0909;
  --wm-subheading: #515151;
  --wm-body: #6F6D6D;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--wm-body);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Strict Material Symbols containment so ligature text never overflows or collides */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  max-width: 1.25em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Wiseman Floating Rounded Navbar */
.wiseman-navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 94%;
  max-width: 1220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px;
  box-shadow: 0 8px 30px rgba(1, 45, 94, 0.14);
  border: 1px solid rgba(223, 232, 254, 0.9);
  border-radius: 15px;
  z-index: 9999;
  color: #002d5e;
  transition: all 0.3s ease;
}

.wiseman-navbar.scrolled {
  top: 8px;
  box-shadow: 0 12px 35px rgba(1, 45, 94, 0.18);
}

.wiseman-nav-link {
  color: #002d5e;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .wiseman-nav-link {
    font-size: 15px;
  }
}

.wiseman-nav-link:hover,
.wiseman-nav-link.active {
  color: #ff5722;
  transform: scale(1.03);
}

.wiseman-dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 45, 94, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(1, 45, 94, 0.15);
}

.wiseman-dropdown-item {
  color: #002d5e;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.wiseman-dropdown-item:hover {
  background-color: rgba(1, 45, 94, 0.06);
  color: #ff5722;
  padding-left: 22px;
}

@keyframes wmPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.wm-pulse {
  animation: wmPulse 2s infinite ease-in-out;
}

/* Circular Service Bubbles */
.service-circle-card {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9999px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 10px 25px rgba(1, 45, 94, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.service-circle-card > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-circle-card:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgba(1, 45, 94, 0.32);
  border-color: #FD8F14;
}

.service-circle-card:hover > img {
  transform: scale(1.1);
}

.service-grid-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-grid-card:hover {
  transform: translateY(-4px);
}

/* Explicit Button Styles Immune to Dynamic Tailwind Preflight Cascade */
.wm-btn-primary,
button.wm-btn-primary,
a.wm-btn-primary,
[type="submit"].wm-btn-primary {
  background-color: #012d5e !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.wm-btn-primary:hover,
button.wm-btn-primary:hover,
a.wm-btn-primary:hover,
[type="submit"].wm-btn-primary:hover {
  background-color: #FD8F14 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(253, 143, 20, 0.3);
}

.wm-btn-outline,
a.wm-btn-outline,
button.wm-btn-outline {
  border: 1.5px solid #012d5e !important;
  color: #012d5e !important;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wm-btn-outline:hover,
a.wm-btn-outline:hover,
button.wm-btn-outline:hover {
  background-color: #FD8F14 !important;
  border-color: #FD8F14 !important;
  color: #ffffff !important;
}

.wm-gradient-text {
  background: linear-gradient(135deg, #012d5e 0%, #0f4c8a 55%, #FD8F14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wm-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1024px) {
  .wm-parallax {
    background-attachment: scroll;
  }
}

/* Global desktop scrollbar on root page */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #F3F7FF;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #9fb4d4;
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #012d5e;
}

/* Hide scrollbar utility for horizontal tab bars and mobile scrollers */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.scrollbar-none,
.no-scrollbar {
  -ms-overflow-style: none !important; /* IE and Edge */
  scrollbar-width: none !important; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

/* Hide all scrollbars in mobile view */
@media (max-width: 768px) {
  *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
}

/* Redesigned Home Page Engineering Sections */
.wm-blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(1, 45, 94, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(1, 45, 94, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.wm-blueprint-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.wm-kpi-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #DFE8FE;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(1, 45, 94, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.wm-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #012d5e 0%, #FD8F14 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wm-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 143, 20, 0.45);
  box-shadow: 0 16px 36px rgba(1, 45, 94, 0.12);
}

.wm-kpi-card:hover::before {
  opacity: 1;
}

.wm-service-card {
  background: #ffffff;
  border: 1px solid #DFE8FE;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(1, 45, 94, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.wm-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 143, 20, 0.55);
  box-shadow: 0 20px 40px rgba(1, 45, 94, 0.12);
}

.wm-filter-tab,
button.wm-filter-tab {
  background-color: #ffffff !important;
  color: #012d5e !important;
  border: 1px solid #DFE8FE !important;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wm-filter-tab:hover,
button.wm-filter-tab:hover {
  border-color: #FD8F14 !important;
  color: #FD8F14 !important;
}

.wm-filter-tab.active,
button.wm-filter-tab.active {
  background-color: #012d5e !important;
  color: #ffffff !important;
  border-color: #012d5e !important;
  box-shadow: 0 6px 16px rgba(1, 45, 94, 0.2);
}

.wm-cert-card {
  position: relative;
  background: #F3F7FF;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(1, 45, 94, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  cursor: default;
}

.wm-cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.wm-cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(1, 45, 94, 0.12);
}

.wm-cert-card:hover::after {
  border-color: #FD8F14;
}

/* Infinite Scrolling Carousel for Hero Division Cards */
.wm-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 16px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.wm-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: wmInfiniteMarquee 34s linear infinite;
  will-change: transform;
}

@keyframes wmInfiniteMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.wm-marquee-container:hover .wm-marquee-track,
.wm-marquee-container:active .wm-marquee-track,
.wm-marquee-container:focus-within .wm-marquee-track {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .wm-marquee-track {
    gap: 0.875rem;
    animation-duration: 26s;
  }
}

/* Infinite Auto-Scrolling Carousel for Approvals & Pre-Qualifications */
.wm-cert-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.wm-cert-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: wmCertMarquee 32s linear infinite;
  will-change: transform;
}

@keyframes wmCertMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.wm-cert-marquee-container:hover .wm-cert-marquee-track,
.wm-cert-marquee-container:active .wm-cert-marquee-track,
.wm-cert-marquee-container:focus-within .wm-cert-marquee-track {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .wm-cert-marquee-track {
    gap: 0.875rem;
    animation-duration: 24s;
  }
}
