/* ============================================================================
   site.css — Vefa Özel Eğitim / bileşen ve yerleşim katmanı
   ----------------------------------------------------------------------------
   NEDEN: Ekranlar bileşenlerden kurulur; sayfa içinde tek kullanımlık görsel
   yapı üretilmez (§30). Bu dosya YALNIZCA tokens.css belirteçlerini kullanır —
   burada ham hex renk yoktur. Aynı işlevin iki farklı görünümü olamaz:
   tek buton ailesi, tek kart ailesi.
   ========================================================================== */

/* --- Sıfırlama / reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: var(--leading-tight); margin: 0 0 var(--space-sm); font-weight: var(--weight-bold); letter-spacing: -0.015em; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p  { margin: 0 0 var(--space-sm); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25em; }
li { margin-bottom: var(--space-3xs); }
a { color: var(--color-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-brand-deep); }
strong { font-weight: var(--weight-semi); }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Klavye kullanıcısı için içeriğe atlama — §15 erişilebilirlik */
.skip-link {
  position: absolute; left: var(--space-sm); top: calc(var(--space-sm) * -4);
  z-index: 100; background: var(--color-brand-deep); color: var(--color-text-inverse);
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-sm);
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-sm); color: var(--color-text-inverse); }

/* --- Yerleşim / layout ---------------------------------------------------- */
.container { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--space-md), var(--container-narrow)); }
.section { padding-block: var(--space-2xl); }
.section--soft { background: var(--color-bg-soft); }
.section__head { margin-bottom: var(--space-lg); }
.section__head p { color: var(--color-text-muted); font-size: var(--text-lg); }

.eyebrow {
  display: inline-block; margin-bottom: var(--space-2xs);
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand);
}

/* --- Kelime işareti / wordmark (§30) --------------------------------------
   Kelime işareti GÖRSEL DEĞİL METİNdir; iki parça ARASINDA BOŞLUK YOK,
   ayrım RENKtedir. flex kullanılmaz ki gap araya boşluk sokmasın. */
.wordmark { font-weight: var(--weight-bold); letter-spacing: -0.02em; white-space: nowrap; }
.wordmark__a { color: var(--color-accent); }
.wordmark__b { color: var(--color-text); }

/* --- Başlık çubuğu / header ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-md);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--space-2xs); text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-size: var(--text-lg); }
.brand__sub { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-medium); }

.nav { display: flex; align-items: center; gap: var(--space-3xs); }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap-min);
  padding-inline: var(--space-2xs); border-radius: var(--radius-sm);
  color: var(--color-text); text-decoration: none; white-space: nowrap;
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  transition: background var(--duration-fast) var(--ease-out);
}
.nav a:hover { background: var(--color-bg-soft); color: var(--color-text); }
.nav a[aria-current="page"] { color: var(--color-brand); background: var(--color-brand-soft); }

.nav-toggle {
  display: none; min-width: var(--tap-min); min-height: var(--tap-min);
  align-items: center; justify-content: center; gap: var(--space-3xs);
  background: transparent; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); color: var(--color-text); cursor: pointer;
  font: inherit; font-size: var(--text-sm); padding-inline: var(--space-2xs);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: var(--space-2xs) var(--space-md) var(--space-sm);
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { min-height: var(--tap-min); padding-inline: var(--space-2xs); }
  .nav .btn { margin-top: var(--space-2xs); justify-content: center; }
  .brand__sub { display: none; }
}

/* --- Butonlar / buttons (tek aile) ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--tap-min); padding: var(--space-2xs) var(--space-md);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semi);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary { background: var(--color-accent-strong); color: var(--color-on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-md); }

.btn--secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { background: var(--color-bg-soft); color: var(--color-text); }

.btn--ghost { background: transparent; color: var(--color-brand); border-color: currentColor; }
.btn--ghost:hover { background: var(--color-brand-soft); color: var(--color-brand-deep); }

/* --- Kahraman bölümü / hero ------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding-block: var(--space-2xl);
  background:
    radial-gradient(90ch 60ch at 82% -10%, var(--color-brand-soft), transparent 62%),
    radial-gradient(70ch 50ch at 0% 100%, color-mix(in srgb, var(--color-brand-sky) 26%, transparent), transparent 60%),
    var(--color-bg);
}
.hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 950px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }

.hero h1 { margin-bottom: var(--space-sm); }
.hero h1 .accent { color: var(--color-accent); }
.hero__lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-xs);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-md);
}
.hero__badge .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--color-success); flex: none; }

.hero__art { display: grid; place-items: center; }
.hero__art .brand-seal { width: min(360px, 78vw); filter: drop-shadow(var(--shadow-lg)); }

/* --- Güven şeridi / trust strip -------------------------------------------- */
.trust {
  display: grid; gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin-top: var(--space-xl); padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.trust__item { display: flex; gap: var(--space-2xs); align-items: flex-start; }
.trust__item svg { width: 1.4em; height: 1.4em; flex: none; color: var(--color-brand); margin-top: .15em; }
.trust__item b { display: block; font-size: var(--text-sm); }
.trust__item span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* --- Kartlar / cards (tek aile) -------------------------------------------- */
.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.card h3 { margin-bottom: var(--space-3xs); font-size: var(--text-lg); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--color-brand-soft);
  color: var(--color-brand-deep); margin-bottom: var(--space-xs);
}
.card__icon svg { width: 26px; height: 26px; }

/* --- Adım adım süreç / steps ------------------------------------------------ */
.steps { display: grid; gap: var(--space-md); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--space-md); border-top: 3px solid var(--color-brand-sky); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: calc(var(--space-md) * -0.5); left: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-brand-deep); color: var(--color-text-inverse);
  font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.step h3 { margin-top: var(--space-sm); font-size: var(--text-lg); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: 0; }

