/*
Theme Name: MaxXT
Description: Hand-written classic theme for maxxt-tech.com (replaces Hello Elementor + Elementor).
Version: 1.0.0
Text Domain: maxxt
*/


/* ---------- webfonts (copied from the Elementor kit so they survive it) ---------- */
@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-Medium.ttf") format("truetype");
}

@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-SemiBold.ttf") format("truetype");
}

@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-Bold.ttf") format("truetype");
}

@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-ExtraBold.ttf") format("truetype");
}

@font-face {
	font-family: "EncodeSansSemi";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/EncodeSansSemiExpanded-Black.ttf") format("truetype");
}

/* ---------- tokens (ported from Elementor kit 17) ---------- */
:root {
	/* colors */
	--white: #ffffff;
	--grey: #9e9e9e;
	--ink: #333333;
	--orange: #ee6e00;
	--red: #e60012;
	--bg-dark: #090712;
	--bg-1: #0f0f0f;
	--bg-2: #f5f5f5;
	--bg-3: #f7f7f7;
	--main-bg: #e6e6e7;
	--border: #383946;
	--border-1: #d8d8d8;
	--text-1: #666666;
	--text-2: #cccccc;
	--text-3: #e5e5e5;
	--navy: #1c1827;

	/* type — Korean glyphs fall back to the system UI fonts in ko-KR order */
	--font: "EncodeSansSemi", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-head: "EncodeSansSemi", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", var(--font);
	--font-alt: "Oswald", var(--font);
	--h1: 2.6rem;
	--h2: 2.2rem;
	--h3: 1.8rem;
	--h4: 1.2rem;
	--h5: 0.9rem;
	--body: 1rem;

	/* layout */
	--gutter: 8%;
	--section-y: 5%;
}

html {
	font-size: clamp(12.5px, calc(12.5px + 0.390625vw), 20px);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--body);
	line-height: 1.4;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-head);
	line-height: 1.3;
	font-weight: 700;
}

p {
	margin: 0 0 1rem;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

input, textarea, select {
	font: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- layout helpers ---------- */
.wrap {
	width: 100%;
	box-sizing: border-box;
	padding-inline: var(--gutter);
	margin-inline: auto;
}

/* ---------- wide screens ---------- */
/* past 1920px every page keeps the same 1920px content box as the header, the
   category/shop containers and the landing bands, so nothing drifts to the
   viewport edges on ultrawide monitors */
@media (min-width: 1921px) {
	.wrap {
		padding-left: max(var(--gutter), calc((100% - 1920px) / 2 + 153.6px));
		padding-right: max(var(--gutter), calc((100% - 1920px) / 2 + 153.6px));
	}
}


.section {
	box-sizing: border-box;
	padding: var(--section-y) var(--gutter);
}

.section--center {
	text-align: center;
}

.section--plain {
	padding-block: 0;
}

/* ---------- headings (kit sizes) ---------- */
.h-xl { font-size: var(--h1); line-height: 1.3; }
.h-lg { font-size: var(--h2); line-height: 1.3; }
.h-md { font-size: var(--h3); line-height: 1.3; }
.h-sm { font-size: var(--h4); line-height: 1.6; }

.title {
	font-family: var(--font-head);
	font-size: var(--h2);
	font-weight: 700;
	line-height: 1.3;
}

.title--orange { color: var(--orange); }

.title--upper {
	font-size: 2.5rem;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.2;
}

.lead {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
}

/* ---------- buttons ---------- */
.btn {
	display: inline-block;
	box-sizing: border-box;
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--white);
	background: var(--ink);
	padding: 0.66rem 2.5rem 0.66rem 1.1rem;
	transition: background 0.25s, color 0.25s;
}

.btn:hover { background: var(--orange); }

.btn--ghost {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 25px;
	padding: 0.5rem 2rem;
}

.btn--pill {
	border-radius: 25px;
}

.btn--red {
	background: var(--red);
	border-radius: 28px;
	padding: 0.6rem 1.8rem;
}

.btn--red:hover { background: #b8000e; }

/* ---------- forms ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--border-1);
	background: var(--white);
	color: var(--ink);
	border-radius: 0;
}

input:focus,
textarea:focus,
select:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0); }

.wpforms-container .wpforms-field-label { font-weight: 400; }

/* WPForms still wraps hidden fields in a .wpforms-field div, whose margin
   leaves an empty gap once a field is hidden (e.g. the Korean country value) */
.wpforms-field-hidden { display: none; }

/* the 50/50 layout block carries its own bottom margin on top of the last row's,
   which reads as an empty row when the next field is a textarea */
.wpforms-container .wpforms-field-layout { margin-bottom: 0 !important; }

/* ---------- utility classes ported from kit custom CSS ---------- */
.highlight {
	font-weight: bold;
	background: linear-gradient(90deg, #e60012, #ffd700, #90ee90);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	position: relative;
	display: inline-block;
	animation: highlight-scale 0.5s ease-in-out;
}

.highlight::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	height: 2px;
	width: 100%;
	background: linear-gradient(to right, #e60012, #ffd700, #90ee90);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease-in-out;
}

.highlight:hover::after { transform: scaleX(1); }

@keyframes highlight-scale {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.highlight2 {
	padding: 0 0 2px;
	position: relative;
	z-index: 0;
}

.highlight2 span {
	display: inline-block;
	position: relative;
}

.highlight2 span::after {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	z-index: -1;
	height: 5px;
	border-radius: 2.5px;
	background-color: #ffd700;
	content: " ";
}

/* translatepress floater: hidden on desktop, visible on mobile */
#trp-floater-ls.trp-bottom-right { display: none; }

@media (max-width: 767px) {
	#trp-floater-ls.trp-bottom-right { display: block; }
}

:focus { outline: none; }

/* ---------- category pills (404 + thank-you) ---------- */
.mx-cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mx-cats li {
	margin: 0;
}

.mx-cats a {
	display: inline-block;
	padding: 0.45rem 1.15rem;
	border: 1px solid rgba(128, 128, 128, 0.45);
	border-radius: 100px;
	color: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
	transition: border-color 0.25s, color 0.25s;
}

.mx-cats a:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.mx-cats__label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	opacity: 0.7;
}
