/* ==========================================================================
   MEGATECH — base layer (mobile-first; breakpoints 480/768/1024/1366/1920)
   Only var(--mt-*) tokens; no raw brand hex values.
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 140px;
}

body {
	margin: 0;
	background: var(--mt-bg-page);
	color: var(--mt-text-body);
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-base);
	line-height: var(--mt-lh-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

@media (min-width: 768px) {
	body {
		font-size: var(--mt-fs-md);
	}
}

/* Mobile bottom navigation never covers content (C§21). */
@media (max-width: 767.98px) {
	body.mt-has-bottom-nav {
		padding-bottom: var(--mt-bottom-nav-total);
	}
	/* Keyboard focus / in-page jumps never land under the fixed bottom nav. */
	html:has(body.mt-has-bottom-nav) {
		scroll-padding-bottom: calc(var(--mt-bottom-nav-total) + var(--mt-space-4));
	}
}

body.mt-scroll-lock {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--mt-space-3);
	color: var(--mt-text-heading);
	font-family: var(--mt-font-heading);
	font-weight: var(--mt-fw-bold);
	line-height: var(--mt-lh-snug);
	letter-spacing: var(--mt-ls-tight);
}

h1 {
	font-size: var(--mt-fs-4xl);
	font-weight: var(--mt-fw-extrabold);
	line-height: var(--mt-lh-tight);
}

h2 {
	font-size: var(--mt-fs-2xl);
}

h3 {
	font-size: var(--mt-fs-xl);
}

p {
	margin: 0 0 var(--mt-space-4);
}

a {
	color: var(--mt-text-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--mt-dur-fast) var(--mt-ease-standard);
}

a:hover {
	color: var(--mt-color-primary-strong-hover);
}

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

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

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

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */

.mt-container {
	width: 100%;
	max-width: calc(var(--mt-content-max) + 2 * var(--mt-gutter));
	margin-inline: auto;
	padding-inline: var(--mt-gutter);
}

.mt-container--narrow {
	max-width: calc(var(--mt-container-narrow) + 2 * var(--mt-gutter));
}

.mt-page-content,
.mt-shop {
	padding-block: var(--mt-space-5) var(--mt-section-gap);
}

.mt-page-head {
	margin-bottom: var(--mt-space-6);
}

.mt-page-head__title,
.woocommerce-products-header__title {
	margin: var(--mt-space-3) 0 0;
	font-size: var(--mt-fs-4xl);
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > * + * {
	margin-top: var(--mt-space-4);
}

/* --------------------------------------------------------------------------
   Accessibility
   ----------------------------------------------------------------------- */

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

.skip-link:focus {
	position: fixed !important;
	top: var(--mt-space-2);
	left: var(--mt-space-2);
	z-index: var(--mt-z-toast);
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--mt-space-3) var(--mt-space-4);
	clip: auto;
	background: var(--mt-color-dark);
	color: var(--mt-text-on-dark);
	border-radius: var(--mt-radius-md);
}

:focus-visible {
	outline: 2px solid var(--mt-border-focus);
	outline-offset: 2px;
}

/* Honeypot field (e-bülten) — hidden from people, not from bots. */
.mt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Editor-only placeholders (never rendered for visitors)
   ----------------------------------------------------------------------- */

.mt-placeholder {
	display: inline-flex;
	align-items: center;
	gap: var(--mt-space-1);
	padding: 2px var(--mt-space-2);
	border: 1px dashed var(--mt-warning);
	border-radius: var(--mt-radius-sm);
	background: var(--mt-warning-bg);
	color: var(--mt-warning);
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

.mt-draft-badge {
	display: inline-block;
	margin-left: var(--mt-space-1);
	padding: 0 6px;
	border-radius: var(--mt-radius-xs);
	background: var(--mt-warning-bg);
	color: var(--mt-warning);
	font-size: var(--mt-fs-2xs);
	font-weight: var(--mt-fw-bold);
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Reduced motion (ANIMATION-SPECS §4)
   ----------------------------------------------------------------------- */

@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;
	}
}
