/* Anchor Corps - Custom Header CSS
 * Split out of custom-nav.php on 2026-05-06.
 * Enqueued by grandchild theme functions.php on wp_enqueue_scripts.
 */

/* Hide header inside Divi Visual Builder iframe */
  .et-vb-root-ancestor .anchor-header-section { display: none !important; }

:root{
  --lg-bg-color: rgba(150,150,150,0.25);
  --lg-highlight: rgba(255,255,255,0.75);
  --text: #101316;
  --muted: #5c676e;
  --surface: #ffffff;
  --surface-soft: #f3f6f7;
}

.anchor-header-row{position:relative; z-index:100;}

/* Glass */
.glassify{position:relative !important; z-index:0 !important;}
.glassify .glass-filter,
.glassify .glass-overlay,
.glassify .glass-specular{
  position:absolute !important; inset:0 !important;
  border-radius:100px !important;
  pointer-events:none !important;
  transition:all .4s ease-in-out !important;
  opacity:0 !important;
}
.anchor-header-row.active .glassify .glass-filter,
.anchor-header-row.active .glassify .glass-overlay,
.anchor-header-row.active .glassify .glass-specular{opacity:1 !important;}
.glassify .glass-filter{
  z-index:0 !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  filter:none !important; isolation:isolate !important;
}
.glass-defs{position:absolute; width:0; height:0; left:0; top:0; display:block;}
.anchor-header-row.active .glassify .glass-filter{
  backdrop-filter:blur(8px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(8px) saturate(160%) !important;
  filter:url(#lg-dist) !important;
}
.anchor-header-row { overflow: visible !important; }
.anchor-header-row .glassify{padding:0; transition:padding .4s ease;}
.anchor-header-row.active .glassify{padding:15px 30px;}
.glassify .glass-overlay{z-index:1 !important; background:transparent !important;}
.anchor-header-row.active .glassify .glass-overlay{background:var(--lg-bg-color) !important;}
.glassify .glass-specular{z-index:2 !important; box-shadow:none !important;}
.anchor-header-row.active .glassify .glass-specular{
  box-shadow:inset 1px 1px 0 var(--lg-highlight), inset 0 0 5px var(--lg-highlight) !important;
}
.glassify > *:not(.glass-filter):not(.glass-overlay):not(.glass-specular):not(.glass-defs){
  position:relative !important; z-index:3 !important;
}

/* Desktop nav */
.desktop-menu-wrapper{display:flex; align-items:center; justify-content:space-between; width:100%;}
.desktop-menu-wrapper img, .mobile-menu-header img{display:block; padding:0; margin:0;}
.desktop-menu-nav{display:flex; align-items:center; gap:20px;}
.desktop-menu-nav-item{color:#fff; font-size:clamp(12px, 1.1vw, 1.2rem) !important; cursor:pointer;}

/* Nav item hover pill */
.desktop-menu-nav-item {
  position: relative;
  color: #fff;
  font-size:clamp(12px, 3vw, 1.6rem);
  text-decoration: none;
  border-radius: 0px !important;
  transition: color 0.3s ease, padding .2s ease;
  overflow: hidden;
  z-index: 1;
  line-height: 1.1em;
}
.desktop-menu-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.desktop-menu-nav-item:hover { padding: 8px 16px; }
.desktop-menu-nav-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
/* Keep nav item hover state while interacting with mega panel */
.nav-mega-wrap:hover > .desktop-menu-nav-item {
  padding: 8px 16px;
}
.nav-mega-wrap:hover > .desktop-menu-nav-item::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========================= */
/* MEGA PANELS                */
/* ========================= */
.nav-mega-wrap{position:relative;}

.mega-panel{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(10px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.15), 0 2px 10px rgba(0,0,0,.08);
  padding:14px 16px;
  min-width:18rem;
  max-width:min(92vw, 64rem);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .25s ease;
  z-index:10000000000;
}
.mega-panel-wide{min-width:38rem;}
.mega-panel-hero{width:min(900px, 92vw); min-width:auto;}

/* Hover bridge */
.nav-mega-wrap::after{
  content:'';
  position:absolute;
  top:100%;
  left:-20px;
  right:-20px;
  height:16px;
  display:none;
}
.nav-mega-wrap:hover::after{display:block;}

.nav-mega-wrap:hover .mega-panel{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

/* First panel: align left */
.nav-mega-wrap:first-of-type .mega-panel{
  left:0; transform:translateX(0) translateY(10px);
}
.nav-mega-wrap:first-of-type:hover .mega-panel{
  transform:translateX(0) translateY(0);
}

/* Last panel: align right */
.nav-mega-wrap:last-of-type .mega-panel{
  left:auto; right:0; transform:translateX(0) translateY(10px);
}
.nav-mega-wrap:last-of-type:hover .mega-panel{
  transform:translateX(0) translateY(0);
}

/* ========================= */
/* MEGA MENU CONTENT          */
/* ========================= */

/* About Us hero */
.ac-hero {
  display: grid;
  grid-template-columns: 33% 66%;
  align-items: stretch;
  max-width: 900px;
}
.ac-hero .ac-hero__promo{
  background: var(--theme-main);
  color: #fff;
  border-radius: 22px;
  padding: 1.5rem;
  display: grid;
  align-content: space-between;
  min-height: 380px;
}
.ac-hero .ac-hero__title{
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 28px; color: white;
  font-weight: 500; font-size: 2rem !important;
}
.ac-hero .ac-hero__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.ac-hero .ac-feature{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px; padding: 18px; border-radius: 14px;
  text-decoration: none; color: var(--text);
  transition: transform .15s ease;
}
.ac-hero .ac-feature:hover{ transform: translateY(-2px); }
.ac-hero .ac-feature__icon{
  height: 60px; width: 60px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-soft);
}
.ac-hero .ac-feature__icon i{ font-size: 26px; color: var(--theme-main); }
.ac-hero .ac-feature__copy .ac-feature-title{
  margin: 2px 0 6px; font-size: 1rem; line-height: 1.2 !important;
}
.ac-hero .ac-feature__copy p{
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.2 !important;
}
.ac-feature__bottom-bar {
  grid-column: 1 / -1;
  text-align: center; padding: 1rem;
  border-radius: 14px; margin-left: 18px;
}

/* Services menu */
.ac-services-menu {
  padding: 1em; display: flex;
  flex-direction: column; font-size: .9rem;
}
.ac-services-menu a {
  display: flex; align-items: center;
  color: black; margin-bottom: .5em;
  transition: margin .4s ease; font-size: 1em;
}
.ac-services-menu a:hover { margin-left: 5px; }
.ac-services-menu i {
  color: var(--theme-main); margin-right: 5px; font-size: 1em;
}
.ac-services-menu__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5em;
}
.ac-services-menu__col{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
  border-radius: 14px; padding: .5em;
}
.ac-services-menu__top{
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--theme-main);
  font-weight: 550; padding: 7px;
  border-radius: 12px;
  transition: background 140ms ease;
}
.ac-services-menu__top span { color: var(--theme-main); }
.ac-services-menu__top i{
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: var(--theme-main); flex: 0 0 32px;
}
.ac-services-menu__top:hover{ background: rgba(0,0,0,0.06); }

/* Sub-links under top-level items */
.ac-services-menu__sub {
  padding-left: 42px;
  margin-bottom: 4px;
}
.ac-services-menu__sub a {
  display: block;
  font-size: 0.9em;
  color: #555;
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.2s ease, margin-left 0.3s ease;
}
.ac-services-menu__sub a:hover {
  color: var(--theme-main);
  margin-left: 5px;
}

/* Business hours */
.business-hours { font-size: 16px; }
.business-hours .small { font-size: .8em; font-style: italic; }

/* ========================= */
/* MOBILE                     */
/* ========================= */
.mobile-menu-wrapper{position:relative; width:100%; z-index:1000;}
.mobile-menu-header{display:flex; align-items:center; justify-content:space-between;}
body.mm-locked, html.mm-locked{overflow:hidden;}
body.mm-locked{position:fixed; left:0; right:0; width:100%;}
.mobile-menu-overlay{
  position:fixed; inset:0; background:#fff; padding:5%;
  padding-top:calc(5% + 120px);
  opacity:0; transform:scale(.95);
  pointer-events:none;
  transition:all .4s cubic-bezier(.4,0,.2,1);
  z-index:99999;
  padding-bottom:env(safe-area-inset-bottom);
  min-height:100svh;
  display:flex; flex-direction:column;
}
.mobile-menu-overlay.active{opacity:1; transform:scale(1); pointer-events:auto; overflow-y:auto;}
.mobile-menu-overlay nav { display:flex; flex-direction:column; flex:1; }
.mobile-menu-content{display:flex; flex-direction:column; align-items:stretch; flex:1; justify-content:flex-start;}

.play-icon{
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:50px; height:50px; border-radius:50%;
  background:rgba(6,175,181,.5);
  mask:url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><polygon points='35,25 75,50 35,75' fill='white'/></svg>") center/60% no-repeat;
  opacity:0; animation:none;
}
.play-icon.active{animation:radiate 1.5s ease-out; opacity:1;}
@keyframes radiate{
  0%{box-shadow:0 0 0 0 rgba(6,175,181,.5); opacity:1;}
  100%{box-shadow:0 0 0 30px rgba(6,175,181,0); opacity:0;}
}

.menu-links{padding:1rem; display:flex; flex-direction:column; gap:1.2rem; text-align:left; height:100%;}
.menu-links > a{font-size:1.6rem; color:var(--theme-dark,#111); text-decoration:none; font-weight:600;}
.menu-links > a:hover{color:var(--theme-main);}

/* Accordion */
.menu-toggle-container{transition:all .3s ease; position:relative;}
.menu-toggle-container::after{content:""; position:absolute; top:calc(100% + .5em); left:0; height:1px; width:100%; background:rgba(100,100,100,.05);}
.menu-toggle-header{cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:1.6rem; font-weight:bold; color:var(--theme-dark);}
.menu-toggle-title{color:var(--theme-dark,#111); text-decoration:none; font-weight:600; font-size:1.6rem;}
a.menu-toggle-title:hover{color:var(--theme-main);}
.menu-toggle-content{max-height:0; overflow:hidden; transition:all .4s ease;}
.menu-toggle-content .menu-toggle-content-text{margin:1rem 0; display:flex; flex-direction:column; gap:.5rem;}
.menu-toggle-content .menu-toggle-content-text a{font-size:1.1rem; color:var(--theme-dark,#333); text-decoration:none; font-weight:400; padding:4px 0 4px 1em;}
.menu-toggle-content .menu-toggle-content-text a:hover{color:var(--theme-main);}
.menu-toggle-container.active .menu-toggle-content{max-height:2000px; padding-top:0.5rem;}
.menu-toggle-icon{transition:transform .3s ease; transform:rotate(0deg);}
.menu-toggle-icon i{font-size:.8em !important;}
.menu-toggle-container.active .menu-toggle-icon{transform:rotate(270deg);}

.menu-toggle-content-text a.mobile-cat{
  color:var(--theme-main) !important; font-weight:600 !important;
  font-size:1.15rem !important; margin-top:.75em; padding-top:.75em;
  padding-left:0 !important; border-top:1px solid rgba(0,0,0,.06);
}
.menu-toggle-content-text a.mobile-cat:first-child{margin-top:0; padding-top:0; border-top:none;}
.menu-toggle-content-text a:not(.mobile-cat){
  font-size:.95rem !important; padding-left:1.25em !important;
  font-weight:400; color:#555 !important;
}
.menu-toggle-content-text a:not(.mobile-cat):hover{color:var(--theme-main) !important;}

/* legacy blurb styles removed */

/* Burger */
.burger-container{cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:1000000; background:none; border:0; margin-right:-20px;}
.burger-container svg{transition:transform 500ms cubic-bezier(.4,0,.2,1);}
.burger-container.active svg{transform:rotate(90deg);}
.burger-container path{
  stroke:#fff;
  transition: transform 500ms cubic-bezier(.4,0,.2,1), stroke-dasharray 500ms cubic-bezier(.4,0,.2,1), stroke-dashoffset 500ms cubic-bezier(.4,0,.2,1), stroke 400ms ease;
}
.burger-container.active path{stroke:var(--theme-main);}
.burger-container path:nth-child(1){transform-origin:36% 40%;}
.burger-container path:nth-child(2){stroke-dasharray:29 299;}
.burger-container path:nth-child(3){transform-origin:35% 63%;}
.burger-container path:nth-child(4){stroke-dasharray:29 299;}
.burger-container path:nth-child(5){transform-origin:61% 52%;}
.burger-container path:nth-child(6){transform-origin:62% 52%;}
.burger-container.active path:nth-child(1){transform:translateX(9px) translateY(1px) rotate(45deg);}
.burger-container.active path:nth-child(2){stroke-dasharray:225 299; stroke-dashoffset:-72px;}
.burger-container.active path:nth-child(3){transform:translateX(9px) translateY(1px) rotate(-45deg);}
.burger-container.active path:nth-child(4){stroke-dasharray:225 299; stroke-dashoffset:-72px;}
.burger-container.active path:nth-child(5){transform:translateX(9px) translateY(1px) rotate(-45deg);}
.burger-container.active path:nth-child(6){transform:translateX(9px) translateY(1px) rotate(45deg);}

@media (max-width:1200px){
  .desktop-menu-wrapper{display:none;}
  .mobile-menu-wrapper{display:block;}
}
@media (min-width:1200px){
  .desktop-menu-wrapper{display:flex;}
  .mobile-menu-wrapper{display:none;}
}

.anchor-header-section.hide{transform:translateY(-100%); transition:transform .3s ease;}
.anchor-header-section.show{transform:translateY(0); transition:transform .3s ease;}

@media (max-width: 768px) {
  .ac-hero { grid-template-columns: 1fr; gap: 1rem; }
  .ac-hero .ac-hero__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .ac-hero .ac-hero__promo { display: none; }
  .ac-hero .ac-feature { grid-template-columns: 44px 1fr; gap: 12px; padding: 5px; border-radius: 12px; }
  .ac-hero .ac-feature__icon { width: 44px; height: 44px; border-radius: 10px; }
  .ac-hero .ac-feature__icon i { font-size: 18px; }
  .ac-hero .ac-feature__copy .ac-feature-title { font-size: 0.95rem; margin-bottom: 4px; }
  .ac-hero .ac-feature__copy p { font-size: 0.8rem; line-height: 1.3 !important; }
  .ac-feature__bottom-bar { margin-left: 0; padding: 0.75rem; font-size: 0.85rem; }
  .ac-services-menu { padding: 0; }
  .ac-services-menu__grid{ grid-template-columns: 1fr; gap: 0.75em; }
  .ac-services-menu__col{ padding: 0.75em; background: none; border: none; }
  .ac-services-menu__top{ font-size: 0.95rem; padding: 0; }
  .ac-services-menu__top i{ width: 28px; height: 28px; flex: 0 0 28px; }
}

/* Super header */
.nav-super-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  width: 100% !important;
  max-width: none !important;
}
.nav-super-header-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1600px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
.header-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
}
.header-links a {
  display: inline-block;
}
.header-links li {
  margin-right: 15px;
  position: relative;
}
.header-links li::before {
  content: "|";
  position: absolute;
  left: -8.5px;
}
.header-links li:first-child::before {
  content: "";
  position: absolute;
  right: -8.5px;
}
.header-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.header-links a:hover {
  color: #0073e6;
}
.social-links { display:flex; gap:8px; align-items:center; }
.social-links a { color:#555; font-size:14px; transition:color .2s; }
.social-links a:hover { color:var(--theme-main); }
.social-links::before { content:none !important; }
/* hide-mobile now handled at 1200px breakpoint below */
.office-hours-trigger {
  position: relative;
}
.office-hours-content {
  position: absolute;
  top:100%;
  width: 300px !important;
  right: 0;
  background: white;
  padding: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .2s ease;
  pointer-events: none;
}
.office-hours-content:hover, .office-hours-trigger:hover .office-hours-content {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}

/* btn styles for header */
.desktop-menu-wrapper > .btn:not(.light) { background-color: var(--theme-main-dark); }
.btn-row-small .btn {
  font-size: 10px;
  white-space: nowrap;
}
.btn-row-small .btn {
  margin-top: 10px;
}

/* ── Header Max-Width (all pages) ── */
.anchor-header-row {
  max-width: 1600px !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 768px) {
  .nav-super-header-inner,
  .anchor-header-row {
    width: 95% !important;
  }
}
/* Show-mobile-only: hidden by default, visible on mobile */
.show-mobile-only { display: none !important; }
@media (max-width: 1200px) {
  .show-mobile-only { display: list-item !important; }
  .hide-mobile, .hide-mobile::before { display: none !important; }
}
/* Mobile super header tweaks */
@media (max-width: 1200px) {
  .nav-super-header-inner { padding: 6px 0; }
  .header-links { align-items: center; }
  .header-links li { margin-right: 0; }
  .header-links li::before { content: none; }
  .header-links a { font-size: 14px; white-space: nowrap; }
  .header-links a i { margin-right: 5px; }
  .right-links { margin-left: auto; }
}
/* Overlay footer */
.overlay-footer-info { margin-top: auto; padding: 16px 0 0; border-top: 1px solid rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: #666; }
.overlay-footer-info a { color: #555; text-decoration: none; }
.overlay-footer-info a:hover { color: var(--theme-main, #2d96eb); }
.overlay-footer-cta { display: flex; gap: 10px; }
.overlay-cta-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 10px; font-size: clamp(12px, 3.5vw, 14px); line-height: 1.2; font-weight: 600; text-decoration: none !important; background: var(--theme-main, #2d96eb); color: #fff !important; transition: opacity .2s; white-space: nowrap; }
.overlay-cta-btn:hover { opacity: 0.85; }
.overlay-cta-btn--outline { background: transparent; color: var(--theme-main, #2d96eb) !important; border: 2px solid var(--theme-main, #2d96eb); }
.overlay-cta-btn i { font-size: 13px; }
.overlay-footer-row { display: flex; flex-direction: column; gap: 8px; }
.overlay-footer-address { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.overlay-footer-address i { flex-shrink: 0; width: 16px; text-align: center; margin-top: 2px; font-size: 13px; color: var(--theme-main, #2d96eb); }
.overlay-footer-socials { display: flex; justify-content: space-evenly; align-items: center; background: #f3f4f6; margin: 8px -5% 0; padding: 14px 5%; }
.overlay-footer-socials a { font-size: 20px; color: #777; transition: color .2s; }
.overlay-footer-socials a:hover { color: var(--theme-main, #2d96eb); }
@media (min-width: 769px) and (max-width: 1200px) { .mobile-menu-overlay nav { max-width: 500px; margin: 0 auto; } .overlay-footer-cta { max-width: 400px; } }
@media (max-width: 1200px) { .menu-toggle-header { min-height: 44px; display: flex; align-items: center; } }
