/* ============================================================
   industries/index.css Ã¢â‚¬â€ Industries landing page styles
   ============================================================ */


/* Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:      #D30100;
  --red-dark: #A50000;
  --ink:      #0E0E0E;
  --marine:   #0A2540;
  --bone:     #F4F1EC;
  --amber:    #FEBD59;
  --steel:    #6E7479;
  --white:    #fff;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
}


/* Hero
   ------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, #D30100 0%, #A50000 55%, #0A2540 100%);
  padding: 55px 28px 64px;
  position: relative;
  overflow: hidden;
}

/* Slideshow stack (sits behind the gradient overlay). Each .hero-slide
   covers the full hero box; the .active one fades in over its predecessor.
   FADE_MS in the inline <script> in industries/index.html should match
   the transition duration set here (1.2s). */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

/* Color overlay over the slideshow — keeps the red/marine brand wash and
   ensures the white hero text stays legible regardless of slide content. */
.hero-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
    linear-gradient(135deg, rgba(211, 1, 0, 0.78) 0%, rgba(165, 0, 0, 0.72) 55%, rgba(10, 37, 64, 0.78) 100%);
}

/* Subtle grid texture on top of everything (was previously ::after on the
   hero — moved here so it layers above the slideshow + overlay). */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 56px 56px;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}


/* Breadcrumb
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: #fff;
}


/* Hero Eyebrow & Title
   ------------------------------------------------------------ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero-eyebrow-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

h1.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 18px;
}

h1.page-title span {
  color: var(--amber);
}

.page-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  line-height: 1.7;
  max-width: 560px;
}


/* Filter Bar
   ------------------------------------------------------------ */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #EDEAE5;
  padding: 0 28px;
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  /* Slim, branded scrollbar that stays visible at every width so the row
     always reads as horizontally scrollable. */
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 37, 64, .28) transparent;
}

.filter-bar-inner::-webkit-scrollbar { height: 4px; }
.filter-bar-inner::-webkit-scrollbar-thumb { background: rgba(10, 37, 64, .25); border-radius: 4px; }
.filter-bar-inner::-webkit-scrollbar-track { background: transparent; }

.filter-tab {
  padding: 15px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}


/* Industry Grid Main Area
   ------------------------------------------------------------ */
.industries-main {
  padding: 56px 28px 96px;
  max-width: 1280px;
  margin: 0 auto;
}

.industry-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-section-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.industry-section-title:first-child {
  margin-top: 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}


/* Industry Cards
   ------------------------------------------------------------ */
.industry-card {
  background: var(--bone);
  border-radius: 12px;
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}

.industry-card:hover {
  border-color: rgba(211, 1, 0, 0.15);
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.10);
  transform: translateY(-3px);
}

.industry-card:hover::after {
  transform: scaleX(1);
}

.ic-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marine);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.industry-card:hover .ic-icon {
  background: var(--red);
  color: #fff;
}

.ic-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ic-desc {
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.55;
}

.ic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.ic-tag {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.03em;
  font-family: 'IBM Plex Mono', monospace;
}

.ic-arrow {
  margin-top: auto;
  padding-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s, transform 0.18s;
}

.industry-card:hover .ic-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* CTA Band
   ------------------------------------------------------------ */
.ind-cta {
  background: var(--red);
  border-radius: 14px;
  padding: 52px 48px;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.ind-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.ind-cta h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.ind-cta p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--marine);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.18s, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.btn-amber:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}


/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    padding: 0;
  }
  .filter-bar-inner {
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}
