/*
Theme Name: KMC Global
Theme URI: https://kmc-global.com/
Author: KMC Global Solutions
Description: Expert-in-the-loop translation site for KMC Global Solutions. Built from the "KMC Global – redesign strony" design canvas (home, hero B, header, footer, service level, quality audit, security, case study, quote).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: kmc-global
*/

/* ---- Design tokens (from the design canvas) ---- */
:root {
	--kmc-bg: #070B18;
	--kmc-surface: #0C1426;
	--kmc-surface-2: #111C33;
	--kmc-text: #EEF1F7;
	--kmc-muted: #A7B0C3;
	--kmc-dim: #7D879C;
	--kmc-gold: #E2B04A;
	--kmc-gold-hover: #F0C66B;
	--kmc-green: #3FB97A;
	--kmc-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--kmc-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--kmc-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ---- Page basics ---- */
body { margin: 0; background: var(--kmc-bg); }
a { color: var(--kmc-gold); }
a:hover { color: var(--kmc-gold-hover); }

.kmc-site {
	background: var(--kmc-bg);
	color: var(--kmc-text);
	font-family: var(--kmc-sans);
	font-size: 17px;
	line-height: 1.6;
	overflow: hidden;
}

/* ---- Shared helpers used across all artboards ---- */
.serif { font-family: var(--kmc-serif); font-weight: 400; }
.mono { font-family: var(--kmc-mono); }
.gi { color: var(--kmc-gold); font-style: italic; }
.ico { fill: none; stroke: var(--kmc-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node { fill: var(--kmc-gold); }
.node-ring { fill: none; stroke: rgba(226,176,74,.5); stroke-width: 1; }
.arc-static { fill: none; stroke: var(--kmc-gold); stroke-width: 1.6; stroke-linecap: round; }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Home: marquee, globe arcs, live dot */
@keyframes kmc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kmc-draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes kmc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.kmc-track { animation: kmc-marquee 48s linear infinite; }
.arc { fill: none; stroke: var(--kmc-gold); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 600; animation: kmc-draw 3.4s ease-out both; }
.grid-line { fill: none; stroke: rgba(167,176,195,.16); stroke-width: 1; }
.svg-label { font-family: var(--kmc-mono); font-size: 11px; letter-spacing: .08em; fill: var(--kmc-muted); }
.live-dot { animation: kmc-pulse 2.2s ease-in-out infinite; }

/* Hero B orbits / Security rings */
.orbit { fill: none; stroke: rgba(167,176,195,.14); stroke-width: 1; }
.orbit-gold { fill: none; stroke: rgba(226,176,74,.35); stroke-width: 1; stroke-dasharray: 3 6; }
.ring { fill: none; stroke: rgba(226,176,74,.35); stroke-width: 1; }
.ring-dim { fill: none; stroke: rgba(167,176,195,.14); stroke-width: 1; }
.ring-dash { fill: none; stroke: rgba(226,176,74,.45); stroke-width: 1; stroke-dasharray: 2 7; }

@media (prefers-reduced-motion: reduce) {
	.kmc-track, .arc, .live-dot { animation: none; }
	.arc { stroke-dasharray: none; }
}

/* ---- Logo (Customizer logo or assets/img/kmc-logo.*) ---- */
.kmc-logo { display: block; width: auto; max-width: 100%; }
.kmc-logo--header { height: 48px; }
.kmc-logo--footer { height: 44px; }
@media (max-width: 600px) { .kmc-logo--header { height: 40px; } }

/* ---- Forms ---- */
.field {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255,255,255,.2);
	color: var(--kmc-text);
	font: inherit;
	font-size: 16px;
	padding: 10px 0;
	width: 100%;
	box-sizing: border-box;
	color-scheme: dark;
}
.field:focus { outline: none; border-bottom-color: var(--kmc-gold); }
.field::placeholder { color: var(--kmc-dim); }
select.field option { background: var(--kmc-surface); color: var(--kmc-text); }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 15px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--kmc-gold); background: rgba(226,176,74,.12); }
.lvl { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.lvl:has(input:checked) { border-color: var(--kmc-gold); background: rgba(226,176,74,.08); }
.lvl:focus-within, .chip:focus-within { outline: 2px solid var(--kmc-gold); outline-offset: 2px; }

/* Hidden file inputs sit inside their drop-zone label */
label:has(> input[type="file"]) { position: relative; }
label:has(> input[type="file"]:focus-visible) { outline: 2px solid var(--kmc-gold); outline-offset: 2px; }
.kmc-files { font-family: var(--kmc-mono); font-size: 11px; color: var(--kmc-gold); }

.kmc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.kmc-notice { border-radius: 16px; padding: 16px 20px; font-size: 15px; border: 1px solid rgba(63,185,122,.5); background: rgba(63,185,122,.1); }
.kmc-notice--error { border-color: rgba(226,96,74,.6); background: rgba(226,96,74,.1); }

/* ---- Hero, variant B ---- */
.kmc-hero-b { position: relative; overflow: hidden; min-height: 744px; padding-bottom: 24px; box-sizing: border-box; }
.kmc-hero-b__grid {
	position: relative;
	max-width: 1280px; /* 1200px content, as in the 1440px artboard */
	margin: 0 auto;
	padding: 72px clamp(20px,4vw,40px) 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 600px) 1fr;
	gap: 72px;
	align-items: center;
}
.kmc-hero-b__stage { position: relative; height: 560px; }
.kmc-hero-b__card { position: absolute; left: 40px; top: 40px; width: 520px; max-width: calc(100% - 40px); }
@media (max-width: 1080px) {
	.kmc-hero-b { min-height: 0; padding-bottom: 72px; }
	.kmc-hero-b__grid { grid-template-columns: 1fr; gap: 48px; }
	.kmc-hero-b__stage { height: auto; display: flex; flex-direction: column; gap: 16px; }
	.kmc-hero-b__stage > * { position: static !important; width: auto !important; max-width: 100%; }
	.kmc-hero-b__stage > *:nth-child(2) { align-self: flex-start; width: 210px !important; }
}

/* ---- Generic WordPress content (page.php / index.php) ---- */
.kmc-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,4vw,40px); box-sizing: border-box; }
.kmc-prose { max-width: 72ch; color: var(--kmc-muted); font-size: 17px; line-height: 1.7; }
.kmc-prose h2, .kmc-prose h3 { font-family: var(--kmc-serif); font-weight: 400; color: var(--kmc-text); line-height: 1.1; }
.kmc-prose h2 { font-size: clamp(28px, 2.6vw, 36px); margin: 1.8em 0 .5em; }
.kmc-prose strong { color: var(--kmc-text); font-weight: 600; }
.kmc-prose ul, .kmc-prose ol { padding-left: 1.2em; }
.kmc-prose li { margin: .35em 0; }
.kmc-prose li::marker { color: var(--kmc-gold); }
.kmc-prose h3 { font-size: 28px; }
.kmc-prose img { max-width: 100%; height: auto; border-radius: 16px; }

/* ---- Accessibility ---- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--kmc-gold); color: var(--kmc-bg); font-family: var(--kmc-sans); font-weight: 600; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--kmc-gold); outline-offset: 3px; }
