/* ===============================================================
   Chip Anderson — Glass Header
   This CSS is a direct port of the proven working design
   (same class structure, same clamp()-based fluid sizing,
   same position:absolute + calc() logo-bump technique).

   Every visual value has a CSS custom property with the exact
   original value as its fallback, e.g. var(--ca-radius, 20px).
   Elementor Style controls (if the user changes them) set the
   custom property on the wrapper; if left untouched, the
   fallback value applies and the header looks exactly like the
   reference design without any manual tweaking needed.
   =============================================================== */

.ca-header-wrap{
  --ca-pill-bg: rgba(255,255,255,0.70);
  --ca-inner-bg: rgba(255,255,255,0.50);
  --ca-text-color: #2A2B2F;
  --ca-active-color: #F2530A;
  --ca-hover-color: #F2530A;
  --ca-radius: 20px;

  width: 100%;
  padding: clamp(16px, 2.6vw, 40px);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.ca-header-wrap *,
.ca-header-wrap *::before,
.ca-header-wrap *::after{
  box-sizing: border-box;
}

/* ============ NAVBAR (outer glass pill) ============ */
.ca-navbar{
  position: relative;
  width: 100%;
  max-width: 1840px;
  border-radius: var(--ca-radius);
  background: var(--ca-pill-bg);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: 0px 10px 80px 0px rgba(0,0,0,0.08);
  padding: clamp(10px, 1.4vw, 20px);
}

.ca-navbar-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ca-inner-bg);
  border-radius: calc(var(--ca-radius) - 4px);
  padding: 0 clamp(20px, 3vw, 50px);
  min-height: clamp(72px, 7.4vw, 100px);
}

/* ============ MENUS ============ */
.ca-menu{
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(24px, 3.5vw, 60px);
  flex: 1 1 0;
  min-width: 0;
}

.ca-menu-right{ justify-content: flex-end; }

.ca-menu li{ list-style: none; }

.ca-menu a{
  text-decoration: none;
  color: var(--ca-text-color);
  font-size: clamp(14px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: capitalize;
  transition: color 0.2s ease;
  display: inline-block;
}

.ca-menu a:hover{ color: var(--ca-hover-color); }
.ca-menu a.ca-active{ color: var(--ca-active-color); }

/* ============ LOGO BUMP ============ */
.ca-logo-slot{
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 11.5vw, 200px);
  align-self: stretch;
}

.ca-logo-bump{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 11.5vw, 200px);
  height: calc(100% + clamp(20px, 2.8vw, 40px));
  background: var(--ca-inner-bg);
  border-radius: var(--ca-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ca-logo-bump a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ca-logo-bump img{
  width: 82%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============ MOBILE TOGGLE ============ */
.ca-menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 3;
}

.ca-menu-toggle span{
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ca-text-color);
  margin: 6px 0;
  transition: all 0.25s ease;
}

/* ============ MOBILE DRAWER ============ */
.ca-mobile-drawer{
  list-style: none;
  margin: 0;
  padding: 110px 32px 32px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: #ffffff;
  display: none;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  z-index: 1000;
}

.ca-mobile-drawer a{
  text-decoration: none;
  color: var(--ca-text-color);
  font-size: 18px;
  text-transform: capitalize;
}

.ca-mobile-drawer a.ca-active{ color: var(--ca-active-color); }

.ca-mobile-drawer.ca-open{
  display: flex;
  transform: translateX(0);
}

.ca-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
}

.ca-overlay.ca-open{ display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .ca-navbar-inner{
    justify-content: space-between;
    padding: 0 16px;
  }

  .ca-menu-left,
  .ca-menu-right{
    display: none;
  }

  .ca-logo-slot{
    width: 100px;
    margin: 0 auto;
  }

  .ca-logo-bump{
    width: 100px;
    height: calc(100% + 24px);
  }

  .ca-menu-toggle{ display: block; }
}

@media (min-width: 901px){
  .ca-menu-toggle{ display: none; }
  .ca-mobile-drawer,
  .ca-overlay{ display: none !important; }
}
