/* ==========================================================================
   Easy IT Theme — easyit.rs
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Header
   5.  Coming soon hero
   6.  Geometry composition
   7.  Buttons, rules, badges
   8.  Footer
   9.  Inner pages (blog, single, page)
   10. Elementor compatibility
   11. Accessibility & utilities
   12. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */

:root {
	--ei-red: #f20d0d;
	--ei-red-dark: #c50a0a;
	--ei-black: #050505;
	--ei-ink: #111111;
	--ei-gray: #555555;
	--ei-light: #f7f7f7;
	--ei-white: #ffffff;
	--ei-line: #e6e6e6;

	--ei-container: 1240px;
	--ei-gutter: clamp(1.25rem, 4vw, 3rem);

	/* Ordered so each OS reaches a face that actually has a light weight:
	   Helvetica Neue (macOS) -> Segoe UI (Windows) -> Roboto (Android) -> Arial. */
	--ei-font: "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, system-ui, -apple-system, sans-serif;

	--ei-track-wide: .28em;
	--ei-ease: cubic-bezier(.2, .7, .3, 1);
}

/* 2. Reset & base -------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ei-white);
	color: var(--ei-ink);
	font-family: var(--ei-font);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--ei-black);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -.02em;
}

p {
	margin: 0 0 1.25rem;
}

a {
	color: var(--ei-red);
	text-decoration: none;
	transition: color .2s var(--ei-ease);
}

a:hover,
a:focus {
	color: var(--ei-red-dark);
}

img,
svg {
	max-width: 100%;
	height: auto;
}

ul, ol {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
}

figure {
	margin: 0 0 1.5rem;
}

:focus-visible {
	outline: 2px solid var(--ei-red);
	outline-offset: 3px;
}

/* 3. Layout primitives --------------------------------------------------- */

.topline {
	height: 3px;
	background: var(--ei-red);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.site-main {
	flex: 1 0 auto;
}

.container {
	width: min(100% - (var(--ei-gutter) * 2), var(--ei-container));
	margin-inline: auto;
}

/* 4. Header -------------------------------------------------------------- */

.site-header {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.brand,
.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.brand__logo,
.custom-logo {
	display: block;
	width: auto;
	height: clamp(52px, 5vw, 66px);
}

/* 5. Coming soon hero ---------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	column-gap: clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
}

.hero__content {
	max-width: 40rem;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	color: var(--ei-gray);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: var(--ei-track-wide);
	text-transform: uppercase;
}

.badge__mark {
	display: block;
	width: 34px;
	height: 1px;
	background: var(--ei-red);
	position: relative;
}

.badge__mark::after {
	content: "";
	position: absolute;
	right: -1px;
	top: -2.5px;
	width: 0;
	height: 0;
	border-left: 6px solid var(--ei-red);
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
}

.hero__title {
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	font-size: clamp(2.75rem, 7.4vw, 6.25rem);
	font-weight: 200;
	line-height: .98;
	letter-spacing: -.035em;
}

.hero__title-line {
	display: block;
}

.hero__title-line + .hero__title-line {
	color: var(--ei-black);
}

.rule {
	display: block;
	width: 64px;
	height: 2px;
	margin: 0 0 clamp(1.5rem, 3vw, 2rem);
	background: var(--ei-red);
}

.hero__text {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	max-width: 34rem;
	color: var(--ei-gray);
	font-size: clamp(1rem, 1.15vw, 1.125rem);
	line-height: 1.75;
}

.hero__text-line {
	display: block;
}

.domain {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	font-size: clamp(2.25rem, 5.2vw, 4rem);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -.03em;
}

.domain__part {
	color: var(--ei-black);
}

.domain__accent {
	color: var(--ei-red);
}

.domain__tld {
	color: var(--ei-gray);
}

.hero__actions {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
}

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 4vw, 3.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ei-line);
	padding-top: 1.5rem;
}

.contact__item {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.contact__label {
	color: var(--ei-gray);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: var(--ei-track-wide);
	text-transform: uppercase;
}

.contact__value {
	color: var(--ei-black);
	font-size: 1.0625rem;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.contact__value:hover,
.contact__value:focus {
	color: var(--ei-red);
}

/* 6. Geometry composition ------------------------------------------------ */

.hero__art {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 40rem;
	pointer-events: none;
}

.hero__art-img {
	display: block;
	width: 100%;
	height: auto;
}

.hero__art-line {
	position: absolute;
	display: block;
	background: var(--ei-red);
	opacity: .5;
}

.hero__art-line--a {
	top: 12%;
	right: 4%;
	width: 84px;
	height: 1px;
}

.hero__art-line--b {
	bottom: 16%;
	right: 12%;
	width: 1px;
	height: 96px;
	opacity: .28;
}

/* 7. Buttons, rules, badges ---------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
	padding: 1.05rem 2.1rem;
	background: var(--ei-red);
	border: 1px solid var(--ei-red);
	border-radius: 2px;
	color: var(--ei-white);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color .2s var(--ei-ease), border-color .2s var(--ei-ease), color .2s var(--ei-ease);
}

.btn:hover,
.btn:focus {
	background: var(--ei-black);
	border-color: var(--ei-black);
	color: var(--ei-white);
}

.btn__arrow {
	display: inline-flex;
	transition: transform .2s var(--ei-ease);
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--ei-black);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.link-arrow::after {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--ei-red);
	transition: width .2s var(--ei-ease);
}

.link-arrow:hover::after {
	width: 34px;
}

/* 8. Footer -------------------------------------------------------------- */

.footer-widgets {
	background: var(--ei-light);
}

.footer-widgets__inner {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	padding-block: 3rem;
}

.widget__title {
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: var(--ei-track-wide);
	text-transform: uppercase;
}

.site-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--ei-line);
}

