/**
 * SIGMATICS DESIGN SYSTEM
 * Foundation layer for the Astra child theme.
 *
 * Structure:
 *   1. Design tokens (custom properties)
 *   2. Base / typography
 *   3. Layout utilities
 *   4. Components: buttons, badges/stamps, cards, forms, nav, footer
 *   5. Signature motif: signal-trace divider
 *   6. Accessibility & motion
 *
 * Every value a page template needs should come from a token here.
 * Page-specific CSS (home, service pages, country pages) loads after this
 * file and should reference these variables rather than hard-coding hex
 * values or pixel sizes.
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	/* Brand colours — exact values from brand guide, do not alter */
	--color-signal-cyan: #23E6E9;
	--color-compliance-teal: #008E95;
	--color-deep-ocean: #042027;
	--color-regulatory-black: #000000;
	--color-cloud-white: #F5F6F7;

	/* Derived tones (for states/tints — built from the brand colours above) */
	--color-teal-dark: #00686D;
	--color-teal-tint: #E3F4F5;
	--color-ocean-tint: #0B2E36;
	--color-border: #D7DEDF;
	--color-text-muted: #4B5B5D;
	--color-white: #FFFFFF;

	/* Contrast-safe text-on-colour pairings — see usage rules below */
	--on-ocean: var(--color-cloud-white);
	--on-teal: var(--color-white);
	--on-cyan: var(--color-deep-ocean); /* cyan is too light for white text */

	/* Typography */
	--font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
	--font-body: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: 'JetBrains Mono', 'Courier New', monospace;

	/* Type scale */
	--fs-h1: clamp(2.75rem, 4.2vw + 1rem, 4.75rem);
	--fs-h2: clamp(2.1rem, 2.6vw + 1rem, 3.25rem);
	--fs-h3: clamp(1.5rem, 1.4vw + 1rem, 2rem);
	--fs-h4: 1.375rem;
	--fs-h5: 1.125rem;
	--fs-body-lg: 1.125rem;
	--fs-body: 1rem;
	--fs-small: 0.875rem;
	--fs-eyebrow: 0.75rem;

	--lh-display: 1.05;
	--lh-body: 1.6;

	/* Letter spacing — Bebas Neue needs a touch of tracking at large sizes;
	   eyebrow/mono labels get wide tracking to read as "data", not prose */
	--ls-display: 0.01em;
	--ls-eyebrow: 0.14em;

	/* Spacing scale (4px base) */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;

	/* Radius — deliberately sharp/restrained, not the rounded-SaaS default.
	   This is an engineering brand: corners read as drafted, not soft. */
	--radius-sm: 2px;
	--radius-md: 4px;

	--shadow-card: 0 4px 24px rgba(4, 32, 39, 0.08);
	--shadow-card-hover: 0 12px 32px rgba(4, 32, 39, 0.14);

	--border-width: 1px;
	--container-max: 1240px;
	--transition-base: 180ms ease;
}

/* ============================================================
   2. BASE / TYPOGRAPHY
   ============================================================ */
body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: var(--lh-body);
	color: var(--color-regulatory-black);
	background-color: var(--color-cloud-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.h1, .h2, .h3 {
	font-family: var(--font-display);
	font-weight: 400; /* Bebas Neue only ships one weight */
	letter-spacing: var(--ls-display);
	line-height: var(--lh-display);
	text-transform: uppercase;
	margin: 0 0 var(--space-4);
	color: var(--color-deep-ocean);
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }

h4, h5, h6,
.h4, .h5 {
	font-family: var(--font-body);
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 var(--space-3);
	color: var(--color-deep-ocean);
}
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }

p { margin: 0 0 var(--space-4); }
p.lead { font-size: var(--fs-body-lg); font-weight: 300; color: var(--color-text-muted); }

a {
	color: var(--color-compliance-teal);
	text-decoration: none;
	transition: color var(--transition-base);
}
a:hover { color: var(--color-teal-dark); }

