/* Round 2 brand layer: Nova Electric as the manufacturer Novacom represents (mega menu, product badges, partners),
   plus mobile-menu contacts and footer details. Novacom's own logo and header stay as in main.css. Loads after main.css. */
/* Agent A owns this file. The Nova Electric logo is a TEMP raster from novaelectric.com (dark-on-light), so it
   always sits on a light plate; it is never inverted or recoloured. A reversed version is ASSET PENDING. */

:root {
	--ne-grey: #9aa3ad;      /* minimum label grey on #0f0f0f (brief P1-3): 7.6:1 */
	--ne-grey-hi: #c9cfd6;
	--ne-plate: #fff;
	--ne-cut: 6px;
}

/* ---------- Light logo plate ---------- */
.ne-plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	background: var(--ne-plate);
	clip-path: polygon(0 0, calc(100% - var(--ne-cut)) 0, 100% var(--ne-cut), 100% 100%, var(--ne-cut) 100%, 0 calc(100% - var(--ne-cut)));
}
.ne-plate img { display: block; height: 100%; width: auto; max-width: none; }

/* Country strip: moved out of the header (brief P2-8; it wrapped there at 1440–1920 px). It lives in the footer
   and the mobile menu only. The header brand is Novacom's own wordmark, styled in main.css. */
.nav-end .region { display: none; }

/* ---------- Mega-menu: Nova Electric logo top-left + "View all N series" ---------- */
.mm-top {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 22px;
	border-bottom: 1px solid var(--line-2);
}
.ne-plate--mega { height: 44px; padding: 4px 6px; }
.mm-top__txt { font-size: 14px; color: var(--text-mid); }
.mm-all {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font: 500 14px/1.2 var(--font-body);
	color: var(--text-hi);
	white-space: nowrap;
}
.mm-all:hover { color: var(--blue-hi); }
.mm-all .arr { transition: transform var(--t-base) var(--ease-out); }
.mm-all:hover .arr { transform: translateX(4px); }

/* ---------- Mobile menu: contacts above "Request a Quote" ---------- */
.mm-reach { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.mm-reach a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line-2);
	color: var(--text-hi);
	text-decoration: none;
}
.mm-reach a:hover .mm-reach__v, .mm-reach a:focus-visible .mm-reach__v { color: var(--blue-hi); }
.mm-reach__k { font-size: 12px; letter-spacing: .14em; color: var(--ne-grey); }
.mm-reach__v { font-size: 16px; text-align: right; overflow-wrap: anywhere; }
.mm-meta { font-size: 12px; letter-spacing: .1em; line-height: 1.7; color: var(--ne-grey); }

/* ---------- Footer ---------- */
.foot .dim { color: var(--ne-grey); }
.foot-cols a, .foot-meta a, .contact-list li, .legal a { font-size: 14px; }
.foot-cols a, .foot-meta a { color: var(--ne-grey-hi); }
.foot-bot { flex-wrap: wrap; font-size: 12px; }
.foot-region { white-space: nowrap; }

