.schf-header{font-family:"chainprinter",sans-serif;position:relative;z-index:9999}
.schf-menu,.schf-menu li{list-style:none;margin:0;padding:0}

/* Watercolor strip */
.schf-watercolor{
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% auto;
  color:#fff;
  text-align:center;
  padding:16px 16px 54px;
  font-size:14px;
  letter-spacing:.08em;
}

.schf-watercolor span{
  font-family: "Poppins", sans-serif !important;
  font-weight: 700 !important;
}

/* Bar (transparent over hero) */
.schf-bar{
  margin-top:-40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 24px;
  background:transparent;
  position:relative;
}

/* Sticky state */
.schf-header.scrolled .schf-bar{
  position:fixed;
  top:0; left:0; right:0;
  background:#e1b621;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.schf-header.scrolled .schf-watercolor{display:none}

/* Logo */
.schf-logo img{height:100px; width:auto}

.schf-desktop-nav{display:none}

/* Hamburger (always used; no inline desktop menu) */
.schf-burger{
  background:none;border:0;cursor:pointer;
  padding:8px 10px;border-radius:10px;
}
.schf-burger span{
  display:block;width:28px;height:2px;margin:6px 0;
  background:#fff; /* default on hero */
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.schf-header.scrolled .schf-burger span{
  background:#00464C;
  box-shadow:none;
}

/* Overlay */
.schf-overlay{
  position:fixed; inset:0;
  background:#e3b723;
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .25s ease, transform .25s ease;
  z-index:10001;
}
.schf-header.open .schf-overlay{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* Close X */
.schf-close{
  position:absolute; top:18px; right:18px;
  width:44px;height:44px;
  background:none;border:0;cursor:pointer;
}
.schf-close span{
  position:absolute; left:10px; right:10px; top:21px;
  height:2px; background:#00464C;
}
.schf-close span:first-child{transform:rotate(45deg)}
.schf-close span:last-child{transform:rotate(-45deg)}

/* Overlay content */
.schf-overlay-inner{
  height:100%;
  max-width:520px;
  padding:90px 28px 28px;
}
.schf-overlay-logo{
  margin-bottom:28px;
}
.schf-overlay-logo img{
  width:min(var(--schf-overlay-logo-max, 200px), 80vw);
  height:auto;
}

/* Overlay menu (stacked) */
.schf-menu--overlay{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.schf-menu--overlay a{
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:20px;
  color:#00464C;
}
.schf-menu--overlay a:hover,
.schf-menu--overlay .current-menu-item>a{color:#77B55A}

/* Backdrop (for click-out) */
.schf-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:10000;
}
.schf-header.open .schf-backdrop{
  opacity:1;
  pointer-events:auto;
}

/* Social icons */
.schf-social{
  margin-top:30px;
  display:flex;
  gap:18px;
}
.schf-social-icon{
  width:44px;height:44px;
  background:#00464C;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.schf-social-icon svg{width:22px;height:22px;fill:#FBF8F1}

/* Mobile tuning: show watercolor fringe and keep spacing tight */
@media(max-width:980px){
  .schf-bar{margin-top:-24px !important; background:#e3b723}
  .schf-burger span{background:#00464C; box-shadow:none}
}


/* ===== Desktop inline menu (>=981px). Mobile remains hamburger/overlay only. ===== */
@media (min-width: 981px){
  /* Show desktop nav, hide hamburger */
  .schf-desktop-nav{display:block}
  .schf-burger{display:none !important}

  .schf-menu--desktop{
    display:flex;
    align-items:center;
    gap:26px;
    flex-wrap:wrap;
  }
  .schf-menu--desktop > li{position:relative}
  .schf-menu--desktop a{
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:.18em;
	font-weight: bold;
    font-size:16px;
    color:#ffffff;
    text-shadow:0 1px 2px rgba(0,0,0,.35);
  }
  /* Hover/active */
  .schf-menu--desktop a:hover,
  .schf-menu--desktop .current-menu-item>a,
  .schf-menu--desktop .current-menu-ancestor>a{color: #fff;background-color: #77B55A;padding: 5px 2px;}

  /* Dropdowns */
  .schf-menu--desktop .sub-menu{
    display:none;
    position:absolute;
    top:100%;
    left:-120px;
    min-width:220px;
    background:#FBF8F1;
    padding:14px 14px;
    box-shadow:0 16px 30px rgba(0,0,0,.18);
    border-radius:14px;
    z-index:10002;
  }
  .schf-menu--desktop li:hover > .sub-menu{display:block}
  .schf-menu--desktop .sub-menu li{margin:0 0 10px}
  .schf-menu--desktop .sub-menu li:last-child{margin-bottom:0}
  .schf-menu--desktop .sub-menu a{
    color:#00464C;
    text-shadow:none;
    font-size:13px;
    letter-spacing:.14em;
  }
  .schf-menu--desktop .sub-menu a:hover,
  .schf-menu--desktop .sub-menu .current-menu-item>a{color:#fff}

  /* When scrolled (beige bar): links become green */
  .schf-header.scrolled .schf-menu--desktop a{
    color:#00464C;
    text-shadow:none;
  }
  .schf-header.scrolled .schf-menu--desktop a:hover,
  .schf-header.scrolled .schf-menu--desktop .current-menu-item>a,
  .schf-header.scrolled .schf-menu--desktop .current-menu-ancestor>a{color:#77B55A}
}


/* ===== v1.4.6 Desktop scroll behavior (>=981px only) ===== */
@media (min-width: 981px){
  /* Disable the old immediate sticky behavior by neutralizing it */
  .schf-header.scrolled .schf-bar{
    position:relative;
    top:auto; left:auto; right:auto;
    background:transparent;
    box-shadow:none;
  }

  /* Two-stage: show compact sticky bar after threshold */
  .schf-header.schf--sticky .schf-watercolor{ display:none !important; }

  .schf-header.schf--sticky .schf-bar{
    position:fixed !important;
    top:0; left:0; right:0;
    background:#e3b723 !important;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    height:86px;
    align-items:center;
    transform:translateY(-12px);
    opacity:0;
    transition:transform .28s ease, opacity .28s ease;
    z-index:10002;
    margin-top:0 !important;
  }

  .schf-header.schf--sticky.schf--sticky-show .schf-bar{
    transform:translateY(0);
    opacity:1;
  }

  /* Keep logo fully visible + centered in sticky state */
  .schf-header.schf--sticky .schf-logo img{
    height:70px;
  }

  /* Menu links become green in sticky state */
  .schf-header.schf--sticky .schf-menu--desktop a{
    color:#00464C !important;
    text-shadow:none !important;
  }
  .schf-header.schf--sticky .schf-menu--desktop a:hover,
  .schf-header.schf--sticky .schf-menu--desktop .current-menu-item>a,
  .schf-header.schf--sticky .schf-menu--desktop .current-menu-ancestor>a{
    color:#fff !important;
  }
}


/* ===== v1.4.6 Mobile watercolor scale + spacing (mobile only) ===== */
@media (max-width: 980px){
  .schf-watercolor{
    background-size:400% auto !important;
    background-position:center top !important;
    padding:18px 16px 78px !important; /* more height so dates are readable */
  }
  /* Reduce gap between watercolor and bar while keeping fringe visible */
  .schf-bar{
    margin-top:-70px !important;
  }
}

/* === HOTFIX ensure sticky bar is visible === */
@media (min-width:981px){
  .schf-header.schf--sticky .schf-bar{
    display:flex;
  }
}
