/*
Theme Name: Boost Growth Agency
Theme URI: https://github.com/FYIwithIsmail/boostgrowthagency-theme
Author: IA Media Holdings
Description: Custom block theme for Boost Growth Agency: An AI Implementation and Business Systems Agency. Built from Figma designs.
Version: 0.15.4
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: boostgrowthagency
*/

/* Colors, fonts and spacing live in theme.json. This file holds layout CSS for custom sections.
   Values below come from Figma frame "Boost Growth — Desktop hero" (node 17:57). */

:root {
	--bga-black: #010101;
	--bga-ink: #0e100f;
	--bga-volt: #f2fc53;
	--bga-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
	--bga-text: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	--bga-gutter: clamp(20px, 8.333vw, 120px);
	--bga-nav-h: 72px;
}

body { margin: 0; }

/* ---------- Buttons ---------- */
.bga-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 999px;
	font-family: var(--bga-text);
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.bga-btn:hover { transform: translateY(-1px); }
.bga-btn:focus-visible { outline: 2px solid var(--bga-volt); outline-offset: 3px; }
.bga-btn--nav { height: 40px; padding: 0 20px; gap: 8px; font-size: 14px; font-weight: 700; }
.bga-btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.bga-btn--volt { background: var(--bga-volt); color: var(--bga-black); font-weight: 700; }
.bga-btn--volt:hover { background: #f7fd8a; color: var(--bga-black); }
/* Mercury-style glass pill */
.bga-btn--glass {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.27);
	color: #fff;
	font-weight: 500;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.bga-btn--glass:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Header: translucent over the hero, frosts on scroll ---------- */
.bga-nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--bga-nav-h);
	padding: 0 var(--bga-gutter);
	background: rgba(255,255,255,.04);
	border-bottom: 1px solid transparent;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color .3s ease, border-color .3s ease;
	font-family: var(--bga-text);
}
.bga-nav.is-scrolled { background: rgba(14,16,15,.75); border-bottom-color: rgba(255,255,255,.07); }
.admin-bar .bga-nav { top: 32px; }
.bga-nav__logo { justify-self: start; display: inline-flex; }
.bga-nav__logo img { display: block; width: 153px; height: auto; }
.bga-nav__links { display: flex; gap: 40px; }
.bga-nav__links a { color: rgba(255,255,255,.8); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.bga-nav__links a:hover { color: #fff; }
.bga-nav__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* Hamburger (tablet + mobile only) */
.bga-nav__toggle {
	display: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.27);
	border-radius: 999px;
	background: rgba(255,255,255,.1);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.bga-nav__toggle:focus-visible { outline: 2px solid var(--bga-volt); outline-offset: 3px; }
.bga-nav__bars { position: relative; display: block; width: 16px; height: 10px; }
.bga-nav__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s ease, top .25s ease;
}
.bga-nav__bars span:first-child { top: 0; }
.bga-nav__bars span:last-child { top: 8px; }
.bga-nav__toggle[aria-expanded="true"] .bga-nav__bars span:first-child { top: 4px; transform: rotate(45deg); }
.bga-nav__toggle[aria-expanded="true"] .bga-nav__bars span:last-child { top: 4px; transform: rotate(-45deg); }

/* Frosted full-screen menu */
.bga-menu {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: calc(var(--bga-nav-h) + 40px) var(--bga-gutter) 40px;
	box-sizing: border-box;
	background: rgba(14,16,15,.82);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	font-family: var(--bga-text);
	opacity: 0;
	transition: opacity .25s ease;
}
.bga-menu.is-open { opacity: 1; }
.bga-menu[hidden] { display: none; }
.bga-menu__links { display: flex; flex-direction: column; }
.bga-menu__links a {
	padding: 18px 0;
	border-bottom: 1px solid rgba(255,255,255,.08);
	font-family: var(--bga-display);
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.5px;
	color: #fff;
	text-decoration: none;
}
.bga-menu__links a:hover, .bga-menu__links a:focus-visible { color: var(--bga-volt); outline: none; }
.bga-menu__actions { display: flex; flex-direction: column; gap: 12px; }
.bga-menu__actions .bga-btn { justify-content: center; }
.bga-menu-open, .bga-menu-open body { overflow: hidden; }
.bga-menu-open .bga-nav { background: transparent; border-bottom-color: transparent; }

.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;
}