/* ---------- Partners: Nova Electric feature card + equal-height sister cards ---------- */
.pt-sec { padding-top: var(--section-y); }
.pt-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; }
.pt-lead {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(20px, 3vw, 36px);
	background: var(--panel);
	border: 1px solid var(--line-2);
}
.ne-plate--feature { height: clamp(120px, 11vw, 160px); padding: 10px 14px; }
.pt-lead h3 { margin: 6px 0 8px; font: 500 var(--fs-h3)/1.2 var(--font-display); color: var(--text-hi); }
.pt-tag { font-size: 12px; letter-spacing: .12em; line-height: 1.5; color: var(--ne-grey); }
.pt-lead .pt-tag { color: var(--red-text, #ff4d6d); }
.pt-lines { font-size: 15px; line-height: 1.6; color: var(--text-mid); }
.pt-rep { margin-top: 10px; max-width: 60ch; font-size: 14px; line-height: 1.6; color: var(--ne-grey-hi); }
.pt-link { margin-top: auto; padding-top: 10px; }
.pt-lead .pt-link { margin-top: 0; }
.pt-sec .ext { color: var(--blue-hi); font-size: 14px; overflow-wrap: anywhere; }
.pt-sec .ext:hover { color: var(--text-hi); }

.pt-cta {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	background: var(--red-btn);
	color: #fff;
	text-decoration: none;
	transition: background var(--t-base) var(--ease-out);
}
.pt-cta:hover { background: var(--red); }
.pt-cta .pt-tag { color: #fff; } /* 4.8:1 on #e00034 (was #ffe3ea, 4.13:1) */
.pt-cta__h { font: 500 20px/1.3 var(--font-display); }
.pt-cta__p { font-size: 14px; line-height: 1.55; }
.pt-cta .arr { display: inline-block; transition: transform var(--t-base) var(--ease-out); }
.pt-cta:hover .arr { transform: translateX(4px); }

.pt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--panel);
	border: 1px solid var(--line-2);
	transition: border-color var(--t-base) var(--ease-out);
}
.pt-card:hover { border-color: var(--line-3); }
.pt-plate { display: flex; align-items: center; justify-content: center; height: 92px; padding: 12px 20px; background: var(--ne-plate); }
.pt-plate img { width: var(--lw, auto); height: auto; max-height: 72px; max-width: 86%; object-fit: contain; }
.pt-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.pt-card h3 { font: 500 18px/1.3 var(--font-display); color: var(--text-hi); }

@media (max-width: 1100px) {
	.pt-top { grid-template-columns: minmax(0, 1fr); }
	.pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.pt-lead { grid-template-columns: minmax(0, 1fr); }
	.ne-plate--feature { height: 112px; justify-self: start; }
	.pt-grid { grid-template-columns: minmax(0, 1fr); }
	/* Stacked, not side-by-side: a 100 px side plate made the wordmarks (Jasper, EIT) illegible. */
	.pt-plate { height: 88px; padding: 12px 16px; }
	.pt-plate img { width: calc(var(--lw, 140px) * .9); max-height: 60px; }
	.pt-card__body { padding: 16px 18px 18px; }
}

/* ---------- Round 2 follow-up: home height on phones, footer groups, home RFQ bar ---------- */

/* Footer family groups: desktop shows the heading link + list; phones get collapsible <details>. */
.foot-fam > summary { display: none; }
.foot-fam .foot-all { display: none; }
@media (max-width: 640px) {
	.foot-h--desk { display: none; }
	.foot-cols { gap: 0; padding-top: 20px; padding-bottom: 20px; }
	.foot-fam { border-bottom: 1px solid var(--line-2); }
	.foot-fam > summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		min-height: 48px;
		margin: 0;
		cursor: pointer;
		list-style: none;
		color: var(--text-hi);
		font-size: 15px;
	}
	.foot-fam > summary::-webkit-details-marker { display: none; }
	.foot-fam > summary::after {
		content: "";
		width: 9px;
		height: 9px;
		margin-right: 4px;
		border-right: 1.5px solid var(--ne-grey-hi);
		border-bottom: 1.5px solid var(--ne-grey-hi);
		transform: rotate(45deg) translateY(-3px);
		transition: transform var(--t-base) var(--ease-out);
	}
	.foot-fam[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
	.foot-fam > summary:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
	.foot-fam ul { padding-bottom: 10px; }
	.foot-fam .foot-all { display: block; }
	.foot-cols a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
	.foot-top { padding-bottom: 24px; gap: 18px; }
	.foot-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; }
	.foot-meta > div:last-child { grid-column: 1 / -1; }
	.foot-meta > div:first-child { grid-column: 1 / -1; }
	#site-links ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
	.foot-meta .foot-h { margin: 4px 0 2px; }
	.foot-meta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; } /* 44 px tap targets */
	.contact-list li:not(:has(a)) { padding: 9px 0; }
	.foot { padding-top: 32px; }
	.foot-bot { gap: 6px 16px; padding-top: 14px; }
}

