/* ========== NAVIGATION ========== */
:root {
  --nav-height: 70px;
}

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.nav-wrapper.scrolled {
  box-shadow: 0 2px 40px rgba(21, 59, 55, 0.1);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
}

/* Logo — always show the color/black version */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 100001;
}

.logo-img {
  height: clamp(36px, 4vw, 50px);
  width: auto;
  transition: opacity 0.4s ease;
}

.logo-img--white {
  display: none;
}

.logo-img--black {
  display: block;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  color: var(--text-muted-dark, #153b37);
  text-decoration: none;
  font-family: "Libre Franklin", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--accent, #3a8780);
}

/* Active indicator diamond */
.nav-menu > li.active > a::after {
  content: "";
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent, #3a8780);
  transform: translateX(-50%) rotate(45deg);
}

/* Dropdown arrow */
.dropdown-arrow {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  margin: -2px 0 0 0;
  transition: transform 0.3s ease;
}

.nav-menu > li:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

/* ========== DROPDOWN MENUS ========== */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--dark, #153b37);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(62, 133, 124, 0.2);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.nav-menu > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  position: relative;
}

.dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  color: var(--text-light, #ffffff);
  text-decoration: none;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.25s ease;
  border-left: 2px solid transparent;
}

.dropdown li a:hover {
  background: rgba(62, 133, 124, 0.15);
  color: var(--accent-light, #4ca89f);
  border-left-color: var(--accent, #3a8780);
  padding-left: 1.75rem;
}

/* Nested dropdown (submenu) */
.dropdown .dropdown {
  top: 0;
  left: 100%;
}

.dropdown li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.dropdown li:hover > a .submenu-arrow {
  transform: translateX(3px);
}

/* ========== CTA BUTTON ========== */
.nav-cta {
  margin-left: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent, #3a8780);
  border: none;
  color: var(--dark, #153b37);
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-light, #4ca89f);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

.nav-cta:hover::before {
  transform: translateX(0);
}

/* ========== MOBILE MENU TOGGLE ========== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(21, 59, 55, 0.2);
  cursor: pointer;
  z-index: 100001;
  position: relative;
  transition: border-color 0.3s ease;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent, #3a8780);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.menu-toggle:hover::before,
.menu-toggle.active::before {
  transform: scale(1);
}

.menu-toggle-inner {
  position: relative;
  width: 20px;
  height: 14px;
  z-index: 1;
}

.menu-toggle-inner span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dark, #153b37);
  transition: all 0.3s ease;
}

.menu-toggle:hover .menu-toggle-inner span,
.menu-toggle.active .menu-toggle-inner span {
  background: var(--dark, #153b37);
}

.menu-toggle-inner span:nth-child(1) {
  top: 0;
}

.menu-toggle-inner span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle-inner span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active .menu-toggle-inner span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active .menu-toggle-inner span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========== MOBILE OVERLAY ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 99999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark, #153b37);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-height) + 1rem) 0 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 100000;
  }

  .main-nav.open {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu > li > a {
    padding: 1rem 1.5rem;
    justify-content: space-between;
    border-bottom: 1px solid rgba(62, 133, 124, 0.15);
    color: var(--text-light, #ffffff);
  }

  .nav-menu > li.active > a::after {
    display: none;
  }

  .nav-menu > li.active > a {
    background: rgba(232, 160, 135, 0.1);
    border-left: 3px solid var(--accent, #3a8780);
  }

  /* Mobile dropdowns */
  .dropdown {
    position: static;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.4s ease;
  }

  .nav-menu > li.dropdown-open > .dropdown {
    max-height: 1000px;
  }

  .dropdown li a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-left: none;
    font-size: 0.85rem;
  }

  .dropdown li a:hover {
    padding-left: 2.75rem;
    border-left: none;
  }

  /* Nested mobile dropdown */
  .dropdown .dropdown {
    background: rgba(0, 0, 0, 0.15);
  }

  .dropdown .dropdown li a {
    padding-left: 3.5rem;
  }

  /* Mobile dropdown arrow rotation */
  .nav-menu > li > a .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .nav-menu > li.dropdown-open > a .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Mobile CTA */
  .nav-cta {
    margin: 1.5rem;
    text-align: center;
    display: block;
  }
}

@media (max-width: 480px) {
  .main-nav {
    max-width: 100%;
  }
}

/* Hide Divi default header elements */
#main-header,
#top-header,
.et_pb_section.et_pb_section_0_tb_header,
.et_pb_section.et_pb_section_1_tb_header {
  display: none !important;
}

/* ========== WP Admin Bar Offset ========== */
.admin-bar .nav-wrapper {
  top: 32px;
}

.admin-bar .nav-overlay {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .nav-wrapper {
    top: 46px;
  }

  .admin-bar .nav-overlay {
    top: 46px;
  }
}

@media (max-width: 1100px) {
  .admin-bar .main-nav {
    padding-top: calc(var(--nav-height) + 32px + 1rem);
  }
}

@media (max-width: 1100px) and (max-width: 782px) {
  .admin-bar .main-nav {
    padding-top: calc(var(--nav-height) + 46px + 1rem);
  }
}

@media screen and (max-width: 1365px) {
	.nav-container{
    	width: 100%;
        padding: 0 15px;
    }
}

@media screen and (max-width: 1199px) {
	.nav-cta{
    	margin-left: 10px;
    }
    .nav-menu > li > a{
    	padding: 1.75rem 12px;
    }
}

@media screen and (max-width: 1100px) {
	.nav-container{
    	height: 70px;
    }
}
/* ========== MOBILE SLIDE-OUT MENU ========== */
.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  /* Hide desktop nav completely on mobile */
  .desk-nav {
    display: none !important;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--dark, #153b37);
    padding: calc(var(--nav-height, 70px) + 1rem) 0 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100000;
  }

  .mobile-menu.open {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  /* Admin bar offsets */
  .admin-bar .mobile-menu {
    padding-top: calc(var(--nav-height, 70px) + 32px + 1rem);
  }
  @media (max-width: 782px) {
    .admin-bar .mobile-menu {
      padding-top: calc(var(--nav-height, 70px) + 46px + 1rem);
    }
  }

  /* Nav list reset */
  .mob-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mob-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* ---- Split row: link on left, toggle button on right ---- */
  .mob-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(62, 133, 124, 0.15);
  }

  .mob-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-family: "Libre Franklin", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mob-link:hover,
  .mob-link:active {
    background: rgba(62, 133, 124, 0.12);
    color: var(--accent-light, #4ca89f);
  }

  /* Chevron toggle button — wide enough to tap easily */
  .mob-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-height: 100%;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(62, 133, 124, 0.15);
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
  }

  .mob-toggle:hover,
  .mob-toggle:active {
    background: rgba(62, 133, 124, 0.15);
  }

  .mob-toggle svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease, stroke 0.2s ease;
  }

  .mob-has-children.mob-open > .mob-row .mob-toggle svg {
    transform: rotate(180deg);
    stroke: var(--accent-light, #4ca89f);
  }

  /* ---- Submenu accordion ---- */
  .mob-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.15);
  }

  .mob-has-children.mob-open > .mob-sub {
    max-height: 600px;
  }

  .mob-sub li a {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 2.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: "Libre Franklin", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(62, 133, 124, 0.08);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .mob-sub li a:hover,
  .mob-sub li a:active {
    background: rgba(62, 133, 124, 0.1);
    color: var(--accent-light, #4ca89f);
    padding-left: 2.5rem;
  }

  .mob-sub li:last-child a {
    border-bottom: none;
  }

  /* Nested sub-rows (level 2) */
  .mob-row--nested .mob-link {
    padding-left: 2.25rem;
    font-size: 0.9rem;
  }

  .mob-sub--nested {
    background: rgba(0, 0, 0, 0.1);
  }

  .mob-sub--nested li a {
    padding-left: 3.25rem;
    font-size: 0.85rem;
  }

  .mob-sub--nested li a:hover,
  .mob-sub--nested li a:active {
    padding-left: 3.5rem;
  }

  /* ---- Mobile CTA at bottom ---- */
  .mob-cta {
    margin: 1.5rem 1.25rem;
    text-align: center;
    display: block;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    max-width: 100%;
  }
}
