/* ========================================
   NAVIGATION
======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Social Icons */
.social-icons-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.social-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    outline-offset: 2px;
    position: relative;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-toggle:hover {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-toggle.active {
    transform: rotate(45deg);
}

.social-toggle svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 3;
    pointer-events: none;
    flex-shrink: 0;
}

.social-icons-list {
    position: absolute;
    right: 66px;
    display: flex;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

.social-icons-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.2s;
    outline-offset: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    color: #333;
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.2s;
}

.social-icon:hover svg {
    color: #000;
}

/* Menu Toggle */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    outline-offset: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.menu-toggle:hover {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    flex-shrink: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.2s;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Full Screen Menu Overlay - Positioned under menu button */
.menu-overlay {
    position: fixed;
    top: 90px;
    right: 60px;
    width: 30%;

    /* Content-driven sizing (prevents "Contact" from spilling outside) */
    height: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;

    /* Dark glass surface for legibility on white pages */
    background: rgba(18, 18, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    padding-top: 40px;
    padding-bottom: 40px;

    transform: translateY(-120%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

.menu-overlay.active {
    transform: translateY(0);
    pointer-events: auto;
}

.vertical-menu {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 0 40px 40px 40px;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 0;
    cursor: pointer;
}

.menu-arrow {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

.menu-link {
    font-size: 48px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -2px;
    transform: translateX(-40px);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-link {
    transform: translateX(0) skewX(-5deg);
    color: rgba(255, 255, 255, 0.75);
}


/* ========================================
   MENU RESPONSIVE TUNING
======================================== */
@media (max-width: 1280px) {
    .menu-link {
        font-size: 40px;
        letter-spacing: -1.5px;
    }
    .vertical-menu {
        gap: 32px;
    }
}
/* PUBLIC NAV: HS button */
.hs-utility-btn{
  height: 50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 0 16px;
  border-radius: 14px;

  /* idle = neutral grey like other controls */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(234,242,238,.85);

  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration:none;
  white-space: nowrap;

  /* must become visible once horizon-auth updates it */
  visibility: visible;

  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, padding .18s ease;
}

.hs-utility-btn:hover{
  transform: translateY(-1px);

  /* hover = HS palette */
  background: #0f2a44;
  border-color: rgba(166,255,74,.55);
  color: #a6ff4a;
  box-shadow: 0 0 0 4px rgba(166,255,74,.12);
}

/* Full vs mini label */
.hs-btn-mini{ display:none; letter-spacing: .10em; }
.hs-btn-full{ display:inline; }

/* Collapsed HS state when Social is open */
.hs-utility-btn.is-collapsed{
  padding: 0 14px;      /* compact */
  min-width: 50px;      /* same footprint as icons */
}
.hs-utility-btn.is-collapsed .hs-btn-full{ display:none; }
.hs-utility-btn.is-collapsed .hs-btn-mini{ display:inline; }
