/* =============================================================
   Sıfırlama + Temel Tipografi
   ============================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-15);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 0;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* Satır içi ikonlar — ölçü verilmediğinde SVG'ler 300×150px'e düşer,
   bu varsayılan onu engeller. Bileşen kuralları bunu ezebilir. */
.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

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

button { background: none; border: none; cursor: pointer; padding: 0; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

::selection { background: var(--brand-tint-2); color: var(--brand-darker); }

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

/* --- Başlıklar --- */
h1, .h1 {
  font-size: clamp(var(--fs-28), 4vw, var(--fs-40));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-size: clamp(var(--fs-24), 3vw, var(--fs-32));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
}
h3, .h3 {
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
}
h4, .h4 {
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

/* --- Metin yardımcıları --- */
.eyebrow {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead     { font-size: var(--fs-18); color: var(--ink-2); line-height: 1.65; }
.muted    { color: var(--ink-3); }
.small    { font-size: var(--fs-13); }
.tiny     { font-size: var(--fs-12); }
.strong   { font-weight: var(--fw-semibold); }
.nowrap   { white-space: nowrap; }
.center   { text-align: center; }
.right    { text-align: right; }
.tabular  { font-variant-numeric: tabular-nums; }

.text-brand   { color: var(--brand); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--brand); color: #fff; padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* --- Zengin metin (sözleşme sayfaları) --- */
.rich-text { color: var(--ink-2); line-height: 1.75; }
.rich-text > * + * { margin-top: var(--sp-4); }
.rich-text h2 { font-size: var(--fs-20); color: var(--ink); margin-top: var(--sp-8); }
.rich-text h3 { font-size: var(--fs-16); color: var(--ink); margin-top: var(--sp-6); }
.rich-text ul, .rich-text ol { padding-left: var(--sp-5); }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: var(--sp-2); }
.rich-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.rich-text table { margin: var(--sp-5) 0; font-size: var(--fs-14); }
.rich-text th, .rich-text td {
  border: 1px solid var(--line);
  padding: var(--sp-3);
  text-align: left;
  vertical-align: top;
}
.rich-text th { background: var(--surface-2); font-weight: var(--fw-semibold); color: var(--ink); }
.rich-text blockquote {
  border-left: 2px solid var(--line-strong);
  padding-left: var(--sp-4);
  color: var(--ink-3);
}

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