/* Conshor — base styles. Vanilla CSS Grid/Flexbox, no framework. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-charcoal);
	background: var(--color-white);
	line-height: 1.6;
	/* 100vw (used by the full-bleed breakout sections — quote panels,
	   flagship banner) is the viewport width INCLUDING the scrollbar, so
	   those sections overflow past the visible edge by the scrollbar's
	   width and create a spurious horizontal scrollbar of their own. */
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
}
a { color: var(--color-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}

/* WooCommerce wraps its own templates (shop, category, single product) in
   #primary.content-area — not our .container — so those pages were
   rendering edge-to-edge with zero side gutter on every viewport. */
.content-area {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-weight: 600;
	font-family: var(--font-heading);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
	background: var(--color-navy);
	color: var(--color-white);
}
.btn-primary:hover { background: var(--color-navy-dark); color: var(--color-white); }
.btn-accent {
	/* Section 10 — WCAG AA contrast fix: white on the brand-light emerald
	   (#1FAE58) is only 2.9:1; the darker shade clears 4.5:1. The lighter
	   emerald stays reserved for small decorative accents (e.g. badge dots). */
	background: var(--color-accent-dark);
	color: var(--color-white);
}
.btn-accent:hover { background: var(--color-accent); color: var(--color-white); }
.btn-outline {
	background: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn-outline-navy {
	background: transparent;
	border-color: var(--color-navy);
	color: var(--color-navy);
}
.btn-outline-navy:hover { background: var(--color-navy); color: var(--color-white); }

/* Top bar — contact utility strip above the main header */
.top-bar {
	background: var(--color-navy-dark);
}
.top-bar-inner {
	display: flex;
	justify-content: flex-end;
	gap: 24px;
	padding-block: 8px;
}
.top-bar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-white);
	opacity: 0.85;
	font-size: 0.8rem;
}
.top-bar-link:hover { color: var(--color-white); opacity: 1; }
.top-bar-icon { width: 14px; height: 14px; flex-shrink: 0; color: inherit; }

@media (max-width: 700px) {
	.top-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Site header */
.site-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
	border-bottom: 1px solid var(--color-steel-grey);
}
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}
.nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-navy);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.conshor-logo { width: auto; display: block; }
.conshor-logo--dark { max-height: 68px; }
.conshor-logo--white { max-height: 98px; margin-bottom: 16px; }
.primary-nav > ul { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.primary-nav a { color: var(--color-charcoal); font-weight: 600; }
.primary-nav a:hover { color: var(--color-navy); }
.primary-nav li { position: relative; }

/* Products dropdown (16 products, so a 2-column panel rather than one long list) */
.primary-nav .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nav-caret {
	width: 10px;
	height: 10px;
	padding: 6px;
	box-sizing: content-box;
	cursor: pointer;
	transition: transform var(--transition);
}
.menu-item-has-children:hover .nav-caret,
.menu-item-has-children.is-open .nav-caret {
	transform: rotate(180deg);
}
.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	gap: 4px 20px;
	background: var(--color-white);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	padding: 16px;
	margin-top: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-nav .sub-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 0.92rem;
	line-height: 1.3;
}
.primary-nav .sub-menu a:hover {
	background: var(--color-surface);
	color: var(--color-navy);
}


