/*
Theme Name: BneuTech
Theme URI: https://home.bneutech.com/
Author: BneuTech
Author URI: https://home.bneutech.com/about.html
Description: Custom WooCommerce theme that pixel-matches the BneuTech static site (home.bneutech.com): floating glass pill nav, dark trading-terminal palette (#05070d base, electric blue #1e90ff, warm gold #ffb300), Inter type stack and the .product-card catalogue grid. The design system is a byte copy of the live static stylesheet so both properties stay in sync.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bneutech
Tags: woocommerce, dark, e-commerce, custom-menu, full-width-template, translation-ready
*/

/* ==========================================================================
   This file holds the WordPress-only layer.
   Load order (see functions.php -> bneutech_enqueue_assets):
     assets/css/bneutech-base.css   <- byte copy of the live static stylesheet
     assets/css/components.css      <- CSS harvested from static per-page <style> blocks
     assets/css/woocommerce.css     <- WooCommerce component overrides
     style.css                      <- this file, loaded last so it can win
   ========================================================================== */

/* ---------- Accessibility ---------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip-path: none;
	color: var(--text);
	display: block;
	font-size: 0.9rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* ---------- WordPress menu markup inside .nav-links ----------
   The static nav renders <a> elements directly inside .nav-links. WordPress renders
   <ul><li><a>. These rules make the WP markup lay out exactly like the static markup
   (flex row + 28px gap on desktop, stacked full-width list on mobile). */
.nav-links > ul {
	align-items: center;
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links > ul li {
	margin: 0;
	padding: 0;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
	color: var(--text);
}

@media (max-width: 860px) {
	.nav-links > ul {
		display: block;
		width: 100%;
	}
}

/* ---------- Editorial / classic content glue ---------- */
.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content ul,
.entry-content ol {
	color: var(--text-dim);
	padding-left: 1.2em;
}

.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 16px;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption,
.gallery-caption {
	color: var(--text-mute);
	font-size: 0.85rem;
	text-align: center;
}

.sticky .entry-title::after {
	color: var(--gold);
	content: " •";
}

/* ---------- WP admin bar keeps the sticky nav clear ---------- */
.admin-bar .nav {
	top: 46px;
}

@media screen and (min-width: 783px) {
	.admin-bar .nav {
		top: 46px;
	}
}

/* ---------- Search form (mirrors .form controls in the base CSS) ---------- */
.search-form {
	display: flex;
	gap: 10px;
	margin: 0 auto;
	max-width: 560px;
}

.search-form .search-field {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	padding: 12px 14px;
	width: 100%;
}

.search-form .search-field:focus {
	background: var(--surface);
	border-color: var(--blue);
	outline: none;
}

/* ---------- Utility complement ----------
   The base CSS ships .text-center and .mt-3 but no .mb-3, and the WP templates need a
   bottom spacer for standalone blocks (search forms, button rows). */
.mb-3 {
	margin-bottom: 30px;
}

/* ---------- Home four-systems badges ----------
   public/index.html carries these four colour pairs as inline styles on the badge
   <span>. The template renders them as classes instead so the palette lives in one
   place; the values are the live inline styles verbatim.

   Like `.badge.cat-*` in the base CSS these rules set COLOURS ONLY. The badge box
   belongs to `.product-card.badge` in the base file - a broken compound selector that
   can never match - so adding padding/radius/size here would make the home cards stop
   matching the static site. Parity harness: _tools/parity/run-parity.py. */
.badge-phase-1 {
	background: rgba(255, 179, 0, 0.12);
	border: 1px solid rgba(255, 179, 0, 0.35);
	color: #ffd84d;
}

.badge-phase-2 {
	background: rgba(30, 144, 255, 0.12);
	border: 1px solid rgba(30, 144, 255, 0.35);
	color: #00bfff;
}

.badge-phase-3 {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #4ade80;
}

.badge-phase-4 {
	background: rgba(168, 85, 247, 0.12);
	border: 1px solid rgba(168, 85, 247, 0.35);
	color: #c084fc;
}

/* ---------- Why the WP menu markup needs help ----------
   On the live site .nav-links holds bare <a> elements; WordPress wraps them in
   <ul><li>. The layout rules above make the list behave like the bare anchors.

   Everything else (.nav-links a colours, sizes, the 860px panel padding/border, the
   .nav-cta pill) already comes from the base CSS, which matches descendants — so do NOT
   restate those properties here or the port stops being 1:1. The only genuinely new
   declaration needed is display:block on the anchor, because an <a> inside an <li> is
   inline, and the base CSS sets width/padding assuming a flex/block box. */
@media (max-width: 860px) {
	.nav-links > ul a {
		display: block;
	}
}

/* ---------- Screen-reader-only "Menu" label target ---------- */
.burger:focus-visible,
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--blue-2);
	outline-offset: 2px;
}

/* ---------- WooCommerce utility pages that render inside the design shell ---------- */
.woocommerce-notices-wrapper:empty {
	display: none;
}

}