/* Light pages (everything except the homepage): same see-through header,
   but with dark text until the visitor scrolls and it frosts over. */
body:not(.home):not(.bga-dark) .bga-nav:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
body:not(.home):not(.bga-dark) .bga-nav:not(.is-scrolled) .bga-nav__links a { color: rgba(1,1,1,.78); }
body:not(.home):not(.bga-dark) .bga-nav:not(.is-scrolled) .bga-nav__links a:hover { color: #010101; }
body:not(.home):not(.bga-dark) .bga-nav:not(.is-scrolled) .bga-nav__logo img { filter: brightness(0); }
body:not(.home):not(.bga-dark) .bga-nav:not(.is-scrolled) .bga-nav__toggle { color: #010101; border-color: rgba(1,1,1,.25); background: rgba(1,1,1,.04); }
/* While the dark mobile menu is open, the header always uses light text. */
.bga-menu-open body .bga-nav .bga-nav__logo img { filter: none; }
.bga-menu-open body .bga-nav .bga-nav__toggle { color: #fff; border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.bga-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 900px;
	padding: calc(var(--bga-nav-h) + 108px) var(--bga-gutter) 107px;
	box-sizing: border-box;
	background: var(--bga-black);
	color: #fff;
	font-family: var(--bga-text);
	overflow: hidden;
}

.bga-hero__media,
.bga-hero__media picture,
.bga-hero__still,
.bga-hero__video,
.bga-hero__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.bga-hero__media { z-index: -1; }
.bga-hero__still,
.bga-hero__video { object-fit: cover; object-position: center; }
.bga-hero__video { opacity: 0; transition: opacity .6s ease; }
.bga-hero__video.is-playing { opacity: 1; }
.bga-hero__layer { display: block; pointer-events: none; }

.bga-hero__layer--overlay {
	background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.333) 45%, rgba(0,0,0,.533) 72%, rgba(0,0,0,.933) 100%);
}
.bga-hero__layer--vignette {
	background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(1,1,1,0) 0%, rgba(1,1,1,0) 42%, rgba(1,1,1,.4) 72%, rgba(1,1,1,.733) 100%);
}

