/* Mobile navigation */
@media (max-width: 1320px) {
  .hamburger-btn { display: flex; }
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--base);
    border-top: 1px solid var(--border-color-light);
    padding: var(--space-s) 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .site-header__inner:has(.hamburger-btn[aria-expanded="true"]) .site-header__nav {
    display: flex;
    flex-direction: column;
  }
  .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-header__nav-list > li {
    width: 100%;
  }
  .site-header__nav-link {
    display: block;
    width: 100%;
    padding: 0.85rem var(--space-m);
  }
  #services-dropdown,
  #digital-marketing-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: color-mix(in srgb, var(--white) 4%, transparent);
    min-width: 0;
    width: 100%;
    padding-left: var(--space-m);
  }
  .site-header__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-s);
    order: -1;
    width: 100%;
    margin: 0;
    padding: var(--space-s) var(--space-m);
    border-bottom: 1px solid var(--border-color-light);
  }
  .site-header__contact {
    align-items: flex-start;
  }
  .site-header__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}



@media (max-width: 900px) {
  .services-hub-hero-grid {
    grid-template-columns: 1fr;
  }
  .services-hub-hero-image {
    order: 2;
  }
  .services-hub-hero-text {
    order: 1;
  }
}


@media (max-width: 900px) {
  .dm-hero-grid {
    grid-template-columns: 1fr;
  }
  .dm-hero-image {
    order: 2;
  }
  .dm-hero-text {
    order: 1;
  }
}

/* Legal pages + shared inner-page hero (emitted globally so utility pages pick it up) */
.service-hero { position: relative;
  overflow: hidden;
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--base) 94%, transparent) 0%, color-mix(in srgb, var(--base) 88%, transparent) 45%, var(--base) 100%), url('../assets/buffalo-skyline-cc0-hero-1536x864.webp') center/cover no-repeat;
  text-align: center; }
.service-hero__inner { max-width: var(--content-width-safe, 780px); margin-inline: auto; padding-inline: var(--space-m); text-align: center; position: relative; z-index: 2; }
.service-hero__heading { color: var(--white); font-size: var(--text-xxl); margin-bottom: var(--space-s); }
.service-hero__subhead { color: color-mix(in srgb, rgb(255,255,255) 72%, transparent); font-size: var(--text-l); margin-bottom: var(--space-m); }
.legal-main { padding-block: var(--space-l) var(--space-xl); background: var(--white); }
.legal-main__inner { inline-size: 100%; max-inline-size: var(--content-width, 1366px); margin-inline: auto; padding-inline: var(--space-m); }
.legal-prose { max-inline-size: 48rem; margin-inline: auto; color: var(--text); font-family: inherit; }

.legal-prose h1,
.legal-prose h2,
.legal-prose h3,
.legal-prose h4 {
  font-family: inherit;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-s);
}
.legal-prose h2 { font-size: var(--text-l); margin-top: var(--space-l); }
.legal-prose h3 { font-size: var(--text-m); margin-top: var(--space-m); }
.legal-prose p,
.legal-prose li {
  font-family: inherit;
  color: var(--text);
  font-size: var(--text-m);
  line-height: 1.7;
}
.legal-prose p { margin: 0 0 var(--space-s); }
.legal-prose ul,
.legal-prose ol { margin: 0 0 var(--space-m); padding-inline-start: 1.25rem; }
.legal-prose a { color: var(--primary); }
.legal-prose > h1:first-of-type { display: none; }

/* sws-pagination phone */
@media (max-width: 48.0625rem) {
  .sws-pagination__controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: var(--space-xs);
    width: 100%;
  }
  .sws-pagination__btn--page { display: none !important; }
  .sws-pagination__label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
  }
  .sws-pagination__btn--prev { justify-self: start; }
  .sws-pagination__btn--next { justify-self: end; }
}
