.menu-icon { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--menu-gap, 4px); transition: gap .5s ease; }
.menu-icon .bar { display: block; width: 16px; height: 2px; background: var(--black); border-radius: 1px; opacity: 0.85; transition: transform .5s ease, opacity .5s ease; }
.floating-cta:hover .menu-icon { --menu-gap: 6px; }
.floating-cta.open .menu-icon { --menu-gap: 4px; }
/* slight vertical separation by translating top/bottom bars */
.floating-cta:hover .menu-icon .bar:nth-child(1) { transform: translateY(-0.75px); }
.floating-cta:hover .menu-icon .bar:nth-child(3) { transform: translateY(0.75px); }
.floating-cta.open .menu-icon .bar:nth-child(1) { transform: none; }
.floating-cta.open .menu-icon .bar:nth-child(3) { transform: none; }
.floating-menu-toggle { outline: none; }
.floating-menu-toggle:focus { outline: none; box-shadow: none; }
header{
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 5%;
    z-index: 100;
}

/* Case study pages: position header/logo a bit higher */
body.case-study-page header {
    top: 0;
}

.nav-links {
    display: none; /* replaced by floating CTA */
    align-items: center;
    gap: 20px; /* Add space between the buttons */
}

header a{
    text-decoration: none;
    color: var(--ocean-blue);
    display: inline-block;
}

.brand-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-name{
    font-family: 'Cabin', system-ui, -apple-system, Segoe UI, Roboto, 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--ocean-blue);
}

.case-studies-nav-text {
    background: rgba(255, 255, 255, 0.5);
    overflow: visible !important; /* Override .btn style to show arrow */
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
    cursor: pointer;
    white-space: nowrap;
    margin-right: 32px; /* Space for the arrow */
}

.case-studies-nav-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    white-space: nowrap;
}

.case-studies-nav-text:hover {
    padding-right: 30px; /* Make space for the arrow on hover */
}

.sign-in-btn {
    background: linear-gradient(90deg, var(--aero-green) 0%, var(--dolphin-blue) 100%);
    color: var(--white);
    border: none;
    padding: 8px 16px;
}

.sign-in-btn:hover {
    opacity: 0.9;
}

#nav-arrow {
    position: absolute;
    right: -30px;
    width: 16px;
    height: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.case-studies-nav-text:hover #nav-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* Burger menu and mobile full-screen menu */
.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    height: 50px;
    width: 50px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .burger-menu-btn.menu-open {
    opacity: 0;
    visibility: hidden;
  }
  
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--diamond-gradient);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu.open {
    display: flex;
  }
  
  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  
  .mobile-menu-list li {
    margin: 3rem 0;
  }
  
  .mobile-menu-list a {
    color: var(--ocean-blue);
    font-size: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .mobile-menu-list a:hover {
    text-decoration: underline;
  }
  
  .close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    height: 40px;
    width: 40px;
    z-index: 1002;
  }
  
  @media (max-width: 768px) {
    .burger-menu-btn {
      display: block;
    }
    .case-studies-nav-text {
      display: none !important;
    }
  }
  
/* Floating CTA pill */
.floating-cta {
  position: fixed;
  top: 61px;
  right: 16px;
  --cta-height: 40px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 110;
  transition: all .5s ease;
  overflow: hidden;
  width: fit-content;
}

/* Top row with logo, menu, and CTA */
.floating-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  transition: padding .5s ease;
}

.floating-left { display: flex; align-items: center; gap: 12px; }
.floating-logo { width: var(--cta-height); height: var(--cta-height); justify-self: start; object-fit: contain; }
.floating-menu-toggle {
  background: none; border: none; cursor: pointer; font-size: 20px; color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--cta-height); height: var(--cta-height); border-radius: 999px; justify-self: center; line-height: 1;
}
.floating-menu-toggle:hover { background: transparent; }
.floating-cta:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.floating-cta.open { 
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.floating-cta.open .floating-controls {
  padding: 8px 10px;
}

.floating-book {
  border: none; cursor: pointer; color: white; font-weight: 600;
  text-decoration: none;
  padding: 0 16px; border-radius: 999px;
  min-height: var(--cta-height); height: var(--cta-height);
  line-height: 1;
  background: linear-gradient(90deg, var(--aero-green) 0%, var(--dolphin-blue) 100%);
  justify-self: end; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.floating-book:hover { opacity: 0.98; transform: scale(1.03); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

.floating-menu {
  width: 100%;
  padding: 0;
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.floating-cta.open #floatingMenu { 
  max-height: 150px;
  opacity: 1;
  padding: 8px 10px 16px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.floating-menu a { 
  display: block; 
  padding: 10px 12px; 
  margin: 0 -2px;
  color: var(--black); 
  text-decoration: none; 
  font-family: 'Inter', sans-serif; 
  font-size: 15px;
  transition: background 0.2s ease;
}
.floating-menu a:hover { 
  background: rgba(0,0,0,0.04); 
  border-radius: 8px; 
}

/* Mobile: dock pill to bottom-right and open menu upwards */
@media (max-width: 767px) {
  .floating-cta {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: column-reverse; /* show menu above controls */
    --cta-height: 72px; /* 2x larger */
  }
  .floating-controls { gap: 16px; padding: 10px 14px; }
  .floating-book { font-size: 16px; padding: 0 24px; }
  .floating-cta.open #floatingMenu {
    border-top: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 16px 10px 8px;
  }
  /* Hide standalone burger icon on mobile */
  img[alt='Open menu'], img[src$='burger.svg'] { display: none !important; }
}
