/* ================================================================
   KAV – Kamu Araştırmaları Vakfı  |  Main Stylesheet
   Type system: Open Sans (single family, modern & consistent)
   ================================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* NetZero — matte deep-green theme */
  --green-900: #14241B;   /* deepest: dark sections, banner gradient bottom */
  --green-800: #1F3A2A;
  --green-700: #2D5A40;   /* primary brand green */
  --green-600: #366A4C;
  --green-500: #4E7D62;
  --green-300: #9FBAA8;   /* muted sage accent / on-dark hover */
  --green-200: #DCD5C6;   /* soft borders (krem tonlu) */
  --green-100: #DCE7DE;   /* dolgu bolum zemini — acik mat yesil.
                             Krem tabandan (--green-50) gorunur sekilde ayrilir;
                             bolum gecisleri belli olsun diye yesile cekildi. */
  --green-50:  #FBF8F1;   /* lightest background — krem taban (T-03) */
  --ink-900:   #1A1D1B;   /* footer / greenish near-black */
  --muted:     #5C665F;   /* matte gray text/borders */
  --on-dark-soft: #C9D6CC; /* breadcrumb & soft text on green/dark */
  --accent:        #C26B3F; /* matte terracotta — used sparingly */
  --accent-strong: #A85733;

  /* legacy names repointed to the green theme */
  --navy:       #2D5A40;
  --navy-dark:  #14241B;
  --navy-mid:   #1F3A2A;
  --gold:       #C26B3F;
  --gold-lt:    #D08A5E;
  --white:      #ffffff;
  /* T-03 — krem tonlu ana zemin */
  --cream:      #FBF8F1;   /* sayfa tabani */
  --cream-alt:  #DCE7DE;   /* alternatif bolum zemini (= --green-100) */
  --cream-line: #E6DECD;   /* krem zemin uzerinde ince ayrac */
  --lime-soft:  #D7E5C4;   /* ana sayfa kisa form blogu (PDF s.5 ornegi) */
  --gray-lt:    #F3EDE0;
  --gray-mid:   #E6DECD;
  --gray-text:  #5C665F;
  --text:       #222A25;
  --link:       #2D5A40;

  --f-head: 'Manrope', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap:   1200px;
  --r:      4px;
  --sh:     0 2px 14px rgba(20,36,27,.12);
  --sh-lg:  0 8px 32px rgba(20,36,27,.20);
  --ease:   .22s ease;
}

/* ── Erisilebilirlik ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--green-700);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  outline: 2px solid #fff;
}
.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;
}
.footer-col-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 16px; }
.dropdown li.active > a,
.mobile-dropdown li.active > a { background: rgba(0,0,0,.18); }

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img,
video { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -.01em;
  /* Basligin son satirinda 1-2 kelime tek basina kalmasin; satirlar dengelensin.
     Desteklemeyen tarayici yok sayar, davranis eskisi gibi kalir. */
  text-wrap: balance;
}
h1 { font-size: clamp(2rem,   5.5vw, 3.4rem); font-weight: 800; }

/* theme.css (vendor) `p,ol,ul{font-family:Poppins}` tanimliyor; Poppins yuklu degil
   ve yedek liste yok -> tarayici serif'e dusuyor. Govde fontuna geri cekiliyor. */
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figcaption,
caption,
th,
td,
label,
input,
select,
textarea,
button {
  font-family: var(--f-body);
}
h2 { font-size: clamp(1.55rem,3.2vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.12rem; }
p { margin-bottom: 1.2rem; }
a { color: var(--link); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--navy); }

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

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  /* hello-elementor'ın display:flex ve padding:1rem override'larını sıfırla */
  display: block;
  padding-block-start: 0;
  padding-block-end: 0;
  padding: 0;
  /* hello-elementor theme.css'nin max-width kısıtlamasını kaldır */
  max-width: none;
  width: 100%;
  margin-inline-start: 0;
  margin-inline-end: 0;
  /* Özel stiller */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.header-bar { height: 3px; background: var(--gold); }

/* .site-header .header-inner: hello-elementor'ın yüksek-specificity selector'ını geçersiz kıl */
.site-header .header-inner,
.header-inner {
  max-width: 1320px;   /* 8 ust menu basligi 1200px'e sigmiyor (T-04) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 72px;
  gap: 20px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.site-logo-img { height: 54px; width: auto; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 2px; }

.nav-item > a,
.nav-item > a:link,
.nav-item > a:visited {
  display: block;
  padding: 8px 9px;
  font-family: var(--f-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  /* ponytail: text-transform yok — Turkce i→I hatasi. Etiketler HTML'de buyuk yazili. */
  color: var(--navy);
  border-radius: var(--r);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
  text-decoration: none;
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--gold); background: rgba(26,58,92,.06); }

/* Netzero Portal: menude mavi rozet */
.nav-item > a[href*="portalnetzerotekmer"],
.nav-item > a[href*="portalnetzerotekmer"]:link,
.nav-item > a[href*="portalnetzerotekmer"]:visited {
  color: #123A63;
  background: #DCEBFA;
  border: 2px solid #123A63;
  border-radius: 8px;
  padding: 6px 12px;
}
.nav-item > a[href*="portalnetzerotekmer"]:hover { color: #0B2742; background: #C3DDF5; border-color: #0B2742; }

.has-dropdown > a::after { content: ' ▾'; font-size: .65em; opacity: .7; }

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--sh-lg);
  min-width: 235px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
  z-index: 200;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a,
.dropdown li a:link,
.dropdown li a:visited {
  display: block;
  font-family: var(--f-head);
  padding: 10px 20px;
  font-size: .84rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--ease), background var(--ease);
  text-decoration: none;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--gold); background: rgba(255,255,255,.06); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  transition: background var(--ease);
}
.hamburger:hover { background: rgba(26,58,92,.07); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open { display: block; max-height: 90vh; overflow-y: auto; }

.mobile-nav > li > a {
  display: block;
  padding: 13px 24px;
  font-family: var(--f-head);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .055em;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}
.mobile-nav > li > a:hover { color: var(--gold); }

.mobile-dropdown { background: rgba(0,0,0,.25); display: none; }
.mobile-dropdown.open { display: block; }
.mobile-dropdown li a {
  display: block;
  padding: 10px 24px 10px 40px;
  font-size: .83rem;
  color: rgba(255,255,255,.62);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-dropdown li a:hover { color: var(--gold); }

.footer-logo { margin-bottom: 14px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.32);
}
.footer-bottom a { color: rgba(255,255,255,.42); }
.footer-bottom a:hover { color: var(--gold); }

/* ================================================================
   PAGE BANNER (inner pages)
   ================================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 60px 0 54px;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.page-banner-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -.015em;
}
#position { scroll-margin-top: 100px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .nav-item > a { font-size: .70rem; padding: 8px 8px; }
  .site-logo-img { height: 46px; }
}

/* 8 baslikli menu 1100px altinda sigmiyor — mobil menuye gec */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root { --wrap: 100%; }
  body { font-size: 16px; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── Form durum mesaji (js/main.js) ─────────────────────────── */
.form-durum {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1.55;
  background: var(--green-100);
  border-left: 4px solid var(--green-600);
  color: var(--green-900);
}
.form-durum--hata {
  background: #F6E7DF;
  border-left-color: var(--accent-strong);
  color: #6C3418;
}
.form-durum--hata a { color: var(--accent-strong); text-decoration: underline; }
