/* ===== mobile-polish.css ===== */
/* Mobile reading and touch spacing; desktop and the approved drawer stay unchanged. */
@media (max-width: 860px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .mobilebar {
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }
  .mobilebar a {
    min-height: 71px;
    padding: 10px 4px;
    font-size: 12px;
    line-height: 1.4;
  }
}
@media (max-width: 700px) {
  .caselist {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  main > .crumbbar .wrap.crumbs {
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    line-height: 1.7;
  }
  main > .crumbbar .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  .section-head h2 {
    font-size: clamp(22px, 5.8vw, 24px);
    line-height: 1.65;
    text-wrap: balance;
  }
  .section-head h2 br,
  .dsec h2 br,
  .faqband h2 br,
  .finalcta h2 br,
  .contact2 h2 br {
    display: none;
  }
  .section-head h2.phz span,
  .dsec h2.phz span,
  .faqband h2.phz span,
  .finalcta h2.phz span,
  .contact2 h2.phz span {
    display: inline;
  }
  .finalcta h2,
  .contact2 h2 {
    font-size: 24px;
    line-height: 1.65;
    text-wrap: balance;
  }
  .caselist {
    gap: 12px;
  }
  .caselist li {
    padding: 16px 16px 16px 50px;
    font-size: 15px;
    line-height: 1.8;
    border-radius: 8px;
  }
  .caselist li::before {
    left: 16px;
    width: 22px;
    height: 22px;
  }
  .buy-col {
    padding: 24px 18px;
  }
  .buy-col .cat {
    padding: 13px 12px;
    gap: 10px;
    font-size: 15px;
  }
  .buy-col .btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }
  .note,
  .caution {
    padding: 18px 16px;
    gap: 10px;
  }
  .note p,
  .caution p {
    min-width: 0;
    font-size: 15px;
    line-height: 1.9;
  }
  .itags {
    justify-content: flex-start;
    gap: 8px;
  }
  .itag {
    padding: 10px 14px;
    font-size: 14px;
  }
  .agrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .acard h3 {
    font-size: 17px;
    line-height: 1.7;
  }
  .acard p {
    font-size: 16px;
    line-height: 1.9;
  }
  .acard small {
    font-size: 14px;
    line-height: 1.8;
  }
  .service-intro-links a {
    font-size: 14px;
  }
  .story-links {
    gap: 4px 16px;
  }
  .story-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .flow-foot a {
    max-width: 100%;
    font-size: 14px;
    white-space: normal;
  }
  footer.site .foot-col h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  footer.site .foot-col ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  footer.site .foot-col ul a,
  footer.site .foot-bottom .links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.7;
  }
  footer.site .foot-bottom .links {
    flex-wrap: wrap;
    gap: 0 20px;
  }
}
@media (max-width: 380px) {
  .company-profile .company-sheet > div:first-child dd {
    font-size: 1rem;
  }
  .dsec .chipbox {
    padding: 20px 16px;
  }
  .dsec .chips {
    grid-template-columns: minmax(0, 1fr);
  }
  .dsec--wide .chipbox {
    padding: 20px 0 0;
  }
}


/* ===== site-navigation.css ===== */
/* Shared navigation. Keep this after the page-specific styles. */
header.site .wrap.bar {
  max-width: 1240px;
  height: 84px;
  gap: 24px;
}
header.site .brand {
  margin-right: auto;
}
header.site .brand .brandmark {
  height: 39px;
  width: auto;
}
header.site nav.main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: 24px;
  margin: 0;
}
header.site nav.main a,
header.site nav.main summary {
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
}
header.site nav.main a::after {
  content: none;
}
header.site nav.main > .nav-link,
header.site nav.main .nav-group > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}
header.site nav.main > .nav-link:hover,
header.site nav.main .nav-group > summary:hover {
  color: var(--navy);
}
header.site nav.main > .nav-link[aria-current="page"],
header.site nav.main .nav-group.is-current > summary {
  color: var(--navy);
  box-shadow: inset 0 -2px var(--navy);
}
.nav-group {
  position: relative;
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 0 2px 4px 0;
  flex: 0 0 auto;
}
.nav-group[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 5px;
}
header.site nav.main .nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  min-width: 286px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(46, 64, 72, 0.12);
  z-index: 1;
}
header.site nav.main .nav-submenu a {
  display: block;
  padding: 13px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}
