/**
 * Mediaspot NC Nails — Hero Slider Widget Stylesheet
 * Loaded ONLY on pages that render the NC Nails Hero Slider widget.
 * Matches ncnails/index.html design tokens & layout 1:1.
 */

.mediaspot-ncnails-hero-scope {
  --nc-white: #FFFFFF;
  --nc-soft: #F3F4F4;
  --nc-accent: #D8DADC;
  --nc-gray: #686B70;
  --nc-ink: #181818;
  --nc-rose: #E2ADB2;
  --nc-rose-dark: #c98f96;
  --nc-radius: 18px;
  --nc-shadow: 0 24px 60px -28px rgba(24, 24, 24, .28);
  --nc-ease: cubic-bezier(.22, .61, .36, 1);
  --nc-wrap-max: 1280px;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--nc-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

.mediaspot-ncnails-hero-scope *,
.mediaspot-ncnails-hero-scope *::before,
.mediaspot-ncnails-hero-scope *::after {
  box-sizing: border-box;
}

.mediaspot-ncnails-hero-scope img {
  display: block;
  max-width: 100%;
}

.mediaspot-ncnails-hero-scope a {
  text-decoration: none;
  color: inherit;
}

.mediaspot-ncnails-hero-scope button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* ============ HERO SECTION ============ */
.mediaspot-ncnails-hero-scope .hero {
  position: relative;
  height: min(92vh, 880px);
  min-height: 600px;
  background: var(--nc-ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.mediaspot-ncnails-hero-scope .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--nc-ease), visibility 1s;
  pointer-events: none;
}

.mediaspot-ncnails-hero-scope .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mediaspot-ncnails-hero-scope .slide > img,
.mediaspot-ncnails-hero-scope .slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

.mediaspot-ncnails-hero-scope .slide.active > img,
.mediaspot-ncnails-hero-scope .slide.active .slide-bg {
  animation: ncKenburns 11s var(--nc-ease) forwards;
}

@keyframes ncKenburns {
  from {
    transform: scale(1.12) translateX(1.5%);
  }
  to {
    transform: scale(1) translateX(0);
  }
}

.mediaspot-ncnails-hero-scope .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 24, 24, .82) 0%,
    rgba(24, 24, 24, .32) 42%,
    rgba(24, 24, 24, .06) 72%
  );
  z-index: 2;
}

.mediaspot-ncnails-hero-scope .slide-content {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  right: 24px;
  bottom: clamp(110px, 15vh, 160px);
  z-index: 3;
  max-width: 900px;
}

.mediaspot-ncnails-hero-scope .slide.active .slide-content {
  animation: ncRise .9s .25s var(--nc-ease) both;
}

@keyframes ncRise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mediaspot-ncnails-hero-scope .slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--nc-rose);
  margin-bottom: 14px;
}

.mediaspot-ncnails-hero-scope .slide-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--nc-rose);
}

.mediaspot-ncnails-hero-scope .slide-content h1,
.mediaspot-ncnails-hero-scope .slide-content .hero-heading {
  color: var(--nc-white);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .4);
}

.mediaspot-ncnails-hero-scope .slide-content h1 em,
.mediaspot-ncnails-hero-scope .slide-content .hero-heading em {
  font-style: italic;
  font-weight: 700;
  color: var(--nc-rose);
}

.mediaspot-ncnails-hero-scope .slide-subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 600px;
}

.mediaspot-ncnails-hero-scope .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
}

/* Button variants matching index.html */
.mediaspot-ncnails-hero-scope .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: all .3s var(--nc-ease);
  line-height: 1.2;
}

.mediaspot-ncnails-hero-scope .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--nc-ease);
}

.mediaspot-ncnails-hero-scope .btn-rose {
  background: var(--nc-rose);
  color: var(--nc-ink);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .55);
}

.mediaspot-ncnails-hero-scope .btn-rose:hover,
.mediaspot-ncnails-hero-scope .btn-rose:focus-visible {
  background: var(--nc-white);
  color: var(--nc-ink);
  transform: translateY(-2px);
}

.mediaspot-ncnails-hero-scope .btn-rose:hover svg,
.mediaspot-ncnails-hero-scope .btn-rose:focus-visible svg {
  transform: translateX(4px);
}

.mediaspot-ncnails-hero-scope .btn-dark {
  background: var(--nc-ink);
  color: var(--nc-white);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .55);
}

.mediaspot-ncnails-hero-scope .btn-dark:hover,
.mediaspot-ncnails-hero-scope .btn-dark:focus-visible {
  background: var(--nc-rose);
  color: var(--nc-ink);
  transform: translateY(-2px);
}

