/* =====================================================================
   Progart — ortak stil dosyası
   Bütün sayfalar bu dosyayı kullanır. Yeni sayfa eklerken burada tanımlı
   bileşenleri (buton, kart, bölüm başlığı...) yeniden kullanmak yeterli.
   ===================================================================== */

/* ---------- 1) Tasarım değişkenleri ----------
   Renk, boşluk ve gölge değerleri tek yerde durur. Marka rengini
   değiştirmek istersen sadece buradaki değerleri değiştirmen yeter. */
:root {
  /* Renkler */
  --navy: #0b1b33;          /* koyu alanlar (çağrı bandı, adım yuvarlakları) — iki temada da aynı */
  --heading: #0b1b33;       /* başlık metni — koyu temada açık renge döner */
  --surface: #ffffff;       /* kart, form, menü gibi yüzeylerin zemini */
  --header-bg: rgba(255, 255, 255, 0.88); /* yarı saydam üst menü zemini */
  --ink: #24344d;           /* gövde metni */
  --muted: #5d6c83;         /* ikincil metin */
  --line: #e3e8f0;          /* ince çizgiler, kenarlıklar */
  --bg: #ffffff;            /* sayfa zemini */
  --bg-soft: #f5f7fb;       /* dönüşümlü bölüm zemini */
  --primary: #1e4fd9;       /* ana marka rengi (mavi) */
  --primary-dark: #163ca8;  /* butonun üzerine gelince */
  --primary-soft: #e9effe;  /* ikon zeminleri, rozetler */
  --accent: #f59e0b;        /* vurgu rengi (kehribar) — az ve yerinde kullanılır */

  /* Yazı tipleri */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Ölçüler */
  --container: 1180px;      /* içerik alanının en fazla genişliği */
  --gutter: 24px;           /* kenar boşluğu */
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 27, 51, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 27, 51, 0.28);
}

/* ---------- 1b) Koyu tema ----------
   <html data-theme="dark"> olduğunda aynı değişkenler koyu değerlerini alır; bileşenlerin
   kendi kurallarına dokunmak gerekmez. data-theme değerini _Layout.cshtml'deki küçük script
   (kayıtlı tercih, yoksa açık tema) ve menüdeki tema düğmesi (main.js) belirler. */
:root[data-theme="dark"] {
  --heading: #f2f5fa;
  --ink: #c9d3e3;
  --muted: #93a1b8;
  --line: #24324d;
  --bg: #0b1220;
  --bg-soft: #0f192c;
  --surface: #131f36;
  --header-bg: rgba(11, 18, 32, 0.86);
  --primary: #4c7bf0;
  --primary-dark: #3b68da;
  --primary-soft: rgba(76, 123, 240, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7);

  /* Tarayıcının kendi çizdiği öğeler (kaydırma çubuğu, açılır liste) de koyu olsun */
  color-scheme: dark;
}

/* Koyu zeminde lacivert öğeler kaybolur; ana renge çevrilir */
:root[data-theme="dark"] .step::before,
:root[data-theme="dark"] .lang-switch a.is-active { background: var(--primary); }
:root[data-theme="dark"] .cta-band { border: 1px solid var(--line); }
/* Koyu temada logonun koyu zemin dosyası gösterilir (açık renk kare, lacivert P). */
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }

/* ---------- 2) Sıfırlama ve temel ayarlar ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Menüden bir bölüme atlayınca başlık sabit üst menünün altında kalmasın */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Klavyeyle gezenler için belirgin odak çerçevesi (erişilebilirlik) */
:focus-visible {
  outline: 3px solid rgba(30, 79, 217, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* İçeriği ortalayan kapsayıcı */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3) Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(30, 79, 217, 0.6);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--heading); }

