/**
 * NM-D Theme
 * Author: Paweł Nosko
 * Company: Design Cart
 * Website: https://www.designcart.pl
 */

.nmd-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #5b3fc8;
}

/* ── Right purple panel ── */
.nmd-intro__right {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #5b3fc8;
  color: #fff;
  overflow: hidden;
}

/* Top-right actions — plain icons like mockup */
.nmd-intro__actions {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nmd-intro__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s ease;
  position: relative;
}
.nmd-intro__action:hover { opacity: .7; }
.nmd-intro__cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #00c8e8;
  color: #1a1c2e;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Content column starting at 50% */
.nmd-intro__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  width: min(460px, 48vw);
}
.nmd-intro__search-title {
  margin: 0 0 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Search — scoped to intro so slide-menu search keeps its own styles */
.nmd-intro .nmd-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  max-width: 300px;
  margin-bottom: 2rem;
}
.nmd-intro .nmd-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 1rem 0.5rem 1rem 1rem;
  font-size: .875rem;
  color: #1a1c2e;
  font-family: 'DM Sans', sans-serif;
}
.nmd-intro .nmd-search__btn {
  width: 36px;
  height: 36px;
  margin: 6px;
  border-radius: 999px;
  border: 0;
  background: #5b3fc8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nmd-intro .nmd-search__results {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 280px;
  width: max(100%, 320px);
  background: #fff;
  color: #1a1c2e;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  z-index: 50;
  overflow: hidden;
}
.nmd-intro .nmd-search__results[hidden] { display: none !important; }
.nmd-intro .nmd-search__results a {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .65rem .85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}
.nmd-intro .nmd-search__results img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f8f9fc;
  border-radius: 8px;
}
.nmd-intro .nmd-search__results strong { display: block; font-size: .85rem; }
.nmd-intro .nmd-search__results span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: #5b3fc8;
}
.nmd-intro .nmd-search__empty {
  padding: .85rem;
  color: #6b6d8a;
  font-size: .85rem;
}

/* Nav blocks — stacked vertically like mockup */
.nmd-intro__nav-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nmd-intro__nav-title {
  display: inline-block;
  margin: 0 0 .5rem;
  padding-bottom: .25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 4px solid #3ab6ff;
}
.nmd-intro__nav-title--plain { border-bottom: 0; padding-bottom: 0; }

/* Horizontal NavDots */
.nmd-intro__nav-dots,
.nmd-intro__contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: 'DM Sans', sans-serif;
}
.nmd-intro__nav-dots a,
.nmd-intro__contact-row a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: opacity .2s ease;
}
.nmd-intro__nav-dots a:hover,
.nmd-intro__contact-row a:hover { opacity: .8; }
.nmd-intro__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
  display: inline-block;
}

/* Rotating gear */
.nmd-intro__gear {
  position: absolute;
  top: calc(-80px - 15vh);
  right: calc(-80px - 15vw);
  z-index: 0;
  pointer-events: none;
}
.nmd-intro__gear-svg {
  display: block;
  animation: nmd-gear-spin 40s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes nmd-gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Decorative tools */
.nmd-intro__wrench {
  position: absolute;
  bottom: -10px;
  right: -10px;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  transform: rotate(-30deg);
}
.nmd-intro__wrench svg,
.nmd-intro__settings svg { display: block; }
.nmd-intro__settings {
  position: absolute;
  bottom: 120px;
  right: 280px;
  z-index: 0;
  pointer-events: none;
  opacity: .15;
}

/* ── Left gray clipped panel ── */
.nmd-intro__left {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #d5d7e4;
  clip-path: polygon(0% 0%, 50% 0%, 40% 10%, 40% 85%, 35% 100%, 0% 100%);
  pointer-events: none;
  overflow: hidden;
}
.nmd-intro__left a,
.nmd-intro__left img { pointer-events: auto; }

.nmd-intro__logo {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 20;
}
.nmd-intro__logo img {
  height: clamp(56px, 8vw, 88px);
  width: auto;
  display: block;
}

.nmd-intro__logo-large {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nmd-intro__logo-large img {
  height: clamp(120px, 18vw, 240px);
  max-width: 80%;
  width: auto;
  object-fit: contain;
}

.nmd-intro__partners {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 42%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  z-index: 10;
}
.nmd-intro__partners img {
  height: clamp(28px, 4vw, 42px);
  max-width: 110px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter .3s ease;
}
.nmd-intro__partners img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Scroll indicator — centered */
.nmd-intro__scroll {
  position: absolute;
  z-index: 30;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  animation: nmd-scroll-bounce 2s ease-in-out infinite;
}
.nmd-intro__scroll-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 24px rgba(0,0,0,.22), 0 0 0 4px rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nmd-intro__scroll-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
@keyframes nmd-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(11px); }
}

@media (min-width: 768px) {
  .nmd-intro__scroll { display: flex; }
}

@media (max-width: 900px) {
  .nmd-intro {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .nmd-intro__left {
    position: relative;
    height: 34vh;
    min-height: 220px;
    clip-path: none;
  }
  .nmd-intro__right {
    position: relative;
    min-height: 70vh;
    padding: 5rem 1.25rem 3rem;
  }
  .nmd-intro__content {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 420px;
    padding: 0;
  }
  .nmd-intro__gear,
  .nmd-intro__wrench,
  .nmd-intro__settings,
  .nmd-intro__logo-large { display: none; }
  .nmd-intro__partners { width: 100%; }
}
/* bust 1786371133 */
