/* =====================================================================
   Home hero — expanding panels (components/hero-panels.blade.php)
   ===================================================================== */
.nn-hero {
  position: relative;
  background: #0c0c0d;
  height: 100svh;
  min-height: 620px;
  max-height: 1000px;
  padding: 72px 12px 12px;
  overflow: hidden;
}

.nn-hero__stage {
  display: flex;
  gap: 10px;
  height: 100%;
}

/* ---- Panels ---- */
.nn-hero__panel {
  position: relative;
  flex: 0 0 92px;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2724, #121212);
  isolation: isolate;
  transition: flex-grow 0.85s cubic-bezier(0.65, 0, 0.25, 1);
}
.nn-hero__panel.is-active { flex-grow: 1; }

.nn-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  object-position: center 22%;
  transform: scale(1.12);
  filter: saturate(0.8) brightness(0.72);
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.9s ease;
  z-index: -2;
}
.nn-hero__panel.is-active .nn-hero__img {
  transform: scale(1);
  filter: none;
}

.nn-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.25) 42%, rgba(10, 10, 12, 0.35) 62%, rgba(10, 10, 12, 0.9) 100%);
  transition: background 0.8s ease;
}
.nn-hero__panel.is-active .nn-hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.45) 38%, rgba(8, 8, 10, 0.08) 70%, transparent 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.25) 32%, transparent 55%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, transparent 22%);
}

/* ---- Collapsed tab ---- */
.nn-hero__tab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 26px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.nn-hero__panel.is-active .nn-hero__tab { opacity: 0; pointer-events: none; }
.nn-hero__tab:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 22px; }

