/* İETMK — site stilleri (framework yok, sistem yazı tipleri) */

:root {
  color-scheme: light dark;

  --navy-900: #071d40;
  --navy-800: #0b2a5b;
  --navy-700: #14396f;
  --red-700: #a80d27;
  --red-600: #c8102e;

  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --text: #16202f;
  --text-muted: #4a5568;
  --heading: #0b2a5b;
  --accent: #b3122e;
  --link: #0b3d91;
  --border: #d9dee7;
  --hero-bg: #0b2a5b;
  --hero-text: #ffffff;
  --hero-muted: #d4ddeb;
  --focus: #c8102e;
  --shadow: 0 1px 2px rgba(11, 42, 91, 0.06), 0 4px 16px rgba(11, 42, 91, 0.06);

  --radius: 12px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --bg-alt: #101b2f;
    --surface: #14213a;
    --text: #e6ebf3;
    --text-muted: #b2bdcf;
    --heading: #f1f4fa;
    --accent: #ff7a8a;
    --link: #9cc2ff;
    --border: #26375a;
    --hero-bg: #071733;
    --hero-text: #ffffff;
    --hero-muted: #c3cee0;
    --focus: #ff7a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* Üst bilgi */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--red-600);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--heading);
  min-width: 0;
}
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-sub { font-size: 0.8rem; color: var(--text-muted); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.lang-switch [aria-current="page"] {
  background: var(--navy-800);
  color: #fff;
}
.lang-switch a:hover { background: var(--bg-alt); }

.site-nav { border-top: 1px solid var(--border); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red-600); color: var(--heading); }

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 0.92rem; }
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.18) 0%, rgba(200, 16, 46, 0) 45%),
    var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--red-600);
}
.hero h1 {
  color: var(--hero-text);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 0.4em;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-muted);
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--hero-muted);
  max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hero :focus-visible { outline-color: #fff; }

/* Bölümler */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head .kicker {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-head p { color: var(--text-muted); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--red-600);
}

/* Rakamlar */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat:nth-child(even) { border-top-color: var(--red-600); }
.stat-value {
  display: block;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; color: var(--text-muted); margin-top: 0.35rem; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) {
  .stat { border-top-color: #4d7bd1; }
}

.note { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }

.highlight {
  border-left: 5px solid var(--red-600);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}
.highlight p { margin: 0; }

.placeholder {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--surface);
}
.placeholder p { margin: 0; font-size: 1.05rem; }

/* İletişim */
.contact-list { margin: 0; }
.contact-list dt {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-list dd { margin: 0.15rem 0 1.1rem; }
.contact-list dd:last-child { margin-bottom: 0; }

/* Alt bilgi */
.site-footer {
  background: var(--navy-900);
  color: #d4ddeb;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #ffffff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}
.footer-inner p { margin: 0 0 0.35rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer :focus-visible { outline-color: #fff; }

/* 404 */
.error-page { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.error-page .code {
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page .hero-actions { justify-content: center; }
.error-page .btn-ghost { color: var(--heading); border-color: var(--border); }
.error-page .btn-ghost:hover { background: var(--bg-alt); }
.error-page hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem auto; max-width: 20rem; }