header.site nav.main .nav-submenu a:hover,
header.site nav.main .nav-submenu a[aria-current="page"] {
  background: var(--mist);
  color: var(--navy);
}
header.site nav.main .nav-submenu a[aria-current="page"] {
  font-weight: 700;
}
header.site .head-actions {
  margin: 0;
  gap: 14px;
}
header.site .head-actions .nav-estimate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  min-height: 48px;
  background: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
}
header.site .head-actions .nav-estimate:hover {
  background: var(--coral-600);
  border-color: var(--coral-600);
}
header.site .hamb {
  display: none;
  width: 46px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 6px;
}
header.site .hamb[hidden] {
  display: none;
}
header.site :is(a, button, summary):focus-visible,
dialog.drawer :is(a, button, summary):focus-visible,
.navigation-fallback a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
dialog.drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  transition: none;
}
dialog.drawer:not([open]) {
  display: none;
}
dialog.drawer[open] {
  display: block;
}
dialog.drawer::backdrop {
  background: rgba(46, 64, 72, 0.4);
}
dialog.drawer .drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(90%, 400px);
  height: 100%;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  transform: none;
  transition: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -8px 0 32px rgba(46, 64, 72, 0.1);
}
dialog.drawer .drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
dialog.drawer .drawer-heading h2 {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
}
dialog.drawer .close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  align-self: auto;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
}
dialog.drawer .close svg {
  width: 22px;
  height: 22px;
}
dialog.drawer .nav-group {
  border-bottom: 1px solid var(--border);
}
dialog.drawer .nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
dialog.drawer .nav-group.is-current > summary {
  color: var(--navy);
}
dialog.drawer .nav-submenu {
  margin: 0 0 16px;
  padding: 6px 10px 6px 9px;
  list-style: none;
  background: transparent;
  border-left: 1px solid var(--border);
  border-radius: 0;
}
dialog.drawer .nav-submenu a {
  display: block;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}
dialog.drawer .nav-submenu a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}
dialog.drawer a.dnav {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
dialog.drawer a.dnav[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}
dialog.drawer a:hover {
  color: var(--navy);
}
dialog.drawer .drawer-cta {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 8px;
}
dialog.drawer .drawer-cta .btn {
  padding: 16px 12px;
  min-height: 52px;
  font-size: 15px;
  border-radius: 6px;
  white-space: normal;
  text-align: center;
}
dialog.drawer .drawer-cta .nav-estimate {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
dialog.drawer .drawer-cta .nav-estimate:hover {
  background: var(--coral-600);
  border-color: var(--coral-600);
}
dialog.drawer .drawer-phone {
  display: block;
  text-align: center;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
dialog.drawer .drawer-hours {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
/* Brief press feedback; keep the menu's resting appearance and native link behavior. */
dialog.drawer :is(a, summary, button) {
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out,
    transform 140ms ease-out;
}
dialog.drawer :is(a, summary, button):active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 60ms;
}
dialog.drawer .nav-group > summary:active,
dialog.drawer .nav-submenu a:active,
dialog.drawer a.dnav:active,
dialog.drawer .drawer-phone:active,
dialog.drawer .close:active {
  background-color: var(--mist);
}
dialog.drawer .drawer-cta .nav-estimate:active {
  background-color: var(--coral-600);
  border-color: var(--coral-600);
  color: #fff;
}
html.site-menu-open {
  overflow: hidden;
}
.navigation-fallback {
  display: none;
}
@media (max-width: 1100px) {
  header.site nav.main {
    display: none;
  }
  header.site .hamb {
    display: flex;
  }
  header.site .head-actions {
    margin-left: auto;
  }
  .navigation-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 18px 24px;
    background: var(--warm);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  header.site .wrap.bar {
    height: 72px;
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }
  header.site .brand .brandmark {
    height: 34px;
  }
  header.site .head-actions .nav-estimate {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.drawer :is(a, summary, button) {
    transition: none;
  }
  dialog.drawer :is(a, summary, button):active {
    transform: none;
    transition: none;
  }
}


/* ===== accessibility.css ===== */
/* Accessibility and reduced motion are shared by both outputs. */
.skip-link{position:fixed;top:8px;left:8px;z-index:10000;padding:12px 18px;background:#fff;color:#2e4048;border:2px solid #3e5d6b;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ===== WordPress: posts, cases, forms and admin bar ===== */
.admin-bar header.site {
  top: 32px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.case-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.case-card a {
  display: block;
  height: 100%;
}
.case-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  height: auto;
}
.case-card-body {
  padding: 24px;
}
.case-card h3 {
  font-size: 22px;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.case-meta {
  color: var(--muted);
  font-size: 14px;
}
.case-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: #9aada9;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.case-card a:is(:hover, :focus-visible, :active) .case-more {
  color: var(--navy-700);
  text-decoration-color: currentColor;
}
.case-pagination {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.case-pagination a,
.case-pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
}
.case-detail {
  max-width: 900px;
}
.case-detail > .wp-post-image {
  width: 100%;
  height: auto;
  margin-bottom: 32px;
}
.case-facts {
  margin: 24px 0 40px;
}
.case-facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.case-facts dd {
  margin: 0;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
}
.entry-content h2,
.entry-content h3 {
  margin: 40px 0 20px;
}
.entry-content a:not(.btn) {
  text-decoration: underline;
}
.entry-content img {
  height: auto;
  max-width: 100%;
}
.case-return {
  margin: 40px 0 24px;
}
.form-message {
  padding: 20px;
  border: 1px solid var(--border);
  margin: 24px 0;
  background: var(--mist);
}
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 782px) {
  .admin-bar header.site {
    top: 46px;
  }
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .case-card-body {
    padding: 20px;
  }
  .case-facts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
