/* ==========================================================================
   Keskintech — base.css
   Reset + CSS değişkenleri + tipografi.
   Tüm sayfalarda yüklenir; en alt katmandır.
   ========================================================================== */

:root {
  /* Renk paleti */
  --navy:        #0A1628;
  --navy-deep:   #080E1A;
  --navy-2:      #0F1F38;
  --blue:        #2563EB;
  --blue-soft:   #DBEAFE;
  --emerald:     #10B981;
  --emerald-2:   #059669;
  --emerald-soft:#D1FAE5;
  --amber:       #F59E0B;
  --rose:        #F43F5E;

  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --muted:       #64748B;
  --muted-2:     #94A3B8;
  --line:        #E2E8F0;
  --line-soft:   #EEF2F7;

  /* Yarıçap */
  --radius:      14px;
  --radius-lg:   20px;
  --radius-sm:   8px;

  /* Gölge */
  --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md:   0 4px 6px rgba(15,23,42,.04), 0 10px 24px rgba(15,23,42,.06);
  --shadow-lg:   0 12px 24px rgba(15,23,42,.06), 0 24px 48px rgba(15,23,42,.10);

  /* Layout */
  --container:   1200px;
  --gap:         24px;
  --header-h:    72px;

  /* Tipografi */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geçişler */
  --t-fast:    150ms ease;
  --t-base:    250ms ease;
  --t-slow:    400ms ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ── Erişilebilirlik ───────────────────────────────────────────────────── */

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

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

.kt-skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-fast);
}
.kt-skip-link:focus { top: 16px; }

/* ── Hareketsizlik tercihi ─────────────────────────────────────────────── */

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

/* ── Container ─────────────────────────────────────────────────────────── */

.kt-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Yardımcı sınıflar ─────────────────────────────────────────────────── */

.kt-hidden { display: none !important; }

@media (max-width: 768px) {
  .kt-hidden-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .kt-hidden-desktop { display: none !important; }
}