/* WooCommerce loop */
.woocommerce-result-count {
	float: left;
	margin: 0 0 24px;
	color: var(--color-charcoal);
	opacity: 0.75;
}
.woocommerce-ordering {
	float: right;
	margin: 0 0 24px;
}
.woocommerce-ordering select {
	padding: 8px 12px;
	border: 1px solid var(--color-steel-grey);
	border-radius: var(--radius);
	font-family: var(--font-body);
}
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
	list-style: none;
	padding: 0;
	clear: both;
}
/* WooCommerce's own CSS puts a `content:" "` clearfix on ::before/::after
   for the old float layout. In a grid container that generated box still
   counts as a real (invisible) grid item — it silently claims column 1 of
   row 1, pushing every real product one slot to the right. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	list-style: none;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 10px 28px rgba(var(--color-navy-rgb), 0.18);
	border-color: var(--color-navy);
	transform: translateY(-3px);
}
.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: var(--color-surface);
	border-radius: 8px;
	padding: 14px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	flex-grow: 1;
	font-weight: 700;
	color: var(--color-navy);
	min-height: 2.6em;
	display: flex;
	align-items: center;
}
/* .conshor-view-product only ever appears in the shop-loop card (stretch
   to fill the card width); .conshor-enquire is the single-product "Get a
   Quote" button, a normal inline-sized CTA, not a card action. */
.conshor-view-product {
	margin-top: 12px;
	align-self: stretch;
	text-align: center;
}
.conshor-enquire { margin-top: 12px; }

.product-cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 35px; }
.conshor-whatsapp-secondary { font-weight: 600; color: var(--color-navy); }
.conshor-whatsapp-secondary:hover { color: var(--color-accent); }

/* Get a Quote — full-width photo-left/green-form-right layout (Clayton,
   Oct 2026). Same full-bleed breakout as the Samiflex banner: this renders
   nested inside #primary.content-area, so it needs to escape that
   constrained column to actually run edge-to-edge. */
.product-quote-section {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: 40px;
}
.quote-section-media {
	position: relative;
	min-height: 480px;
}
.quote-section-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.quote-section-media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(var(--color-navy-rgb), 0.75) 0%, rgba(var(--color-navy-rgb), 0.4) 100%);
}
.quote-section-form {
	background: var(--color-accent-dark);
	color: var(--color-white);
	padding: 56px clamp(24px, 6vw, 72px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.quote-section-form h2,
.quote-section-form .conshor-form label { color: var(--color-white); }
.quote-section-form > p { color: rgba(255, 255, 255, 0.88); }
.quote-section-form .form-hint { color: rgba(255, 255, 255, 0.75); opacity: 1; }
.quote-section-form .conshor-form { max-width: 480px; }
/* Default .btn-accent is the same dark green as this panel — swap to a
   white button here so it doesn't disappear into its own background. */
.quote-section-form .btn-accent {
	background: var(--color-white);
	color: var(--color-accent-dark);
}
.quote-section-form .btn-accent:hover {
	background: var(--color-surface);
	color: var(--color-accent-dark);
}

@media (max-width: 800px) {
	.product-quote-section { grid-template-columns: 1fr; }
	.quote-section-media { min-height: 260px; }
	.quote-section-form { padding: 40px 24px; }
}

/* Single product — replaces the float-based 48%/48% split that lived in
   the now-dequeued woocommerce-layout.css */
.woocommerce div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 48px;
	align-items: start;
}
.woocommerce div.product div.images {
	grid-column: 1;
	grid-row: 1;
}
.woocommerce div.product div.images img {
	max-height: 460px;
	width: 100%;
	object-fit: contain;
	background: var(--color-white);
}
.woocommerce div.product div.summary {
	grid-column: 2;
	grid-row: 1;
}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .product-specs,
.woocommerce div.product .related.products {
	grid-column: 1 / -1;
}
.product-specs {
	padding-top: 24px;
	border-top: 1px solid var(--color-steel-grey);
}
.product-specs h2 { margin-bottom: 8px; }
.product-specs-closing {
	margin-top: 20px;
	padding: 14px 18px;
	background: var(--color-surface);
	border-radius: var(--radius);
	color: var(--color-charcoal);
}
.conshor-brochure-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.conshor-brochure-btn { display: inline-block; }
.woocommerce-breadcrumb {
	padding-block: 12px;
	font-size: 0.9rem;
	color: var(--color-charcoal);
	opacity: 0.75;
}
.woocommerce-breadcrumb a { color: var(--color-charcoal); text-decoration: underline; }

/* Wraps any wide table (spec tables, insert-options table) so it scrolls
   horizontally within its own box on narrow screens instead of forcing
   the whole page wider. */
.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.conshor-spec-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	margin-top: 20px;
}
.conshor-spec-table th,
.conshor-spec-table td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--color-steel-grey);
}
.conshor-spec-table th {
	width: 220px;
	color: var(--color-navy);
	font-family: var(--font-heading);
}
.sku_wrapper { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--color-charcoal); opacity: 0.75; }
.posted_in { display: block; margin-top: 4px; }

