@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   TOP BAR
=============================== */
.nx-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: transparent;
  pointer-events: none;
}

.nx-topbar-inner {
  max-width: 1500px;
  width: calc(100% - 160px);
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  pointer-events: auto;
}

.nx-topbar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-topbar-item--right {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}

.nx-topbar-title,
.nx-topbar-sub {
  font-family:"Syne", sans-serif;
  font-weight: 500;
  font-size: 18px;
}

/* Italic highlight inside the headline */
.nx-topbar-title em {
  font-family:"Syne", sans-serif;
  font-weight: 500;
}

.nx-topbar.is-light .nx-topbar-title {
  color: #000;
}

.nx-topbar.is-light .nx-topbar-sub {
  color: #767676;
}

.nx-topbar.is-dark .nx-topbar-title,
.nx-topbar.is-dark .nx-topbar-sub {
  color: #fff;
}

/* -----------------------------------
   RATING ROW (stars + score + avatars)
----------------------------------- */
.nx-topbar-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.nx-topbar-stars-img {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nx-topbar-rating-score {
  font-family:"Syne", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #171717;
  margin-left: 2px;
}

.nx-topbar.is-dark .nx-topbar-rating-score {
  color: rgba(255, 255, 255, 0.75);
}

.nx-topbar-avatars {
  display: inline-flex;
  align-items: center;
  margin-left: 0px;
}

.nx-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #ccc;
  margin-left: -6px;
}

.nx-avatar:first-child {
  margin-left: 0;
}

.nx-topbar.is-dark .nx-avatar {
  border-color: #0a0a0a;
}

@media (max-width: 900px) {
  .nx-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: calc(100% - 80px);
    max-width: 720px;
    padding: 18px 0;
    margin: 0;
  }

  .nx-topbar-item--right {
    display: none;
  }

  .nx-topbar-title {
    font-size: 14px;
  }

  .nx-topbar-sub {
    font-size: 13px;
  }

  .nx-topbar-rating {
    margin-top: 8px;
    gap: 8px;
  }

  .nx-topbar-stars-img {
    height: 12px;
  }

  .nx-topbar-rating-score {
    font-size: 12px;
  }

  .nx-avatar {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .nx-topbar-inner {
    padding: 14px 14px;
  }
}

/* =====================================================
   BOTTOM BAR
===================================================== */
.ns-hero-bottom-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.ns-hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;

  /* Layout constants for perfect menu alignment */
  --ns-gap: 10px;
  --ns-mode-size: 68px;
  --ns-pill-pad: 4px;
  --ns-pill-btn: 60px;
}

