/* Dymatec homepage 2026 — scoped with dm- prefix so it won't clash with the old theme CSS */
:root {
	--dm-orange: #f39200;
	--dm-orange-dark: #d98200;
	--dm-ink: #1d1f22;
	--dm-dark: #15171a;
	--dm-grey: #f3f4f5;
	--dm-muted: #5a5d63;
	--dm-font: 'Montserrat', Arial, sans-serif;
}

.dm-wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.dm-hero, .dm-usp, .dm-section, .dm-about, .dm-machinery, .dm-signup { font-family: var(--dm-font); color: var(--dm-ink); }
.dm-hero *, .dm-usp *, .dm-section *, .dm-about *, .dm-machinery *, .dm-signup * { box-sizing: border-box; }

/* Type */
.dm-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--dm-muted); }
.dm-eyebrow--light { color: #e6e7e9; }
.dm-rule { display: block; width: 48px; height: 3px; background: var(--dm-orange); margin: 14px 0 22px; }
.dm-h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.05; font-weight: 800; text-transform: uppercase; color: var(--dm-ink); }
.dm-h2 span { color: var(--dm-orange); }
.dm-h2--lg { font-size: 40px; margin-top: 12px; }
.dm-h2--light { color: #fff; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.dm-link { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--dm-ink); text-decoration: none; border-bottom: 2px solid var(--dm-orange); padding-bottom: 4px; }

/* Buttons */
.dm-btn { display: inline-flex; align-items: center; gap: 14px; background: var(--dm-orange); color: var(--dm-dark); padding: 15px 24px; font: 700 12px/1 var(--dm-font); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 2px solid var(--dm-orange); cursor: pointer; transition: background .2s, color .2s; }
.dm-btn:hover { background: var(--dm-orange-dark); border-color: var(--dm-orange-dark); color: var(--dm-dark); }
.dm-btn--ghost { background: transparent; color: #fff; }
.dm-btn--ghost:hover { background: var(--dm-orange); color: var(--dm-dark); }
.dm-btn--outline { background: transparent; color: var(--dm-ink); }
.dm-btn--outline:hover { background: var(--dm-orange); }
.dm-btn--dark { background: var(--dm-dark); border-color: var(--dm-dark); color: #fff; }
.dm-btn--dark:hover { background: #000; border-color: #000; color: #fff; }

/* Hero slider */
.dm-hero { position: relative; background: var(--dm-dark); overflow: hidden; min-height: 520px; }
.dm-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center right; background-repeat: no-repeat; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.dm-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.dm-hero__shade { min-height: 520px; background: linear-gradient(90deg, rgba(21,23,26,.96) 0%, rgba(21,23,26,.9) 36%, rgba(21,23,26,.5) 58%, rgba(21,23,26,0) 80%); }
.dm-hero__inner { min-height: 520px; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 104px; color: #fff; }
.dm-hero__title { margin: 0; font-size: 60px; line-height: 1; font-weight: 800; text-transform: uppercase; color: #fff; max-width: 640px; }
.dm-hero__title span { color: var(--dm-orange); }
.dm-hero__text { margin: 24px 0 0; font-size: 16px; line-height: 1.55; max-width: 460px; color: #e6e7e9; }
.dm-hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.dm-hero__controls { position: absolute; left: 0; right: 0; bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; z-index: 2; }
.dm-hero__dots { display: flex; gap: 8px; }
.dm-hero__dot { width: 44px; height: 24px; padding: 10px 4px; background: none; border: 0; cursor: pointer; }
.dm-hero__dot span { display: block; height: 3px; background: rgba(255,255,255,.55); transition: background .3s; }
.dm-hero__dot.is-active span { background: var(--dm-orange); }
.dm-hero__arrows { display: flex; gap: 8px; }
.dm-hero__arrow { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.dm-hero__arrow:hover { background: var(--dm-orange); color: var(--dm-dark); border-color: var(--dm-orange); }

/* Trust strip */
.dm-usp { background: var(--dm-grey); }
.dm-usp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 22px; padding-bottom: 22px; }
.dm-usp__item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1.35; }
.dm-usp__item + .dm-usp__item { border-left: 1px solid #dcdde0; }

/* Category tiles */
.dm-section { padding: 64px 0; }
.dm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dm-tile { position: relative; display: block; height: 220px; background: #17191c; overflow: hidden; color: #fff; text-decoration: none; }
.dm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.dm-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,28,0) 35%, rgba(23,25,28,.92) 100%); }
.dm-tile:hover img { transform: scale(1.05); }
.dm-tile__name { position: absolute; left: 22px; right: 70px; bottom: 20px; z-index: 1; font-size: 22px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.dm-tile__arrow { position: absolute; right: 16px; bottom: 18px; z-index: 1; width: 34px; height: 34px; background: var(--dm-orange); color: var(--dm-dark); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.dm-tile:hover .dm-tile__arrow { background: #fff; }

/* About */
.dm-about { display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch; }
.dm-about__text { padding: 56px 56px 64px max(40px, calc((100vw - 1360px) / 2 + 40px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dm-about__body { margin: 22px 0 30px; font-size: 15px; line-height: 1.65; color: #3d4046; max-width: 500px; }
.dm-about__media { min-height: 420px; background: var(--dm-grey); }
.dm-about__media { position: relative; overflow: hidden; }
.dm-about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.dm-about__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.dm-flags { display: flex; gap: 20px; flex-wrap: wrap; }
.dm-flag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--dm-ink); text-decoration: none; min-height: 44px; }
.dm-flag img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
a.dm-flag:hover { color: var(--dm-orange-dark); }

/* Machinery */
.dm-machinery { background: var(--dm-dark); color: #fff; padding: 72px 0; }
.dm-mach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #2b2e33; border: 1px solid #2b2e33; }
.dm-mach__item { background: #1b1d21; color: #fff; text-decoration: none; display: flex; flex-direction: column; transition: background .2s; }
.dm-mach__item:hover { background: #22252a; }
.dm-mach__name { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px; min-height: 76px; font-size: 15px; font-weight: 700; }
.dm-machinery__intro { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: #c9cbcf; max-width: 560px; }
.dm-mach__name b { color: var(--dm-orange); }

/* News */
.dm-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.dm-news__item { display: flex; border: 1px solid #e3e4e6; border-top: 4px solid var(--dm-orange); color: var(--dm-ink); text-decoration: none; }
.dm-news__img { flex: 0 0 38%; }
.dm-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-news__body { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.dm-news__date { font-size: 12px; font-weight: 600; color: var(--dm-muted); text-transform: uppercase; letter-spacing: .08em; }
.dm-news__title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.dm-news__more { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: auto; }
.dm-news__item:hover .dm-news__title { color: var(--dm-orange-dark); }

/* Newsletter */
.dm-signup { background: var(--dm-orange); color: var(--dm-dark); }
.dm-signup__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.dm-signup__title { margin: 0; font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--dm-dark); }
.dm-signup p { margin: 8px 0 0; font-size: 15px; }
.dm-signup__form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.dm-signup__form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dm-signup__form input { height: 48px; width: 240px; padding: 0 14px; border: 2px solid var(--dm-dark); background: #fff; font: 500 15px var(--dm-font); }
.dm-signup__form .dm-btn { height: 48px; }
.dm-signup__error { flex-basis: 100%; margin: 0 !important; background: #fff; color: #b00020; padding: 10px 14px; font-weight: 600; }
.dm-signup__msg { font-weight: 700; font-size: 17px !important; }

/* Responsive */
@media (max-width: 1000px) {
	.dm-hero__title { font-size: 44px; }
	.dm-hero__shade { background: rgba(21,23,26,.78); }
	.dm-usp__grid, .dm-tiles, .dm-mach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dm-usp__item + .dm-usp__item { border-left: 0; }
	.dm-about, .dm-news { grid-template-columns: 1fr; }
	.dm-about__text { padding: 56px 40px; }
	.dm-about__media { min-height: 300px; }
}
@media (max-width: 600px) {
	.dm-wrap { padding: 0 20px; }
	.dm-hero__title { font-size: 34px; }
	.dm-usp__grid, .dm-tiles, .dm-mach { grid-template-columns: 1fr; }
	.dm-usp__item { justify-content: flex-start; }
	.dm-about__text { padding: 48px 20px; }
	.dm-news__item { flex-direction: column; }
	.dm-signup__form, .dm-signup__form label, .dm-signup__form input, .dm-signup__form .dm-btn { width: 100%; }
	.dm-signup__form .dm-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.dm-hero__slide, .dm-tile img { transition: none; }
}
