/* ============================================================
   KOMTECH WEBSITE — MAIN STYLESHEET
   style.css
   ============================================================ */

/* Font */

@font-face {
  font-family: 'Ardestine';
  src: url('../fonts/ARDESTINE.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: #222;
}


/* ─── PAGE LOADING BAR ──────────────────────────────────────── */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--light-blue, #1e88e5);
  z-index: 10000;
  opacity: 1;
  transition: width 0.8s ease, opacity 0.3s ease 0.15s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #page-loader { transition: none; }
}


/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  background: #d3c2c2;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar.scrolled {
  height: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled .navbar-logo {
  font-size: 34px;
  transition: font-size 0.3s ease;
}

.navbar.scrolled .navbar-links > li > a,
.navbar.scrolled .navbar-links > li > button {
  height: 50px;
  font-size: 13px;
  transition: height 0.3s ease, font-size 0.3s ease;
}

.navbar {
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.navbar-logo {
  font-size: 48px;
  font-weight: 1200;
  font-style: italic;
  text-decoration: none;
  margin-right: 50px;
  flex-shrink: 0;
  font-family: 'Ardestine', sans-serif;
}

.navbar-logo span.kom  { color: #3399FF; }
.navbar-logo span.tech { color: #FF3300; }

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
}

.navbar-links > li > a,
.navbar-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  height: 70px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #222;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-links > li > a:hover,
.navbar-links > li > button:hover { color: #1565c0; }

.navbar-links > li.active > a {
  color: #1565c0;
  border-bottom: 3px solid #1565c0;
}

/* Chevron arrow */
.chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  transition: transform 0.3s;
  margin-top: -3px;
}

.products-nav.open .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Search bar */
.navbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 24px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 9px 20px;
}

.navbar-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  width: 220px;
  color: #333;
}

/* Live search results dropdown (shared by navbar + mobile drawer search) */
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 340px;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(21,101,192,0.18);
  max-height: 440px;
  overflow-y: auto;
  z-index: 1200;
}
.search-results.open { display: block; }

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: #1a2734;
  border-bottom: 1px solid #eef2f6;
  transition: background 0.15s, color 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover {
  background: #f5f8fc;
  color: var(--light-blue, #1e88e5);
}
.search-result-name { font-weight: 600; font-size: 18px; }
.search-result-tag {
  font-size: 14px;
  color: #8a96a3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.search-no-results {
  padding: 18px 20px;
  font-size: 16px;
  color: #8a96a3;
}

/* ─── MEGA MENU ─────────────────────────────────────────────── */
.mega-menu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #2b2b2b;
  color: #fff;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform-origin: top center;
  transition: top 0.3s ease;
}

/* Animation runs each time the menu opens */
.mega-menu.open { animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* When the navbar shrinks on scroll, keep the menu flush to its bottom */
.navbar.scrolled ~ .mega-menu { top: 50px; }

.mega-menu.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-28px) scaleY(0.9); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* ─── PAGE CROSS-FADE ───────────────────────────────────────── */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.55s ease; }
body.page-leaving { opacity: 0; transition: opacity 0.55s ease; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.page-leaving { transition: none; }
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 50px 80px;
  gap: 60px;
  align-items: start;
  min-height: 440px;
}

/* Cross-fade the middle/right columns when drilling between menu levels */
.mega-col-middle,
.mega-col-right { transition: opacity 0.22s ease; }

/* Left column */
.mega-col-left h2 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #fff;
}

