/* IBR Fittings - Custom styles layered on top of Tailwind CDN utility classes */

:root {
  --color-navy: #102A43;
  --color-navy-light: #1E3A5F;
  --color-steel: #334155;
  --color-accent: #E8590C;
  --color-accent-light: #F7941D;
  --color-bg: #F4F6F8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Hero diagonal industrial pattern */
.hero-pattern {
  background-image:
    linear-gradient(120deg, rgba(16,42,67,0.94) 0%, rgba(16,42,67,0.82) 55%, rgba(232,89,12,0.55) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 18px);
  background-size: cover, 40px 40px;
}

/* Hero variant with factory photograph backdrop (Homepage) */
.hero-pattern-factory {
  background-image:
    linear-gradient(120deg, rgba(16,42,67,0.94) 0%, rgba(16,42,67,0.85) 55%, rgba(232,89,12,0.55) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 18px),
    url('../images/factory.jpg');
  background-size: cover, 40px 40px, cover;
  background-position: center, center, center;
  background-blend-mode: normal, normal, luminosity;
}

/* Accent underline used for section headings */
.heading-accent {
  position: relative;
  padding-bottom: 0.75rem;
}
.heading-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
  border-radius: 2px;
}
.heading-accent.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Certification badge chip */
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(16,42,67,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(16,42,67,0.12);
}

/* Marquee for certification strip */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Data routing matrix cards */
.matrix-card {
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.matrix-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 12px 24px rgba(16,42,67,0.10);
  transform: translateY(-3px);
}

/* Responsive table wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
}
.table-scroll table {
  min-width: 720px;
}
.table-scroll th {
  white-space: nowrap;
}

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-menu.open {
  max-height: 480px;
}

/* Skip link */
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
}

/* Print-friendly QA stamps */
.stamp {
  border: 2px solid var(--color-navy);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  padding: 0.6rem;
  aspect-ratio: 1 / 1;
  width: 96px;
  text-align: center;
  line-height: 1.1;
}
