/* ========== Base Layout ========== */
body {
  font-family: system-ui, sans-serif;
  color: #1f2937; /* gray-800 */
  line-height: 1.6;
  margin: 0;
  background: #ffffff;
}

/* Navigation */
nav {
  background: #111827; /* dark gray */
  color: white;
/*  padding: 1rem 2rem; */
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  margin-left: auto;              /* push links to the right */
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: #3b82f6; }

nav .brand {
  font-weight: 700;
  font-size: 1.25rem;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: #3b82f6; /* blue */
}

/* Main Container */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Footer */
footer {
  background: #f3f4f6;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4rem;
}

.logo img {
  height: 60px;   /* control logo size */
  width: auto;    /* keep proportions */
  display: block;
}

/* ========== Hero Section ========== */
.hero {
  background: #f9fafb; /* light gray */
  text-align: center;
  padding: 6rem 1.5rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

.hero .btn {
  margin: 0.5rem;
}

/* ========== Sections ========== */
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #374151;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Alternating backgrounds for sections */
section:nth-of-type(even) {
  background: #f9fafb;
  padding: 3rem 1.5rem;
  margin: 0 -1.5rem;
}

/* ========== Buttons ========== */
.btn {
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #1e40af;
}

.btn.secondary {
  background: #6b7280;
}

.btn.secondary:hover {
  background: #4b5563;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero {
    height: 70vh; /* slightly shorter on small screens */
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  border-radius: 0.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Challenge Section */
.challenge {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin: 4rem 0;
}

.challenge-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.challenge-overlay {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;

  text-align: left;
}

.challenge-overlay h2 {
  text-align: center; /* keep the heading centered */
  margin-bottom: 1rem;
}

.challenge-overlay ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* ===== Solution (split layout) ===== */
.solution {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* media a bit bigger than text */
  gap: 2rem;
  align-items: center;
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.solution-media img,
.solution-media video {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.solution-content h2 {
  margin-top: 0;
}

.solution-content p {
  margin-bottom: 1rem;
}

.solution-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

@media (max-width: 900px) {
  .solution {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* Optional: lightweight filmstrip gallery */
.solution-filmstrip {
  margin-top: 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 33%;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}
.solution-filmstrip img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.4rem;
  scroll-snap-align: start;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem; /* side padding */
}

/* ===== Products ===== */

.products {
  padding: 4rem 0;
}
.products .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.product-groups {
  display: grid;
  gap: 3rem;
}

.product-group h3 {
  margin-bottom: 1rem;
}

/* Responsive grid */
.product-group .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Card */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  padding-bottom: 0.5rem; /* space for name */
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 160px;              /* keeps cards uniform */
  object-fit: contain;
  display: block;
  margin-bottom: 0.5rem;
}

.product-card .name {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hover/focus overlay */
.product-card .specs {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6); /* was 0.75 — lightened for readability */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.product-card .specs p,
.product-card .specs a {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8); /* boost contrast on images */
}

/* Show overlay on hover and keyboard focus */
.product-card:hover .specs,
.product-card:focus-within .specs {
  opacity: 1;
}

/* Datasheet link styled as a button */
.datasheet-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #3b82f6;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.35rem;
  transition: background 0.2s ease;
}
.datasheet-link:hover { background: #2563eb; }
.datasheet-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
  .product-card .specs { transition: none; }
}

/* Reusable centered container (if not added yet) */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Industries */
.industries { padding: 4rem 0; }
.industries .intro { color: #4b5563; margin-bottom: 1.5rem; text-align: center; }

.industry-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.industry-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: grid;
  grid-template-rows: 220px auto; /* image height then content */
}

.industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops nicely */
  display: block;
}

.industry-body {
  padding: 1rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.industry-body h3 { margin: 0.25rem 0 0; }
.industry-body p  { margin: 0; color: #374151; }


/* ===== Proof ===== */

.proof {
  padding: 4rem 0;
  background: #f9fafb;          /* optional: subtle section tint */
}

.proof h2 {
  text-align: left;             /* title left */
  margin: 0 0 0.5rem 0;
}

.proof p {
  text-align: center;           /* intro centered */
  color: #374151;
  max-width: 1000px;
  margin: 0 auto 2rem auto;     /* center + readable width */
}

/* Logo row (centered, wraps nicely) */
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;      /* center the row */
  align-items: center;
  gap: 2rem 3rem;               /* vertical / horizontal spacing */
}

/* Each logo gets a consistent box */
.proof-logo {
  flex: 0 1 120px;              /* ~120px box that can shrink on small screens */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep logos visually uniform */
.proof-logo img {
  max-height: 60px;             /* consistent height across different ratios */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;

  /* optional styling for consistency */
  filter: grayscale(100%);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.proof-logo img:hover {
  opacity: 1;
  filter: grayscale(0%);        /* colorize on hover (optional) */
  transform: translateY(-2px);  /* subtle lift (optional) */
}

/* ---- Desktop rule: keep all logos on ONE row if viewport is wide enough ---- */
@media (min-width: 1100px) {
  .proof-logos {
    flex-wrap: nowrap;             /* no wrapping on wide screens */
    justify-content: center;
    gap: 2rem 2.25rem;             /* a bit tighter gaps if needed */
  }
  .proof-logo { flex: 0 0 120px; } /* fixed-width boxes keep row stable */
}

/* Optional: slightly smaller boxes on narrow screens */
@media (max-width: 640px) {
  .proof-logo { flex-basis: 100px; }
  .proof-logo img { max-height: 52px; }
}