/* About Us — stats row */
.stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 32px 0;
	padding: 28px 0;
	border-top: 1px solid var(--color-steel-grey);
	border-bottom: 1px solid var(--color-steel-grey);
}
.stat { text-align: center; }
.stat strong {
	display: block;
	font-family: var(--font-heading);
	font-size: 2.2rem;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 8px;
}
.stat span { color: var(--color-charcoal); font-size: 0.9rem; }

@media (max-width: 700px) {
	.stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
	.woocommerce div.product {
		grid-template-columns: 1fr;
	}
	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		grid-column: 1;
	}
}

/* Footer */
.site-footer {
	background: var(--color-navy-dark);
	color: var(--color-white);
	margin-top: 60px;
}
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-accent); }
/* .btn-accent's own hover (white text) needs to beat the generic footer
   link-hover rule above, or the WhatsApp button goes green-on-green and
   the label disappears. */
.site-footer a.btn-accent:hover { color: var(--color-white); }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding-block: 48px;
}
.footer-about h4,
.footer-links h4,
.footer-contact h4 {
	color: var(--color-white);
	font-size: 1rem;
	margin-bottom: 16px;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a, .footer-contact a { opacity: 0.9; }
.footer-links a:hover, .footer-contact a:hover { opacity: 1; }
/* Fixed-width label so a second Mobile/Email line lines up under the
   first value instead of under the label itself. */
.footer-contact-label { display: inline-block; width: 56px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 16px;
	text-align: center;
	font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom p + p { margin-top: 4px; }
.footer-registration { opacity: 0.7; font-size: 0.8rem; }
.footer-whatsapp-btn { margin: 4px 0 20px; }
.footer-legal-links {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}
.footer-legal-links li { margin-bottom: 6px; }

/* WhatsApp floating button (Section 7 — hand-coded, no plugin) */
.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	z-index: 999;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Hero slider — fixed height so switching slides never resizes the box.
   (Previously the active slide switched to position:relative, so its own
   content height — wildly different between slides, e.g. slide 2's
   kicker+3-line headline+subhead+button vs. a plain 2-line headline —
   drove the container's height, causing a visible jump on every transition.) */
.hero-slider {
	position: relative;
	height: 560px;
	overflow: hidden;
}
.hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}
.hero-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.hero-slide-content {
	color: var(--color-white);
	max-width: 720px;
}
.hero-slide-content h1 { color: var(--color-white); font-size: 2.4rem; }
.hero-kicker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--color-accent);
	margin-bottom: 12px;
}
.hero-sub { font-size: 1.1rem; margin-bottom: 24px; }
.hero-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}
.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--color-white);
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.hero-dot.is-active { background: var(--color-white); }

/* About strip — dark treatment for stronger visual hierarchy. Navy-to-
   charcoal tint rather than flat navy (color-refresh plan Phase 1): still
   reads as brand, isn't a second flat blue rectangle back-to-back with the
   hero above it. White-on-navy end is 10.2:1, white-on-charcoal end is
   17.4:1 — both comfortably clear AA. */
.about-strip {
	padding-block: 70px;
	text-align: center;
	background: linear-gradient(100deg, rgba(var(--color-navy-rgb), 0.92) 0%, var(--color-charcoal) 100%);
	color: var(--color-white);
}
.about-strip h2 { color: var(--color-white); }
.about-strip p { color: rgba(255, 255, 255, 0.85); }

