/**
 * Maclabb Notch Navbar for Elementor
 * Styling & Liquid Glass Aesthetics
 */

.maclabb-notch-wrapper {
  position: relative;
  z-index: 99999;
}

.maclabb-notch-wrapper * {
  box-sizing: border-box;
}

.maclabb-notch-wrapper a {
  text-decoration: none;
  color: inherit;
}

.maclabb-notch-wrapper button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ---------------------------------------------------- */
/* THE NOTCH / DYNAMIC ISLAND                           */
/* ---------------------------------------------------- */
.maclabb-notch-wrapper .notch {
  --wide-width: min(890px, calc(100vw - 32px));
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 50%;
  width: var(--wide-width);
  height: 60px;
  transform: translate3d(-50%, 0, 0);
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              transform 0.4s ease;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Compact state when scrolling down on desktop */
.maclabb-notch-wrapper .notch.is-compact:not(.is-open) {
  width: min(300px, calc(100vw - 24px));
  height: 48px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.maclabb-notch-wrapper .notch__wide,
.maclabb-notch-wrapper .notch__compact {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.28s ease,
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.maclabb-notch-wrapper .notch__wide {
  left: 50%;
  right: auto;
  width: var(--wide-width);
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  transform: translateX(-50%);
  filter: blur(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.maclabb-notch-wrapper .notch__compact {
  width: 100%;
  gap: 10px;
  padding: 0 14px 0 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: scale(0.96);
}

.maclabb-notch-wrapper .notch.is-compact:not(.is-open) .notch__wide {
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translateX(-50%) scale(0.97);
  transition-delay: 0s;
}

.maclabb-notch-wrapper .notch.is-compact:not(.is-open) .notch__compact {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: scale(1);
  transition-delay: 0.15s;
}

/* Brand Logo */
.maclabb-notch-wrapper .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease;
}
.maclabb-notch-wrapper .brand:hover { opacity: 0.88; }
.maclabb-notch-wrapper .brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, #dcdcdc);
  color: #0b0b0d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 #fff;
}

/* MacBook Camera Lens & Pulsing Green LED */
.maclabb-notch-wrapper .notch__camera {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.maclabb-notch-wrapper .camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3447, #07090e);
  border: 1px solid #1c2331;
  position: relative;
}
.maclabb-notch-wrapper .camera-lens::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.7);
}
.maclabb-notch-wrapper .camera-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 7px #30d158;
  animation: pulse-notch-led 3s infinite ease-in-out;
}
@keyframes pulse-notch-led {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Links List */
.maclabb-notch-wrapper .notch__links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.maclabb-notch-wrapper .notch__links a {
  color: #a0a0ab;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.maclabb-notch-wrapper .notch__links a:hover,
.maclabb-notch-wrapper .notch__links a[aria-current="location"] {
  color: #fff;
}
.maclabb-notch-wrapper .notch__links a[aria-current="location"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 2px;
  background: #2997ff;
  box-shadow: 0 0 8px #2997ff;
}

/* Actions */
.maclabb-notch-wrapper .notch__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.maclabb-notch-wrapper .notch__icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.maclabb-notch-wrapper .notch__icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}
.maclabb-notch-wrapper .notch__icon-btn svg { width: 16px; height: 16px; }

.maclabb-notch-wrapper .notch__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.maclabb-notch-wrapper .notch__cta:hover {
  transform: translateY(-1px);
  background: #f1f1f5;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}
.maclabb-notch-wrapper .notch__cta svg { width: 14px; height: 14px; }

/* Structural Defaults for Desktop */
.maclabb-notch-wrapper .notch__top-bar-mobile { display: contents; }
.maclabb-notch-wrapper .notch__header-bar { display: flex; align-items: center; gap: 16px; }
.maclabb-notch-wrapper .notch__close-btn { display: none; }
.maclabb-notch-wrapper .notch__link-arrow { display: none; }
.maclabb-notch-wrapper .notch__cta--desktop { display: inline-flex; }
.maclabb-notch-wrapper .notch__cta--mobile { display: none; }

/* Compact Island View Inside */
.maclabb-notch-wrapper .notch__compact .brand__mark { width: 28px; height: 28px; font-size: 17px; border-radius: 8px; }
.maclabb-notch-wrapper .notch__current {
  overflow: hidden;
  margin-left: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
}
.maclabb-notch-wrapper .notch__compact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #a1a1aa;
}
.maclabb-notch-wrapper .notch__compact-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
}
.maclabb-notch-wrapper .progress {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#ffffff var(--progress, 0%), rgba(255, 255, 255, 0.15) 0);
  transform: rotate(-90deg);
  transition: background 0.1s linear;
}
.maclabb-notch-wrapper .progress::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000000;
}