/* Eyebrow / mono data labels — used above headings and for regulatory
   reference codes ("ICASA · TA-2024-0091"). This is where the engineering
   register shows up: data is set in mono, prose never is. */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-compliance-teal);
	margin-bottom: var(--space-3);
}
.eyebrow::before {
	content: "";
	width: 14px;
	height: 1px;
	background: var(--color-signal-cyan);
}
.eyebrow--on-dark { color: var(--color-signal-cyan); }

.code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--color-teal-tint);
	color: var(--color-teal-dark);
	padding: 0.1em 0.4em;
	border-radius: var(--radius-sm);
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--space-5);
}

.section {
	padding-block: var(--space-9);
}
.section--tight { padding-block: var(--space-7); }
.section--dark {
	background: var(--color-deep-ocean);
	color: var(--on-ocean);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 { color: var(--on-ocean); }
.section--tint { background: var(--color-teal-tint); }

.grid {
	display: grid;
	gap: var(--space-6);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 2fr 1fr; }

/* Service detail page additions */
.service-icon-badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(35, 230, 233, 0.12);
	border: 1px solid rgba(35, 230, 233, 0.35);
	color: var(--color-signal-cyan);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-4);
}
.entry-content p:first-of-type {
	font-size: 1.15rem;
	color: var(--color-deep-ocean);
	border-left: 3px solid var(--color-signal-cyan);
	padding-left: var(--space-4);
	margin-bottom: var(--space-5);
}
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mini-list li {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	line-height: 1.4;
}
.mini-list li svg { color: var(--color-compliance-teal); flex-shrink: 0; margin-top: 2px; }

/* Products hub — search + card service icons */
.product-search-input {
	width: 100%;
	max-width: 480px;
	padding: var(--space-4) var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 1rem;
	margin: var(--space-6) auto 0;
	display: block;
}
.product-search-input:focus {
	outline: none;
	border-color: var(--color-compliance-teal);
	box-shadow: 0 0 0 3px var(--color-teal-tint);
}
.product-card__services { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.product-card__hscode {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	color: var(--color-text-muted);
	margin-bottom: var(--space-3);
}

/* Single blog post — prev/next navigation + comments */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--space-5);
	margin-top: var(--space-7);
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-border);
}
.post-nav__link {
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--color-deep-ocean);
	text-decoration: none;
	max-width: 45%;
}
.post-nav__link:hover { color: var(--color-compliance-teal); }
.post-nav__link--next { text-align: right; margin-left: auto; }

.post-comments { margin-top: var(--space-7); }
.post-comments h2, .post-comments h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 1.4rem;
}
.comment-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-2);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	margin-bottom: var(--space-3);
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--color-compliance-teal);
	box-shadow: 0 0 0 3px var(--color-teal-tint);
}
.comment-form #submit,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: var(--space-3) var(--space-5);
	border: none;
	border-radius: var(--radius-sm);
	background: var(--color-signal-cyan);
	color: var(--color-deep-ocean);
	cursor: pointer;
}
.comment-list { list-style: none; padding: 0; margin: var(--space-5) 0; }
.comment-list .comment-author { font-weight: 600; color: var(--color-deep-ocean); }
.comment-list .comment-meta { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.product-card__service-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-teal-tint);
	color: var(--color-compliance-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background var(--transition-base), color var(--transition-base);
}
.product-card__service-icon:hover { background: var(--color-compliance-teal); color: var(--color-white); }
.product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-top: var(--space-3);
}
.product-card__quote-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-signal-cyan);
	color: var(--color-deep-ocean);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	transition: background var(--transition-base), transform var(--transition-base);
}
.product-card__quote-btn:hover { background: #4FEEF0; transform: scale(1.08); }

/* Homepage service rotation — interval set in Appearance > Customize >
   Homepage Service Rotation. Only used when more than 4 services are
   published; with 4 or fewer this markup/JS isn't rendered at all. */
.service-rotator__group { display: none; }
.service-rotator__group.is-active { display: grid; animation: sigmaticsFadeIn 0.5s ease; }
@keyframes sigmaticsFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.service-rotator__group.is-active { animation: none; }
}

/* Homepage hero banner rotation — interval set in Appearance >
   Customize > Homepage Hero Banner. Only used when more than 1 Banner
   Slide is published; with 1 (or the static fallback), this markup/JS
   isn't rendered at all. */
