/*
Theme Name:   Bassline 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:  bassline-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 (desktop; on tablet / mobile it is the stacked ☰ dropdown) */
.bl-header .elementor-widget-navigation-menu { flex: 1 1 auto; }
/* The logo keeps its set width (24.4px) whether the ☰ menu is open or closed: never squeezed by the menu */
.bl-header .elementor-widget-image { flex-shrink: 0; }
@media (min-width: 1025px) {
	.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 */
}

/* Tablet / mobile: the ☰ toggle sits at the right (also the menu widget's Alignment: right, but set here too so it
   doesn't depend on that setting). Its icon has 0.35em of padding around it, so pull it out by that much: the bars
   end 20px from the edge, like the logo on the left. */
@media (max-width: 1024px) {
	.bl-header .hfe-nav-menu__toggle { margin-left: auto !important; margin-right: -0.35em !important; }

	/* The open ☰ menu: a full-width panel starting at the header's bottom edge (HFE hangs it from the toggle,
	   which is centred in the header: move it down by the space under the toggle), with the header's shadow. */
	.bl-header nav.hfe-dropdown {
		margin-top: calc((var(--min-height, 70px) - 45px) / 2);
		box-shadow: 0 4px 16.1px -6px rgba(0, 0, 0, .25);
	}
	/* Links in line with the logo (20px from the edge) */
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li > a.hfe-menu-item { padding-left: 20px !important; padding-right: 20px !important; } /* beat the menu widget's per-element rule */
	/* "Contact Us": the dark pill, as on desktop (HFE drops the button style in the dropdown) */
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li:last-child > a.hfe-menu-item {
		display: inline-flex;
		width: auto;
		margin: 16px 20px 20px;
		padding: 13px 24px !important;
		border-radius: 100px;
		background-color: var(--bl-dark) !important;
		color: #fff !important;
	}
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li:last-child > a.hfe-menu-item:hover,
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li:last-child > a.hfe-menu-item:focus-visible,
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li:last-child > a.hfe-menu-item:active,
	.bl-header nav.hfe-dropdown .hfe-nav-menu > li:last-child.bl-current > a.hfe-menu-item {
		background-color: var(--bl-gold) !important;
		color: var(--bl-dark) !important;
	}
}

/* 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 only, same weight as the other links (client note: no bold).
   Not the "Contact Us" pill: on the Contact page it turns gold through the pill rules below. */
.bl-header .hfe-nav-menu > li.bl-current:not(:last-child) > a.hfe-menu-item {
	color: var(--bl-gold) !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). */