/* ---------------------------------------------------- */
/* RESPONSIVE DESIGN (MOBILE & TABLET)                  */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
  .maclabb-notch-wrapper .notch {
    --wide-width: min(390px, calc(100vw - 20px));
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s ease;
  }

  /* Compact pill is DEFAULT on mobile */
  .maclabb-notch-wrapper .notch:not(.is-open) {
    width: min(290px, calc(100vw - 24px));
    height: 48px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .maclabb-notch-wrapper .notch:not(.is-open) .notch__wide {
    opacity: 0;
    pointer-events: none;
    filter: blur(6px);
    transform: scale(0.96);
  }

  .maclabb-notch-wrapper .notch:not(.is-open) .notch__compact {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    transform: scale(1);
  }

  /* Expanded ONLY when user explicitly taps it */
  .maclabb-notch-wrapper .notch.is-open {
    width: var(--wide-width);
    height: 310px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .maclabb-notch-wrapper .notch.is-open .notch__wide {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    transform: none;
  }

  .maclabb-notch-wrapper .notch.is-open .notch__compact {
    opacity: 0;
    pointer-events: none;
    filter: blur(6px);
    transform: scale(0.96);
  }

  .maclabb-notch-wrapper .notch__wide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 14px 16px 16px;
    height: 100%;
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
  }

  /* Mobile Top Bar */
  .maclabb-notch-wrapper .notch__top-bar-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
  }

  .maclabb-notch-wrapper .notch__header-bar {
    display: flex;
    align-items: center;
  }

  .maclabb-notch-wrapper .notch__camera {
    display: none;
  }

  .maclabb-notch-wrapper .notch__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .maclabb-notch-wrapper .notch__cta--desktop {
    display: none !important;
  }

  .maclabb-notch-wrapper .notch__close-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    transition: all 0.2s ease;
  }
  .maclabb-notch-wrapper .notch__close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }

  /* Mobile 2-Column Links Grid */
  .maclabb-notch-wrapper .notch__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin: 6px 0;
  }

  .maclabb-notch-wrapper .notch__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
  }

  .maclabb-notch-wrapper .notch__links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .maclabb-notch-wrapper .notch__links a[aria-current="location"] {
    background: rgba(41, 151, 255, 0.16);
    border-color: #2997ff;
    color: #fff;
    box-shadow: 0 0 14px rgba(41, 151, 255, 0.25);
  }

  .maclabb-notch-wrapper .notch__links a[aria-current="location"]::after {
    display: none;
  }

  .maclabb-notch-wrapper .notch__link--contact {
    grid-column: span 2;
  }

  .maclabb-notch-wrapper .notch__link-arrow {
    display: inline-block;
    font-size: 13px;
    color: #8e8e98;
    transition: transform 0.2s ease;
  }
  .maclabb-notch-wrapper .notch__links a:hover .notch__link-arrow {
    transform: translateX(2px);
    color: #fff;
  }

  /* Full-Width Mobile CTA */
  .maclabb-notch-wrapper .notch__cta--mobile {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    color: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
    margin: 0;
  }
  .maclabb-notch-wrapper .notch__cta--mobile:hover {
    background: #f1f1f5;
    transform: translateY(-1px);
  }
  .maclabb-notch-wrapper .notch__cta--mobile svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maclabb-notch-wrapper .notch {
    transition-duration: 0.01ms !important;
  }
  .maclabb-notch-wrapper .camera-led {
    animation: none !important;
  }
}