/* --- Öne çıkan panel / feature panel ---------------------------------------- */
.panel {
  display: grid; gap: var(--space-lg); align-items: center;
  background: var(--color-bg-inverse); color: var(--color-text-inverse);
  border-radius: var(--radius-lg); padding: var(--space-lg);
}
@media (min-width: 850px) { .panel { grid-template-columns: 1fr 1fr; padding: var(--space-xl); } }
.panel h2 { color: inherit; }
.panel p { color: color-mix(in srgb, var(--color-text-inverse) 82%, transparent); }
.panel a:not(.btn) { color: var(--color-brand-sky); }
.panel__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2xs); }
.panel__list li { display: flex; gap: var(--space-2xs); align-items: flex-start; margin: 0; }
.panel__list svg { width: 1.3em; height: 1.3em; flex: none; color: var(--color-brand-sky); margin-top: .18em; }

/* --- Alıntı / quote ---------------------------------------------------------- */
.quote {
  margin: 0; padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-soft); border-radius: var(--radius-sm);
}
.quote p { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.quote footer { font-size: var(--text-sm); color: var(--color-text-muted); }

/* --- Tablo / table ------------------------------------------------------------
   Geniş içerik SAYFAYI değil KENDİ kutusunu kaydırır — gövde asla yatay
   kaymaz. Alt alta gelen sayılar tabular hizalanır (§30). */
.table-wrap { overflow-x: auto; margin-bottom: var(--space-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 32ch; font-size: var(--text-sm); }
.table-wrap th,
.table-wrap td { text-align: left; padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table-wrap th { color: var(--color-text-muted); font-weight: var(--weight-semi); white-space: nowrap; }
.table-wrap td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: var(--weight-semi); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* --- Bilgi kutusu / callout ----------------------------------------------------
   Marka kırmızısı burada KULLANILMAZ — §30: aile kırmızısı vurgudur, uyarı
   rengi değildir. Uyarı kendi anlam rengini kullanır ve yanında bir ikon
   bulunur (§15: bilgi yalnızca renkle iletilmez). */
.note {
  display: flex; gap: var(--space-xs); align-items: flex-start;
  background: var(--color-bg-soft); border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand); border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-md);
}
.note svg { width: 1.4em; height: 1.4em; flex: none; color: var(--color-brand); margin-top: .15em; }
.note > div > :last-child { margin-bottom: 0; }
.note--warning { border-left-color: var(--color-warning); }
.note--warning svg { color: var(--color-warning); }

.source-list { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.source-list li { margin-bottom: var(--space-2xs); word-break: break-word; }

/* --- Galeri / gallery -------------------------------------------------------- */
.gallery { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gallery figure { margin: 0; }
.gallery__slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius-md);
  border: 2px dashed var(--color-border-strong);
  background: var(--color-bg-soft);
  display: grid; place-items: center; text-align: center;
  padding: var(--space-sm); color: var(--color-text-muted); font-size: var(--text-sm);
}
/* Fotoğraflar farklı en-boy oranlarında geliyor; kutu sabit, görsel kırpılarak
   oturur. Böylece ızgara satırları kaymaz (§15.1 — düzen kırılmaz). */
.gallery__img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  border-radius: var(--radius-md); background: var(--color-bg-soft);
  box-shadow: var(--shadow-sm);
}
.gallery__img--tall { aspect-ratio: 3 / 4; }
.gallery figcaption { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3xs); }

/* --- SSS / FAQ — JavaScript olmadan çalışır (§29.1) ---------------------------- */
.faq { display: grid; gap: var(--space-2xs); }
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: var(--space-xs) var(--space-sm);
}
.faq summary {
  cursor: pointer; font-weight: var(--weight-semi); list-style: none;
  min-height: var(--tap-min); display: flex; align-items: center; gap: var(--space-2xs);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: var(--text-xl);
  color: var(--color-brand); line-height: 1; font-weight: var(--weight-regular);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { color: var(--color-text-muted); padding-top: var(--space-2xs); }
.faq details p:last-child { margin-bottom: 0; }

/* --- İletişim / contact ------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.contact-list li { display: flex; gap: var(--space-xs); align-items: flex-start; margin: 0; }
.contact-list svg { width: 1.5em; height: 1.5em; flex: none; color: var(--color-brand); margin-top: .1em; }
.contact-list b { display: block; font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-medium); }
.contact-list a, .contact-list span { font-size: var(--text-lg); font-weight: var(--weight-semi); }

.map-slot {
  aspect-ratio: 16 / 10; border-radius: var(--radius-md);
  border: 2px dashed var(--color-border-strong); background: var(--color-bg-soft);
  display: grid; place-items: center; text-align: center; padding: var(--space-md);
  color: var(--color-text-muted); font-size: var(--text-sm);
}

/* --- Çağrı şeridi / call-to-action band ---------------------------------------- */
.cta-band { background: var(--color-brand-soft); border-block: 1px solid var(--color-border); }
.cta-band .container { display: grid; gap: var(--space-md); align-items: center; padding-block: var(--space-xl); }
@media (min-width: 800px) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3xs); }
.cta-band p { color: var(--color-text-muted); margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

/* --- Alt bilgi / footer --------------------------------------------------------- */
.site-footer { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); padding-block: var(--space-xl) var(--space-md); }
.site-footer__grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); margin-bottom: var(--space-2xs); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-3xs); }
.site-footer a { color: var(--color-text); text-decoration: none; font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--color-brand); text-decoration: underline; }
.site-footer__bottom {
  margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between;
  font-size: var(--text-xs); color: var(--color-text-muted);
}

/* --- Yardımcılar / utilities ------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); }

.theme-toggle {
  min-width: var(--tap-min); min-height: var(--tap-min);
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); color: var(--color-text); cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
