/* ==========================================================================
   Printex Industrial — main styles
   ========================================================================== */

/* Bundled fonts (SIL Open Font License, see assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
	--bg: #0b0d10;
	--bg-2: #12151a;
	--bg-3: #1a1e24;
	--line: #262b33;
	--text: #eef0f2;
	--soft: #c9ced4;
	--muted: #9aa3ad;
	--accent: #f2a900;
	--accent-ink: #111;
	--maxw: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
	--head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.nav-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; transition: color .2s; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; background: var(--accent); color: #000; padding: 10px 16px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	text-transform: uppercase;
	margin: 0 0 .4em;
}

.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font: 600 13px/1.2 var(--body);
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow--center { display: flex; justify-content: center; }

/* Buttons ------------------------------------------------------------------ */
.btn,
.entry-content .wp-block-button__link,
input[type="submit"], button[type="submit"] {
	display: inline-flex; align-items: center; gap: .6em;
	font: 700 15px/1 var(--head);
	letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	padding: 17px 28px;
	background: var(--accent); color: var(--accent-ink);
	border: 2px solid var(--accent); border-radius: 0;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.btn::after { content: "\2192"; transition: transform .25s; }
.btn:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: transparent; color: var(--accent); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }

/* Header ------------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
	background: rgba(11, 13, 16, .92);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom-color: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; }
.brand img { max-height: 46px; width: auto; }
.brand-text { font: 800 26px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: 10px 14px;
	font: 600 15px/1 var(--head); letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--accent); }

.primary-nav .sub-menu,
.primary-nav .children {
	position: absolute; top: 100%; left: 0; min-width: 250px;
	padding: 8px 0;
	background: var(--bg-2);
	border: 1px solid var(--line); border-top: 2px solid var(--accent);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children, .primary-nav li:focus-within > .children {
	opacity: 1; visibility: visible; transform: none;
}
.primary-nav .sub-menu a, .primary-nav .children a { padding: 12px 20px; font-size: 14px; }
.primary-nav .sub-menu .sub-menu, .primary-nav .children .children { top: -10px; left: 100%; }

.header-phone {
	font: 600 15px/1 var(--head); letter-spacing: .1em; white-space: nowrap;
	color: var(--accent); text-decoration: none;
	padding: 10px 0 10px 22px; border-left: 1px solid var(--line);
}

.nav-toggle, .submenu-toggle { display: none; }

@media (max-width: 960px) {
	.header-phone { display: none; }
	.nav-toggle {
		display: block; margin-left: auto; position: relative;
		width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--text);
	}
	.nav-toggle .bars,
	.nav-toggle .bars::before,
	.nav-toggle .bars::after {
		position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor;
		transition: transform .25s, opacity .25s;
	}
	.nav-toggle .bars { top: 21px; }
	.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; }
	.nav-toggle .bars::before { top: -8px; }
	.nav-toggle .bars::after { top: 8px; }
	.nav-open .nav-toggle .bars { background: transparent; }
	.nav-open .nav-toggle .bars::before { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }

	/* backdrop-filter would trap the fixed menu inside the header */
	.site-header.nav-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); }

	.primary-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
		margin: 0; padding: 12px var(--gutter) 48px;
		background: var(--bg); overflow-y: auto;
		transform: translateX(100%); visibility: hidden;
		transition: transform .35s var(--ease), visibility .35s;
	}
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a { padding: 18px 48px 18px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu, .primary-nav .children {
		position: static; display: none; opacity: 1; visibility: visible; transform: none;
		background: none; border: 0; padding: 0 0 0 18px; min-width: 0;
	}
	.primary-nav li.sub-open > .sub-menu, .primary-nav li.sub-open > .children { display: block; }
	.primary-nav .sub-menu a, .primary-nav .children a { font-size: 18px; padding: 14px 0; }
	.submenu-toggle {
		display: block; position: absolute; right: 0; top: 8px; width: 44px; height: 44px;
		background: none; border: 0; color: var(--text); font: 400 26px/1 var(--body); cursor: pointer;
		transition: transform .25s;
	}
	.sub-open > .submenu-toggle { transform: rotate(45deg); color: var(--accent); }
}