.hero-rotator__slide { display: none; }
.hero-rotator__slide.is-active { display: block; animation: sigmaticsFadeIn 0.6s ease; }
@media (prefers-reduced-motion: reduce) {
	.hero-rotator__slide.is-active { animation: none; }
}
.hero-subheading {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.4rem;
	color: var(--color-signal-cyan);
	margin-bottom: var(--space-4);
}

/* Checklist grid — "Who We Work With" on About Us; generic/reusable
   name since other lists of short items could use this same pattern */
.checklist-grid {
	list-style: none;
	padding: 0;
	margin: var(--space-4) 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-3) var(--space-6);
	max-width: 760px;
}
.checklist-grid li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--color-deep-ocean);
}
.checklist-grid li svg { color: var(--color-compliance-teal); flex-shrink: 0; margin-top: 4px; }
@media (max-width: 600px) {
	.checklist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.section { padding-block: var(--space-7); }
}

/* ============================================================
   4a. BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: var(--space-3) var(--space-5);
	border: var(--border-width) solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition-base);
	white-space: nowrap;
}

.btn--primary {
	background: var(--color-signal-cyan);
	color: var(--on-cyan);
}
.btn--primary:hover { background: #4FEEF0; transform: translateY(-1px); }

.btn--secondary {
	background: transparent;
	color: var(--color-compliance-teal);
	border-color: var(--color-compliance-teal);
}
.btn--secondary:hover { background: var(--color-teal-tint); }

.btn--on-dark {
	background: transparent;
	color: var(--on-ocean);
	border-color: rgba(245, 246, 247, 0.4);
}
.btn--on-dark:hover { border-color: var(--color-signal-cyan); color: var(--color-signal-cyan); }

.btn--ghost {
	background: transparent;
	color: var(--color-deep-ocean);
	padding-inline: 0;
}
.btn--ghost::after { content: "→"; transition: transform var(--transition-base); }
.btn--ghost:hover::after { transform: translateX(4px); }

/* ============================================================
   4b. BADGES / COMPLIANCE STAMPS
   Trust signals for regulator marks (ICASA, NRCS, SABS, etc.)
   ============================================================ */
.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-teal-tint);
	color: var(--color-teal-dark);
}

/* Accreditation strip — for the actual third-party certification/standards
   logos (CE, ETSI, ICASA, ILAC, NRCS, SANAS, etc). These are real marks
   supplied as image assets in assets/images/accreditations/ — never
   recreate a regulator's logo as an icon; always use their actual mark. */
.accred-strip {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	flex-wrap: wrap;
}
/* Confirmed live: several accreditation marks (CE, NRCS, etc.) are dark
   gray/black on a transparent background — placed directly on this
   section's dark background, they were nearly invisible. Wrapping each
   in a white badge card fixes the contrast regardless of any given
   logo's own color scheme, and also gives every logo a uniform size
   despite very different native aspect ratios (object-fit: contain). */
.accred-badge {
	background: var(--color-white);
	border-radius: var(--radius-sm);
	height: 64px;
	width: 112px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-2);
	flex-shrink: 0;
}
.accred-badge img {
	max-height: 100% !important;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

/* ============================================================
   4c. CARDS
   ============================================================ */
.card {
	background: var(--color-white);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-6);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.card--service {
	border-top: 3px solid var(--color-signal-cyan);
}
/* .card__icon is shared by service cards AND product cards (Products
   section) — styled here independent of the .card--service parent so
   both get the same teal color, not just services. Previously scoped
   to ".card--service .card__icon" only, which left product icons
   inheriting default (near-black) text color. */
.card__icon {
	width: 40px;
	height: 40px;
	color: var(--color-compliance-teal);
	margin-bottom: var(--space-4);
}

.card--coverage {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-5);
}
.card--coverage__name {
	display: flex;
	align-items: center;
	font-weight: 500;
	color: var(--color-deep-ocean);
}
.card--coverage__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}
.card--coverage .status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-signal-cyan);
	display: inline-block;
	margin-right: var(--space-2);
	flex-shrink: 0;
}