/* Koyu zemin üzerindeki beyaz buton (çağrı bandında kullanılıyor) */
.btn-light { background: #fff; color: #0b1b33; }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- 4) Üst menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Sayfa aşağı kayınca main.js bu sınıfı ekler: ince çizgi + hafif gölge */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* Logo: kurumsal kimlik SVG dosyaları (wwwroot/img). Sayfada açık ve koyu zemin sürümü birlikte
   durur; varsayılan olarak açık zemin sürümü görünür, koyu temada bölüm 1b'deki kural değiştirir. */
.logo { display: inline-flex; align-items: center; }
.logo img { width: auto; height: 34px; }
.logo .logo-dark { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.nav-list a:hover { background: var(--bg-soft); color: var(--heading); }
.nav-list a.is-active { color: var(--primary); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Dil seçimi (TR | EN) */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--navy); color: #fff; }

/* Mobil menü düğmesi — masaüstünde gizli */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 5) Karşılama alanı (hero) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  /* Çok hafif mavi ışıma + noktalı desen: düz beyazdan daha canlı ama sakin */
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(30, 79, 217, 0.1), transparent 60%),
    radial-gradient(600px 400px at -5% 20%, rgba(245, 158, 11, 0.07), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

/* Küçük üst etiket ("rozet") */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
/* Başlıktaki vurgulu kelime */
.hero h1 .hl { color: var(--primary); }

.hero-lead {
  margin-top: 22px;
  max-width: 540px;
  font-size: 18px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Başlığın altındaki üç kısa madde */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg { width: 18px; height: 18px; color: var(--primary); }

/* --- Sağdaki görsel: tamamen HTML/CSS ile çizilmiş temsili ekran --- */
.hero-visual {
  position: relative;
  padding: 24px 10px 34px 30px;
}

.mock-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mock-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}

.mock-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 300px;
}

/* Sol şerit: temsili menü çizgileri */
.mock-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
}
.mock-side b {
  height: 9px;
  border-radius: 6px;
  background: var(--line);
}
.mock-side b:first-child { background: var(--primary); width: 70%; }

.mock-main { padding: 22px; }

.mock-title {
  width: 46%;
  height: 12px;
  border-radius: 6px;
  background: var(--heading);
}

/* Üç küçük özet kutusu */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.mock-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mock-stats div::before,
.mock-stats div::after {
  content: "";
  display: block;
  border-radius: 6px;
}
.mock-stats div::before { width: 60%; height: 7px; background: var(--line); }
.mock-stats div::after { width: 40%; height: 12px; margin-top: 10px; background: var(--primary); }
.mock-stats div:nth-child(2)::after { background: var(--accent); }
.mock-stats div:nth-child(3)::after { background: var(--heading); }

/* Temsili sütun grafik */
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.mock-chart span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), #6f93f5);
}
.mock-chart span:nth-child(even) { background: var(--primary-soft); }

/* Ekranın üzerine binen küçük yüzen kartlar */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.3;
}
.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--heading);
}
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.float-card .ico svg { width: 18px; height: 18px; }
.float-card.fc-1 { top: 0; right: 0; }
.float-card.fc-2 { bottom: 0; left: 0; }
.float-card.fc-2 .ico { background: #fef3c7; color: #b45309; }

/* ---------- 6) Teknoloji şeridi ---------- */
.tech-strip {
  padding: 28px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.tech-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.tech-inner p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-list li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 7) Genel bölüm düzeni ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- 8) Hizmet kartları ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.service-icon svg { width: 26px; height: 26px; }

/* Her hizmetin kendi ikon rengi var; kartların ayırt edilmesini kolaylaştırır */
.service-card.is-consulting .service-icon { background: #fef3c7; color: #b45309; }
.service-card.is-training .service-icon { background: #e0f2f1; color: #0f766e; }

.service-card h3 {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
}
.service-card > p {
  margin-top: 12px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary);
}

/* "Detaylı bilgi →" bağlantısı */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 9) Neden Progart ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.why-grid .section-head .btn { margin-top: 30px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature .num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.feature h3 { margin-top: 12px; font-size: 19px; font-weight: 700; }
.feature p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- 10) Çalışma süreci ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step; /* adım numaralarını CSS sayacı üretir */
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--line);
  counter-increment: step;
}
/* Çizginin üzerindeki numaralı yuvarlak */
.step::before {
  content: counter(step);
  position: absolute;
  top: -19px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.step h3 { margin-top: 12px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- 11) Eğitim bölümü ---------- */
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.training-grid .section-head { margin-bottom: 0; }
.training-grid .section-head .btn { margin-top: 30px; }

.topic-list { display: grid; gap: 14px; }
.topic {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.topic:hover { border-color: var(--primary); transform: translateX(4px); }
.topic .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2f1;
  color: #0f766e;
}
.topic .ico svg { width: 22px; height: 22px; }
.topic strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--heading);
}
.topic span { font-size: 14px; color: var(--muted); }

