/* ============================================================
   Renk Belgelendirme — Kritik Site CSS
   Not: Tailwind CDN (JIT) bazı arbitrary value sınıflarını
   üretmeyebilir. Kritik yerleşim sınıfları burada garanti altındadır.
   ============================================================ */

:root {
  --renk-primary: #001e40;
  --renk-primary-container: #003366;
  --renk-secondary: #b52424;
  --renk-surface: #f8f9fa;
  --renk-outline-variant: #c3c6d1;
}

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Konteyner — Stitch: max 1280px, 24px gutter */
.site-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Bölüm dolgusu — Stitch: 80px */
.section-pad { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 640px) { .section-pad { padding-top: 56px; padding-bottom: 56px; } }

/* Geçişler */
.transition-soft { transition: all .3s cubic-bezier(.4, 0, .2, 1); }

/* Hero yükseklikleri (JIT arbitrary value garantisi) */
.hero-min { min-height: 600px; }
@media (max-width: 768px) { .hero-min { min-height: 520px; } }
.map-h { height: 450px; }

/* Zebra listeler */
.zebra-stripe:nth-child(even) { background-color: #f3f4f5; }

/* Scroll-reveal animasyonu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .transition-soft { transition: none; }
}

/* Slider */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }

/* Hero: görsel + soldan koyu degrade */
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,30,64,.96) 0%, rgba(0,30,64,.82) 35%, rgba(0,30,64,.35) 70%, rgba(0,30,64,.15) 100%);
}
@media (max-width: 768px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(0,30,64,.92) 0%, rgba(0,30,64,.75) 100%); }
}

