/* Hero */

.hero-wrapper {
  height: calc(100vh - 6.5rem);
}

.hero-container {
  background: linear-gradient(to right, #01070caf, #01070c30);
  backdrop-filter: blur(5px);
}

/* Solutions */

.intelligence-platform {
  background: url('https://media.industrialinfo.com/images/bg-white-abstract-2.webp') no-repeat top
    center;
  background-size: cover;
}

/* Coverage Map */

#home-coverage-map-container {
  min-height: 300px;
}

#home-coverage-map-container .highcharts-background {
  fill: none !important;
}

#home-coverage-map-container .highcharts-axis-labels text {
  color: #fff !important;
  fill: #fff !important;
}

@media (min-width: 768px) {
  #home-coverage-map-container {
    min-height: 400px !important;
  }
}

@media (min-width: 1200px) {
  #home-coverage-map-container {
    min-height: 700px !important;
  }
}

/* Platform Cards */
.platform-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 110%);
}

.platform-card ul {
  list-style: none;
  padding-left: 0.25rem;
}

.platform-card ul li {
  margin-top: 0.75rem;
}

/* Coverage */

.coverage-box {
  height: 6rem !important;
  border-radius: 4px;
  /* Optional but makes the shadow look cleaner */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow 0.25s ease,
    outline 0.25s ease,
    outline-offset 0.25s ease;
}

.coverage-box:hover {
  outline: 2px solid #ff7a00;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scale(1.02);
  transition: transform 250ms ease;
}

.coverage-box,
.coverage-card {
  border-radius: inherit;
}

.coverage-card.platform {
  background: rgba(0, 0, 0, 0.5);
}

.non-featured-wrapper hr:last-of-type {
  display: none;
}

.why-icon.fa-light,
.why-icon.fa-thin {
  text-shadow: 0 2px 6px rgb(0, 0, 0);
}

/* Research Layers */

.research-layer {
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.research-layer .research-layer-item {
  pointer-events: all;
  cursor: pointer;
}

/* ── Section wrapper ── */
.iir-solutions-section {
  padding: 60px 0 72px;
  background: #f4f6f9;
}

/* ── Section label ── */
.iir-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Heading ── */
.iir-solutions-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* ── Subtitle ── */
.iir-subtitle {
  font-size: 1rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ── Card ── */
.iir-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0d1b2e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  width: 100%;
}

.iir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

.iir-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 12, 28, 0.88) 0%,
    rgba(4, 12, 28, 0.55) 45%,
    rgba(4, 12, 28, 0.82) 100%
  );
  z-index: 1;
}

/* card images */
.iir-card--pecweb {
  background-image: url('https://media.industrialinfo.com/home/product-promo-pec-web.webp');
  background-size: cover;
  background-position: center;
}
.iir-card--labor {
  background-image: url('https://media.industrialinfo.com/home/product-promo-labor-analytics.webp');
  background-size: cover;
  background-position: center;
}
.iir-card--forecasting {
  background-image: url('https://media.industrialinfo.com/home/product-promo-forecast-analytics.webp');
  background-size: cover;
  background-position: center;
}

/* ── Card body ── */
.iir-card__body {
  position: relative;
  z-index: 2;
  padding: 28px 26px 0;
}

/* Thin blue accent line above the title */
.iir-card__body::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #1a7ab5;
  border-radius: 2px;
  margin-bottom: 14px;
}

.iir-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.iir-card__tagline {
  font-size: 0.88rem;
  font-weight: 400;
  font-style: italic;
  color: #b8cfe8;
  margin-bottom: 18px;
  line-height: 1.45;
}

.iir-card__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 0 16px;
}

.iir-card__desc {
  font-size: 0.83rem;
  color: #dde5f0;
  line-height: 1.6;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.iir-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.iir-card__bullets li {
  font-size: 0.83rem;
  font-weight: 500;
  color: #dde5f0;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.iir-card__bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #4da3d9;
  font-size: 0.65rem;
  top: 5px;
}

/* ── CTA bar ── */
.iir-card__cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(26, 122, 181, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.iir-card__cta:hover {
  background: rgba(26, 122, 181, 0.5);
  color: #fff;
}

.iir-card__cta-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.iir-card__cta:hover .iir-card__cta-arrow {
  transform: translateX(4px);
}

/* ── Row gutter ── */
.iir-cards-row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 20px;
}

.iir-cards-row > [class*='col'] {
  display: flex;
}

/* ------------------------------------------------------------------ */
/* Tab nav container                                                    */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0;
    flex-wrap: wrap;
    /* allow wrapping on small screens    */
}

/* ------------------------------------------------------------------ */
/* Individual tab buttons                                               */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 1rem 0.5rem 0.75rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;

    color: rgba(255, 255, 255, 0.45);
    /* inactive: muted white    */
    font-size: 0.75rem;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;

    cursor: pointer;
    min-width: 0;
    /* flex shrink              */
}

/* Icon inside each button */
#homepage-industry-tabs .nav-link i {
    transition: color 0.2s ease;
}

/* ------------------------------------------------------------------ */
/* Hover state                                                          */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(248, 141, 43, 0.4);
    /* orange tint      */
    background-color: rgba(255, 255, 255, 0.04);
}

/* ------------------------------------------------------------------ */
/* Active / selected state                                              */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link.active {
    color: #f88d2b;
    /* brand orange     */
    border-bottom-color: #f88d2b;
    background-color: rgba(248, 141, 43, 0.08);
}

#homepage-industry-tabs .nav-link.active i {
    color: #f88d2b;
}

/* ------------------------------------------------------------------ */
/* Industry label text                                                  */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .industry-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.85;
}

#homepage-industry-tabs .nav-link.active .industry-label {
    opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Coverage count badge                                                 */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .industry-count {
    margin-top: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
    min-height: 1em;
    /* reserve space while loading           */
    transition: color 0.2s ease;
}

#homepage-industry-tabs .nav-link.active .industry-count {
    color: rgba(248, 141, 43, 0.75);
}

/* ------------------------------------------------------------------ */
/* KPI region tag — shown when a world region is selected on the map   */
/* ------------------------------------------------------------------ */

.homepage-kpi-region-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1em 0.5em;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f88d2b;
    border: 1px solid rgba(248, 141, 43, 0.45);
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
}



#home-coverage-map-container {
    min-height: 400px;
    transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------------ */
/* Map spinner                                                          */
/* ------------------------------------------------------------------ */

.homepage-map-spinner {
    pointer-events: none;
    z-index: 10;
}

/* ------------------------------------------------------------------ */
/* KPI row — subtle fade-in on switch                                   */
/* ------------------------------------------------------------------ */

.homepage-map-kpis {
    transition: opacity 0.25s ease;
}

/* ------------------------------------------------------------------ */
/* Responsive — smaller screens                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
    #homepage-industry-tabs {
        justify-content: flex-start;
    }

    #homepage-industry-tabs .nav-link {
        flex: 0 0 calc(20% - 1px);
        /* 5 per row on tablet            */
        min-width: 60px;
    }
}

@media (max-width: 575.98px) {
    #homepage-industry-tabs .nav-link {
        flex: 0 0 calc(25% - 1px);
        /* 4 per row on mobile            */
        padding: 0.75rem 0.25rem 0.6rem;
    }

    #homepage-industry-tabs .industry-label {
        font-size: 0.6rem;
    }

    #homepage-industry-tabs .industry-count {
        font-size: 0.55rem;
    }
}