/* WordPress-only fixes. Kept outside assets/css because the theme generator rebuilds that folder. */

/* WordPress wraps the header part in a div that is only as tall as the header, which stops
   position:sticky from working. Let the header stick to the page instead. */
.wp-site-blocks > .wp-block-template-part:has(> header){display:contents}
header:has(> .nav){position:sticky;top:0;z-index:100}
.admin-bar header:has(> .nav){top:var(--wp-admin--admin-bar--height,32px)}
@media (max-width: 600px){.admin-bar header:has(> .nav){top:0}}

/* In-page links (#how, #services, #industries...) land below the sticky header. */
html{scroll-padding-top:96px}
@media (max-width: 860px){html{scroll-padding-top:84px}}

/* Back to top and in-page links glide instead of jumping. Visitors who ask for reduced motion keep the instant jump. */
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}
