/* =========================================================
   Global / Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* smooth scroll Lenis ile yönetiliyor */
  overflow-x: clip; /* yatay taşmayı kökten engelle (scrollbar genişliği sorunu yok) */
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

#root {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

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

img {
  height: auto;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-blue-dark);
}

p {
  color: var(--color-muted);
}

::selection {
  background: var(--color-lime);
  color: var(--color-blue-dark);
}

/* --- Layout yardımcıları --- (container tanımları layout.css'te) */
.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--cream {
  background: var(--color-cream);
}

.section--white {
  background: var(--color-white);
}

.section--dark {
  background: var(--color-blue-dark);
  color: #d3ddd1;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

/* Etiket çipi: zemin rengi yazı renginden türetilir; açık ve koyu zeminde aynı sınıf çalışır */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content; /* flex-column ebeveynde tam genişliğe yayılmasın */
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, currentColor 11%, transparent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-deep);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
/* İkonlu çipte nokta gereksiz */
.eyebrow:has(svg)::before {
  display: none;
}

.text-gradient {
  background: linear-gradient(100deg, var(--color-blue) 0%, var(--color-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: var(--z-overlay);
  background: var(--color-blue-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
