:root {
	--burgundy: #8f1015;
	--deep-red: #5b090d;
	--orange: #f47a12;
	--cta: #c4420f;
	--white: #fff;
	--text: #161616;
	--muted: #595959;
	--tint: #fbf3f1;
	--line: #e7dfdd;
	--radius: 6px;
	--shadow: 0 2px 10px rgb(0 0 0 / 8%);
	--font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.55 var(--font); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.25; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); }
.skip-link:focus { top: 8px; }
.staging-bar { padding: 6px 16px; background: #1f1f1f; color: #ffd9a8; font-size: 13px; text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius); font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--primary { background: var(--cta); color: var(--white); }
.btn--primary:hover { background: #a63709; }
.btn--dark { background: var(--burgundy); color: var(--white); }
.btn--dark:hover { background: var(--deep-red); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--deep-red); }
.btn--outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: var(--white); }
.btn--small { padding: 7px 14px; font-size: 13px; }
.btn--block { display: block; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding-block: 8px; }
.site-header__right { flex: 1; min-width: 0; }
.brand img { max-height: 84px; width: auto; }
.brand__text { display: block; color: var(--burgundy); text-decoration: none; text-align: center; }
.brand__name { display: block; font-size: 22px; font-weight: 800; white-space: nowrap; }
.brand__sub { display: block; color: var(--text); font-size: 12px; }
.topbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 24px; padding-block: 2px 6px; font-size: 13px; }
.topbar li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.topbar a { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--burgundy); }
.topbar .icon { color: var(--burgundy); }
.site-header__nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.header-cta { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--burgundy); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }

.primary-nav .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.primary-nav a { display: block; padding: 10px 11px; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.primary-nav a:hover { color: var(--burgundy); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--burgundy); box-shadow: inset 0 -2px 0 var(--burgundy); }
.primary-nav .menu > .menu-item-has-children { position: relative; }
.primary-nav .menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; display: none; min-width: 240px; padding-block: 6px; background: var(--white); box-shadow: 0 6px 20px rgb(0 0 0 / 15%); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 8px 16px; font-weight: 500; text-transform: none; }
.primary-nav .sub-menu a:hover { background: var(--tint); }