.mediaspot-ncnails-hero-scope .btn-dark:hover svg,
.mediaspot-ncnails-hero-scope .btn-dark:focus-visible svg {
  transform: translateX(4px);
}

.mediaspot-ncnails-hero-scope .btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: var(--nc-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mediaspot-ncnails-hero-scope .btn-ghost:hover,
.mediaspot-ncnails-hero-scope .btn-ghost:focus-visible {
  border-color: var(--nc-rose);
  background: var(--nc-rose);
  color: var(--nc-ink);
  transform: translateY(-2px);
}

/* ============ HERO UI (ARROWS, DOTS, COUNTER) ============ */
.mediaspot-ncnails-hero-scope .hero-ui {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  bottom: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
}

.mediaspot-ncnails-hero-scope .hero-arrows {
  display: flex;
  gap: 10px;
}

.mediaspot-ncnails-hero-scope .h-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  display: grid;
  place-items: center;
  color: var(--nc-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all .3s var(--nc-ease);
}

.mediaspot-ncnails-hero-scope .h-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mediaspot-ncnails-hero-scope .h-arrow:hover,
.mediaspot-ncnails-hero-scope .h-arrow:focus-visible {
  background: var(--nc-rose);
  border-color: var(--nc-rose);
  color: var(--nc-ink);
  transform: scale(1.05);
}

.mediaspot-ncnails-hero-scope .dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mediaspot-ncnails-hero-scope .dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  transition: all .4s var(--nc-ease);
}

.mediaspot-ncnails-hero-scope .dot:hover,
.mediaspot-ncnails-hero-scope .dot:focus-visible {
  background: rgba(255, 255, 255, .7);
}

.mediaspot-ncnails-hero-scope .dot.on {
  width: 30px;
  background: var(--nc-rose);
}

.mediaspot-ncnails-hero-scope .counter {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .1em;
}

.mediaspot-ncnails-hero-scope .counter b {
  color: var(--nc-white);
  font-size: 16px;
}

/* ============ MARQUEE TICKER BAR ============ */
.mediaspot-ncnails-hero-scope .marquee {
  background: var(--nc-ink);
  color: var(--nc-white);
  overflow: hidden;
  padding: 15px 0;
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.mediaspot-ncnails-hero-scope .mq-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: ncMarquee var(--nc-mq-speed, 32s) linear infinite;
}

.mediaspot-ncnails-hero-scope .marquee:hover .mq-track {
  animation-play-state: paused;
}

.mediaspot-ncnails-hero-scope .mq-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mediaspot-ncnails-hero-scope .mq-track span i {
  color: var(--nc-rose);
  font-style: normal;
  font-size: 9px;
  line-height: 1;
}

@keyframes ncMarquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============ RESPONSIVE BREAKPOINTS ============ */
@media (max-width: 900px) {
  .mediaspot-ncnails-hero-scope .hero {
    height: 74vh;
    min-height: 520px;
  }

  .mediaspot-ncnails-hero-scope .slide-content {
    left: 6%;
    right: 6%;
    bottom: 110px;
  }

  .mediaspot-ncnails-hero-scope .hero-ui {
    right: 6%;
    bottom: 30px;
  }
}

@media (max-width: 620px) {
  .mediaspot-ncnails-hero-scope .hero {
    height: 82vh;
    min-height: 480px;
  }

  .mediaspot-ncnails-hero-scope .slide-content {
    left: 5%;
    right: 5%;
    bottom: 115px;
  }

  .mediaspot-ncnails-hero-scope .slide-content h1,
  .mediaspot-ncnails-hero-scope .slide-content .hero-heading {
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 1.05;
  }

  .mediaspot-ncnails-hero-scope .cta-row {
    margin-top: 24px;
    gap: 10px;
  }

  .mediaspot-ncnails-hero-scope .btn {
    padding: 13px 24px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .mediaspot-ncnails-hero-scope .hero-ui {
    right: 5%;
    left: 5%;
    bottom: 24px;
    justify-content: space-between;
  }

  .mediaspot-ncnails-hero-scope .h-arrow {
    width: 40px;
    height: 40px;
  }

  .mediaspot-ncnails-hero-scope .h-arrow svg {
    width: 15px;
    height: 15px;
  }

  .mediaspot-ncnails-hero-scope .mq-track span {
    font-size: 10.5px;
    letter-spacing: .18em;
    gap: 18px;
    padding-right: 18px;
  }
}