/* Frosted edges: real blur of the moving video, faded out with a mask so there is no hard seam. */
.bga-frost {
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
}
.bga-frost--left {
	width: 25%;
	background: linear-gradient(90deg, rgba(1,1,1,.8) 0%, rgba(1,1,1,.53) 50%, rgba(1,1,1,0) 100%);
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
}
.bga-frost--right {
	left: auto;
	right: 0;
	width: 25%;
	background: linear-gradient(90deg, rgba(1,1,1,0) 0%, rgba(1,1,1,.53) 50%, rgba(1,1,1,.8) 100%);
	-webkit-mask-image: linear-gradient(270deg, #000 0%, #000 45%, transparent 100%);
	mask-image: linear-gradient(270deg, #000 0%, #000 45%, transparent 100%);
}
.bga-frost--top {
	height: calc(var(--bga-nav-h) + 200px);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	background: linear-gradient(180deg, rgba(1,1,1,.4) 0%, rgba(1,1,1,.27) 60%, rgba(1,1,1,0) 100%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}
.bga-frost--bottom {
	top: auto;
	bottom: 0;
	height: 340px;
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	background: linear-gradient(180deg, rgba(1,1,1,0) 0%, rgba(1,1,1,.4) 42%, rgba(1,1,1,.73) 100%);
	-webkit-mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
}

/* Content */
.bga-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 800px;
	text-align: center;
}
.bga-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: normal;
	text-transform: uppercase;
	color: rgba(242,252,83,.8);
}
.bga-eyebrow__dash { display: block; width: 28px; height: 2px; background: var(--bga-volt); }
.bga-hero__title {
	margin: 0;
	font-family: var(--bga-display);
	font-size: clamp(44px, 5vw, 72px);
	font-weight: 700;
	line-height: .96;
	letter-spacing: -1px;
	color: #fff;
}
.bga-hero__copy {
	max-width: 520px;
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255,255,255,.8);
}
.bga-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Cards */
.bga-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 1200px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}
.bga-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px 20px 20px;
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 12px;
	background: rgba(14,16,15,.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.bga-card__icon {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255,255,255,.08);
	color: var(--bga-volt);
}
.bga-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bga-card__text strong { font-size: 15px; font-weight: 700; color: #fff; }
.bga-card__text span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.bga-nav { grid-template-columns: 1fr auto; }
	.bga-nav__links { display: none; }
	.bga-nav__toggle { display: grid; }
	.bga-cards { grid-template-columns: 1fr; max-width: 560px; margin-top: 64px; }
	.bga-hero { min-height: 100svh; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	:root { --bga-nav-h: 64px; }
	.admin-bar .bga-nav { top: 46px; }
	.bga-nav__logo img { width: 128px; }
	.bga-nav .bga-btn--nav { display: none; }
	.bga-nav__toggle { width: 36px; height: 36px; }
	.bga-nav__actions { gap: 8px; }
	.bga-hero { padding-top: calc(var(--bga-nav-h) + 56px); padding-bottom: 32px; }
	.bga-frost--left, .bga-frost--right { width: 18%; }
	.bga-hero__content { gap: 20px; }
	.bga-hero__copy { font-size: 16px; }
	.bga-hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
	.bga-hero__actions .bga-btn { justify-content: center; }
	.bga-cards { margin-top: 48px; gap: 12px; }
}

/* Hero head wrapper: same as before on tablet/desktop. */
.bga-hero__head { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ---------- Phones only: show the cockpit clearly ----------
   The photo sits as a clear band at the top (wheel and gloves visible),
   the headline rides over the windshield, and the rest sits below on black. */
@media (max-width: 767px) {
	.bga-hero { --bga-hero-band: calc(var(--bga-nav-h) + 122vw); padding-top: calc(var(--bga-nav-h) + 22px); }
	.bga-hero__media { bottom: auto; height: var(--bga-hero-band); }
	.bga-hero__still, .bga-hero__video { object-position: 50% 100%; }
	.bga-frost, .bga-hero__layer--vignette { display: none; }
	.bga-hero__layer--overlay {
		background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 26%, rgba(0,0,0,.08) 46%, rgba(0,0,0,0) 62%, rgba(0,0,0,.35) 84%, #000 100%);
	}
	.bga-hero__head { gap: 14px; min-height: calc(122vw - 22px); justify-content: flex-start; }
	.bga-hero__title { font-size: clamp(36px, 10.4vw, 44px); text-shadow: 0 2px 18px rgba(0,0,0,.55); }
	.bga-hero .bga-hero__pause { top: calc(var(--bga-hero-band) - 64px); }
	/* Clear header over the photo until the visitor scrolls. */
	body.home .bga-nav:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bga-btn, .bga-hero__video, .bga-nav, .bga-menu, .bga-nav__bars span { transition: none; }
}

/* WordPress adds a 24px gap between top-level blocks; it showed the dark body as a bar above each page. */
.wp-site-blocks > * { margin-block-start: 0; }

/* Hero video pause control (WCAG 2.2.2) */
.bga-hero__pause { position: absolute; right: var(--bga-gutter); top: calc(var(--bga-nav-h) + 20px); z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(14,16,15,.45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.bga-hero__pause[hidden] { display: none; }
.bga-hero__pause:hover { background: rgba(14,16,15,.7); }
.bga-hero__pause:focus-visible { outline: 2px solid var(--bga-volt); outline-offset: 3px; }
.bga-hero__play-icon { display: none; }
.bga-hero__pause[aria-pressed="true"] .bga-hero__pause-icon { display: none; }
.bga-hero__pause[aria-pressed="true"] .bga-hero__play-icon { display: block; }
.bga-score__card:focus-visible { outline: 2px solid #010101; outline-offset: 3px; }