/* ---------- 12) Çağrı bandı ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px 56px;
  border-radius: 28px;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(30, 79, 217, 0.7), transparent 65%),
    radial-gradient(420px 260px at 0% 100%, rgba(245, 158, 11, 0.22), transparent 65%),
    var(--navy);
  color: #fff;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 {
  max-width: 560px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: #fff;
}
.cta-band p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 13) Alt bilgi ---------- */
.site-footer {
  margin-top: 104px;
  padding: 72px 0 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-about p { margin-top: 18px; max-width: 300px; color: var(--muted); }
.site-footer h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 10px; margin-top: 18px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 13b) İç sayfa bileşenleri ----------
   Yazılım / Danışmanlık / Eğitim / Hakkımızda / İletişim sayfalarında kullanılır. */

/* İç sayfaların üst başlık alanı (ana sayfadaki karşılama alanının küçüğü) */
.page-hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(30, 79, 217, 0.1), transparent 60%),
    radial-gradient(500px 300px at -5% 30%, rgba(245, 158, 11, 0.07), transparent 60%),
    var(--bg);
}
.page-hero h1 {
  max-width: 820px;
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.page-hero p {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}
.page-hero .hero-cta { margin-top: 30px; }

/* "Ana Sayfa / Yazılım" şeklindeki konum satırı */
.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current] { color: var(--heading); font-weight: 500; }

/* Üç sütunlu genel kart ızgarası (içine .feature kartları konur) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* İki sütunlu genel düzen: solda başlık, sağda içerik */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split .section-head { margin-bottom: 0; }

/* Onay işaretli liste — işaret CSS ile çizilir, her satıra ayrı SVG yazmak gerekmez */
.tick-list { display: grid; gap: 14px; }
.tick-list li {
  position: relative;
  padding: 16px 18px 16px 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4fd9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Düz yazı blokları (Hakkımızda sayfası) */
.prose { display: grid; gap: 18px; font-size: 17px; }
.prose p { color: var(--ink); }

/* Sık sorulan sorular — tarayıcının kendi <details> öğesi, JS gerekmez */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Sağdaki artı işareti; soru açılınca 45° dönüp çarpıya benzer */
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* İletişim sayfası */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-item .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); }
.contact-item strong { font-family: var(--font-head); color: var(--heading); }

.form-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 24px; font-weight: 700; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--heading); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 79, 217, 0.12);
}
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.form-card .btn { margin-top: 22px; }

/* Çağrı bandını taşıyan bölüm: alt boşluğu alt bilginin üst boşluğu karşılıyor */
.section-cta { padding-bottom: 0; }
/* Üstündeki bölüm de beyaz zeminliyse iki boşluk üst üste binmesin */
.section-cta.flush { padding-top: 0; }

@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 52px; }
  .grid-3, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .form-card .btn { width: 100%; }
}

/* ---------- 14) Kaydırınca beliren öğeler ----------
   main.js, <html> etiketine "js" sınıfını ekler ve görünür olan öğelere
   "is-visible" ekler. JS kapalıysa "js" sınıfı hiç gelmez, içerik gizlenmez. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hareket azaltma tercihini açmış kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- 15) Küçük ekranlar ---------- */

/* Tablet ve altı: menü açılır panele dönüşür */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    padding: 12px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  /* main.js düğmeye basılınca bu sınıfı ekler/kaldırır */
  .site-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }

  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }

  .service-grid { grid-template-columns: 1fr; }
  .why-grid, .training-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid .section-head { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Telefon */
@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 66px; }

  .header-actions .btn { display: none; } /* Telefonda yer dar; aynı işi menüdeki "İletişim" ve sayfadaki butonlar görüyor */
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .hero-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual { padding: 20px 0 30px 0; }
  .mock-body { grid-template-columns: 64px 1fr; min-height: 250px; }
  .mock-main { padding: 16px; }
  .float-card.fc-1 { right: -4px; }
  .float-card.fc-2 { left: -4px; }

  .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; border-radius: 22px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { margin-top: 72px; }
}