.badge-row { display: flex; justify-content: center; gap: 16px; margin: 24px 0 28px; flex-wrap: wrap; }
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(var(--color-navy-rgb), 0.25);
	color: var(--color-navy);
	background: rgba(var(--color-navy-rgb), 0.07);
	border-radius: 999px;
	padding: 9px 20px;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
}
.badge-icon { width: 18px; height: 18px; flex-shrink: 0; color: inherit; }

/* On dark backgrounds (about-strip, footer) the tinted-navy fill above
   disappears — use a light glassy fill with white text/icon instead. */
.badge--on-dark {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--color-white);
	background: rgba(255, 255, 255, 0.12);
}

.product-showcase { padding-block: 60px; background: var(--color-surface); }
.product-showcase-more { text-align: center; margin-top: 36px; }
.product-showcase-intro {
	max-width: 820px;
	margin: 28px auto 0;
	text-align: center;
	color: var(--color-charcoal);
}
.product-showcase-banner {
	display: block;
	margin-top: 28px;
	margin-bottom: 36px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	transition: box-shadow var(--transition), transform var(--transition);
}
.product-showcase-banner:hover {
	box-shadow: 0 10px 28px rgba(var(--color-navy-rgb), 0.18);
	transform: translateY(-3px);
}
.product-showcase-banner img { width: 100%; height: auto; }

/* Group-of-companies strip */
.group-strip { padding-block: 50px; text-align: center; background: var(--color-surface); }
.group-logos { display: flex; justify-content: center; align-items: stretch; gap: 40px; flex-wrap: wrap; margin-top: 20px; }
.group-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	min-width: 160px;
	background: var(--color-white);
	border: 1px solid var(--color-steel-grey);
	border-radius: var(--radius);
	padding: 14px 28px;
}
/* Native aspect ratios vary a lot (WaveLength is wide/flat, B&M is
   tall/square) — a shared height with contain keeps the row visually
   level without stretching or cropping any of them. */
.group-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Why Conshor */
.why-conshor { padding-block: 60px; background: var(--color-white); }
.usp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 24px;
}
.usp { text-align: center; padding: 20px; }
.usp h3 { color: var(--color-accent); }
.usp-more { text-align: center; margin-top: 8px; font-weight: 600; }

@media (max-width: 900px) {
	.usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.usp-grid { grid-template-columns: 1fr; }
}