/* Hero slider -------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	height: clamp(600px, 94vh, 940px);
	background: radial-gradient(120% 90% at 75% 40%, #1b2028 0%, var(--bg) 60%);
}
.hero-slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s ease-out; }
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero-slide--cover::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(90deg, rgba(11,13,16,.94) 0%, rgba(11,13,16,.65) 42%, rgba(11,13,16,.1) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-slide--cutout::before {
	content: ""; position: absolute; z-index: 0;
	right: -8%; top: 8%; width: 72%; height: 92%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
}

.hero-inner {
	position: relative; z-index: 2; height: 100%;
	display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
	padding-top: var(--header-h); padding-bottom: 60px;
}
.hero-slide--cutout .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(46px, 7vw, 108px); margin-bottom: .22em; }
.hero-text { font-size: clamp(17px, 1.5vw, 21px); color: var(--soft); max-width: 520px; margin: 0 0 34px; }

.hero-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: .24s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: .36s; }

.hero-cutout img {
	width: 100%; max-height: 70vh; object-fit: contain;
	filter: drop-shadow(0 40px 50px rgba(0,0,0,.6));
	opacity: 0; transform: translateX(80px);
	transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s;
}
.hero-slide.is-active .hero-cutout img { opacity: 1; transform: none; }

.hero-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { position: relative; width: 52px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; }
.hero-dot::before { background: rgba(255,255,255,.22); }
.hero-dot::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active::after { animation: pnx-progress var(--speed, 6s) linear forwards; }
@keyframes pnx-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 860px) {
	.hero { height: auto; min-height: 640px; }
	.hero-slide--cutout .hero-inner { grid-template-columns: 1fr; align-content: center; gap: 8px; }
	.hero-cutout { order: -1; }
	.hero-cutout img { max-height: 34vh; margin: 0 auto; }
	.hero-slide--cutout::before { right: -20%; width: 120%; height: 60%; }
}

/* Intro -------------------------------------------------------------------- */
.intro { border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro h2 { font-size: clamp(38px, 5vw, 72px); margin: 0; }
.intro-text { font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); margin: 0; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Machine rows ------------------------------------------------------------- */
.machine-row {
	position: relative; overflow: hidden;
	padding: clamp(72px, 10vw, 140px) 0;
	border-bottom: 1px solid var(--line);
}
.machine-row::after {
	content: attr(data-num);
	position: absolute; top: 50%; right: -1%; transform: translateY(-50%);
	font: 800 clamp(180px, 28vw, 400px)/1 var(--head);
	color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06);
	pointer-events: none; z-index: 0;
}
.machine-row.is-flipped::after { right: auto; left: -1%; }
.machine-row:nth-child(even) { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.machine-grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 6vw, 96px); align-items: center;
}
.machine-row.is-flipped .machine-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.machine-row.is-flipped .machine-media { order: 2; }

.machine-media { position: relative; }
.machine-media::before {
	content: ""; position: absolute; inset: 6% 2%; z-index: 0;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 15%, transparent), transparent 80%);
}
.machine-media img {
	position: relative; z-index: 1; width: 100%;
	filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
	transition: transform .7s var(--ease);
}
.machine-media a:hover img { transform: scale(1.03); }

.machine-title { font-size: clamp(50px, 6.4vw, 96px); margin-bottom: .2em; }
.machine-title a { text-decoration: none; }
.machine-tagline { font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); margin: 0 0 26px; }

.spec-list { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); color: #d6dade; }
.spec-list li::before {
	content: ""; position: absolute; left: 2px; top: 22px;
	width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg);
}