/* Hero */
.hero { background: radial-gradient(circle at 70% 40%, #7a0f14, var(--deep-red) 60%, #3a0508); color: var(--white); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 55%); gap: 32px; align-items: center; padding-block: 48px; }
.hero__title { margin-bottom: 8px; font-size: 34px; font-weight: 500; text-transform: uppercase; }
.hero__title span { display: block; color: var(--orange); font-size: 1.5em; font-weight: 800; letter-spacing: .01em; }
.hero__sub { margin-bottom: 24px; font-size: 20px; }
.hero__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; text-align: center; font-size: 13px; }
.hero__features .icon { width: 36px; height: 36px; margin: 0 auto 8px; }
.hero__features strong { display: block; text-transform: uppercase; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.hero__media .ph { aspect-ratio: 4 / 3; border-color: rgb(255 255 255 / 45%); background: rgb(255 255 255 / 7%); color: var(--white); }
.hero__media .ph .icon { width: 72px; height: 72px; }

/* Marks images that are not photos of real machines */
.product-card__media, .gallery__main { position: relative; }
.illustration-label { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 3px; background: rgb(22 22 22 / 80%); color: var(--white); font-size: 12px; line-height: 1.4; }
.illustration-label[hidden] { display: none; }
.gallery__main .illustration-label { left: 10px; bottom: 10px; padding: 3px 10px; font-size: 13px; }

/* Placeholder */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 4 / 3; padding: 8px; border: 1px dashed #b8aaa7; border-radius: var(--radius); background: #f7f3f2; color: var(--muted); font-size: 13px; text-align: center; }
.ph .icon { width: 32px; height: 32px; }

/* Sections */
.section { padding-block: 40px; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 24px; text-align: center; }
.section__head h2, .process h2 { margin-bottom: 4px; color: var(--burgundy); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.section__head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid--products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--services { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.product-card { display: flex; flex-direction: column; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.product-card__media { display: block; width: 100%; margin-bottom: 12px; }
.product-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.product-card h3 { margin-bottom: 4px; font-size: 15px; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--burgundy); }
.product-card p { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.product-card .btn { margin-top: auto; }
.badge { padding: 2px 8px; border-radius: 99px; background: #fff0e0; color: #8a3f00 !important; font-size: 12px !important; }

.service-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--burgundy); border-radius: var(--radius); background: var(--white); color: var(--text); text-align: center; text-decoration: none; transition: box-shadow .15s; }
.service-card:hover { box-shadow: 0 4px 16px rgb(143 16 21 / 25%); }
.service-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--deep-red), var(--burgundy)); color: #ffd9a8; }
.service-card__media .icon { width: 44px; height: 44px; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin: 10px 8px 2px; color: var(--burgundy); font-size: 14px; }
.service-card p { margin: 0 8px 10px; color: var(--muted); font-size: 12px; }

/* Process + why */
.process-why { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.process h2 { margin-bottom: 24px; text-align: center; }
.process__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.process__steps li { position: relative; display: flex; flex-direction: column; align-items: center; padding-inline: 4px; font-size: 14px; text-align: center; counter-increment: step; }
.process__steps li > span:last-child { color: var(--muted); font-size: 13px; }
.process__icon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 26px; border-radius: 50%; background: var(--burgundy); color: var(--white); }
.process__icon::after { content: "0" counter(step); position: absolute; top: 58px; color: var(--burgundy); font-size: 13px; font-weight: 800; }
.process__icon .icon { width: 26px; height: 26px; }
.process__steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 50%; width: 100%; border-top: 2px solid #d9b9b7; }

.why { padding: 24px 28px; border-radius: var(--radius); background: var(--burgundy); color: var(--white); }
.why h2 { margin-bottom: 12px; font-size: 22px; text-transform: uppercase; }
.why li { display: flex; gap: 10px; padding-block: 4px; font-size: 15px; }
.why .icon { margin-top: 3px; color: var(--orange); stroke-width: 3; }

/* Carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; padding: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.project-card { flex: 0 0 calc((100% - 80px) / 6); min-width: 170px; scroll-snap-align: start; }
.project-card a { color: var(--text); text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.project-card h3 { margin: 8px 0 0; font-size: 14px; text-align: center; }
.carousel__btn { position: absolute; top: 50%; z-index: 2; display: flex; padding: 8px; border: 0; border-radius: 50%; background: #222; color: var(--white); cursor: pointer; transform: translateY(-50%); }
.carousel__btn--prev { left: -12px; }
.carousel__btn--next { right: -12px; }
.grid--archive .project-card { min-width: 0; }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%); scroll-margin-top: 110px; background: var(--white); }
.quote__intro { padding: 40px 32px 40px max(24px, calc((100vw - 1152px) / 2)); background: var(--burgundy); color: var(--white); }
.quote__intro h2 { margin-bottom: 12px; font-size: 24px; text-transform: uppercase; }
.quote__intro li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.quote__intro a { color: var(--white); font-size: 18px; font-weight: 700; text-decoration: none; }
.quote__intro li span { flex: 1; min-width: 180px; }
.quote__form { padding: 32px max(24px, calc((100vw - 1152px) / 2)) 32px 32px; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.quote-form .notice, .field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #8c8c8c; border-radius: var(--radius); background: var(--white); color: var(--text); font: inherit; }
.field input[type="file"] { width: 100%; font-size: 14px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.field--check { display: flex; align-items: flex-start; gap: 8px; }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.field--check label { margin: 0; font-weight: 400; }
.req { color: #b3121a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.notice--ok { background: #e6f4ea; color: #14532d; }
.notice--error { background: #fdecea; color: #7f1d1d; }
.notice ul { padding-left: 18px; list-style: disc; }

/* Inner pages */
.page-head { padding-block: 24px; background: var(--deep-red); color: var(--white); }
.page-head h1 { margin: 0; font-size: 30px; }
.breadcrumb { margin-bottom: 8px; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 4px; opacity: .7; }
.breadcrumb a { color: inherit; }
.empty { text-align: center; color: var(--muted); }
.prose > * { max-width: 820px; }
.prose img { height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a { display: block; padding: 6px 14px; border: 1px solid var(--burgundy); border-radius: 99px; font-size: 14px; text-decoration: none; }
.chips a[aria-current] { background: var(--burgundy); color: var(--white); }
.product-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin-bottom: 32px; }
.product-detail__info h2 { font-size: 20px; color: var(--burgundy); }
.lead { font-size: 18px; }
.gallery__main img { width: 100%; border-radius: var(--radius); }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gallery__thumbs button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; }
.specs { width: 100%; margin-bottom: 24px; border-collapse: collapse; }
.specs th, .specs td { padding: 8px 10px; border: 1px solid var(--line); font-size: 14px; text-align: left; }
.specs th { width: 40%; background: var(--tint); }
.service-list { display: grid; gap: 24px; }
.service-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.service-row__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, var(--deep-red), var(--burgundy)); color: #ffd9a8; }
.service-row__media .icon { width: 56px; height: 56px; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row h2 { margin-bottom: 6px; color: var(--burgundy); font-size: 20px; }
.contact-info h2 { color: var(--burgundy); font-size: 20px; }
.contact-info li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding-block: 5px; }
.contact-info .icon { margin-top: 3px; color: var(--burgundy); }
.post-card a { color: var(--text); text-decoration: none; }
.post-card h2 { margin: 8px 0 4px; font-size: 17px; }
.post-card time { color: var(--muted); font-size: 13px; }
.pagination { margin-top: 32px; text-align: center; }
.page-numbers { display: inline-block; padding: 6px 12px; }
.page-numbers.current { background: var(--burgundy); color: var(--white); }