/* Services page — Supply / Spares / Repairs & Support blocks */
.service-blocks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0;
}
.service-block {
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.service-block h3 { color: var(--color-navy); }
.service-block p { color: var(--color-charcoal); margin: 0; }

@media (max-width: 800px) {
	.service-blocks { grid-template-columns: 1fr; }
}

/* Contact Us — Contact People */
.contact-people {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 20px 0 32px;
}
.contact-person {
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.contact-person h3 { color: var(--color-navy); margin-bottom: 4px; }
.contact-person-role {
	color: var(--color-accent-dark);
	font-weight: 600;
	font-size: 0.9rem;
	margin: 0 0 12px;
}
.contact-person p:not(.contact-person-role) { color: var(--color-charcoal); margin: 0; }

@media (max-width: 800px) {
	.contact-people { grid-template-columns: 1fr; }
}

/* Contact CTA band */
.contact-cta {
	background: var(--color-surface);
	color: var(--color-charcoal);
	padding-block: 60px;
	text-align: center;
}
.contact-cta h2 { color: var(--color-navy); }

/* Footer certs / socials */
.footer-certs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.footer-certs span {
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 0.8rem;
}
/* Contact form */
.conshor-form { max-width: 600px; margin-top: 24px; }
.conshor-form .field { margin-bottom: 16px; }
.conshor-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.conshor-form input,
.conshor-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-steel-grey);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
}
.conshor-form textarea { min-height: 140px; resize: vertical; }
.conshor-form .hp-field { position: absolute; left: -9999px; }
.form-message { margin-top: 12px; padding: 12px; border-radius: var(--radius); display: none; }
.form-message.is-success { display: block; background: #e6f7ec; color: #1a5c34; }
.form-message.is-error { display: block; background: #fbe9e9; color: #8a1f1f; }

@media (max-width: 600px) {
	.hero-slide-content h1 { font-size: 1.7rem; }
	/* Taller than desktop, not shorter — narrow width wraps slide 2's
	   kicker+headline+subhead+button onto more lines, not fewer. */
	.hero-slider { height: 640px; }
}

@media (max-width: 782px) {
	.site-header { gap: 12px; }
	.nav-toggle { display: flex; }
	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1000;
		background: var(--color-white);
		border-top: 1px solid var(--color-steel-grey);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
		max-height: calc(100vh - 100%);
		overflow-y: auto;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 20px;
	}
	.primary-nav > ul > li { width: 100%; }
	.primary-nav a { display: block; padding: 12px 0; }
	.primary-nav .menu-item-has-children > a { width: 100%; justify-content: space-between; }
	.primary-nav .sub-menu {
		position: static;
		grid-template-columns: 1fr;
		box-shadow: none;
		border: 1px solid var(--color-steel-grey);
		margin-top: 8px;
		max-height: 0;
		padding: 0 16px;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: max-height var(--transition), padding var(--transition);
	}
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children.is-open > .sub-menu {
		max-height: 800px;
		padding: 10px 16px;
	}
}

/* Flagship product pages (e.g. Samiflex) — custom content hooked into
   woocommerce_before_single_product, see inc/flagship-products.php. */
.flagship-banner {
	/* Breaks out of #primary.content-area (max-width + side padding) to run
	   edge-to-edge, independent of the constrained container it sits in. */
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	aspect-ratio: 1905 / 560;
	overflow: hidden;
}
.flagship-banner img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.flagship-hero-header {
	text-align: center;
	padding-top: 36px;
}
.flagship-hero-header h1 { font-size: 2.3rem; }
.flagship-hero-header .lede {
	color: var(--color-navy);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.flagship-rows {
	display: flex;
	flex-direction: column;
	gap: 64px;
	margin: 56px auto;
}
.flagship-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.flagship-row-media img {
	width: 100%;
	border-radius: var(--radius);
}
.flagship-row-text h3 { font-size: 1.5rem; }
.flagship-row-text p { color: var(--color-charcoal); }
.flagship-row--reverse .flagship-row-media { order: 2; }
.flagship-row--reverse .flagship-row-text { order: 1; }

.flagship-specs { padding-bottom: 56px; }
.flagship-specs .conshor-spec-table { margin-bottom: 32px; }
.flagship-spec-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	margin-top: 20px;
}
.flagship-spec-table th,
.flagship-spec-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--color-steel-grey);
}
/* Surface fill + navy text, not solid navy (color-refresh plan Phase 3,
   item 7) — navy stays an accent, not a fill. A heavier navy bottom border
   keeps the header row visually anchored against the surface-striped even
   body rows just below it, which share the same background tint. */
.flagship-spec-table thead th {
	background: var(--color-surface);
	color: var(--color-navy);
	font-family: var(--font-heading);
	border-bottom: 2px solid var(--color-navy);
}
.flagship-spec-table tbody tr:nth-child(even) { background: var(--color-surface); }
.flagship-also-available {
	margin-top: 24px;
	padding: 16px 20px;
	background: var(--color-surface);
	border-radius: var(--radius);
	color: var(--color-charcoal);
}
.flagship-specs .btn { margin-top: 24px; }

/* Flagship products: gallery removed (custom rows replace it), so the outer
   .product grid is one column. Its own summary is emptied in
   inc/flagship-products.php (CTA/meta live in the merged product block
   below), so hide the leftover wrapper. Note .woocommerce sits on <body>
   itself, hence body.flagship-product.woocommerce, not a descendant. */
