/* TECH3DS base layer: global elements, native-feel rules (EXECUTION-PLAN §2a), layout chrome. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overflow-x: clip;
}
@media (max-width: 767px) { body { padding-bottom: calc(var(--bottom-bar-h) + var(--safe-bottom)); } }

h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--font-heading); color: var(--heading); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 var(--space-4); text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--white); }
.section-light a:hover { color: var(--ink); }
code, kbd, .mono { font-family: var(--font-mono); font-size: var(--fs-mono); }
img, svg, video { max-width: 100%; height: auto; }
::selection { background: var(--brand-red); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-3); display: inline-block; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text); max-width: 60ch; }
.muted { color: var(--text-muted); }
.container { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--white); color: var(--ink); padding: 12px 16px; }
.skip-link:focus { left: 8px; top: calc(8px + var(--safe-top)); }

/* Buttons (also styles Elementor buttons and WooCommerce buttons) */
.btn, .elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button, button[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: var(--tap); padding: 0.75em 1.4em;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none;
	border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
	background: var(--brand-red); color: #fff;
	transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
	touch-action: manipulation;
}
.btn:hover, .elementor-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, button[type=submit]:hover { background: var(--brand-red-deep); color: #fff; }
.btn:active, .elementor-button:active, button[type=submit]:active { transform: scale(0.97); }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--line); }
.btn--outline:hover { background: transparent; border-color: var(--white); color: var(--white); }
.btn--whatsapp { background: #1DA851; }
.btn--whatsapp:hover { background: #168a42; }
.btn[disabled], button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Forms: 16px+ inputs stop iOS zoom */
input, select, textarea { font: inherit; font-size: max(16px, 1rem); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], input[type=url], select, textarea {
	width: 100%; min-height: var(--tap); padding: 0.65em 0.85em; box-sizing: border-box;
	background: var(--surface-2); color: var(--heading);
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	transition: border-color var(--dur-fast) var(--ease-out);
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(58, 123, 255, 0.25); }
label { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--space-1); }

/* Hover only for real pointers: no sticky hover on touch */
@media (hover: none) { .glow-hover:hover { box-shadow: none !important; transform: none !important; } }
.glow-hover { transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .glow-hover:hover { box-shadow: var(--glow-red); transform: translateY(-4px); } }

/* Textures */
.bg-blueprint { background: var(--grid-blueprint), var(--bg); }
.bg-glow { position: relative; isolation: isolate; }
.bg-glow::before { content: ""; position: absolute; inset: 10% 15%; z-index: -1; background: radial-gradient(closest-side, rgba(225, 6, 0, 0.28), transparent 70%); filter: blur(30px); }

/* Sections */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--surface-2); }

/* ---------- Header ---------- */
.site-hdr {
	position: sticky; top: 0; z-index: 50;
	padding-top: var(--safe-top);
	background: rgba(10, 10, 11, 0.72);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-hdr__in { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; }
.site-hdr__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-hdr__logo img { height: 34px; width: auto; display: block; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 0.8rem; color: var(--steel-200); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.site-nav li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; flex-direction: column; padding: var(--space-2); background: var(--carbon-900); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-hdr__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-hdr__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); color: var(--white); border-radius: var(--radius-sm); }
.site-hdr__cart:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.site-hdr__cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand-red); color: #fff; font: 600 11px/18px var(--font-body); text-align: center; }
.site-hdr__menu-btn { display: none; }
@media (max-width: 1023px) {
	.site-nav, .site-hdr__cta { display: none; }
	.site-hdr__actions { margin-left: auto; }
}

/* ---------- Mobile bottom bar (phones) ---------- */
.bottom-bar { display: none; }
@media (max-width: 767px) {
	.bottom-bar {
		display: grid; grid-template-columns: repeat(4, 1fr);
		position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
		height: calc(var(--bottom-bar-h) + var(--safe-bottom)); padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
		background: rgba(17, 17, 19, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
	.bottom-bar a, .bottom-bar button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: var(--tap); background: none; border: 0; color: var(--steel-200); font: 500 11px/1 var(--font-body); text-decoration: none; cursor: pointer;
	}
	.bottom-bar a:active, .bottom-bar button:active { transform: scale(0.94); color: #fff; }
	.bottom-bar svg { width: 22px; height: 22px; }
	.bottom-bar .is-primary { color: #fff; }
	.bottom-bar .is-primary svg { color: var(--brand-red-bright); }
	.bottom-bar .is-wa svg { color: #25D366; }
	.wa-float { display: none !important; }
}

/* ---------- Menu sheet (<dialog>) ---------- */
.menu-sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85dvh; background: var(--carbon-900); color: var(--text); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overscroll-behavior: contain; }
.menu-sheet::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.menu-sheet[open] { animation: sheet-in var(--dur) var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.menu-sheet__in { padding: var(--space-4) var(--gutter) calc(var(--space-8) + var(--safe-bottom)); }
.menu-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto var(--space-4); }
.menu-sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.menu-sheet__close { width: var(--tap); height: var(--tap); background: none; border: 0; color: var(--white); font-size: 28px; cursor: pointer; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-sheet a { display: flex; align-items: center; min-height: 52px; color: var(--white); text-decoration: none; font: 600 1.125rem var(--font-heading); border-bottom: 1px solid var(--line); }
.menu-sheet .sub-menu a { font: 500 1rem var(--font-body); color: var(--steel-200); padding-left: var(--space-4); min-height: 46px; }
.menu-sheet .btn { width: 100%; margin-top: var(--space-6); }

/* ---------- WhatsApp float (desktop/tablet) ---------- */
.wa-float {
	position: fixed; z-index: 55; right: calc(20px + var(--safe-right)); bottom: calc(20px + var(--safe-bottom));
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
	background: #1DA851; color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
	transition: transform var(--dur-fast) var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-ftr { background: var(--carbon-900); border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-8); font-size: 0.9375rem; }
.site-ftr__grid { display: grid; gap: var(--space-8); grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 1023px) { .site-ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .site-ftr__grid { grid-template-columns: 1fr; } }
.site-ftr h4 { font-size: 0.875rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: 500; }
.site-ftr ul { list-style: none; margin: 0; padding: 0; }
.site-ftr li { margin-bottom: var(--space-2); }
.site-ftr a { color: var(--steel-200); text-decoration: none; }
.site-ftr a:hover { color: var(--white); }
.site-ftr__logo img { width: 150px; height: auto; margin-bottom: var(--space-4); }
.site-ftr__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; color: var(--text-muted); font-size: var(--fs-small); }
.site-ftr__social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.site-ftr__social a { display: inline-flex; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }

/* Preview ribbon (staging/private preview only) */
.preview-ribbon { background: var(--warning); color: #111; font: 600 13px/1.3 var(--font-body); text-align: center; padding: 6px var(--gutter); }

/* Page content wrapper for non-Elementor pages */
.page-content, .site-main > .page-header { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.site-main { padding-bottom: var(--space-16); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
