/* ============================================================
   Lambton Family Hub — shared header + footer (Coastal Daylight)
   Unique lfhx- classes so nothing collides with page styles.
   ============================================================ */
.lfhx-header{position:sticky;top:0;z-index:100;background:#FDFAF2;border-bottom:1px solid #E7E0D4;box-shadow:0 2px 10px rgba(19,35,59,.04);font-family:'Plus Jakarta Sans','Bricolage Grotesque',system-ui,sans-serif;}
.lfhx-inner{max-width:1240px;margin:0 auto;padding:.6rem 1.4rem;display:flex;align-items:center;gap:.4rem;}
.lfhx-brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:#14304F;margin-right:auto;font-weight:800;font-size:1.12rem;letter-spacing:-.01em;}
.lfhx-brand img{height:40px;width:auto;display:block;}

/* desktop primary links */
.lfhx-links{display:none;align-items:center;gap:1.15rem;margin-right:0;}
.lfhx-links a{position:relative;color:#14304F;text-decoration:none;font-weight:700;font-size:.9rem;white-space:nowrap;}
.lfhx-links a:hover{color:#1F6D6D;}
.lfhx-links>a[aria-current="page"]{color:#1F6D6D;}
.lfhx-links>a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2.5px;background:#1F6D6D;border-radius:2px;}
/* Submit call-to-action that lives at the end of the desktop bar. */
.lfhx-cta-top{background:#1F6D6D;color:#fff !important;font-weight:800;font-size:.88rem;padding:.5rem 1.05rem;border-radius:999px;white-space:nowrap;box-shadow:0 8px 18px rgba(31,109,109,.18);margin-left:.35rem;}
.lfhx-cta-top:hover{background:#155252;color:#fff !important;}
.lfhx-cta-top::after{display:none !important;}
/* Push the Town Guidebook dropdown to the far right of the bar. */
.lfhx-dd-towns{margin-left:auto;}
.lfhx-dd-btn{white-space:nowrap;}
/* Desktop: show the full link bar and retire the hamburger. Kicks in only
   once there is room for all seven links so nothing wraps. */
@media(min-width:1180px){
  .lfhx-links{display:flex;flex:1;}
  .lfhx-brand{margin-right:1.25rem;white-space:nowrap;}
  .lfhx-navwrap{display:none;}
}

/* Guides dropdown (desktop primary nav) */
.lfhx-dd{position:relative;}
.lfhx-dd-btn{display:inline-flex;align-items:center;gap:.32rem;font-family:inherit;font-weight:700;font-size:.95rem;color:#14304F;background:none;border:0;cursor:pointer;padding:0;line-height:1;}
.lfhx-dd-btn:hover{color:#1F6D6D;}
.lfhx-dd-btn svg{width:13px;height:13px;transition:transform .18s ease;}
.lfhx-dd[data-open="true"] .lfhx-dd-btn{color:#1F6D6D;}
.lfhx-dd[data-open="true"] .lfhx-dd-btn svg{transform:rotate(180deg);}
.lfhx-dd[data-active="true"] .lfhx-dd-btn{color:#1F6D6D;}
.lfhx-dd-panel{position:absolute;top:calc(100% + 16px);right:0;left:auto;display:flex;gap:2.2rem;background:#fff;border:1px solid #E7E0D4;border-radius:16px;box-shadow:0 22px 46px -16px rgba(19,35,59,.32);padding:1.1rem 1.5rem 1.2rem;z-index:120;}
.lfhx-dd-panel[hidden]{display:none;}
.lfhx-dd-panel::before{content:"";position:absolute;top:-7px;right:26px;width:13px;height:13px;background:#fff;border-left:1px solid #E7E0D4;border-top:1px solid #E7E0D4;transform:rotate(45deg);}
.lfhx-dd-col{display:flex;flex-direction:column;min-width:148px;}
.lfhx-dd-head{font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;color:#1F6D6D;font-weight:800;margin-bottom:.45rem;padding-left:.1rem;}
.lfhx-dd-col a{padding:.42rem .1rem;color:#14304F;font-weight:700;font-size:.92rem;text-decoration:none;white-space:nowrap;border-radius:7px;}
.lfhx-dd-col a:hover{color:#1F6D6D;}
.lfhx-dd-col a[aria-current="page"]{color:#1F6D6D;}

/* Section headings inside the mobile burger menu */
.lfhx-menu-head{display:block;font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;color:#9AA6B2;font-weight:800;padding:.7rem .9rem .18rem;}
.lfhx-menu-head:first-child{padding-top:.25rem;}
/* Respect the hidden attribute (air-quality link is shown by nav.js only on
   active smoke/heat days) — the .lfhx-menu a display rule would otherwise win. */
.lfhx-menu a[hidden]{display:none;}

.lfhx-navwrap{position:relative;flex:none;}
.lfhx-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:46px;height:46px;border:1px solid #E7E0D4;border-radius:12px;background:#fff;cursor:pointer;padding:0;}
.lfhx-burger span{display:block;width:22px;height:2.5px;border-radius:2px;background:#14304F;margin:0 auto;transition:transform .2s,opacity .2s;}
.lfhx-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.lfhx-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.lfhx-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);}
.lfhx-burger:focus-visible{outline:3px solid #1F6D6D;outline-offset:2px;}

/* Mobile menu — full-height sheet that slides in from the right, over a backdrop. */
.lfhx-menu{position:fixed;top:0;right:0;bottom:0;width:min(90vw,390px);background:#fff;z-index:210;display:flex;flex-direction:column;box-shadow:-18px 0 44px rgba(13,31,61,.22);transform:translateX(100%);transition:transform .28s cubic-bezier(.22,1,.36,1);border:0;border-radius:0;padding:0;margin:0;text-align:left;}
.lfhx-menu.is-open{transform:translateX(0);}
.lfhx-menu[hidden]{display:none;}
.lfhx-menu-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:15px 16px;border-bottom:1px solid #EFE7DC;flex:none;}
.lfhx-menu-brand{display:flex;align-items:center;gap:9px;font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-weight:800;color:#14304F;text-decoration:none;font-size:1rem;}
.lfhx-menu-brand img{width:30px;height:30px;object-fit:contain;}
.lfhx-menu-close{width:38px;height:38px;border-radius:50%;border:1px solid #E5DDD2;background:#fff;color:#5A6B80;display:grid;place-items:center;cursor:pointer;flex:none;}
.lfhx-menu-close svg{width:16px;height:16px;}
.lfhx-menu-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 12px 14px;}
.lfhx-menu-sec{display:block;font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;color:#9AA6B2;font-weight:800;padding:14px 8px 5px;}
.lfhx-menu-row{display:flex;align-items:center;gap:13px;padding:11px 8px;border-radius:12px;text-decoration:none;color:#14304F;font-weight:700;font-size:1rem;}
.lfhx-menu-row:hover{background:#FAF7F2;}
.lfhx-menu-ic{width:34px;height:34px;border-radius:10px;background:#E7F4F4;color:#1F6D6D;display:grid;place-items:center;flex:none;}
.lfhx-menu-ic svg{width:18px;height:18px;}
.lfhx-menu-row.active{background:#E4F0EE;color:#1F6D6D;}
.lfhx-menu-row.active .lfhx-menu-ic{background:#1F6D6D;color:#fff;}
.lfhx-menu-foot{flex:none;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #EFE7DC;background:#FCFBF8;display:flex;flex-direction:column;gap:9px;}
.lfhx-menu-cta{display:flex;align-items:center;justify-content:center;gap:8px;background:#1F6D6D;color:#fff;font-weight:800;font-size:.98rem;padding:.82rem;border-radius:13px;text-decoration:none;}
.lfhx-menu-cta:hover{background:#155252;color:#fff;}
.lfhx-menu-cta svg{width:18px;height:18px;}
.lfhx-menu-nl{display:flex;align-items:center;justify-content:center;gap:8px;color:#5A6B80;font-size:.86rem;font-weight:700;text-decoration:none;}
.lfhx-menu-nl svg{width:16px;height:16px;color:#D8848A;}
.lfhx-menu-backdrop{position:fixed;inset:0;background:rgba(13,31,61,.42);z-index:205;opacity:0;pointer-events:none;transition:opacity .28s ease;display:none;}
.lfhx-menu-backdrop.is-open{opacity:1;pointer-events:auto;display:block;}
body.lfhx-menu-lock{overflow:hidden;}

.lfhx-footer{background:#F5F0E5;color:#142A44;padding:56px 0 28px;margin-top:64px;font-family:'Nunito Sans','Plus Jakarta Sans',system-ui,sans-serif;}
.lfhx-fwrap{max-width:1240px;margin:0 auto;padding:0 1.4rem;}
.lfhx-ftop{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;padding-bottom:34px;border-bottom:1px solid rgba(20,42,68,.14);}
.lfhx-fname{font-family:'Plus Jakarta Sans','Bricolage Grotesque',sans-serif;font-weight:800;font-size:1.3rem;display:flex;align-items:center;gap:.55rem;margin-bottom:.8rem;color:#142A44;}
.lfhx-fname img{height:40px;width:auto;}
.lfhx-fbrand p{color:#5b6b7e;max-width:26em;font-size:.96rem;line-height:1.6;margin:0;}
.lfhx-fcol h4{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:#1F6D6D;margin:0 0 .8rem;font-weight:800;}
.lfhx-fcol a{display:block;color:#43536B;padding:.28rem 0;font-size:.96rem;text-decoration:none;}
.lfhx-fcol a:hover{color:#142A44;}
.lfhx-fbottom{display:flex;justify-content:space-between;align-items:center;padding-top:22px;gap:1rem;flex-wrap:wrap;}
.lfhx-fbottom p{color:#8a93a0;font-size:.85rem;margin:0;}
.lfhx-social{display:flex;gap:.6rem;}
.lfhx-social a{width:38px;height:38px;border-radius:50%;background:#1F6D6D;display:grid;place-items:center;}
.lfhx-social a:hover{background:#155252;}
.lfhx-social svg{width:18px;height:18px;}
@media(max-width:820px){.lfhx-ftop{grid-template-columns:1fr 1fr;gap:28px;}.lfhx-fbrand{grid-column:1/-1;}}
@media(max-width:520px){
  /* Mobile-first rhythm: keep the header light and move page content forward. */
  .lfhx-inner{padding:.45rem 1rem;}
  .lfhx-brand{font-size:.96rem;gap:.45rem;}
  .lfhx-brand img{height:32px;}
  .lfhx-burger{width:42px;height:42px;}
  .lfhx-footer{padding:36px 0 20px;margin-top:42px;}
  .lfhx-fwrap{padding:0 1rem;}
  .lfhx-ftop{grid-template-columns:1fr 1fr;gap:20px 18px;}
  .lfhx-fname{font-size:1.1rem;}
  .lfhx-fname img{height:32px;}
  .lfhx-fbrand p{font-size:.82rem;}
  .lfhx-fcol a{font-size:.85rem;padding:.22rem 0;}
  .lfhx-fbottom{padding-top:16px;}
  .lfhx-fbottom p{font-size:.72rem;}
  .hero-emblem{display:none!important;}
}

/* Consistent mobile bottom navigation — injected by nav.js on content pages,
   so it is identical on every page and can never go missing. */
.mobile-bottom-nav{display:none;}
@media (max-width:700px){
  .mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:90;display:flex;justify-content:space-around;align-items:stretch;background:#FAF7F2;border-top:1px solid #E5DDD2;box-shadow:0 -6px 20px rgba(13,31,61,.12);padding:.4rem 0 calc(env(safe-area-inset-bottom,0px) + .3rem);}
  .mobile-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:.16rem;color:#1F6D6D;text-decoration:none;font:700 .64rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;padding:.3rem .2rem;}
  .mobile-bottom-nav a svg{width:22px;height:22px;}
  .lfhx-footer{padding-bottom:calc(4.2rem + env(safe-area-inset-bottom,0px));}
}
