/*
Theme Name: Blank Theme
Theme URI: http://basework.studio
Author: Basework Studio
Author URI: http://basework.studio
Version: 1.3
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: blankslate
Requires at least: 6.2
Requires PHP: 8.0
*/

/*
 * Screen-reader-only text, and the "Skip to content" link (header.php) that
 * appears when focused with the keyboard. Every <main> has id="main".
 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: #fff;
	color: #000;
	font-weight: 600;
	text-decoration: none;
}

/*
 * Offsets the scroll stop so a section opened by anchor (e.g. /services/#consulting)
 * doesn't hide its heading under the fixed header. `id` is only printed when the
 * editor sets `custom_id` in the Advance tab. Match the values to the header height.
 */
section[id] {
	scroll-margin-top: 140px;
}

@media (max-width: 991px) {
	section[id] {
		scroll-margin-top: 100px;
	}
}

/*
 * GF's anchor (`#gf_{id}`): when a non-AJAX form reloads with a validation
 * error, the browser jumps here — without an offset the first field and its
 * error stay under the fixed header.
 */
.gform_anchor {
	scroll-margin-top: 140px;
}

@media (max-width: 991px) {
	.gform_anchor {
		scroll-margin-top: 110px;
	}
}
