/* =============================================================
   YILMEK — Meslek Edindirme Kursları / Main Layout
   ============================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-govde);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--antrasit);
  background: var(--buz-mavisi);
  font-feature-settings: var(--font-feature);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-baslik);
  font-weight: 600;
  line-height: 1.2;
  color: var(--antrasit);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); }

a {
  color: var(--petrol);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--petrol-koyu); text-decoration: underline; }

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

ul, ol { padding-left: var(--space-5); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 9999;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
  color: white;
}

/* Focus görünür olsun */
*:focus-visible {
  outline: 3px solid var(--altin);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow { max-width: 860px; }
.container-wide { max-width: 1440px; }

/* Section */
.section {
  padding: var(--space-8) 0;
}

.section-tight { padding: var(--space-6) 0; }

.section-petrol {
  background: var(--petrol);
  color: white;
}
.section-petrol h1, .section-petrol h2, .section-petrol h3 { color: white; }
.section-petrol a { color: var(--turkuaz-acik); }

.section-buz {
  background: var(--buz-mavisi);
}

.section-beyaz {
  background: white;
}

.section-petrol-soluk {
  background: var(--petrol-soluk);
}

.section-yesil-acik {
  background: var(--egitim-yesili-acik);
}

/* Eyebrow / Bölüm başlığı */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--petrol);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--petrol);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--tas-grisi);
  max-width: 640px;
  margin-bottom: var(--space-6);
}

/* Section head (başlık + link) */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden */
.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;
}

/* Print */
@media print {
  header, footer, .no-print, .a11y-fab, .a11y-panel { display: none !important; }
  body { background: white; }
}
