/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* GLHM body font: the exact --glhm-sans stack from design-system.md.
   Bricks' font-family control quotes var() values, so this lives here.
   Body only: inherited, so it never overrides fonts set on elements by Bricks classes. */
body {
	font-family: var(--glhm-sans);
}

/* GLHM sticky header (Bricks: header template > Sticky header + Sticky on scroll).
   Keep focused elements and #anchor targets clear of it (WCAG 2.2 SC 2.4.11 Focus Not
   Obscured). The header is ~147px tall including the announcement bar; re-measure if it changes. */
html {
	scroll-padding-top: 160px;
}

/* Phones: no sticky header. A ~159px header plus the ~102px call bar would cover about a third
   of the screen. The call bar stays; keep focus and anchors clear of it instead. */
@media (max-width: 767px) {
	html {
		scroll-padding-top: 0;
		scroll-padding-bottom: 116px;
	}
	#brx-header.brx-sticky {
		position: relative;
	}
}

/* GLHM scroll reveal (js/glhm-motion.js). Hidden state applies only once the script has run,
   so content is always visible without JS and for reduced-motion visitors. */
.gl-rv {
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.gl-anim .gl-rv:not(.gl-in) {
	opacity: 0;
	transform: translateY(28px);
}
@media (prefers-reduced-motion: reduce) {
	.gl-anim .gl-rv:not(.gl-in) {
		opacity: 1;
		transform: none;
	}
}