@media (max-width: 860px) {
	.machine-grid, .machine-row.is-flipped .machine-grid { grid-template-columns: 1fr; }
	.machine-row.is-flipped .machine-media { order: 0; }
	.machine-row::after { top: 24%; }
}

/* Single machine hero */
.machine-hero { padding-bottom: clamp(56px, 8vw, 110px); }
.machine-hero .machine-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 860px) { .machine-hero .machine-grid { grid-template-columns: 1fr; } .machine-hero .machine-media { order: -1; } }

/* Stats -------------------------------------------------------------------- */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { padding: clamp(40px, 5vw, 64px) 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font: 800 clamp(54px, 6vw, 88px)/1 var(--head); color: var(--accent); margin-bottom: 10px; }
.stat-label { font: 600 14px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat, .stat:first-child { padding: 36px 18px; border-left: 0; border-top: 1px solid var(--line); }
	.stat:nth-child(even) { border-left: 1px solid var(--line); }
	.stat:nth-child(-n+2) { border-top: 0; }
}

/* Partners ----------------------------------------------------------------- */
.partners { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 64px; margin-top: 28px; }
.partner img { max-height: 54px; width: auto; filter: grayscale(1) brightness(1.7); opacity: .65; transition: opacity .3s, filter .3s; }
.partner:hover img { filter: none; opacity: 1; }

/* Call to action ----------------------------------------------------------- */
.cta-inner {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
	padding: clamp(40px, 6vw, 80px);
	background: var(--bg-2); border: 1px solid var(--line);
}
.cta-inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cta-inner h2 { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: .2em; }
.cta-inner p { color: var(--soft); font-size: 19px; margin: 0; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* Page hero & content ------------------------------------------------------ */
.page-hero {
	position: relative; overflow: hidden;
	padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(48px, 6vw, 84px);
	background: radial-gradient(100% 120% at 85% 0%, #1b2028 0%, var(--bg-2) 55%);
	border-bottom: 1px solid var(--line);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero-inner { position: relative; z-index: 1; }
.page-title { font-size: clamp(46px, 7vw, 104px); margin: 0; }

.content-wrap { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.entry-content { max-width: 820px; color: var(--soft); font-size: 18px; }
.entry-content > .alignwide { max-width: var(--maxw); }
.entry-content > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 1.4em; }
.entry-content h2 { font-size: clamp(32px, 3.6vw, 48px); }
.entry-content h3 { font-size: clamp(24px, 2.6vw, 32px); }
.entry-content a { color: var(--accent); }
.entry-content img { margin: 1.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: var(--text); font-size: 21px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* Forms (contact form plugins) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="search"], select, textarea {
	width: 100%; padding: 14px 16px;
	background: var(--bg-3); color: var(--text);
	border: 1px solid var(--line); border-radius: 0;
	font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
label { color: var(--text); font-weight: 500; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: var(--bg-2); border: 1px solid var(--line); }
.post-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 26px; }
.post-card h2 { font-size: 28px; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); margin: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; color: var(--accent); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #07080a; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { font-size: 17px; letter-spacing: .14em; color: var(--text); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; }
.site-footer p { margin: 0 0 10px; }
.footer-brand .brand-text { display: inline-block; margin-bottom: 16px; color: var(--text); }
.footer-brand img { max-height: 44px; width: auto; margin-bottom: 16px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.social a:hover { border-color: var(--accent); }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scroll reveal ------------------------------------------------------------ */
.js .reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	will-change: opacity, transform;
}
.js .reveal--left { transform: translateX(-90px); }
.js .reveal--right { transform: translateX(90px); }
.js .machine-copy.reveal { transition-delay: .15s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal, .hero-copy > *, .hero-cutout img { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hero-bg img { transform: none !important; transition: none !important; }
	.hero-slide { transition: none; }
	.hero-dot.is-active::after { animation: none; transform: scaleX(1); }
}
