/* ==========================================================================
   NOKSEL — Temel katman
   Renk ve font değişkenleri inc/config.php'den gelir, burada tanımlanmaz.
   ========================================================================== */

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

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

body {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ink);
	background: var(--surface);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* --- Tipografi ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-tight);
	color: var(--ink);
	text-wrap: balance;
}

/* Boyutlar inc/config.php → noksel_type_scale() içinde tanımlıdır. */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p { text-wrap: pretty; }

p + p { margin-top: 1em; }

a {
	color: var(--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.18s ease;
}

a:hover { color: var(--navy); }

strong, b { font-weight: 600; }

/* Sayısal veri her yerde hizalı olsun — sayaçlar ve tablolar zıplamaz. */
table,
time,
.tabular,
[class*="number"],
[class*="stat"] {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

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

svg.icon {
	fill: currentColor;
	flex-shrink: 0;
}

ul, ol { list-style: none; }

/* --- Erişilebilirlik ---------------------------------------------------- */

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

/* Fare ile tıklamada halka görünmesin, klavyede görünsün. */
:focus:not(:focus-visible) { outline: none; }

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 16px;
	color: var(--white);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Butonlar ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 36px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: var(--fs-btn);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--blue-mid);
	border-color: var(--blue-mid);
	color: var(--white);
}

.btn--outline {
	background: transparent;
	border-color: var(--blue);
	color: var(--blue);
}

.btn--outline:hover {
	background: var(--blue);
	color: var(--white);
}

/* Koyu zemin üzerinde — hero ve CTA */
.btn--ghost {
	padding: 14px 34px;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--white);
}

.btn--ghost:hover {
	border-color: var(--white);
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
}
