/* ===========================================================
   Türk İstatistik Derneği — Kurumsal Web Sitesi
   Marka rengi: #3070C0 (amblemden örneklendi)
   =========================================================== */

:root {
  --blue:        #3070C0;
  --blue-dark:   #1f4e85;
  --blue-darker: #16345c;
  --blue-light:  #5b9bd5;
  --blue-50:     #eef4fb;
  --bg:          #f4f8fc;
  --surface:     #ffffff;
  --text:        #1f2a3a;
  --muted:       #5b6b7e;
  --border:      #dce6f1;
  --shadow:      0 2px 14px rgba(22, 52, 92, .08);
  --shadow-lg:   0 10px 34px rgba(22, 52, 92, .14);
  --radius:      14px;
  --maxw:        1140px;
  --serif:       "Spectral", Georgia, "Times New Roman", serif;
  --sans:        "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--blue-darker);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}

a { color: var(--blue-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 70px 0; }
.section--tight { padding: 46px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: var(--blue); margin: 14px auto 0;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--blue);
  background: var(--blue-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: var(--blue-50); }

/* ===========================================================
   Header / Navigation
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-weight: 600; font-size: .96rem; color: var(--blue-darker);
}
.nav-links a:hover { background: var(--blue-50); }
.nav-links a.active { color: var(--blue); background: var(--blue-50); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 9px;
}
.nav-toggle span {
  display: block; height: 2.5px; background: var(--blue-darker);
  border-radius: 2px; margin: 5px 0; transition: .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { padding: 15px 22px; border-radius: 0; border-bottom: 1px solid var(--border); }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(91,155,213,.22), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-block: 76px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .35em; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-emblem { display: flex; justify-content: center; }
.hero-emblem img {
  width: min(330px, 80%);
  filter: drop-shadow(0 18px 40px rgba(48,112,192,.28));
}
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-block: 54px; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: 190px; }
}

/* ===========================================================
   Cards / Grid
   =========================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
}
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.card-link::after { content: " →"; }

/* Amaç / liste maddeleri */
.aim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.aim-list li {
  position: relative; padding: 18px 20px 18px 58px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
}
.aim-list li::before {
  content: ""; position: absolute; left: 18px; top: 20px;
  width: 24px; height: 24px; border-radius: 6px; background: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233070C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
}

/* İçerik / prose */
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.1em; color: #34435a; }
.prose h3 { margin-top: 1.6em; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.factbox {
  background: var(--blue-darker); color: #e7f0fb; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.factbox h3 { color: #fff; font-size: 1.1rem; }
.factbox dl { margin: 0; display: grid; gap: 12px; }
.factbox dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); }
.factbox dd { margin: 2px 0 0; font-weight: 600; }

/* CTA bandı */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: 48px 28px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebfb; max-width: 56ch; margin: 0 auto 26px; }

/* Etkinlik / haber listesi */
.event { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.event + .event { margin-top: 18px; }
.event .date {
  background: var(--blue-50); color: var(--blue-dark); border-radius: 12px;
  text-align: center; padding: 14px 8px; border: 1px solid var(--border);
}
.event .date .d { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.event .date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.event .body h3 { font-size: 1.15rem; margin-bottom: .25em; }
.event .body p { color: var(--muted); margin: 0; }
@media (max-width: 540px) { .event { grid-template-columns: 1fr; } .event .date { display: inline-block; } }

/* İletişim */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--blue-50);
  color: var(--blue); display: grid; place-items: center;
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 2px; font-family: var(--sans); font-size: .95rem; color: var(--blue-darker); }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--blue-darker); }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
form input:focus, form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(48,112,192,.15);
}
form textarea { resize: vertical; min-height: 130px; }

.map-embed {
  border: 0; width: 100%; height: 320px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 8px;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--blue-darker); color: #c9d8ea; margin-top: 20px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px;
}
.site-footer img.f-logo { height: 96px; width: auto; margin-bottom: 16px; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .95rem; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 16px;
}
.site-footer p { margin: 0 0 10px; font-size: .95rem; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-links a { color: #c9d8ea; font-size: .95rem; }
.f-links a:hover { color: #fff; }
.f-contact a { color: #c9d8ea; }
.f-contact a:hover { color: #fff; }

.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .18s, transform .18s;
}
.socials a:hover { background: var(--blue); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  font-size: .87rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #c9d8ea; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

/* Logo dikey (footer) beyaz zemin olmadığından, koyu footer'da görünürlük için kutu */
.f-logo-wrap {
  display: inline-block; background: #fff; padding: 14px 18px; border-radius: 12px;
}
.f-logo-wrap img { height: 86px; margin: 0; }

/* küçük yardımcılar */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

/* ===========================================================
   Tablo (İstatistik Bölümleri) + bağlantı kartları
   =========================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.dept-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.dept-table th, .dept-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.dept-table thead th { background: var(--blue-darker); color: #fff; font-family: var(--sans); font-weight: 600; }
.dept-table tbody tr:hover { background: var(--blue-50); }
.dept-table td:first-child { color: var(--muted); width: 46px; }
.dept-table a { font-weight: 600; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
