/*
Theme Name:   Baseline Child
Template:     hello-elementor
Version:      1.3.5
Description:  Child theme for the Bassline AV site. Pages, header and footer are built in Elementor; values follow the Figma file "User flow" › Landing page design.
Text Domain:  baseline-child
*/

:root {
	--bl-ink: #090909;
	--bl-bg: #f7f7f7;
	--bl-dark: #211c14;
	--bl-gold: #efb664;
}

body { background: var(--bl-bg); }

/* ---------- Header (Header Footer Elementor wraps it in #masthead) ---------- */
/* Selector must outrank HFE's ".ehf-header #masthead { position: relative }" */
body.ehf-header #masthead {
	position: sticky;
	top: 0;
	z-index: 999;
}
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 46px; } }

/* Keep the menu on one line next to the logo */
.bl-header .elementor-widget-navigation-menu { flex: 1 1 auto; }
.bl-header .hfe-nav-menu { flex-wrap: nowrap; }

/* Figma "Navigation" (916:408; design/figma-spec/home.tsv): "Contact Us" pill at x=1237–1365, labels centred
   on x=777 / 914 / 1045.5 / 1166. The boxed header row ends 12px past the 1365 content edge, and the design's
   gaps are uneven (137 / 131.5 / 120.5px between label centres), so the first two items get a little more room. */
@media (min-width: 1025px) {
	.e-con.bl-header .elementor-widget-navigation-menu { margin-right: 12px; }
	body:not(.rtl) .e-con.bl-header .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li.menu-item:nth-child(1) { margin-right: 28.5px !important; }
	body:not(.rtl) .e-con.bl-header .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li.menu-item:nth-child(2) { margin-right: 35px !important; } /* beats the menu widget's per-element rule */
}

/* Menu links: gold on hover, while being clicked and for the current section (design notes 2–3) */
.bl-header .hfe-nav-menu > li:not(:last-child) > a.hfe-menu-item { transition: color .2s ease; }
.bl-header .hfe-nav-menu > li:not(:last-child) > a.hfe-menu-item:hover,
.bl-header .hfe-nav-menu > li:not(:last-child) > a.hfe-menu-item:focus-visible,
.bl-header .hfe-nav-menu > li:not(:last-child) > a.hfe-menu-item:active { color: var(--bl-gold) !important; }

/* Current section in the menu: gold ExtraBold (Figma OEMs / Work / Solutions frames).
   Not the "Contact Us" pill: on the Contact page it turns gold but keeps its normal weight (client note). */
.bl-header .hfe-nav-menu > li.bl-current:not(:last-child) > a.hfe-menu-item {
	color: var(--bl-gold) !important;
	font-weight: 800 !important;
}

/* "Contact Us" pill: dark with white text; gold with dark text on hover, while clicked and on the
   Contact page itself (design note 4). */
.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item {
	color: #fff !important;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item:hover,
.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item:focus-visible,
.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item:active,
.bl-header .hfe-nav-menu > li:last-child.bl-current > a.hfe-menu-item {
	background-color: var(--bl-gold) !important;
	color: var(--bl-dark, #211c14) !important;
}
.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item:active { transform: scale(.97); }

/* Logo: grows a little on hover / keyboard focus so it reads as a link to the home page (design note 5) */
.bl-header .elementor-widget-image a { display: inline-block; }
.bl-header .elementor-widget-image img {
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); /* slight overshoot */
	transform-origin: left center;
}
.bl-header .elementor-widget-image a:hover img,
.bl-header .elementor-widget-image a:focus-visible img { transform: scale(1.18); }
.bl-header .elementor-widget-image a:active img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
	.bl-header .elementor-widget-image img,
	.bl-header .hfe-nav-menu > li:last-child > a.hfe-menu-item { transition: none; }
}

/* Plain at the top of the page; shadow appears once scrolled (Figma note) */
.bl-header { transition: box-shadow .25s ease; }
.bl-scrolled .bl-header { box-shadow: 0 4px 16.1px -6px rgba(0, 0, 0, .25); }

/* ---------- Footer ---------- */
/* "Get in Touch" (the footer's only button): gold outline; filled gold with dark text on hover / click */
#colophon .elementor-widget-button .elementor-button {
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
#colophon .elementor-widget-button .elementor-button:hover,
#colophon .elementor-widget-button .elementor-button:focus-visible,
#colophon .elementor-widget-button .elementor-button:active {
	background-color: var(--bl-gold) !important;
	border-color: var(--bl-gold) !important;
	color: var(--bl-dark) !important;
}
#colophon .elementor-widget-button .elementor-button:hover .elementor-button-text,
#colophon .elementor-widget-button .elementor-button:focus-visible .elementor-button-text,
#colophon .elementor-widget-button .elementor-button:active .elementor-button-text { color: var(--bl-dark) !important; }
#colophon .elementor-widget-button .elementor-button:active { transform: scale(.97); }

/* ---------- Hero ---------- */
/* Figma crops the main photo: full width, 147.09% of the 567px frame tall (834px), shifted up 5.07% */
.e-con.bl-hero-main {
	background-size: 100% 834px !important;
	background-position: 0 -28.7px !important;
}
@media (max-width: 1024px) {
	.e-con.bl-hero-main { background-size: cover !important; background-position: center !important; }
}

/* Client logo marquee, Work / OEMs / Solutions grids, contact details and the WhatsApp button
   are Bassline Core widgets: their styles are in plugins/bassline-core/assets/widgets.css. */

/* Process timeline and Instagram feed: Bassline Core widgets (plugins/bassline-core/assets/widgets.css). */