/* Footer */
.site-footer { padding-top: 32px; background: var(--deep-red); color: #f6e8e6; font-size: 14px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1.2fr)); gap: 24px; }
.site-footer__name { margin-bottom: 8px; color: var(--white); font-size: 22px; font-weight: 800; }
.site-footer__about p { margin-bottom: 4px; }
.site-footer__about img { max-height: 80px; width: auto; margin-bottom: 8px; }
.site-footer__title { margin-bottom: 10px; color: var(--white); font-size: 14px; text-transform: uppercase; }
.site-footer li { padding-block: 2px; }
.site-footer__contact li { display: flex; gap: 8px; }
.site-footer__contact .icon { margin-top: 2px; }
.site-footer__contact a, .site-footer__contact span { min-width: 0; overflow-wrap: anywhere; }
.site-footer__copy { margin: 24px 0 0; padding: 10px 16px; border-top: 1px solid rgb(255 255 255 / 20%); font-size: 13px; text-align: center; }

@media (max-width: 1100px) {
	.topbar li:last-child { display: none; }
	.primary-nav a { padding-inline: 7px; font-size: 13px; }
	.grid--products, .grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.process-why { grid-template-columns: minmax(0, 1fr); }
	.project-card { flex-basis: calc((100% - 32px) / 3); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	html { scroll-padding-top: 76px; }
	.topbar { display: none; }
	.nav-toggle { display: flex; order: 2; }
	.header-cta { order: 1; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(100vh - 70px); overflow-y: auto; background: var(--white); box-shadow: 0 8px 16px rgb(0 0 0 / 15%); }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { display: block; }
	.primary-nav a { padding: 12px 24px; font-size: 15px; white-space: normal; border-top: 1px solid var(--line); }
	.primary-nav .current-menu-item > a,
	.primary-nav .current-menu-ancestor > a { box-shadow: inset 3px 0 0 var(--burgundy); }
	.primary-nav .sub-menu { position: static; display: block; box-shadow: none; padding: 0; }
	.primary-nav .sub-menu a { padding-left: 40px; }
	.primary-nav .menu > .menu-item-has-children > a::after { display: none; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
	.hero__title { font-size: 26px; }
	.quote { grid-template-columns: minmax(0, 1fr); }
	.quote__intro { padding: 32px 24px; }
	.quote__form { padding: 24px; }
	.product-detail { grid-template-columns: minmax(0, 1fr); }
	.brand__name { font-size: 18px; }
}

@media (max-width: 640px) {
	.container { padding-inline: 16px; }
	.site-header__inner { gap: 8px; }
	.site-header__nav { gap: 8px; }
	.header-cta { padding: 8px 10px; font-size: 12px; }
	.brand__name { font-size: 16px; }
	.brand__sub { font-size: 11px; }
	.brand img { max-height: 56px; }
	.hero__sub { font-size: 17px; }
	.hero__features { grid-template-columns: repeat(2, 1fr); }
	.hero__cta .btn { flex: 1 1 100%; }
	.section { padding-block: 28px; }
	.section__head h2, .process h2 { font-size: 22px; }
	.grid--products, .grid--services, .grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.process__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.process__steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
	.process__icon { grid-row: span 2; margin-bottom: 0; }
	.process__icon::after { display: none; }
	.process__steps li:not(:last-child)::after { top: 52px; left: 25px; width: 0; height: 22px; border-top: 0; border-left: 2px solid #d9b9b7; }
	.project-card { flex-basis: 70%; }
	.carousel__btn { display: none; }
	.quote-form { grid-template-columns: minmax(0, 1fr); }
	.service-row { grid-template-columns: minmax(0, 1fr); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