.nn-hero__tab-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nn-hero__tab-label {
  margin: 18px 0 auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 15px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  max-height: calc(100% - 130px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-hero__tab-plus {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.nn-hero__tab:hover .nn-hero__tab-plus { background: #fff; color: #111; transform: rotate(90deg); }

/* ---- Open panel body ---- */
.nn-hero__body {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.nn-hero__panel.is-active .nn-hero__body {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.3s, visibility 0s;
}

.nn-hero__corner {
  position: absolute;
  top: 28px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 15px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.3px;
}

.nn-hero__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(28px, 7vw, 120px);
  width: min(700px, 62%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 36px;
}

.nn-hero__heading {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 4.1vw, 66px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  max-width: 13ch;
}

.nn-hero__desc,
.nn-hero__actions,
.nn-hero__shop { margin-left: clamp(0px, 9vw, 140px); }

.nn-hero__desc {
  margin-top: 26px;
  margin-bottom: 0;
  max-width: 460px;
  font: 400 15.5px/1.65 'Inter', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.86);
}

.nn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.nn-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: 600 14.5px/1 'Inter', system-ui, sans-serif;
  text-decoration: none;
  border: 1px solid #fff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nn-hero__cta:hover { transform: translateY(-2px); color: #111; }
.nn-hero__cta--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.nn-hero__cta--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* "Shop by" strip with the auto-play progress line */
.nn-hero__shop { margin-top: clamp(36px, 7vh, 80px); }
.nn-hero__shop-line {
  display: block;
  width: min(560px, 100%);
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.nn-hero__shop-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  /* grows with transform (not width) so the 7-second line never forces a page re-layout */
  transform: scaleX(0);
  transform-origin: left center;
}
.nn-hero__stage.is-timing .nn-hero__panel.is-active .nn-hero__shop-fill {
  transform: scaleX(1);
  transition: transform var(--nn-hero-interval, 7000ms) linear;
}
.nn-hero__shop-title {
  display: block;
  margin: 16px 0 14px;
  font: 600 15px/1 'Inter', system-ui, sans-serif;
}
.nn-hero__shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.nn-hero__shop-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font: 700 13px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nn-hero__shop-links a:hover { color: #fff; border-color: #fff; }

/* "Up next" card */
.nn-hero__next-card {
  position: absolute;
  right: 22px;
  top: 47%;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 400px;
  padding: 12px 22px 12px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.nn-hero__next-card:hover { transform: translateY(-3px); }
.nn-hero__next-card img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  flex: 0 0 auto;
}
.nn-hero__next-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nn-hero__next-text small { font: 600 11px/1 'Inter', system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: #666; }
.nn-hero__next-text span { font: 500 16px/1.35 'Inter', system-ui, sans-serif; color: #1a1a1a; }
.nn-hero__next-text strong { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 'Inter', system-ui, sans-serif; margin-top: 4px; }

/* Arrows */
.nn-hero__arrows {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: flex;
  gap: 14px;
}
.nn-hero__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nn-hero__arrow:hover { background: #fff; color: #111; }

/* Content rises in after the panel opens */
.nn-hero__rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nn-hero__panel.is-active .nn-hero__rise {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nn-hero__panel.is-active .nn-hero__heading { transition-delay: 0.42s; }
.nn-hero__panel.is-active .nn-hero__desc { transition-delay: 0.52s; }
.nn-hero__panel.is-active .nn-hero__actions { transition-delay: 0.6s; }
.nn-hero__panel.is-active .nn-hero__shop { transition-delay: 0.68s; }
.nn-hero__panel.is-active .nn-hero__next-card { transition-delay: 0.75s; }

/* ---- Tablet ---- */
@media (max-width: 1280px) {
  .nn-hero__next-card { width: 340px; }
  .nn-hero__next-card img { width: 120px; height: 96px; }
}
@media (max-width: 1100px) {
  .nn-hero__panel { flex-basis: 70px; }
  .nn-hero__next-card { display: none; }
  .nn-hero__content { width: min(640px, 82%); }
  .nn-hero__tab-plus { width: 42px; height: 42px; }
}

/* ---- Phone: panels stack, closed ones become slim bars ---- */
@media (max-width: 767px) {
  .nn-hero { padding: 64px 8px 8px; min-height: 640px; max-height: none; }
  .nn-hero__stage { flex-direction: column; gap: 8px; }
  .nn-hero__panel { flex-basis: 54px; border-radius: 18px; }
  .nn-hero__panel { transition: flex-grow 0.75s cubic-bezier(0.65, 0, 0.25, 1); }

  .nn-hero__tab { flex-direction: row; padding: 0 12px 0 20px; }
  .nn-hero__tab-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0 auto 0 14px;
    font-size: 14px;
    max-width: calc(100% - 90px);
    max-height: none;
  }
  .nn-hero__tab-plus { width: 34px; height: 34px; }
  .nn-hero__tab-plus svg { width: 16px; height: 16px; }

  .nn-hero__corner { top: 18px; right: 20px; font-size: 13px; }
  .nn-hero__content {
    left: 20px;
    right: 20px;
    width: auto;
    justify-content: flex-end;
    padding: 60px 0 24px;
  }
  .nn-hero__heading { font-size: clamp(28px, 8.4vw, 38px); max-width: none; }
  .nn-hero__desc,
  .nn-hero__actions,
  .nn-hero__shop { margin-left: 0; }
  .nn-hero__desc { font-size: 14px; margin-top: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .nn-hero__actions { margin-top: 18px; }
  .nn-hero__cta { height: 44px; padding: 0 20px; font-size: 13.5px; }
  .nn-hero__cta--ghost { display: none; }
  .nn-hero__shop { margin-top: 22px; }
  .nn-hero__shop-title { display: none; }
  .nn-hero__shop-links { flex-wrap: nowrap; overflow-x: auto; gap: 22px; margin-top: 14px; scrollbar-width: none; }
  .nn-hero__shop-links::-webkit-scrollbar { display: none; }
  .nn-hero__shop-links a { font-size: 11.5px; white-space: nowrap; }
  .nn-hero__arrows { display: none; }
  .nn-hero__panel.is-active .nn-hero__shade {
    background: linear-gradient(0deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.6) 38%, rgba(8, 8, 10, 0.1) 65%, rgba(8, 8, 10, 0.35) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-hero__panel, .nn-hero__img, .nn-hero__rise, .nn-hero__body { transition: none !important; }
}
