/* ==========================================================================
   Dişbul — base.css
   Tasarım tokenları, reset, tipografi ve yardımcı sınıflar.
   Tüm sayfalar bu dosyayı ilk sırada yükler.
   ========================================================================== */

:root {
  /* Renkler — PDF görsel dilinden */
  --navy-900: #0b1f4d;
  --navy-800: #102a63;
  --navy-700: #16357a;
  --navy-600: #1f4aa8;
  --teal-800: #0a6660;
  --teal-700: #0b7a73;   /* beyaz zeminde metin için (kontrast >= 4.5) */
  --teal-600: #0e8f87;   /* ana buton */
  --teal-500: #14a89e;
  --teal-100: #d3efed;
  --teal-50:  #e8f6f5;
  --gold-600: #b7811c;
  --gold-500: #d9a23a;
  --gold-50:  #fdf5e6;
  --green-600: #16834a;
  --green-50:  #e7f6ed;
  --orange-600: #c2570c;
  --orange-50:  #fff1e6;
  --red-600: #c62f3a;
  --red-50:  #fdecee;
  --blue-600: #2459c9;
  --blue-50:  #eaf0fd;
  --purple-600: #6b46c1;
  --purple-50:  #f1ecfc;

  --gray-900: #1a2236;
  --gray-700: #3d4760;
  --gray-600: #586178;  /* ikincil metin */
  --gray-500: #737c91;
  --gray-400: #a3abbd;
  --gray-300: #cfd5e1;
  --gray-200: #e3e8f0;
  --gray-100: #eef2f7;
  --gray-50:  #f6f8fb;
  --white: #ffffff;

  /* Anlamsal */
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-600);
  --color-heading: var(--navy-900);
  --color-link: var(--teal-700);
  --color-bg: var(--gray-50);
  --color-surface: var(--white);
  --color-border: var(--gray-200);
  --color-primary: var(--teal-600);
  --color-primary-hover: var(--teal-700);
  --focus-ring: 0 0 0 3px rgba(20, 168, 158, .45);

  /* Tipografi */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .75rem;    /* 12 */
  --fs-sm: .875rem;   /* 14 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.375rem;  /* 22 */
  --fs-2xl: 1.75rem;  /* 28 */
  --fs-3xl: 2.25rem;  /* 36 */
  --fs-4xl: 3rem;     /* 48 */

  /* Boşluk (4'ün katları) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Şekil */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 99, .06);
  --shadow: 0 4px 16px rgba(16, 42, 99, .07);
  --shadow-lg: 0 16px 40px rgba(16, 42, 99, .12);

  /* Düzen */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 76px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-heading); line-height: 1.25; font-weight: 700; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

/* ---------- Tipografi ---------- */
h1, .h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, var(--fs-4xl)); letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, var(--fs-2xl)); letter-spacing: -.01em; }
h3, .h3 { font-size: var(--fs-lg); }
h4, .h4 { font-size: var(--fs-md); }
.lead { font-size: var(--fs-lg); color: var(--gray-700); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-teal { color: var(--teal-700); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------- Düzen yardımcıları ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-12); }
.section-sm { padding-block: var(--sp-8); }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.grid { display: grid; gap: var(--sp-6); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }

.visually-hidden {
  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 {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-2); }