/* Partners on phones: compact two-column sister cards, smaller plates, tighter rhythm (desktop unchanged). */
@media (max-width: 640px) {
	.pt-sec { padding-top: 32px; padding-bottom: 32px; }
	.pt-grid .pt-grp { display: none; } /* the TDI Group is named in the intro; keeps the tag to two lines */
	.pt-sec .p-grid { gap: 20px; }
	.pt-sec .p-grid .lead { font-size: 15px; line-height: 1.6; }
	.pt-sec .p-grid .btn { margin-top: 16px; }
	.pt-lead { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; align-items: start; }
	.ne-plate--feature { height: 72px; padding: 6px 8px; }
	.pt-lead h3 { margin: 2px 0 4px; font-size: 1.15rem; }
	.pt-lead .pt-lines, .pt-rep { font-size: 13.5px; line-height: 1.5; }
	.pt-lead__body .pt-rep, .pt-lead__body .pt-link { grid-column: 1 / -1; }
	.pt-cta { padding: 16px 18px; gap: 8px; }
	.pt-cta__h { font-size: 17px; }
	.pt-cta__p { font-size: 13.5px; }
	.pt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.pt-plate { height: 64px; padding: 8px 10px; }
	.pt-plate img { width: calc(var(--lw, 140px) * .62); max-height: 44px; max-width: 92%; }
	.pt-card__body { gap: 4px; padding: 12px; }
	.pt-card h3 { font-size: 15px; line-height: 1.25; }
	.pt-card .pt-tag { font-size: 12px; letter-spacing: .06em; }
	.pt-card .pt-lines { font-size: 13px; line-height: 1.45; }
	.pt-sec .ext { font-size: 13px; }
}

/* Home: request-a-quote bar (replaces the full form on the home page; the form lives on /contact/). */
.home-rfq { padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(40px, 4vw, 64px); }
.home-rfq__bar { margin-top: 0; align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(22px, 3vw, 40px); }
.home-rfq__copy { min-width: 0; }
.home-rfq__bar p.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 400; }
.home-rfq h2 { font-size: var(--fs-h2); line-height: 1.2; }
.home-rfq__bar p.home-rfq__text { margin-top: 10px; font-weight: 300; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--ne-grey-hi); }
.home-rfq__act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: none; }
.home-rfq__bar p.home-rfq__reach { margin: 0; font-weight: 400; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.home-rfq__reach a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ne-grey-hi); text-decoration: none; }
.home-rfq__reach a:hover { color: var(--text-hi); }
@media (max-width: 640px) {
	.home-rfq { padding-top: 24px; padding-bottom: 24px; }
	.home-rfq__bar { padding: 20px 18px; gap: 16px; }
	.home-rfq__bar p.home-rfq__text { font-size: 14px; line-height: 1.55; }
	.home-rfq__act, .home-rfq__act .btn { width: 100%; }
	.home-rfq__act .btn { justify-content: center; }
}

/* ---------- Delivery audit (agent A): category visuals ---------- */

