/* ==========================================================================
   CUSTOM COMPONENTS CSS
   Extracted inline styles from HTML pages
   ========================================================================== */

/* --- Extracted from index.html --- */


.solutions-hero-section {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  padding: 80px 20px;
  text-align: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  clip-path: inset(0 0 0 0);
  /* CRITICAL for true parallax */
}

/* TRUE PARALLAX IMPLEMENTATION */
.solutions-hero-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/solutions-office-bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}

.solutions-hero-section .sh-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75) !important;
  z-index: -1;
}

.solutions-hero-section .sh-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solutions-hero-section .sh-eyebrow {
  margin-bottom: 20px;
  display: inline-flex;
}

.solutions-hero-section .sh-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.solutions-hero-section .sh-sub {
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
}

.solutions-hero-section .sh-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .solutions-hero-section {
    min-height: auto;
    padding: 40px 20px;
  }

  .solutions-hero-section .sh-title {
    font-size: 2.2rem;
  }

  .solutions-hero-section .sh-sub {
    font-size: 1rem;
  }

  .solutions-hero-section .sh-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .solutions-hero-section .sh-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

body.light-mode .solutions-hero-section .sh-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.light-mode .solutions-hero-section .sh-sub {
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}

body.light-mode .solutions-hero-section .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .solutions-hero-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* --- Extracted from sitemap.html --- */
.sitemap-container {
  max-width: 1100px;
  margin: 100px auto;
  padding: 20px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.sitemap-col h3 {
  font-family: var(--font-head);
  color: var(--blue);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.sitemap-links {
  list-style: none;
}

.sitemap-links li {
  margin-bottom: 12px;
}

.sitemap-links a {
  color: var(--ink);
  text-decoration: none;
  transition: 0.3s;
  font-size: 15px;
}

.sitemap-links a:hover {
  color: var(--blue);
  padding-left: 5px;
}

.sitemap-hero {
  text-align: center;
  background: var(--grad-hero);
  padding: 100px 20px;
  border-radius: var(--radius-lg);
  color: white;
}

/* ==========================================================================
   USER REQUESTED STRICT BUTTON & TAG FIXES (NO WRAP)
   ========================================================================== */
.btn-primary,
.btn-ghost,
.btn-cta,
.popup-submit-btn,
.btn-premium,
.btn-discover,
.btn-f,
.btn-white,
.section-tag,
.pill-tag,
.badge,
.sh-eyebrow,
.pill,
.nav-links a {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: fit-content !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  /* Safety fallback */
}

@media (max-width: 768px) {

  /* Auto adjust padding and font sizes for mobile to ensure fit-content doesn't overflow the viewport */
  .btn-primary,
  .btn-ghost,
  .btn-cta,
  .popup-submit-btn,
  .btn-premium,
  .btn-discover,
  .btn-f,
  .btn-white {
    padding: 10px 16px !important;
    font-size: 14px !important;
    /* Remove any forced 100% width from previous mobile overrides */
    width: fit-content !important;
    max-width: 100% !important;
  }

  .section-tag,
  .pill-tag,
  .badge,
  .sh-eyebrow,
  .pill {
    padding: 6px 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    width: fit-content !important;
    max-width: 100% !important;
  }
}


/* Mobile Safari / iOS Fixes */
@media (max-width: 768px) {

  /* Disable background-attachment fixed on mobile as it breaks on iOS Safari */
  .parallax-cta,
  .cta-tech-bg,
  .full-hero,
  #cta,
  .solutions-hero-section {
    background-attachment: scroll !important;
    background-position: center center !important;
  }
}


/* CRITICAL FIX FOR CONTAINER BLOWOUT CAUSING TEXT CUT-OFF */
@media (max-width: 768px) {

  .btn-primary,
  .btn-ghost,
  .btn-cta,
  .popup-submit-btn,
  .btn-premium,
  .btn-discover,
  .btn-f,
  .btn-white,
  .section-tag,
  .pill-tag,
  .badge,
  .sh-eyebrow,
  .pill,
  .nav-links a {
    min-width: 0 !important;
    /* Overrides the fit-content that breaks mobile screens */
    max-width: 100% !important;
    /* Crucial to prevent horizontal stretching */
    width: 100% !important;
    /* Let them scale naturally or fill container so text truncates cleanly */
  }

  .section-tag,
  .pill-tag,
  .badge,
  .sh-eyebrow,
  .pill {
    width: auto !important;
    /* Badges should not be full width */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Ensure containers don't stretch beyond screen */
  .hero-content,
  .hero-text-slide,
  .hero-grid,
  .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   GLOBAL BADGE / PILL STYLING UPDATES
   ========================================================================== */
.section-tag,
.hcard-pill,
.badge,
.pill,
.pill-tag,
.popup-badge,
[class*="pill"],
[class*="badge"] {
  font-size: 14px !important;
  border-width: 3px !important;
  border-style: solid !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.section-tag *,
.hcard-pill *,
.badge *,
.pill *,
.pill-tag *,
.popup-badge * {
  font-size: 14px !important;
}

/* Exclude specific non-border badges */
.ft-bottom .ft-badge,
.footer-social-badge {
  border-width: 0px !important;
  border-style: none !important;
}

/* ==========================================================================
   ALIGNMENT & RESPONSIVENESS FIXES
   ========================================================================== */

/* 1. Global Section Tag Centering */
.section-tag {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
  text-align: center !important;
}

/* 2. Hide dash prefix inside bordered pills in Light Mode */
body.light-mode .section-tag::before {
  display: none !important;
  content: none !important;
}

/* 3. Responsive Desktop Navbar & Email Clipping Resolution */
@media (max-width: 1350px) {
  .nav-email-text {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  nav {
    padding: 0 3% !important;
  }
  .nav-links {
    gap: 4px !important;
  }
  .nav-links a {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 950px) {
  nav {
    padding: 0 2% !important;
  }
  .nav-links {
    gap: 2px !important;
  }
  .nav-links a {
    padding: 5px 8px !important;
    font-size: 13px !important;
  }
}