.site-footer__inner {
	display: grid;
	/* auto | 1fr | auto keeps the copyright on one line and still centres the
	   slogan in the space that is left over. */
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 2rem;
	padding-block: 1.75rem;
}

.site-footer__copy,
.site-footer__slogan {
	margin: 0;
	color: var(--ei-gray);
	font-size: .8125rem;
	letter-spacing: .01em;
}

.site-footer__slogan {
	color: var(--ei-ink);
	text-align: center;
	letter-spacing: .08em;
}

.site-footer__social {
	justify-self: end;
}

.social {
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--ei-gray);
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color .2s var(--ei-ease), border-color .2s var(--ei-ease);
}

.social__link:hover,
.social__link:focus {
	color: var(--ei-red);
	border-color: var(--ei-line);
}

.social__icon {
	display: block;
}

/* 9. Inner pages --------------------------------------------------------- */

.page-head {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

.page-head__title {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 200;
	letter-spacing: -.03em;
}

.page-head__desc {
	max-width: 60ch;
	color: var(--ei-gray);
}

.entry__meta {
	margin: 0 0 .75rem;
	color: var(--ei-gray);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.entry__media {
	margin-bottom: 2rem;
}

.entry__content {
	max-width: 72ch;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	color: var(--ei-ink);
}

.entry__content h2,
.entry__content h3 {
	margin-top: 2.25rem;
}

.entry__content a {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.entry--front .entry__content {
	max-width: none;
	padding-bottom: 0;
}

.entry__edit {
	font-size: .8125rem;
}

.post-list {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.post-item {
	padding-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--ei-line);
}

.post-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.post-item__title {
	margin-bottom: .75rem;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: 300;
}

.post-item__title a {
	color: var(--ei-black);
}

.post-item__title a:hover,
.post-item__title a:focus {
	color: var(--ei-red);
}

.post-item__excerpt {
	max-width: 68ch;
	color: var(--ei-gray);
}

.pagination {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: .6rem;
	border: 1px solid var(--ei-line);
	border-radius: 2px;
	color: var(--ei-ink);
	font-size: .875rem;
}

.pagination .page-numbers.current {
	background: var(--ei-red);
	border-color: var(--ei-red);
	color: var(--ei-white);
}

/* 10. Elementor compatibility -------------------------------------------- */

/* Elementor "Full Width" and "Canvas" templates manage their own width, so the
   theme must not wrap them in a container or cap their line length. */
.entry__content--elementor {
	max-width: none;
	padding-bottom: 0;
}

.easyit-elementor-page .site-main > .entry {
	margin: 0;
}

.elementor-page .entry__content > .elementor {
	max-width: none;
}

/* Keep the theme's alignwide/alignfull behaviour predictable next to Elementor. */
.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.alignwide {
	width: min(100vw - (var(--ei-gutter) * 2), calc(var(--ei-container) + 6rem));
	max-width: none;
	margin-inline: calc(50% - min(50vw - var(--ei-gutter), calc(var(--ei-container) / 2 + 3rem)));
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

/* 11. Accessibility & utilities ------------------------------------------ */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--ei-black);
	color: var(--ei-white);
	font-size: .875rem;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	color: var(--ei-white);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	clip-path: none;
}

/* Entrance motion. Pure CSS with animation-fill-mode: both, so the hero can
   never be left invisible by a script that failed to load. */
@keyframes ei-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

.hero__content > *,
.hero__art {
	animation: ei-rise .7s var(--ei-ease) both;
}

.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .18s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .30s; }
.hero__content > *:nth-child(6) { animation-delay: .36s; }
.hero__content > *:nth-child(7) { animation-delay: .42s; }
.hero__art { animation-delay: .22s; }

/* 12. Responsive ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 62rem) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
		column-gap: 2rem;
	}

	.hero__art {
		max-width: 26rem;
	}
}

/* Mobile: stack everything, push the geometry below and to the right. */
@media (max-width: 48rem) {
	.hero__inner {
		grid-template-columns: 1fr;
		row-gap: 0;
		padding-block: 1rem 3rem;
	}

	.hero__content {
		max-width: none;
	}

	.hero__title {
		font-size: clamp(2.75rem, 13vw, 4.25rem);
	}

	.domain {
		font-size: clamp(2.25rem, 12vw, 3.25rem);
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.contact {
		flex-direction: column;
		gap: 1.25rem;
	}

	.hero__art {
		order: 2;
		justify-self: end;
		width: 82%;
		max-width: 22rem;
		margin-top: clamp(2.5rem, 8vw, 3.5rem);
		margin-right: calc(var(--ei-gutter) * -0.5);
		opacity: .9;
	}

	.hero__art-line {
		display: none;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 1rem;
		padding-block: 2rem;
		text-align: center;
	}

	.site-footer__copy,
	.site-footer__slogan {
		text-align: center;
	}

	.site-footer__social {
		justify-self: center;
		order: -1;
	}
}

@media (max-width: 30rem) {
	.contact__value {
		white-space: normal;
		word-break: break-word;
	}
}

/* Motion & print ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero__content > *,
	.hero__art {
		animation: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

@media print {
	.topline,
	.hero__art,
	.site-footer__social {
		display: none;
	}

	body {
		color: #000;
	}
}