/* A-01 Category cards: series photo or category schematic instead of one repeated family glyph. */
.cat-card__img.is-photo { background: #0b1118; }
.cat-card__img.is-photo img { object-position: 50% 58%; transition: transform var(--t-slow) var(--ease-out); }
.cat-card:hover .cat-card__img.is-photo img { transform: scale(1.03); }
.cat-card__img.is-dg {
	display: grid;
	place-items: center;
	padding: 6% 8%;
	background: radial-gradient(circle at 62% 38%, color-mix(in srgb, var(--fam-tint, var(--blue)) 12%, #0d1520), #0b1118 72%);
}
.cat-card__img.is-dg svg { width: 100%; height: 100%; }

/* Shared schematic language: family tint traces, quiet axes, mono measurement labels. */
.cat-dg { display: block; overflow: visible; }
.cat-dg path, .cat-dg rect { fill: none; vector-effect: non-scaling-stroke; }
.cat-dg .dg-grid { stroke: #ffffff10; stroke-width: 1; }
.cat-dg .dg-axis, .cat-dg .dg-sym path { stroke: var(--line-3); stroke-width: 1.25; }
.cat-dg .dg-box { stroke: var(--line-3); stroke-width: 1.25; fill: #ffffff06; }
.cat-dg .dg-mark { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 3; }
.cat-dg .dg-trace { stroke: var(--fam-tint, var(--blue-hi)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--fam-tint, var(--blue)) 55%, transparent)); }
.cat-dg .dg-ghost { stroke-width: 1.25; opacity: .4; filter: none; stroke-dasharray: 4 4; }
.cat-dg .dg-heat { stroke: var(--fam-tint, var(--blue-hi)); stroke-width: 1.5; opacity: .7; }
.cat-dg .dg-arrow { stroke: var(--fam-tint, var(--blue-hi)); stroke-width: 1.5; }
.cat-dg .dg-cells path { stroke: var(--fam-tint, var(--blue-hi)); stroke-width: 1.5; fill: color-mix(in srgb, var(--fam-tint, var(--blue)) 14%, transparent); }
.cat-dg .dg-label { font: 500 7px/1 var(--font-mono); letter-spacing: .12em; fill: var(--ne-grey); }
.cat-dg .dg-hi { fill: var(--ne-grey-hi); }

/* A-04 Families with four categories (SPC): 4-up / 2-up, no orphan card in a three-column row. */
@media (min-width: 1101px) {
	.cat-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* A-05 Single-category families (LIN, BAT): one wide card, picture beside the text, not one-third of a row. */
@media (min-width: 641px) {
	.cat-grid:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
	.cat-grid > li:only-child .cat-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.cat-grid > li:only-child .cat-card__img { aspect-ratio: 16 / 9; align-self: center; }
	.cat-grid > li:only-child .cat-card__body { align-content: center; padding: clamp(20px, 3vw, 40px); }
	.cat-grid > li:only-child .cat-card__title { font-size: var(--fs-h3); }
}

/* A-02 Category hero without a composed backdrop: copy left, series photo or schematic right. */
.cat-stage.has-fig > .wrap {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.cat-stage.has-fig { min-height: 0; padding: clamp(56px, 7vw, 104px) 0; }
.cat-fig { margin: 0; display: grid; gap: 12px; }
.cat-fig__img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0b1118;
	border: 1px solid var(--line-2);
}
.cat-fig__img picture, .cat-fig__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-fig--dg .cat-fig__img {
	display: grid;
	place-items: center;
	padding: 7% 8%;
	background: radial-gradient(circle at 62% 40%, color-mix(in srgb, var(--fam-tint, var(--blue)) 12%, #0d1520), #0b1118 72%);
}
.cat-fig--dg .cat-dg { width: 100%; height: 100%; }
.cat-fig--dg .dg-label { font-size: 6.5px; }
.cat-fig figcaption { color: var(--ne-grey); letter-spacing: .1em; line-height: 1.5; }
.cat-fig figcaption a { color: var(--ne-grey-hi); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.cat-fig figcaption a:hover { color: var(--blue-hi); }
@media (max-width: 900px) {
	.cat-stage.has-fig > .wrap { grid-template-columns: minmax(0, 1fr); }
	.cat-fig { max-width: 560px; }
}
.cat-dg .dg-note { display: none; } /* the figure caption says the same */
.cat-card .cat-dg .dg-hi { font-size: 8px; }
/* The stage now ends on the figure; the detail block below follows without a second full section gap. */
.cat-stage.has-fig + .cat-detail { padding-top: clamp(16px, 2.5vw, 40px); }

/* B request: About body paragraphs ran together (no margin between them). */
.about-body p + p { margin-top: 14px; }

/* Delivery audit (coordinator): family hero code chip and "Made by" line had no gap (all five family pages). */
.fam-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Delivery audit D-19 (coordinator): product families under "Products" in the burger menu. */
.mobile-menu .mm-fams { list-style: none; margin: 0; padding: 4px 0 10px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr; }
.mobile-menu nav .mm-fams a { font: 400 15px/1.35 var(--font-body); border-bottom: 0; padding: 9px 0; min-height: 44px; align-items: center; gap: 12px; color: var(--text-mid); }
.mobile-menu nav .mm-fams a:hover, .mobile-menu nav .mm-fams a:focus-visible { color: var(--blue-hi); }
.mobile-menu .mm-fams .code-plain { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; min-width: 3.4em; }
@media (min-width: 641px) { .mobile-menu .mm-fams { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