/* Hero rozet hapı */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; padding: .5rem 1.1rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-badge .material-symbols-outlined { font-size: 1rem; color: #ff5a52; }

/* Hero istatistik satırı */
.hero-stats { display: flex; gap: 3rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.75rem; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-family: Montserrat, sans-serif; font-size: 2rem; line-height: 1.1; color: #799dd6; }
.hero-stats span { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
@media (max-width: 640px) { .hero-stats { gap: 1.5rem; flex-wrap: wrap; } .hero-stats strong { font-size: 1.5rem; } }

/* Hero ok + nokta kontrolleri (sol altta) */
.hero-ctrl-wrap { position: absolute; left: 0; right: 0; bottom: 108px; z-index: 20; pointer-events: none; }
.hero-ctrl-wrap .hero-ctrl { pointer-events: auto; margin-top: 0; }
@media (max-width: 640px) { .hero-ctrl-wrap { bottom: 84px; } }
.hero-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.hero-ctrl .hbtn {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: all .3s cubic-bezier(.4,0,.2,1); cursor: pointer;
}
.hero-ctrl .hbtn:hover { background: #fff; color: #001e40; }
.hero-dots { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.35); transition: all .3s; cursor: pointer; border: 0; padding: 0; }
.hero-dots button.on { width: 34px; background: #799dd6; }

/* Sağ kenar sekme butonları */
.hero-tabs {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 30; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end;
}
.hero-tab {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem .85rem .9rem;
  border-radius: .6rem 0 0 .6rem;
  font-weight: 700; font-size: .92rem; color: #fff; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transform: translateX(calc(100% - 66px));
  transition: transform .35s cubic-bezier(.4,0,.2,1), filter .2s;
  text-decoration: none;
}
.hero-tab:hover, .hero-tab:focus-visible { transform: translateX(0); filter: brightness(1.05); }
.hero-tab .tab-ico {
  width: 40px; height: 40px; border-radius: .5rem; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18);
}
.hero-tab .tab-ico .material-symbols-outlined { font-size: 22px; }
.hero-tab .tab-arrow { margin-left: .35rem; opacity: .8; font-size: 18px; }
.hero-tab--blue  { background: #1d63c8; }
.hero-tab--white { background: #ffffff; color: #001e40; }
.hero-tab--white .tab-ico { background: #eef2f8; color: #1d63c8; }
.hero-tab--green { background: #25d366; }
.hero-tab--red   { background: #b52424; }
@media (max-width: 1024px) { .hero-tabs { display: none; } }

/* Hızlı erişim kart barı (hero altına bindirilmiş) */
.quick-bar { position: relative; z-index: 25; margin-top: -64px; }
.quick-bar-inner {
  background: #fff; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,30,64,.18);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.quick-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.75rem;
  border-right: 1px solid #eef0f2; text-decoration: none;
  transition: background .25s;
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: #f3f6fb; }
.quick-item .q-ico {
  width: 52px; height: 52px; border-radius: .75rem; flex: 0 0 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f8; color: #1d63c8;
}
.quick-item .q-ico--red { background: #fdecec; color: #b52424; }
.quick-item strong { display: block; color: #001e40; font-family: Montserrat, sans-serif; font-size: 1rem; }
.quick-item small { display: block; color: #5b6470; font-size: .82rem; margin-top: .15rem; }
.quick-item .q-go { margin-left: auto; color: #c3c6d1; }
@media (max-width: 1024px) { .quick-bar-inner { grid-template-columns: repeat(2, 1fr); } .quick-item { border-bottom: 1px solid #eef0f2; } }
@media (max-width: 640px)  { .quick-bar { margin-top: -40px; } .quick-bar-inner { grid-template-columns: 1fr; } }

/* İçerik alanı tipografisi (yönetici HTML içeriği) */
.prose-renk { color: #43474f; line-height: 1.75; font-size: 16px; }
.prose-renk h2 { font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 700; color: #001e40; margin: 2rem 0 1rem; line-height: 1.3; }
.prose-renk h3 { font-family: Montserrat, sans-serif; font-size: 21px; font-weight: 600; color: #001e40; margin: 1.6rem 0 .8rem; }
.prose-renk h4 { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 600; color: #001e40; margin: 1.4rem 0 .6rem; }
.prose-renk p { margin: 0 0 1.1rem; }
.prose-renk ul, .prose-renk ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose-renk ul { list-style: disc; }
.prose-renk ol { list-style: decimal; }
.prose-renk li { margin-bottom: .45rem; }
.prose-renk a { color: #b52424; text-decoration: underline; text-underline-offset: 2px; }
.prose-renk strong { color: #191c1d; font-weight: 600; }
.prose-renk blockquote { border-left: 4px solid #b52424; background: #f3f4f5; padding: 1rem 1.25rem; margin: 1.4rem 0; font-style: italic; }
.prose-renk img { max-width: 100%; height: auto; border-radius: .25rem; margin: 1.4rem 0; }
.prose-renk table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 15px; }
.prose-renk table th { background: #001e40; color: #fff; text-align: left; padding: .7rem .9rem; font-family: Montserrat, sans-serif; font-weight: 600; }
.prose-renk table td { border: 1px solid #c3c6d1; padding: .65rem .9rem; }
.prose-renk table tr:nth-child(even) td { background: #f3f4f5; }
.prose-renk hr { border: 0; border-top: 1px solid #c3c6d1; margin: 2rem 0; }

/* Dropdown panel garanti stil */
.dropdown-panel { z-index: 60; }

/* Odak görünürlüğü (erişilebilirlik) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #b52424;
  outline-offset: 2px;
}

/* Görsel yüklenme davranışı */
img { max-width: 100%; }
img[loading="lazy"] { background: #edeeef; }

/* Sayfa kenar çubuğu aktif öğe */
.side-nav a { display: block; padding: .8rem 1.1rem; border-left: 3px solid transparent; color: #43474f; transition: all .2s; font-size: 15px; }
.side-nav a:hover { background: #f3f4f5; color: #001e40; }
.side-nav a.active { border-left-color: #b52424; background: #f3f4f5; color: #001e40; font-weight: 600; }

/* Form ögeleri */
.form-input {
  width: 100%; border: 1px solid #c3c6d1; border-radius: .25rem;
  background: #fff; padding: .8rem 1rem; font-size: 15px; color: #191c1d;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: #001e40; box-shadow: 0 0 0 3px rgba(0, 30, 64, .12); outline: none; }
textarea.form-input { min-height: 140px; resize: vertical; }
.form-label { display: block; font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; color: #191c1d; margin-bottom: .4rem; }
.form-label .req { color: #b52424; }

/* Butonlar */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #001e40; color: #fff; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .95rem 2rem; border-radius: .25rem; transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 0; cursor: pointer;
}
.btn-primary:hover { background: #003366; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #b52424; color: #fff; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .95rem 2rem; border-radius: .25rem; transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 0; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(181, 36, 36, .25);
}
.btn-secondary:hover { background: #9c1f1f; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #fff; color: #001e40; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; border: 1px solid #737780;
  padding: .95rem 2rem; border-radius: .25rem; transition: all .3s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}
.btn-outline:hover { background: #f3f4f5; }

/* Galeri lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 20, 44, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: .25rem; }