body.flagship-product.woocommerce div[id^="product-"] {
	grid-template-columns: 1fr;
}
body.flagship-product.woocommerce div[id^="product-"] > div.summary {
	display: none;
}

/* Merged product block (Flexible Shaft Connecting Couplings) at the bottom of
   the Samiflex page — standard two-column image/summary product layout. */
body.flagship-product.woocommerce div.product.flagship-merged-product {
	grid-column: 1 / -1;
	grid-template-columns: 1fr 1fr;
	max-width: var(--container-width);
	width: 100%;
	margin: 0 auto 56px;
	padding-top: 56px;
	border-top: 1px solid var(--color-steel-grey);
}

@media (max-width: 800px) {
	body.flagship-product.woocommerce div.product.flagship-merged-product { grid-template-columns: 1fr; }
	body.flagship-product.woocommerce div.product.flagship-merged-product div.summary { grid-column: 1; }
	.flagship-row { grid-template-columns: 1fr; }
	.flagship-row-media, .flagship-row-text { order: initial; }
	.flagship-hero-header h1 { font-size: 1.8rem; }
}

/* Sitewide page-header banner (title + breadcrumb) — every inner page
   except the homepage and the Samiflex flagship product, which have their
   own bespoke banners. See template-parts/page-header.php. */
.page-header {
	position: relative;
	background-size: cover;
	background-position: center;
	padding-block: 56px;
	margin-bottom: 30px;
}
.page-header__overlay {
	/* Lightened + fades to charcoal (color-refresh plan Phase 2): the old
	   0.9/0.78 navy overlay read as a near-solid blue banner on every
	   interior page, over the same cooling-towers photo as the homepage
	   hero. Lower opacity lets the photo actually show through; ending on
	   charcoal instead of navy avoids yet another edge-to-edge blue block. */
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(var(--color-navy-rgb), 0.6) 0%, rgba(26, 26, 26, 0.45) 100%);
}
.page-header__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}
.page-header h1 { color: var(--color-white); margin-bottom: 0; }
/* Shrinks to the h1's own rendered width, so the rule below — sized wider
   than 100% of this wrapper — stays longer than the title text no matter
   how long or short it is (a single fixed px width couldn't guarantee that
   across "Services" vs. a long product name). */
.page-header__title-group {
	display: inline-block;
	margin-bottom: 14px;
}
.page-header__rule {
	display: block;
	width: calc(100% + 30px);
	height: 3px;
	background: var(--color-white);
	border-radius: 2px;
	margin-top: 14px;
}
.page-header__breadcrumb,
.page-header__breadcrumb-fallback {
	font-size: 0.9rem;
}
.page-header__breadcrumb .woocommerce-breadcrumb { opacity: 1; }

/* Links (Home, ancestor categories) — white by default, green on hover. */
.page-header__breadcrumb .breadcrumb-crumb a,
.page-header__breadcrumb-fallback .breadcrumb-crumb a {
	color: var(--color-white);
	text-decoration: none;
	transition: color var(--transition);
}
.page-header__breadcrumb .breadcrumb-crumb a:hover,
.page-header__breadcrumb-fallback .breadcrumb-crumb a:hover {
	color: var(--color-accent-on-dark);
}

/* Current page — last crumb, no link — green by default, white on hover. */
.page-header__breadcrumb .breadcrumb-crumb:last-child,
.page-header__breadcrumb-fallback .breadcrumb-crumb:last-child {
	color: var(--color-accent-on-dark);
	transition: color var(--transition);
}
.page-header__breadcrumb .breadcrumb-crumb:last-child:hover,
.page-header__breadcrumb-fallback .breadcrumb-crumb:last-child:hover {
	color: var(--color-white);
}

@media (max-width: 600px) {
	.page-header { padding-block: 40px; }
	.page-header h1 { font-size: 1.7rem; }
}