/* =====================================================
   POPUP MENU, aligned to the main pill
   Only affects the dropdown menu, the base pill stays the same
===================================================== */
.ns-pill-menu {
  position: absolute;
  left: 0;

  /* Touch the main pill perfectly (pill height is 60px, plus 4px padding top and bottom) */
  bottom: calc(var(--ns-pill-btn) + (var(--ns-pill-pad) * 2));

  /* Match main pill width only (exclude mode button + gap) */
  width: calc(100% - (var(--ns-mode-size) + var(--ns-gap)));

  background: #000;
  overflow: hidden;

  /* Rounded only on top so it connects to the pill */
  border-radius: 18px 18px 0 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px);
  transform-origin: bottom left;

  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.ns-hero-bottom.is-menu-open .ns-pill-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ns-pill-menu-item {
  width: 100%;
  height: 68px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: "Syne", system-ui, sans-serif;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Divider with 4px inset on both sides */
.ns-pill-menu-item + .ns-pill-menu-item {
  position: relative;
}

.ns-pill-menu-item + .ns-pill-menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* Connect menu and pill as one shape */
.ns-hero-bottom.is-menu-open .ns-pill {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* =====================================================
   MAIN PILL (UNCHANGED)
===================================================== */
.ns-pill {
  padding: 4px;
  background: #000000;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   BUTTONS (UNCHANGED)
===================================================== */
.ns-pill-btn {
  height: 42px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ns-pill-btn--logo {
  width: 60px;
  height: 60px;
  background: #fff;
}

.ns-pill-btn--menu {
  width: 60px;
  height: 60px;
  border: 1px solid #313131;
  background: #0b0b0b;
}

.ns-menu-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

.ns-pill-btn--contact {
  width: 99px;
  height: 60px;
  background: #0b0b0b;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: "Syne", system-ui, sans-serif;
  border: 1px solid #313131;
}

/* Brightness button – exact Figma (5px spacing) */

.ns-pill-btn--mode{
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 18px;

  background: #000;           

  padding: 0;
  overflow: hidden;
}

.ns-pill-btn--mode::before{
  content: "";
  position: absolute;
  inset: 5px;                  
  border-radius: 12px;
  background: #0D0D0D;
  border: 1px solid #313131;
}

.ns-pill-btn--mode::after{
  content: "";
  position: absolute;
  inset: 9px;                 
}

/* icon stays on top */
.ns-pill-btn--mode .ns-pill-icon{
  position: relative;
  z-index: 1;
}

/* Icons */
.ns-pill-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.ns-pill-icon--white {
  filter: brightness(100);
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 900px) {
  .ns-hero-bottom-wrap {
    bottom: 18px;
  }

  .ns-hero-bottom {
    transform: scale(0.92);
    transform-origin: center;
  }

  /* Important: do not override menu width here.
     It must stay tied to the real mode size + gap via variables */
}

@media (max-width: 480px) {
  .ns-hero-bottom {
    transform: scale(0.86);
  }
}



/* =========================
   PROMO VIDEO POPUP
========================= */

.ns-video-popup{
  position: fixed;
  inset: 0;
  background: transparent;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px 0;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}

.ns-video-popup.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto; 
}

.ns-video-inner{
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ns-video-inner video{
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 34px;
}

@media (max-width: 768px){

  .ns-video-popup{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ns-video-inner{
    width: auto;      
    height: auto;      
    max-width: 100%;
    max-height: 100%;

    border-radius: 20px;
    overflow: hidden;
  }

  .ns-video-inner video{
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 40px); /* 20px + 20px */

    border-radius: 20px;
    object-fit: contain;
  }

}



.ns-pill-btn--mode {
  position: relative;
}

.ns-icon {
  position: absolute;
  width: 24px;
  height: 24px;

  transition: 
    opacity .25s ease,
    transform .3s cubic-bezier(.4,0,.2,1);
}

/* výchozí stav */
.ns-icon-close {
  opacity: 0;
  transform: scale(.6) rotate(-90deg);
}

/* když je otevřeno */
.ns-pill-btn--mode.is-open .ns-icon-play {
  opacity: 0;
  transform: scale(.6) rotate(90deg);
}

.ns-pill-btn--mode.is-open .ns-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.ns-pill-btn {
  text-decoration: none;
} 








/* =========================
Dynamic expanding button
========================= */

.ns-pill-btn--contact{
  width:80px;
  overflow:hidden;

  transition:
    width .45s cubic-bezier(.16,1,.3,1),
    padding .45s cubic-bezier(.16,1,.3,1);
}

/* různé velikosti */

.ns-pill-btn--contact.size-work{
  width:80px;
}

.ns-pill-btn--contact.size-services{
  width:100px;
}

.ns-pill-btn--contact.size-start{
  width:130px;
}

/* TEXT ANIMATION */

.ns-pill-btn--contact .btn-text{
  display:inline-block;

  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    opacity .3s ease,
    filter .3s ease;
}

/* ramp out */

.ns-pill-btn--contact.is-changing .btn-text{
  transform:translateY(-12px);
  opacity:0;
  filter:blur(6px);
}


/* =========================
   WHATSAPP BUTTON
   (inherits mode-button frame: black outer + #0D0D0D inset + #313131 border)
========================= */

.ns-pill-btn--whatsapp{
  transition:
    transform .45s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* WhatsApp icon (handset) — green brand color */
.ns-pill-btn--whatsapp .ns-wa-icon{
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  color: #25D366;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* Small green "online" dot in the bottom-right of the handset */
.ns-pill-btn--whatsapp .ns-wa-dot{
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  /* position it to sit at the bottom-right of the icon */
  right: calc(50% - 16px);
  bottom: calc(50% - 14px);
  box-shadow: 0 0 0 2px #0D0D0D;
  pointer-events: none;
}

/* HOVER — subtle lift + icon wiggle, no color change on frame */
.ns-pill-btn--whatsapp:hover .ns-wa-icon{
  transform: rotate(-6deg) scale(1.06);
}

.ns-pill-btn--whatsapp:active{
  transform: scale(0.96);
  transition-duration: .15s;
}

.ns-pill-btn--whatsapp:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, .6);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .ns-pill-btn--whatsapp,
  .ns-pill-btn--whatsapp .ns-wa-icon{
    transition: none;
  }
  .ns-pill-btn--whatsapp:hover .ns-wa-icon{
    transform: none;
  }
}


/* =========================
   SCROLL DOWN HINT
   Mouse icon with bouncing dot + label
   Fixed bottom-right, fades out on scroll
========================= */

.nx-scroll-hint{
  position: fixed;
  right: 40px;
  bottom: 60px;
  z-index: 997;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #6E6E74;
  font-family:"Syne", sans-serif;
  font-weight: 500;
  font-size: 16px;

  pointer-events: none;
  user-select: none;

  /* entrance + scroll-out transitions */
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease;
  will-change: opacity, transform, filter;
}

/* hidden state (after user scrolls) */
.nx-scroll-hint.is-hidden{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

/* the mouse shape */
.nx-scroll-hint-mouse{
  position: relative;
  width: 12px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  display: inline-block;
  flex-shrink: 0;
}

/* the inner dot that bounces */
.nx-scroll-hint-dot{
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: currentColor;
  border-radius: 50%;
  animation: nxScrollDot 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes nxScrollDot{
  0%{
    transform: translateY(0);
    opacity: 0;
  }
  20%{
    opacity: 1;
  }
  80%{
    opacity: 1;
  }
  100%{
    transform: translateY(-7px);
    opacity: 0;
  }
}

.nx-scroll-hint-label{
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* dark bg adjustment (optional — if hero ever becomes dark) */
.nx-scroll-hint.is-on-dark{
  color: rgba(255, 255, 255, 0.75);
}

/* mobile — slightly smaller, lower */
@media (max-width: 900px){
  .nx-scroll-hint{
    right: 20px;
    bottom: 90px;
    font-size: 12px;
    gap: 8px;
  }
  .nx-scroll-hint-mouse{
    width: 16px;
    height: 24px;
  }
}

/* hide hint completely on very small screens to avoid clutter */
@media (max-width: 480px){
  .nx-scroll-hint-label{
    display: none;
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .nx-scroll-hint-dot{
    animation: none;
    opacity: 1;
  }
  .nx-scroll-hint{
    transition: opacity 0.2s ease;
  }
}