/* =====================================================================
   16) Sonradan eklenen bileşenler
   ===================================================================== */

/* ---------- Tema düğmesi ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
}
.theme-toggle svg { width: 18px; height: 18px; }
/* Açık temada ay (koyuya geç), koyu temada güneş (açığa geç) görünür */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Tıklanabilir kart (eğitim kataloğu) ---------- */
.feature-link {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-link:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.feature-link .link-arrow { padding-top: 20px; }

/* Ana sayfadaki eğitim satırları artık bağlantı; satırın tamamı tıklanır */
a.topic { width: 100%; }

/* ---------- Blog / proje kartı ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.post-card h3 { margin-top: 12px; font-size: 20px; font-weight: 700; }
.post-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.post-card .link-arrow { padding-top: 20px; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* "Taslak" rozeti: yalnızca geliştirme ortamında görünen içerikleri işaretler */
.draft-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Müşteri yorumu ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.testimonial blockquote { margin: 0; font-size: 16px; color: var(--ink); }
.testimonial blockquote p + p { margin-top: 12px; }
.testimonial figcaption { margin-top: auto; padding-top: 22px; font-size: 14px; }
.testimonial figcaption strong { display: block; font-family: var(--font-head); color: var(--heading); }
.testimonial figcaption span { color: var(--muted); }

/* ---------- Uzun metin (Markdown'dan gelen içerik, yasal metinler) ---------- */
.prose.rich { display: block; font-size: 17px; }
.prose.narrow { max-width: 760px; margin-inline: auto; }
.prose.rich > * + * { margin-top: 18px; }
.prose.rich h2 { margin-top: 44px; font-size: 26px; font-weight: 700; }
.prose.rich h3 { margin-top: 32px; font-size: 20px; font-weight: 700; }
.prose.rich > :first-child { margin-top: 0; }
.prose.rich ul,
.prose.rich ol { padding-left: 22px; }
.prose.rich ul { list-style: disc; }
.prose.rich li + li { margin-top: 8px; }
.prose.rich li::marker { color: var(--primary); }
.prose.rich a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose.rich strong { color: var(--heading); }
.prose.rich blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  color: var(--muted);
}
.prose.rich code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}
.prose.rich pre {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #e6ecf7;
  overflow-x: auto; /* uzun kod satırı sayfayı değil, yalnızca bu kutuyu kaydırır */
}
.prose.rich pre code { padding: 0; border: 0; background: none; font-size: 14px; }
.prose.rich table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose.rich th,
.prose.rich td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose.rich th { background: var(--bg-soft); color: var(--heading); }

/* Yasal metinlerin başındaki "taslak" uyarısı */
.draft-banner {
  padding: 14px 18px;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  background: #fef3c7;
  color: #78350f;
  font-size: 15px;
}
.prose.rich .draft-banner strong { color: inherit; }

/* ---------- Detay sayfası: solda bilgi kutusu, sağda metin ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.facts {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts h2 { font-size: 18px; font-weight: 700; }
.facts dl { display: grid; gap: 18px; margin: 20px 0 0; }
.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.facts dd ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }

/* ---------- Hata sayfaları (404 vb.) ---------- */
.error-page { padding: 110px 0 40px; text-align: center; }
.error-code {
  font-family: var(--font-head);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
}
.error-page h1 { margin-top: 18px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.error-page p { max-width: 520px; margin: 16px auto 0; color: var(--muted); }
.error-page .hero-cta { justify-content: center; }

/* ---------- WhatsApp düğmesi (sağ altta sabit) ---------- */
.wa-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #128c4b;
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.wa-button:hover { transform: translateY(-2px); }
.wa-button svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts { position: static; }
}
@media (max-width: 640px) {
  /* Telefonda yalnızca ikon kalır; yazı içeriğin üstünü kapatmasın */
  .wa-button span { display: none; }
  .wa-button { padding: 14px; right: 16px; bottom: 16px; }
  .error-page { padding-top: 72px; }
}
