/* Keep the reading and tab order of the assigned WordPress menu. */
.ct-service-navpair {display:flex; align-items:center}
#meniu .ct-service-root {
  display:inline-flex; align-items:center; min-height:44px;
  padding-inline-end:.22rem; text-decoration:none;
}
#meniu .ct-service-root:is(:hover, :focus-visible, [aria-current]),
.ct-service-navpair.is-section .ct-service-root {text-decoration:underline; text-underline-offset:.42em}
#meniu .ct-services-menu > summary {
  min-width:28px; min-height:44px; padding:0; justify-content:center;
  border-radius:.4rem; cursor:pointer;
}
#meniu .ct-services-menu > summary::after {display:none}
#meniu .ct-services-menu > summary:is(:hover,:focus-visible) {background:#f6dfa51a}
#meniu :is(.ct-service-root,.ct-services-menu > summary):focus-visible {outline:2px solid #dfc58e;outline-offset:1px}
#meniu .ct-service-panel {
  --service-nav-ink: #263b32;
  --service-nav-line: #d7d6c5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .38rem;
  margin: 0;
  padding: clamp(.55rem, 1.2vw, 1rem);
  color: var(--service-nav-ink);
  background: #f6f3e7;
  border: 1px solid #c8c8b3;
  border-radius: .6rem;
}
#meniu .ct-service-entry {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .62rem;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 3.8rem;
  margin: 0;
  padding: .58rem .7rem;
  grid-column: auto;
  border: 1px solid var(--service-nav-line);
  border-radius: .35rem;
  color: var(--service-nav-ink);
  background: #fffcf4;
  font: 550 .93rem/1.35 var(--sans);
  text-align: start;
  text-decoration: none;
}
#meniu .ct-service-name {min-width: 0; overflow-wrap: anywhere; white-space: normal}
#meniu .ct-service-entry .ct-service-glyph {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
  color: #64734f;
  transform: none;
}
#meniu .ct-service-entry:is(:hover, :focus-visible, [aria-current]),
#meniu .ct-service-branch[open] > summary {
  border-color: #9da78f;
  color: #1d382b;
  background: #edf0e3;
}
#meniu .ct-service-entry[aria-current] {box-shadow: inset 3px 0 #556e50}
#meniu .ct-service-entry:focus-visible {outline: 2px solid #856331; outline-offset: -3px}
#meniu .ct-service-panel > .ct-service-entry.all-services {
  color:#fff9ed;
  background:#284235;
  border-color:#284235;
  font-weight:650;
}
#meniu .ct-service-panel > .all-services .ct-service-glyph {color:#ecd39b}
#meniu .ct-service-panel > .all-services::after {
  content:"→" / "";
  display:grid;
  flex:none;
  place-items:center;
  width:1.65rem;
  height:1.65rem;
  margin-inline-start:auto;
  border:1px solid #ae996e;
  border-radius:50%;
  color:#f0d7a4;
  font:500 1rem/1 var(--sans);
}
#meniu .ct-service-panel > .all-services[aria-current] {box-shadow:inset 3px 0 #e7c98e}
#meniu .ct-service-panel > .all-services:is(:hover,:focus-visible) {background:#354f3e;border-color:#967e50}
#meniu .ct-service-panel > .all-services:focus-visible {outline:2px solid #f5d992;outline-offset:-4px}
#meniu .ct-service-branch {min-width: 0}
#meniu .ct-service-panel > .ct-service-branch[open] {grid-column: 1 / -1}
#meniu .ct-service-branch > summary {height: auto; min-height: 100%}
#meniu .ct-service-branch[open] > summary {min-height: 3.8rem}
#meniu .ct-service-branch > summary::after {display: none}
#meniu .ct-service-branch .ct-nav-chevron {flex: none; margin-inline-start: auto}
#meniu .ct-service-subtree {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .3rem;
  min-width: 0;
  margin: .4rem 0 0 .45rem;
  padding: 0 0 0 .45rem;
  background: transparent;
  border: 0;
  border-inline-start: 2px solid var(--service-nav-line);
  box-shadow: none;
}
#meniu .ct-service-subtree::before {display: none}
#meniu .ct-service-subtree .ct-service-entry {min-height: 44px}
@media (min-width: 981px) {
  #meniu .ct-service-navpair > .ct-services-menu {position: static}
  #meniu .ct-service-navpair > .ct-services-menu > .ct-service-panel {
    inset: 100% 0 auto;
    width: min(72rem, 95vw);
    min-width: 0;
    max-height: calc(100vh - 10.1rem - var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100dvh - 10.1rem - var(--wp-admin--admin-bar--height, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline: auto;
    box-shadow: 0 .8rem 2rem #16271c33;
  }
}
@media (max-width: 980px) {
  .ct-service-navpair {display:block;position:relative}
  #meniu .ct-service-navpair > .ct-service-root {position:absolute;inset:0 48px auto 0;z-index:1}
  #meniu .ct-service-navpair > .ct-services-menu > summary {
    width:44px; margin-inline-start:auto; border:1px solid #cfbc8057;
  }
  .mast .menu-toggle {flex: none; width: 44px; height: 44px}
  #meniu > a, #meniu > .nav-services > summary {min-height: 44px}
  /* The fixed WhatsApp control occupies the bottom 69px outside the scrollable drawer. */
  #meniu[data-open] {
    max-height: calc(100vh - 8.9rem - var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100dvh - 8.9rem - var(--wp-admin--admin-bar--height, 0px) - env(safe-area-inset-bottom, 0px));
    padding-bottom: .8rem;
  }
  /* The theme's no-script fallback displays the otherwise closed navigation inline. */
  #meniu:not([data-open]) {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }
  #meniu .ct-service-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: .2rem 0 .65rem;
    border-radius: .45rem;
    box-shadow: none;
  }
  #meniu .ct-service-entry {min-height: 3.35rem}
}
@media (max-width: 580px) {
  #meniu .ct-service-panel {grid-template-columns: minmax(0, 1fr); gap: .28rem; padding: .35rem}
  #meniu .ct-service-entry {min-height: 3.15rem; padding: .4rem .55rem}
  #meniu .ct-service-entry .ct-service-glyph {width: 1.8rem; height: 1.8rem}
}
@media (prefers-reduced-motion: reduce) {
  #meniu .ct-service-panel, #meniu .ct-service-subtree, #meniu .ct-service-entry,
  #meniu .ct-services-menu .ct-nav-chevron {animation: none; transition: none}
}
