/* ============================
   Westhaven Header
   ============================ */

.site-header {
  background: #ffffff;
  box-shadow: 0 0 20px transparent;
  transition: box-shadow 0.25s ease-out;
  position: relative;
  z-index: 3;
}

.site-header.is-stuck {
  box-shadow: 0 0 20px rgba(0,0,0,.2);
}

/* Inner layout */
.site-header__inner {
  display: flex;
  align-items: flex-start;
}



.site-header__main-menu {
  height: 46px;
  display: flex;
  align-items: center;
  position: relative;
}


.site-header__main-menu > ul {
  height: 100%;
  display: flex;
  align-items: center;
}

#main-nav {
	margin-bottom: 0rem !important;
	}


/* Top utility menu typography */
.site-header__cassia-menu .menu > li > a {
  font-size: 16px;     /* bump up slightly */
  font-weight: 600;
  text-transform: lowercase;
}



.site-header #main-nav > li > a {
  text-transform: lowercase;
}


.mega-menu > li.mega-menu-item:not(:last-child) > .mega-menu-link::after {
  content: "|";
  margin: 0 12px;
  color: rgba(0, 0, 0, 0.4); /* adjust for contrast */
  font-weight: 400;
  pointer-events: none;
}


/* --- DESKTOP: disable off-canvas scrolling so sticky works --- */
@media (min-width: 1025px) {
  .off-canvas-wrapper,
  .off-canvas-content {
    position: static;
    overflow: visible;
    height: auto;
    transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}



/* ============================
   Logo
   ============================ */

.site-header__logo {

  position: relative;
  background: #ffffff;
  flex-shrink: 0;
}

.site-header__logo a {
  display: block;
  background: #ffffff;
  padding: 12px 8px;
  border-radius: 0 0 9px 9px;
  position: relative;
  margin-bottom: -140px; /* logo offset */
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.15);
}

.site-header__logo img {
  max-width: 193px;
  height: auto;
}

/* ============================
   Menus Wrapper
   ============================ */

.site-header__menus {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ============================
   Cassia Utility Menu
   ============================ */

.site-header__cassia-menu {
  position: relative;
  margin: 0 0;
}

/* full-width background trick */
/*
.site-header__cassia-menu::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0vw;
  width: 100vw;
  background: #EBE1CF;
  z-index: -1;
}
*/


.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  height: 50px;
  left: 0;
  right: 0;
  background: #EBE1CF;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 50px;
  height: 50px;
  left: 0;
  right: 0;
  background: #8A2529;
}


@media (max-width: 1024px) {
  .site-header::before,
  .site-header::after {
    content: none;
  }
}


.site-header__inner {
  position: relative;
  z-index: 2;
}

.site-header__logo {
  position: relative;
  z-index: 3; /* keeps it above bars */
}


.site-header__cassia-menu ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__cassia-menu li {
  margin: 5px 0;
}

.site-header__cassia-menu a {
  font-size: 14px;
  text-transform: lowercase;
  color: #000;
  padding: 0 10px;
  text-decoration: none;
border-left: none !important;
}

.site-header__cassia-menu li:first-child a {
  border-left: none;
}

.site-header__cassia-menu li:last-child a {
  padding-right: 0;
}


.site-header__cassia-menu ul > li {
  position: relative;
}


.site-header__cassia-menu ul > li:not(:last-child):not(:nth-last-child(2))::after {
  content: '|';
  color: rgba(0, 0, 0, 0.4);
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}


.site-header__cassia-menu ul > li:last-child::after {
  content: none;
}


/* Positioning context */
.site-header__cassia-menu li {
  position: relative;
}


/* Ensure no pipe before the CTA */
.site-header__cassia-menu li:last-child::before {
  content: none;
}


/* Contact / Donate button */
.site-header__cassia-menu li.donate a,
.site-header__cassia-menu li:last-child a {
  background: #6b7280;
  color: #ffffff;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 6px;
  border: none;
}

/* ============================
   Main Navigation
   ============================ */



.site-header__main-menu {
  position: relative;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 0;
}


.menu a {
	    padding: .2rem 1rem !important;
}

/* full-width purple bar */
/*
.site-header__main-menu::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0vw;
  width: 100vw;
  background: #8A2529;
  z-index: -1;
}
*/

.site-header__main-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__main-menu > ul > li {
  position: relative;
}

.site-header__main-menu > ul > li:not(:last-child)::after {
  content: '|';
  color: rgba(255,255,255,.7);
  position: absolute;
  right: -2px;
  top: 40%;
  transform: translateY(-50%);
}

.site-header__main-menu a {
  color: #ffffff;
  font-size: 16px;
  text-transform: lowercase;
  padding: 4px 11px;
  text-decoration: none;
}



/* ============================
   Mobile
   ============================ */

@media (max-width: 1024px) {
  .site-header__menus {
    display: none;
  }

  .site-header__logo a {
    position: static;
    box-shadow: none;
  }
}

#offcanvas-nav .submenu-toggle {
    top: 10px !important;

}


@media (max-width: 1024px) {

  /* Mobile header container */
  .site-header {
    height: 64px; /* Trinity Springs–like height */
  }

  .site-header__inner {
    align-items: center;
    justify-content: space-between;
  }

  /* Hide desktop menus completely */
  .site-header__menus {
    display: none;
  }
}


@media (max-width: 1024px) {

  .site-header__logo {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .site-header__logo a {
    margin-bottom: 0;       /* remove desktop overlap */
    padding: 6px 0;
  }

  .site-header__logo img {
    max-height: 90px;       /* Trinity Springs scale */
    width: auto;
  }
}


@media (max-width: 1024px) {

  .site-header__menu-button {
    margin-left: auto;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
}

@media (min-width: 1025px) {

  .site-header__menu-button {
	  display: none;
  }
}

header.site-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
}


/* Mobile header background + stacking */
@media (max-width: 1024px) {
  header.site-header {
    background-color: #ffffff;
    z-index: 999; /* still above content */
  }
}


@media (max-width: 1024px) {
  .site-header__logo a {
    margin-bottom: 0;   /* ✅ critical */
  }
}



@media (max-width: 1024px) {
  header.site-header {
    height: auto;
    min-height: 0;
  }
}

.off-canvas.is-open {
    z-index: 2000 !important;
}

#offcanvas-nav {
    font-size: .85714rem;
    margin-top: 25px;
}

#offcanvas-nav a
 {
    color: #353535;
    font-weight: 700;
    line-height: 2.2em !important;
    padding: .85714rem 0;
    padding-top: 10px !important;
    text-transform: lowercase !important;
}


