/* ==========================================================================
   IDRIS AUTOMATION - MINIMALIST INDUSTRIAL DESIGN SYSTEM (SKF.COM REFERENCE)
   Strict Rules: Minimal text, max 2-line descriptions, 5-second scannability.
   Palette: White (#ffffff), Light Grey (#f8fafc / #f1f5f9), Deep Navy (#0f172a),
            Industrial Blue (#0066b2). No gradients, no glows, no glassmorphism.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-white:       #ffffff;
  --bg-canvas:      #f8fafc;
  --bg-subtle:      #f1f5f9;
  
  --border-subtle:  #e2e8f0;
  --border-medium:  #cbd5e1;
  
  --text-navy:      #0f172a; /* Deep navy / charcoal text */
  --text-secondary: #475569; /* Slate secondary */
  --text-muted:     #64748b;
  
  --industrial-blue:#0066b2; /* Single accent color */
  --blue-hover:     #004f8c;
  --blue-light:     #eff6ff;
  
  --max-width:      1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Imagery: Static, uncluttered presentation without hover-zoom or click state */
img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* Images are purely visual, non-interactive */
  user-select: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 1px Structural Dividers */
.divider-b { border-bottom: 1px solid var(--border-subtle); }
.divider-t { border-top: 1px solid var(--border-subtle); }

/* Buttons */
.btn-primary {
  background-color: var(--industrial-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--industrial-blue);
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-navy);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-medium);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--text-navy);
  background-color: var(--bg-canvas);
}

/* Sticky Header (SKF Calm Industrial) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--industrial-blue);
  background: var(--blue-light);
  padding: 2px 6px;
  border: 1px solid #bfdbfe;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--industrial-blue);
  font-weight: 600;
}

.header-cta .btn-primary {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* Hero Section (Clean Full-width Machine Visual) */
.hero-minimal {
  padding: 80px 0 70px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--industrial-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-navy);
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-image-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.hero-image-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Image label badge is static informational */
.image-label-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  pointer-events: none;
}

/* 4 Solution Tiles Section */
.section-tiles {
  padding: 80px 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

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

.solution-tile {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  /* Static calm card: no blue border on hover */
}

.tile-img-box {
  width: 100%;
  height: 200px;
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
}

.tile-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 8px;
}

.tile-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tile-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--industrial-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tile-link:hover {
  color: var(--blue-hover);
  gap: 8px;
}

/* About Strip (3 Facts) */
.about-strip {
  padding: 48px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.about-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fact-item {
  border-left: 2px solid var(--industrial-blue);
  padding-left: 20px;
}

.fact-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--industrial-blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fact-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.4;
}

/* Contact Band */
.contact-band {
  padding: 60px 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.band-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 4px;
}

.band-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Minimalist Footer */
.site-footer-minimal {
  padding: 40px 0;
  background: #ffffff;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contact-links {
  display: flex;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.footer-contact-links a:hover {
  color: var(--industrial-blue);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .about-facts-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .site-nav { display: none; }
  .tiles-grid { grid-template-columns: 1fr; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Machine Card & Interactive Hover Quick-View
   ========================================================================== */
.machine-card-minimal {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.machine-card-minimal:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.machine-img-container {
  width: 100%;
  height: 250px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.machine-img-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  user-select: none;
}

.machine-card-minimal:hover .machine-img-container img {
  transform: scale(1.03);
}

/* Hover Quick-View Action Badge */
.quick-view-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #0f172a;
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.machine-card-minimal:hover .quick-view-badge {
  opacity: 1;
  transform: translateY(0);
}

.machine-card-content {
  padding: 22px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.machine-card-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.machine-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.machine-card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--industrial-blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Pure Machine Photo Lightbox (Zero Written Text)
   ========================================================================== */
.machine-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.machine-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.machine-modal-dialog {
  background: transparent;
  width: auto;
  max-width: 95vw;
  max-height: 94vh;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.machine-modal-backdrop.open .machine-modal-dialog {
  transform: scale(1);
}

.modal-close-button {
  position: fixed;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10001;
}

.modal-close-button:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: scale(1.08);
}

.modal-main-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 78vh;
}

.modal-main-img-wrapper img {
  max-width: 88vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10000;
}

.modal-nav-arrow:hover {
  background: var(--industrial-blue);
  color: #ffffff;
  border-color: var(--industrial-blue);
  transform: translateY(-50%) scale(1.08);
}

.modal-nav-arrow.prev { left: -58px; }
.modal-nav-arrow.next { right: -58px; }

@media (max-width: 768px) {
  .modal-nav-arrow.prev { left: 8px; }
  .modal-nav-arrow.next { right: 8px; }
  .modal-main-img-wrapper img {
    max-height: 65vh;
    padding: 8px;
  }
}

.modal-thumbnail-strip {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  max-width: 88vw;
  overflow-x: auto;
  padding: 6px 4px;
  justify-content: center;
}

.modal-thumb-btn {
  width: 76px;
  height: 56px;
  background: #ffffff;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.modal-thumb-btn.active,
.modal-thumb-btn:hover {
  opacity: 1;
  border-color: var(--industrial-blue);
  transform: translateY(-2px);
}

.modal-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

