/* ==========================================================================
   DEVIT SOLUTION — Global design system
   ========================================================================== */
:root {
	--bg: #050505;
	--bg-2: #101010;
	--bg-3: #161616;
	--red: #e50914;
	--red-soft: rgba(229, 9, 20, .18);
	--white: #fff;
	--muted: #a1a1a1;
	--line: rgba(255, 255, 255, .08);
	--line-red: rgba(229, 9, 20, .45);
	--radius: 18px;
	--radius-sm: 12px;
	--font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1200px;
	--header-h: 78px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
	margin: 0; background: var(--bg); color: var(--white);
	font-family: var(--font-body); font-size: 17px; line-height: 1.7;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; color: var(--muted); }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.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 !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; background: var(--red); color: #fff; padding: 12px 18px; z-index: 1000; top: 10px; left: 10px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.site-main { position: relative; z-index: 2; min-height: 60vh; padding-top: var(--header-h); }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(16, 16, 16, .75), transparent); }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
	font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.05rem; }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx__grid {
	position: absolute; inset: 0; opacity: .5;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
}
.bg-fx__orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; will-change: transform; }
.bg-fx__orb--1 { width: 560px; height: 560px; background: var(--red); top: -200px; left: -160px; animation: float1 18s ease-in-out infinite; }
.bg-fx__orb--2 { width: 460px; height: 460px; background: #8a050c; bottom: -180px; right: -120px; animation: float2 22s ease-in-out infinite; }
.bg-fx__mouse {
	position: absolute; top: 0; left: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
	background: radial-gradient(circle, rgba(229, 9, 20, .26) 0%, rgba(229, 9, 20, .08) 40%, transparent 68%);
	transform: translate3d(50vw, 30vh, 0); will-change: transform;
}
@keyframes float1 { 50% { transform: translate(120px, 90px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(-110px, -70px) scale(1.1); } }

/* ---------- Custom cursor (desktop / fine pointer only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
	body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: text; }
	.cursor { display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
	.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
	.cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--red); box-shadow: 0 0 14px var(--red); }
	.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(229, 9, 20, .7); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
	.cursor.is-hover .cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(229, 9, 20, .12); }
}

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 32px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
	border: 1.5px solid var(--line-red); color: #fff; background: transparent; overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, background .3s; will-change: transform; cursor: pointer;
}
.btn:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 34px rgba(229, 9, 20, .35); }
.btn--primary { background: linear-gradient(135deg, #ff1f2b, var(--red) 55%, #a30610); border-color: transparent; box-shadow: 0 10px 30px rgba(229, 9, 20, .3); }
.btn--primary:hover { box-shadow: 0 14px 44px rgba(229, 9, 20, .55); }
.btn--sm { padding: 10px 22px; font-size: .85rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Glass card with mouse spotlight ---------- */
.glass-card {
	position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
	border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; overflow: hidden;
	transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; backdrop-filter: blur(8px);
}
.glass-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 9, 20, .22), transparent 60%);
}
.glass-card:hover { transform: translateY(-6px); border-color: var(--line-red); box-shadow: 0 24px 60px rgba(229, 9, 20, .12); }
.glass-card:hover::before { opacity: 1; }
.glass-card > * { position: relative; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
	display: flex; align-items: center; transition: background .35s, backdrop-filter .35s, border-color .35s, height .35s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 5, 5, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); --header-h: 66px; height: 66px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.custom-logo-link img { max-height: 46px; width: auto; }