/* Africa coverage map — Regulators hub */
.africa-map { width: 100%; max-width: 380px; height: auto; margin-top: var(--space-6); }
.africa-map__outline { fill: var(--color-teal-tint); stroke: var(--color-compliance-teal); stroke-width: 2; }
.africa-map__pin { fill: var(--color-signal-cyan); stroke: var(--color-deep-ocean); stroke-width: 1.5; cursor: pointer; }
.africa-map__pin:hover { fill: var(--color-compliance-teal); }
.africa-map__label {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	fill: var(--color-deep-ocean);
	cursor: pointer;
}
.africa-map a:hover .africa-map__label { fill: var(--color-compliance-teal); }

.card--testimonial {
	background: var(--color-deep-ocean);
	color: var(--on-ocean);
	border: none;
	position: relative;
}
.card--testimonial .card__attribution {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-signal-cyan);
	margin-top: var(--space-4);
}

/* ============================================================
   4d. FORMS
   ============================================================ */
.form-field { margin-bottom: var(--space-5); }
.form-field label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: var(--space-2);
}
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 300;
	padding: var(--space-3) var(--space-4);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	transition: border-color var(--transition-base);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--color-compliance-teal);
	box-shadow: 0 0 0 3px var(--color-teal-tint);
}
.form-notice {
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-4);
	font-size: var(--fs-small);
}
.form-notice--success { background: var(--color-teal-tint); color: var(--color-teal-dark); border-left: 3px solid var(--color-compliance-teal); }
.form-notice--error { background: #FDEDEC; color: #B3261E; border-left: 3px solid #B3261E; }

/* Feature list — "Why Choose Sigmatics" homepage section */
.feature { text-align: left; }
.feature__icon { width: 36px; height: 36px; color: var(--color-compliance-teal); margin-bottom: var(--space-3); }

/* Chips — industries served, placeholder client names */
.chip-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.chip {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--fs-small);
	padding: var(--space-2) var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-deep-ocean);
	background: var(--color-white);
}
.chip--on-dark { border-color: rgba(245, 246, 247, 0.25); color: rgba(245, 246, 247, 0.85); background: transparent; }

/* FAQ accordion — native <details>/<summary>, no JS required */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
	cursor: pointer;
	padding: var(--space-4) 0;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1rem;
	color: var(--color-deep-ocean);
	list-style: none;
	position: relative;
	padding-right: var(--space-6);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: var(--space-4);
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--color-compliance-teal);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-answer { padding-bottom: var(--space-4); color: var(--color-text-muted); }

/* User Guide list */
.guide-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-3);
}
.guide-item__icon { color: var(--color-compliance-teal); flex-shrink: 0; }
.guide-item__title { font-weight: 500; color: var(--color-deep-ocean); margin: 0; }

/* Step process — "How We Work" */
.step-list { display: flex; flex-direction: column; gap: var(--space-5); }
.step-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.step-number {
	font-family: var(--font-display);
	font-size: 1.4rem;
	color: var(--color-signal-cyan);
	background: var(--color-deep-ocean);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ============================================================
   4e. NAVIGATION
   ============================================================ */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-signal-cyan);
	color: var(--color-deep-ocean);
	padding: var(--space-2) var(--space-4);
	z-index: 999;
	font-family: var(--font-body);
	font-weight: 600;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.site-header {
	background: var(--color-deep-ocean);
	color: var(--on-ocean);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-4);
	gap: var(--space-4);
	flex-wrap: wrap;
}
.logo-mark {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-display);
	font-size: 1.4rem;
	letter-spacing: 0.03em;
	color: var(--color-cloud-white);
	text-decoration: none;
}
.logo-mark:hover { color: var(--color-cloud-white); }
/*
 * !important here is a deliberate, confirmed fix: Astra loads extra
 * WooCommerce-specific stylesheets (woocommerce-grid.min.css and
 * friends) only on shop/cart/account pages, which include a generic
 * "img { max-width:100%; height:auto; }" reset that was overriding this
 * specific component's sizing — confirmed live (computed height was
 * rendering at the image's full natural 480px instead of 34px). That's
 * why the logo looked fine everywhere else but broke specifically on
 * WooCommerce pages. Not a general pattern used elsewhere in this file.
 */
.logo-mark__icon { height: 34px !important; width: auto !important; display: block; }

