/* ═══════════════════════════════════════════════════════════════
   EverSpan Life – Navigation
   ═══════════════════════════════════════════════════════════════ */

.esl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,24,40,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-2);
  transition: all 0.3s ease;
}
.esl-nav.scrolled { box-shadow: var(--shadow-sm); }
.esl-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.esl-nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.esl-nav-logo img,
.esl-nav-logo-img,
.esl-nav-inner .custom-logo-link img,
.esl-nav-inner .custom-logo {
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
  display: block;
}
.esl-nav-links {
  display: flex; align-items: center; gap: 34px;
  list-style: none;
}
.esl-nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.42);
  transition: color 0.2s;
}
.esl-nav-links a:hover { color: white; }
.esl-nav-cta { display: flex; align-items: center; gap: 12px; }
.esl-nav-price-hint {
  font-size: 0.8rem; color: var(--text-3); font-weight: 400;
}

/* ─── OPTIONAL NOTICE ─────────────────────────────────────── */
.strip {
	position: relative;
	color: #F7F3EC;
	overflow: hidden;
	border-bottom: 1px solid rgba(201,124,47,.45);
	background: radial-gradient(120% 180% at 88% -40%,rgba(201,124,47,.22),transparent 55%),linear-gradient(180deg,#1F2E49,#1B2840)
}

.strip__in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 56px 10px 28px;
	display: flex;
	align-items: center;
	gap: 24px
}

.strip__copy {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex: 1;
	flex-wrap: wrap;
	min-width: 0;
	padding-left:20px
}

.strip__eye {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #D88C3C;
	white-space: nowrap
}

.strip__hl {
	font-family: "Cormorant Garamond",Georgia,serif;
	font-weight: 600;
	font-size: 23px;
	line-height: 1.1;
	color: #F7F3EC;
}

.strip__hl em {
	font-style: italic;
	color: #D88C3C;
}

.strip__hl.small {
	display: none;
}

.strip__act {
	display: flex;
	align-items: center;
	gap: 20px;
	white-space: nowrap
}

.strip__cta {
	font-weight: 700;
	font-size: 13.5px;
	background: #C97C2F;
	color: #fff;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px
}

.strip__gift {
	font-size: 13px;
	font-weight: 600;
	color: #F7F3EC;
	text-decoration: none;
	border-bottom: 1px solid rgba(247,243,236,.4);
	padding-bottom: 1px
}

.strip__x {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(247,243,236,.55);
	cursor: pointer;
	font-size: 20px;
	padding: 6px
}
@media (max-width: 1050px) {
	.strip__hl {
		font-size: 18px;
	}
	.strip__copy {
		gap: 5px;
	}
}
@media (max-width: 768px) {
	.strip__in {
		flex-direction: column;
		padding: 5px 56px 5px 28px;
		gap: 8px;
	}
	.strip__hl {
		text-align: center;
	}
	.strip__copy {
		justify-content: center;
	}
}
@media (max-width: 600px) {
	.strip__eye {
		display: none;
	}
}
@media (max-width: 500px) {
	.strip__hl {
		display: none;
	}
	.strip__hl.small {
		display: block;
	}
}

/* ─── MOBILE HAMBURGER ─────────────────────────────────────── */
.esl-nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.esl-nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 1px;
  transition: all 0.3s ease;
}
.esl-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); ;}
.esl-nav-toggle.active span:nth-child(2) { opacity: 0; }
.esl-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px);margin-top: -3px }


@media (max-width: 1200px) {	
 .esl-nav-links {
  display: flex; align-items: center; gap: 1vw;
  list-style: none;
}
.esl-nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.42);
    transition: color 0.2s;
}
}


@media (max-width: 900px) {
  .esl-nav-links { display: none; }
  .esl-nav-price-hint { display: none; }
  .esl-nav-toggle { display: flex; }

  /* Mobile menu panel */
  .esl-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(14,24,40,0.96);
    backdrop-filter: blur(20px);
    padding: 24px 40px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
}

.nav-logo img {
  filter: brightness(0) invert(1);   /* forces white */
}

/* ─── STICKY MOBILE CTA ─────────────────────────────────────── */
.esl-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.esl-sticky-cta.visible { transform: translateY(0); }
@media (max-width: 768px) { .esl-sticky-cta { display: flex; } }
.esl-sticky-cta-text { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 400; }
.esl-sticky-cta-text strong { color: #fff; }


/* ─── What We Treat Dropdown ─────────────────────────────── */

/* Dropdown container */
.esl-nav-links li.has-dropdown {
  position: relative !important;
}

.esl-nav-links li.has-dropdown .esl-dropdown {
  list-style: none !important;
  position: absolute !important;
  top: calc(100% + 16px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 200px !important;
  background: #0d1117 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  padding: 8px 0 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
  z-index: 9999 !important;
  /* Hidden by default */
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Show on hover (desktop) */
.esl-nav-links li.has-dropdown:hover .esl-dropdown,
.esl-nav-links li.has-dropdown.open .esl-dropdown {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Dropdown items */
.esl-nav-links li.has-dropdown .esl-dropdown li {
  display: block !important;
  width: 100% !important;
}

.esl-nav-links li.has-dropdown .esl-dropdown li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.esl-nav-links li.has-dropdown .esl-dropdown li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
}

/* Mobile: stack inline */
@media (max-width: 768px) {
  .esl-nav-links li.has-dropdown .esl-dropdown {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,0.03) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 4px 0 !important;
  }

  .esl-nav-links li.has-dropdown .esl-dropdown li a {
    padding: 10px 16px 10px 28px !important;
    font-size: 0.82rem !important;
    opacity: 0.8 !important;
  }
}
/* Reduce the gap so mouse doesn't leave the li */
.esl-nav-links li.has-dropdown .esl-dropdown {
  top: calc(100% + 4px) !important;
}

/* Invisible bridge between the nav item and dropdown */
.esl-nav-links li.has-dropdown .esl-dropdown::before {
  content: '' !important;
  position: absolute !important;
  bottom: 100% !important;
  left: 0 !important;
  width: 100% !important;
  height: 16px !important;
  background: transparent !important;
}