.devit-wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.devit-wordmark__text { font-size: 1.12rem; letter-spacing: .06em; color: #fff; line-height: 1; }
.devit-wordmark__text strong { font-weight: 800; }
.devit-wordmark__text em { font-style: normal; font-weight: 500; color: var(--red); }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 8px 15px; font-size: .93rem; font-weight: 500; color: #d8d8d8; border-radius: 999px; }
.primary-nav .menu a::after { content: ""; display: block; height: 2px; margin-top: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); box-shadow: 0 0 10px var(--red); }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a, .primary-nav .menu .current_page_item > a { color: #fff; }
.primary-nav .menu a:hover::after, .primary-nav .menu .current-menu-item > a::after, .primary-nav .menu .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); }
.primary-nav .menu li:hover > .sub-menu, .primary-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle__bar { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .35s var(--ease); }
.nav-toggle__bar:nth-of-type(1) { top: 15px; } .nav-toggle__bar:nth-of-type(2) { top: 22px; } .nav-toggle__bar:nth-of-type(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 16, 16, .6), #030303); padding: 80px 0 28px; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; width: 50%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--red), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 22px; }
.footer-col p { font-size: .95rem; margin-top: 20px; max-width: 340px; }
.footer-menu, .footer-contact, .social-links { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-contact li { margin-bottom: 11px; font-size: .95rem; color: var(--muted); }
.footer-menu a, .footer-contact a { color: var(--muted); }
.footer-menu a:hover, .footer-contact a:hover { color: #fff; padding-left: 5px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social-links a { display: inline-block; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: #ddd; transition: .3s; }
.social-links a:hover { border-color: var(--red); background: var(--red-soft); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal a { margin-left: 22px; color: var(--muted); }
.footer-legal a:hover { color: #fff; }
.back-to-top {
	position: fixed; right: 26px; bottom: 26px; z-index: 800; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-red);
	background: rgba(16, 16, 16, .85); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px);
	transition: .35s var(--ease); backdrop-filter: blur(8px);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); box-shadow: 0 0 30px rgba(229, 9, 20, .6); }

/* ---------- Page & content ---------- */
.page-hero { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); }
.page-hero h1 { max-width: 900px; }
.page-hero p { max-width: 640px; font-size: 1.1rem; }
.entry-content { max-width: 800px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content p, .entry-content li { color: #c8c8c8; }
.entry-content a { color: var(--red); border-bottom: 1px solid var(--line-red); }
.entry-content blockquote { margin: 1.6em 0; padding: 20px 28px; border-left: 3px solid var(--red); background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content pre, .entry-content code { background: var(--bg-2); border-radius: 8px; font-size: .9em; }
.entry-content pre { padding: 20px; overflow-x: auto; border: 1px solid var(--line); }
.entry-content code { padding: 2px 7px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.alignwide { width: min(1100px, 100vw - 48px); max-width: none; margin-inline: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
/* Elementor full-width pages should not be width-constrained */
.elementor-page .entry-content, .elementor-page .site-main { max-width: none; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], select, textarea {
	width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--radius-sm); color: #fff;
	padding: 15px 18px; font: inherit; font-size: .98rem; transition: border-color .3s, box-shadow .3s, background .3s;
}
select option { background: var(--bg-2); color: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); background: rgba(255, 255, 255, .06); }
::placeholder { color: #6d6d6d; }
label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 8px; color: #ddd; }
.search-form { display: flex; gap: 10px; }
.search-form .search-submit { flex-shrink: 0; }

/* ---------- Blog cards / pagination ---------- */
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.08); }
.post-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.post-card__title { font-size: 1.25rem; }
.post-card__more { margin-top: auto; font-family: var(--font-head); font-size: .9rem; font-weight: 600; }
.pagination, .nav-links { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-numbers { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: #ddd; }
.page-numbers.current, .page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
.widget { margin-bottom: 24px; padding: 26px; }
.widget-title { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 120px 0; }
.error-404__code { font-family: var(--font-head); font-size: clamp(6rem, 22vw, 14rem); font-weight: 800; line-height: 1; background: linear-gradient(180deg, var(--red), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-40px); } .reveal--right { transform: translateX(40px); } .reveal--zoom { transform: scale(.94); }
.split-text .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-text .word > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split-text.is-in .word > span { transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; z-index: 2; }
	.primary-nav {
		position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: rgba(5, 5, 5, .97);
		opacity: 0; visibility: hidden; transform: translateY(-14px); transition: .4s var(--ease); padding: 90px 24px 40px; overflow-y: auto;
	}
	.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .menu { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
	.primary-nav .menu a { font-size: 1.35rem; font-family: var(--font-head); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 36px); }
	.grid--2, .grid--3, .grid--4, .footer-grid { grid-template-columns: 1fr; }
	.glass-card { padding: 26px; }
	.footer-bottom { flex-direction: column; }
	.footer-legal a { margin: 0 18px 0 0; }
	.btn-row .btn { width: 100%; }
	.bg-fx__orb { filter: blur(80px); opacity: .35; }
}

/* ---------- Touch devices: no cursor effects, tap feedback instead ---------- */
@media (hover: none), (pointer: coarse) {
	.cursor { display: none !important; }
	.glass-card:active { transform: scale(.985); border-color: var(--line-red); }
	.btn:active { transform: scale(.96); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal, .split-text .word > span { opacity: 1; transform: none; }
	.cursor { display: none !important; }
	body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}
