/*
 * Smitron theme: global styles.
 * Values copied from design/*.html (shared rules) and HANDOVER.md §5.
 * Page-specific sections are added per page as they are built.
 */

/* ---------- Tokens ---------- */
:root {
	--ground: #0A111F;
	--panel: #060C17;
	--surface: #111A2C;
	--surface-alt: #0D1626;
	--line: #1E2A40;
	--panel-line: #17223A;
	--input-border: #2A3854;
	--ghost-border: #34445F;
	--ink: #E6EBF3;
	--heading: #F3F6FA;
	--muted: #95A3BC;
	--label: #8C9BB5;
	--soft-text: #B6C2D6;
	--soft-text-2: #C9D3E3;
	--brand-navy: #22306A;
	--brand-blue: #0090D8;
	--accent: #1EA2E8;
	--accent-soft: #0B2A40;
	--icon: #5FB8F0;
	--on-accent: #04131F;
	--display-red: #FF4D3D;
	--run-green: #4ADE80;

	--font-heading: "Chakra Petch", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif; /* Devanagari glyphs (Marathi) come from Noto */
	--font-body: "IBM Plex Sans", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--font-devanagari: "Noto Sans Devanagari", sans-serif;

	--radius-btn: 4px;
	--radius-card: 6px;
	--radius-form: 8px;
	--radius-panel: 10px;
}

/* ---------- Base ---------- */
/* Elements only, as in the designs (pseudo-elements such as list bullets keep content-box). */
* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #FFFFFF; }
h1, h2, h3 {
	font-family: var(--font-heading);
	line-height: 1.1;
	margin: 0;
	color: var(--heading);
	text-wrap: balance;
}
p { margin: 0; }
img { max-width: 100%; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.lbl { font: 500 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mut { color: var(--muted); }
.mr { font-family: var(--font-devanagari); font-weight: 500; }

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--ground);
	border-radius: var(--radius-btn);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ground); }

/* ---------- Shared utilities (used across pages) ---------- */
.lbl-accent { color: var(--accent); }
.t-soft { color: var(--soft-text-2); }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-17 { font-size: 17px; }
.lh-15 { line-height: 1.5; }
.self-start { align-self: flex-start; }
.h-36 { font-size: 36px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row-10 { display: flex; gap: 10px; flex-wrap: wrap; }
.sec-panel { background: var(--panel); }
.stack { display: flex; flex-direction: column; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.head { display: flex; flex-direction: column; gap: 10px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.col-16 { gap: 16px; }
.col-20 { gap: 20px; }
.p-intro { font-size: 18px; max-width: 60ch; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--accent); }
.ph { background: var(--surface-alt); border: 1px dashed var(--input-border); border-radius: var(--radius-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 16px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--ground);
	font: 600 15px/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover { color: var(--ground); opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ghost-border); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); }
/* .btn.amber is the blue primary button (name kept from the designs). */
.btn.amber, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.amber:hover, .btn-primary:hover { color: var(--on-accent); }

/* ---------- Header ---------- */
.hdr { background: var(--ground); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	font: 700 20px/1 var(--font-heading);
	letter-spacing: .02em;
}
.brand:hover { color: var(--ink); }
.hdr .brand img, .mmenu .brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.hdr-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius-btn);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	padding: 0;
}
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a[aria-current] { color: var(--ink); }

/* ---------- Mobile menu ---------- */
.mmenu {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: var(--ground);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.mmenu[hidden] { display: none; }
.mmenu-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
	border-bottom: 1px solid var(--line);
	max-width: none;
}
.mmenu .menu-btn { display: inline-flex; }
.mmenu-body { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; padding-bottom: 40px; max-width: none; }
.mmenu-links { list-style: none; margin: 0; padding: 0; }
.mmenu-links li { border-bottom: 1px solid var(--line); }
.mmenu-links a {
	display: flex;
	align-items: center;
	min-height: 48px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}
.mmenu-links a:hover { color: var(--accent); }
.mmenu-links a.on { color: var(--accent); }
.mmenu-cta { width: 100%; }
.mmenu-contact { display: flex; flex-direction: column; gap: 4px; }
.mmenu-contact a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	color: var(--soft-text);
	text-decoration: none;
	font-size: 16px;
}
.mmenu-contact a:hover { color: var(--accent); }
.mmenu-contact svg { color: var(--icon); flex: none; }
body.mmenu-open { overflow: hidden; }

/* ---------- Page head, breadcrumb, panel ---------- */
.pagehead-sec { border-bottom: 1px solid var(--line); }
.pagehead { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.pagehead h1 { font-size: 52px; font-weight: 700; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-panel); color: var(--ink); }
.entry { padding-top: 56px; padding-bottom: 56px; }

/* ---------- Forms (design: .formbox, .field, .form2) ---------- */
.formbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-form); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
	font: 15px/1.4 var(--font-body);
	color: var(--ink);
	background: var(--ground);
	border: 1px solid var(--input-border);
	border-radius: var(--radius-btn);
	padding: 12px 14px;
	width: 100%;
	min-height: 48px;
}
input::placeholder, textarea::placeholder { color: #6C7B96; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--surface-alt); color: var(--accent); font-family: var(--font-mono); }
button.btn { font-family: var(--font-body); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--panel); }
/* Only Contact and the Products page leave a gap above the footer (as in the designs). */
.slug-contact .foot,
.post-type-archive-product .foot { margin-top: 96px; }
.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 64px; padding-bottom: 44px; }
.foot .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot .col a { color: var(--soft-text); text-decoration: none; }
.foot .col a:hover { color: var(--accent); }
.foot .col a.plain { color: inherit; }
.foot .col a.plain:hover { color: var(--accent); }
.foot-brand { font-size: 18px; }
.foot-brand img { display: block; height: 32px; width: auto; filter: drop-shadow(0 0 .6px rgba(230, 235, 243, .55)); }
.foot .social { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.foot .social a {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--input-border);
	border-radius: var(--radius-btn);
	color: var(--soft-text);
}
.foot .base {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 20px;
	padding-bottom: 28px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}
.foot .base a { color: var(--muted); text-decoration: none; }
.foot .base a:hover { color: var(--accent); }
.foot .base-links { display: flex; gap: 20px; }

/* ---------- Breakpoints (from the designs) ---------- */
@media (max-width: 1080px) {
	.nav { display: none; }
	.menu-btn { display: inline-flex; }
	.hdr-lang { display: none; }
	.foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1081px) {
	.mmenu { display: none !important; }
}
@media (max-width: 820px) {
	.wrap { padding-left: 20px; padding-right: 20px; }
	.hdr .btn { display: none; }
	.pagehead h1 { font-size: 40px; }
}
@media (max-width: 560px) {
	.foot .cols, .form2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Marathi (owner, 22 Nov 2026) ---------- */
/* Wide letter-spacing and the mono label font suit Latin capitals, not Devanagari. */
html[lang^="mr"] .lbl,
html[lang^="mr"] .model,
html[lang^="mr"] .tag,
html[lang^="mr"] .crumb,
html[lang^="mr"] .fx-tag,
html[lang^="mr"] .fx-stats > div > span {
	letter-spacing: .02em;
	font-family: var(--font-mono), "Noto Sans Devanagari", sans-serif;
}
html[lang^="mr"] body { line-height: 1.7; }
html[lang^="mr"] h1, html[lang^="mr"] h2, html[lang^="mr"] h3 { line-height: 1.25; overflow-wrap: break-word; }