.mega-col-left p {
  font-size: 16px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mega-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #555;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.mega-overview-link:hover { color: #64b5f6; border-color: #64b5f6; }

/* Middle column — single-column drill-down list */
.mega-col-middle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mega-col-middle .has-sub { position: relative; }

/* Back link (level 2) */
.mega-back {
  align-self: flex-start;
  font-size: 17px;
  font-weight: 600;
  color: #bbb !important;
  text-decoration: none;
  padding: 4px 0 12px !important;
  border-bottom: none !important;
  transition: color 0.18s, gap 0.18s;
}
.mega-back:hover { color: #fff !important; padding-left: 0 !important; }

/* Group title header (level 2) */
.mega-group-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  padding: 0 0 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.mega-col-middle a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 19px;
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
  transition: color 0.18s, padding-left 0.18s;
}

.mega-col-middle a:hover { color: #fff; padding-left: 5px; }

.mega-col-middle a .item-arrow {
  font-size: 19px;
  color: #555;
  flex-shrink: 0;
  margin-left: 6px;
  transition: color 0.18s;
}

.mega-col-middle a:hover .item-arrow { color: #64b5f6; }

/* Sub-dropdown */
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0; left: 100%;
  min-width: 210px;
  background: #222;
  border-left: 3px solid #1565c0;
  border-radius: 0 6px 6px 0;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.4);
  z-index: 10;
  padding: 6px 0;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.has-sub:hover .sub-dropdown { display: block; }

.sub-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 15px;
  color: #bbb;
  text-decoration: none;
  border-bottom: 1px solid #2e2e2e;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.sub-dropdown a:last-child { border-bottom: none; }

.sub-dropdown a:hover { color: #fff; background: #2e2e2e; padding-left: 20px; }

.sub-dropdown a .sub-arrow { font-size: 12px; color: #555; transition: color 0.15s; }
.sub-dropdown a:hover .sub-arrow { color: #64b5f6; }

.has-sub:hover > a { color: #fff; padding-left: 5px; }
.has-sub:hover > a .item-arrow { color: #64b5f6; }

/* Right column — feature card */
.mega-col-right { display: flex; flex-direction: column; }

.feature-card {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.feature-card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.feature-card-slide.active { opacity: 1; }

.feature-card-body { padding: 16px; }

.feature-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  margin-bottom: 6px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64b5f6;
  text-decoration: none;
  transition: gap 0.2s;
}

.feature-card-link:hover { gap: 10px; }

/* Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

.menu-backdrop.open { display: block; }

/* ─── PAGE WRAPPER ──────────────────────────────────────────── */
.page-content { margin-top: 0px; }

/* ─── HERO SLIDER ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: #222;
}

/* Side gradient — darkens the left & right edges of the IMAGE only.
   Sits above the photo but below the writing (see z-index layering). */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;   /* clicks pass through to buttons/arrows */
  z-index: 2;
  background: linear-gradient(to right,
    rgba(10, 22, 40, 0.75) 0%,
    rgba(10, 22, 40, 0)   18%,
    rgba(10, 22, 40, 0)   82%,
    rgba(10, 22, 40, 0.75) 100%);
}

.slides-wrapper {
  display: flex;
  height: 100%;
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.slide:nth-child(odd)  { background: #2a3a4a; }
.slide:nth-child(even) { background: #1a2a3a; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(10,20,40,0.82) 0%, rgba(10,20,40,0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 80px;
}

/* Image slide layer — slow zoom-in (Ken Burns) for 5s, then holds still */
.slide-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  /* Keep this on its own GPU layer so hovering the buttons (which repaint the
     slide) can't re-rasterize and restart the zoom animation. */
  will-change: transform;
  backface-visibility: hidden;
}

/* Zoom runs each time a slide becomes active (JS adds the class).
   Going forward zooms in; going back zooms out from where it was. */
.slide-img.zoom {
  animation: heroZoom 6s ease-out forwards;
}
.slide-img.zoom-out {
  animation: heroZoomOut 6s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@keyframes heroZoomOut {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Image slides: show the photo fully (no dark tint), keep the writing on top */
.hero-overlay.no-tint,
body.theme-steel .hero-overlay.no-tint { background: none; }
.hero-overlay.no-tint .hero-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}

.hero-text { max-width: 520px; }

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #90caf9;
  background: rgba(21,101,192,0.25);
  border: 1px solid rgba(21,101,192,0.4);
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: #1565c0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover { background: #0d47a1; }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.hero-arrow:hover { background: rgba(0,0,0,0.6); }
.hero-arrow.left  { left: 20px; }
.hero-arrow.right { right: 20px; }

.hero-progress {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  max-width: 60%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  z-index: 10;
}

.hero-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: #1565c0;
}

/* ─── PARTNERSHIP SECTION ───────────────────────────────────── */
.partnership {
  background: var(--page-bg);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partnership-text .section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1565c0;
  font-weight: 600;
  margin-bottom: 12px;
}

.partnership-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 20px;
}

.partnership-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}

.partnership-text a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1565c0;
  text-decoration: none;
  margin-top: 10px;
  border-bottom: 2px solid #1565c0;
  padding-bottom: 3px;
  transition: gap 0.2s;
}

.partnership-wrapper {
  background: var(--page-bg);
  width: 100%;
  padding: 80px 0;
}

.partnership {
  max-width: 1100px;        /* text width — keeps it readable */
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;
  text-align: center;
  gap: 40px;
}

.partnership-text {
  width: 100%;              /* text stretches full width of container */
}

.partnership-image {
  width: 100%;              /* image stretches full width below text */
  max-width: 700px;         /* but doesn't get too huge */
}

.partnership-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ─── VIDEO SECTIONS ────────────────────────────────────────── */
.video-section { padding: 70px 80px; background: var(--page-bg); }
.video-section.alt { background: #f7f8fa; }

/* Embedded video players (match the placeholder boxes) */
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: #000;
  display: block;
  object-fit: contain;   /* show the whole video, no cropping */
}

.video-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1565c0;
  text-align: center;
  margin-bottom: 36px;
}

.video-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

.video-single {
  max-width: 1000px;
  margin: 0 auto;
}

.video-placeholder {
  background: #1a1a1a;
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid #2a2a2a;
}

.video-placeholder:hover { background: #222; border-color: #1565c0; }

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.video-placeholder:hover .play-circle { border-color: #1565c0; background: rgba(21,101,192,0.2); }

.video-placeholder-label {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── IMAGE PLACEHOLDERS (3-up) ─────────────────────────────── */
.image-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

.image-placeholder {
  background: #e8eaee;
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 2px dashed #c2c7d0;
}

.image-placeholder:hover { background: #dfe3ea; border-color: #1565c0; }

.image-icon {
  font-size: 34px;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.image-placeholder:hover .image-icon { opacity: 0.7; }

.image-placeholder-label {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Photo cards — drop schunk-1/2/3.jpg into the images folder */
.image-card {
  background: #e8eaee;
  border-radius: 10px;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.image-card:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .image-grid-3 { grid-template-columns: 1fr; max-width: 500px; }
}

/* ─── IMAGE LIGHTBOX (homepage photos) ──────────────────────── */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lightboxFadeIn 0.25s ease;
}

.img-lightbox.open { display: flex; }

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.img-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.img-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ─── BRANDS SECTION ────────────────────────────────────────── */
.brands-section {
  padding: 60px 80px;
  background: var(--page-bg);
  border-top: 1px solid #eee;
}

.section-header { text-align: center; margin-bottom: 40px; }

.section-header .section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1565c0;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #777;
  max-width: 500px;
  margin: 0 auto;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.brand-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  overflow: hidden;
}

.brand-card:hover {
  border-color: #1565c0;
  box-shadow: 0 4px 16px rgba(21,101,192,0.1);
  transform: translateY(-2px);
}

.brand-card img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.brand-img-placeholder span { font-size: 12px; font-weight: 700; color: #555; text-align: center; padding: 0 8px; }
.brand-img-placeholder .img-icon { font-size: 20px; color: #bbb; }

.brand-Komax img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Mecal img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-ZandF {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%
}

.brand-ZandF img {
  max-height: 90px;
  width: auto;
  display: block;
  margin: 0;
  max-width: 100%
}

.brand-Kabatec img {
  max-height: 75px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Schunk img {
  max-height: 90px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Schleuniger img {
  max-height: 90px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Mecalbi img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Wezag img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Lake img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-WDT img {
  max-height: 90px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Ulmer img {
  max-height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}

.brand-Runpotec img {
  max-height: 90px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%
}



/* ─── FOOTER ────────────────────────────────────────────────── */
.footer { background: #1565c0; padding: 50px 80px 0; }

.footer-cat {
  position: relative;
  display: inline-block;
  width: fit-content;
}

.footer-cat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF6B00;
  transition: width 0.3s ease;
}

.footer-cat:hover::after {
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 16px;
}

.footer-cat {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cat:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.footer-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.footer-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s;
  width: fit-content;
}

.footer-yt:hover { background: #c62828; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ============================================================
   OPTION 5 — CLEAN & MODERN: Steel Blue & Light Grey
   Scoped to the homepage via <body class="theme-steel">.
   Remove the class from index.html to revert instantly.
   ============================================================ */
body.theme-steel {
  --steel-blue: #1b3a5c;       /* dark steel blue */
  --steel-blue-dark: #142c46;  /* darker hover */
  --light-blue: #1e88e5;       /* bright accent / buttons */
  --light-blue-dk: #1565c0;    /* button hover */
  --red-accent: #e53935;
  --steel-grey: #607d8b;
  --light-grey: #eceff1;
  --page-bg: #f5f6f8;          /* soft light-grey page background */
}

/* Navbar → clean white */
body.theme-steel .navbar { background: #ffffff; }
body.theme-steel .navbar-links > li > a,
body.theme-steel .navbar-links > li > button { color: #2a2a2a; }
body.theme-steel .navbar-links > li > a:hover,
body.theme-steel .navbar-links > li > button:hover { color: var(--light-blue); }
body.theme-steel .navbar-links > li.active > a {
  color: var(--light-blue);
  border-bottom-color: var(--light-blue);
}
body.theme-steel .navbar-search {
  background: var(--light-grey);
  border-color: #dde3e8;
}

/* Hero → steel-blue gradient overlay */
body.theme-steel .hero-overlay {
  background: linear-gradient(90deg,
    rgba(20,44,70,0.92) 0%,
    rgba(27,58,92,0.55) 55%,
    rgba(27,58,92,0.12) 100%);
}
body.theme-steel .hero-tag {
  color: #bbdefb;
  background: rgba(30,136,229,0.22);
  border-color: rgba(30,136,229,0.45);
}
body.theme-steel .hero-progress-bar { background: var(--light-blue); }
body.theme-steel .hero-sub {
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.82);
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: none;   /* not needed now there's a light backing */
}

/* Buttons */
body.theme-steel .btn-primary { background: var(--light-blue); }
body.theme-steel .btn-primary:hover { background: var(--light-blue-dk); }
body.theme-steel .btn-outline {
  background: var(--steel-blue);
  border-color: var(--steel-blue);
  color: #fff;
}
body.theme-steel .btn-outline:hover {
  background: var(--steel-blue-dark);
  border-color: var(--steel-blue-dark);
}

/* Blue accents (tags, titles, links) → light blue */
body.theme-steel .partnership-text .section-tag,
body.theme-steel .section-header .section-tag,
body.theme-steel .video-section-title { color: var(--light-blue); }
body.theme-steel .partnership-text a {
  color: var(--light-blue);
  border-bottom-color: var(--light-blue);
}

/* Alternating section background → light grey */
body.theme-steel .video-section.alt { background: var(--light-grey); }

/* Footer → steel blue */
body.theme-steel .footer { background: var(--steel-blue); }

/* Mega-menu → navy blue with white text */
body.theme-steel .mega-menu { background: var(--steel-blue); }

body.theme-steel .mega-col-left h2,
body.theme-steel .mega-col-middle a,
body.theme-steel .sub-dropdown a,
body.theme-steel .feature-card-title,
body.theme-steel .mega-overview-link { color: #fff; }

body.theme-steel .mega-col-left p { color: rgba(255,255,255,0.85); }
body.theme-steel .feature-card-tag { color: rgba(255,255,255,0.6); }

/* Dividers / arrows tuned for navy */
body.theme-steel .mega-col-middle a { border-bottom-color: rgba(255,255,255,0.15); }
body.theme-steel .mega-col-middle a .item-arrow,
body.theme-steel .sub-dropdown a .sub-arrow { color: rgba(255,255,255,0.45); }

/* Sub-dropdown + feature card → darker navy */
body.theme-steel .sub-dropdown {
  background: var(--steel-blue-dark);
  border-left-color: var(--light-blue);
}
body.theme-steel .sub-dropdown a { border-bottom-color: rgba(255,255,255,0.12); }
body.theme-steel .sub-dropdown a:hover { background: rgba(255,255,255,0.12); }

body.theme-steel .feature-card { background: var(--steel-blue-dark); }
body.theme-steel .feature-card-img {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--steel-blue) 100%);
}

/* ============================================================
   MOBILE / RESPONSIVE  (≤ 768px)
   Hamburger button + slide-in drawer are injected by main.js;
   these rules style them and reflow the hero & footer.
   ============================================================ */

/* Hidden on desktop — only the media query below reveals them */
.nav-hamburger { display: none; }
.mobile-nav,
.mobile-nav-backdrop { display: none; }

@media (max-width: 768px) {

  /* Safety net: never allow sideways scroll on a phone, whatever a
     stray wide element or the off-canvas drawer might do. */
  body { overflow-x: hidden; }

  /* ─── Navbar ─────────────────────────────────────────────── */
  .navbar { padding: 0 18px; height: 64px; }
  .navbar.scrolled { height: 56px; }
  .navbar-logo { font-size: 32px; margin-right: 0; }
  .navbar.scrolled .navbar-logo { font-size: 28px; }

  /* Desktop nav + search hide; their content moves into the drawer */
  .navbar-links,
  .navbar-search { display: none; }

  /* The desktop mega-menu never shows on a phone */
  .mega-menu,
  .menu-backdrop { display: none !important; }

  /* Hamburger */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 9px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-hamburger span {
    display: block;
    width: 100%; height: 3px;
    background: #1565c0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  body.mobile-nav-open .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.mobile-nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.mobile-nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Lock the page behind the open drawer */
  body.mobile-nav-open { overflow: hidden; }

  /* ─── Drawer backdrop ────────────────────────────────────── */
  .mobile-nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1099;
  }
  body.mobile-nav-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }

  /* ─── Drawer panel ───────────────────────────────────────── */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 84%; max-width: 340px;
    background: #fff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-nav-open .mobile-nav { transform: translateX(0); }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
  }
  .mobile-nav-logo {
    font-family: 'Ardestine', sans-serif;
    font-size: 30px; font-weight: 1200; font-style: italic;
  }
  .mobile-nav-logo .kom  { color: #3399FF; }
  .mobile-nav-logo .tech { color: #FF3300; }
  .mobile-nav-close {
    background: none; border: none; cursor: pointer;
    font-size: 30px; line-height: 1; color: #555;
    width: 40px; height: 40px;
  }

  .mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 18px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 9px 16px;
  }
  .mobile-nav-search input {
    border: none; background: none; outline: none;
    font-size: 15px; width: 100%; color: #333;
  }

  .mobile-nav-links { padding: 8px 0 32px; }

  /* Simple top-level links */
  .m-link {
    display: block;
    padding: 14px 22px;
    font-size: 16px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
  }
  .m-link.active { color: #1565c0; }

  /* Products accordion */
  .m-acc-top,
  .m-group-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none; border: none; cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
  }
  .m-acc-top {
    padding: 14px 22px;
    font-size: 16px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .m-group-top {
    padding: 13px 22px 13px 30px;
    font-size: 15px; font-weight: 600;
    color: #333;
    background: #fafafa;
  }
  .m-chev {
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .m-acc.open  > .m-acc-top  .m-chev,
  .m-group.open > .m-group-top .m-chev { transform: rotate(-135deg); }

  .m-acc-body,
  .m-group-body { display: none; }
  .m-acc.open  > .m-acc-body,
  .m-group.open > .m-group-body { display: block; }

  .m-acc-body > a,
  .m-group-body > a {
    display: block;
    padding: 12px 22px 12px 42px;
    font-size: 14.5px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f3f3f3;
  }
  .m-acc-body > a.m-all {
    font-weight: 600;
    color: #1565c0;
    padding-left: 30px;
  }

  /* ─── Hero ───────────────────────────────────────────────── */
  .hero { height: 460px; }
  .hero-overlay { padding: 0 22px; }
  .hero-text { max-width: 100%; }
  .hero-tag { margin-bottom: 14px; }
  .hero-title { font-size: 30px; line-height: 1.18; margin-bottom: 12px; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; max-width: 100%; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { padding: 11px 20px; font-size: 14px; }
  .hero-arrow { display: none; }   /* arrows overlap text on narrow screens; auto-play continues */

  /* ─── Footer ─────────────────────────────────────────────── */
  .footer { padding: 40px 22px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }

  /* ─── Video + Brands sections ───────────────────────────── */
  .video-section { padding: 50px 22px; }
  .video-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .brands-section { padding: 40px 22px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ─── Partnership section ───────────────────────────────── */
  .partnership { padding: 0 22px; }
  /* Flat banner image doesn't read well at phone width (same logos
     already shown properly, responsively, in Associated Brands below) */
  .partnership-image { display: none; }
}

/* ============================================================
   SCROLL REVEAL — sections drift up + fade in as they enter view
   Only active when <html> has .js-reveal (set by an inline script,
   so it's scoped per-page and degrades gracefully without JS).
   ============================================================ */
.js-reveal .reveal {
  transform: translateY(120px);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.js-reveal .reveal.in-view {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