.primary-nav { order: 2; flex: 1 1 auto; }
.nav-links {
	display: flex;
	gap: var(--space-5);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.nav-utility { order: 3; }

.nav-toggle {
	display: none;
	order: 1;
	margin-left: auto;
	background: transparent;
	border: none;
	width: 36px;
	height: 36px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-cloud-white); transition: all var(--transition-base); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		order: 4;
		flex-basis: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height var(--transition-base);
	}
	.primary-nav.is-open { max-height: 480px; }
	.nav-links { flex-direction: column; gap: 0; padding-top: var(--space-3); }
}
.site-header .nav-link {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--fs-small);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(245, 246, 247, 0.85);
	padding: var(--space-2) var(--space-3);
	display: inline-block;
}
.site-header .nav-link:hover { color: var(--color-signal-cyan); }
@media (max-width: 900px) {
	.site-header .nav-link { display: block; padding: var(--space-3) 0; border-bottom: 1px solid rgba(245, 246, 247, 0.1); }
}

/* Header utility icons — account + WooCommerce cart, replaces a CTA
   button in the utility slot now that the shop is the primary header
   action. Cart count badge is wired to live cart data in Phase 2/3 when
   the WooCommerce templates are built — this is the visual component. */
.nav-utility {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(245, 246, 247, 0.3);
	color: var(--on-ocean);
	background: transparent;
	cursor: pointer;
	transition: all var(--transition-base);
}
.icon-btn:hover { border-color: var(--color-signal-cyan); color: var(--color-signal-cyan); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--on-light {
	border-color: var(--color-border);
	color: var(--color-deep-ocean);
	background: var(--color-white);
}
.icon-btn--on-light:hover { border-color: var(--color-compliance-teal); color: var(--color-compliance-teal); }
.cart-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 8px;
	background: var(--color-signal-cyan);
	color: var(--color-deep-ocean);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ============================================================
   4f. FOOTER
   ============================================================ */
.site-footer {
	background: var(--color-deep-ocean);
	color: rgba(245, 246, 247, 0.7);
	font-size: var(--fs-small);
}
.site-footer a { color: rgba(245, 246, 247, 0.7); }
.site-footer a:hover { color: var(--color-signal-cyan); }

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-5);
	flex-wrap: wrap;
	gap: var(--space-4);
}
.site-footer__copyright {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	color: rgba(245, 246, 247, 0.6);
}
.site-footer__social {
	display: flex;
	gap: var(--space-3);
}
.social-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(245, 246, 247, 0.3);
	color: rgba(245, 246, 247, 0.8);
	transition: all var(--transition-base);
	overflow: hidden;
}
.social-icon-btn:hover {
	border-color: var(--color-signal-cyan);
	color: var(--color-signal-cyan);
}
.social-icon-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   5. SIGNATURE MOTIF — signal trace
   A recurring oscilloscope-style waveform used as a section divider /
   ambient brand mark. Ties directly to "Signal Cyan" and the RF/EMC
   testing world Sigmatics works in. Used sparingly — once per section
   boundary, never as wallpaper.
   ============================================================ */
.signal-trace {
	width: 100%;
	height: 32px;
	display: block;
}
.signal-trace path {
	fill: none;
	stroke: var(--color-signal-cyan);
	stroke-width: 1.5;
	stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
	.signal-trace path {
		stroke-dasharray: 6 4;
		animation: signal-flow 6s linear infinite;
	}
}
@keyframes signal-flow {
	to { stroke-dashoffset: -200; }
}

/* ============================================================
   6. ACCESSIBILITY
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--color-compliance-teal);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/*
USAGE RULES (contrast — WCAG AA):
- Signal Cyan (#23E6E9) is too light for body text on white/cloud-white.
  Use it only on dark backgrounds (Deep Ocean), or as borders/icons/accents
  on light backgrounds — never as small text on a light surface.
- Compliance Teal on white passes AA for large text/UI components; for
  small body text prefer --color-teal-dark or --color-regulatory-black.
- Deep Ocean + Cloud White/White text passes AA comfortably in both
  directions — this is the safe high-contrast pairing for hero/nav/footer.
*/
