/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --anthracite: #2b2b2b;
  --anthracite-mid: #3d3d3d;
  --anthracite-light: #5a5a5a;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #8a8a8a;
  --white: #ffffff;
  --accent-hover: #1a1a1a;
  --max-width: 1280px;
  --nav-height: 72px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}
#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-logo span { color: #fff; }
#navbar.scrolled .nav-menu a { color: rgba(255,255,255,0.75); }
#navbar.scrolled .nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.1); }
#navbar.scrolled .nav-menu a.active { color: #fff; font-weight: 600; }
#navbar.scrolled .nav-toggle span { background: #fff; }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo { 
  margin-right: auto;
  white-space: nowrap;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-menu { 
  flex: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  margin-left: 20px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-logo span { font-weight: 300; }
.nav-menu a {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  padding: 7px 12px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.09); }
.nav-menu a.active { color: #fff; font-weight: 600; }

/* Dil seçici - sağ tarafa */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 12px;
}
.nav-lang a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}
.nav-lang a:hover { 
  color: #fff; 
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.nav-lang a.active { 
  color: #fff; 
  border-color: rgba(255,255,255,0.6); 
  background: rgba(255,255,255,0.1);
}
#navbar.scrolled .nav-lang a { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.3); }
#navbar.scrolled .nav-lang a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
#navbar.scrolled .nav-lang a.active { color: #fff; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  justify-self: end;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu - sağdan açılan full screen */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #1e1e1e;
  padding: 80px 32px 32px;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
.nav-mobile.open {
  right: 0;
}
.nav-mobile a {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.nav-mobile a:hover {
  color: #fff;
  padding-left: 8px;
}
.nav-mobile a:last-child {
  border-bottom: none;
}

/* Mobil menü overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== PAGE HERO (iç sayfalar) ===== */
.page-hero {
  background: linear-gradient(155deg, #1c1c1c 0%, #2b2b2b 50%, #3a3a3a 100%);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Sayfa bazlı hero görselleri — artık PHP inline style ile yönetiliyor */
.page-hero-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.page-hero h1 strong { font-weight: 700; }
.page-hero p {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 300;
  color: var(--anthracite);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-title strong { font-weight: 700; }
.section-divider {
  width: 36px;
  height: 2px;
  background: var(--anthracite);
  margin: 18px 0 36px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: #fff;
  color: var(--anthracite);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #e8e8e8; }
.btn-outline {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-dark {
  display: inline-block;
  padding: 12px 28px;
  background: var(--anthracite);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--accent-hover); }

/* ===== MEVZUAT BANNER ===== */
#mevzuat {
  background: #232323;
  padding: 44px 0;
}
.mevzuat-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.mevzuat-inner p { color: rgba(255,255,255,0.68); font-size: 14px; line-height: 1.6; }
.mevzuat-inner p strong { color: #fff; display: block; margin-bottom: 4px; font-size: 15px; }
.mevzuat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.mevzuat-link:hover { border-color: #fff; color: #fff; }

/* ===== FOOTER ===== */
footer {
  background: #181818;
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-brand .logo { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand .logo span { font-weight: 300; }
.footer-brand p { font-size: 13px; line-height: 1.75; max-width: 260px; }
.footer-col h4 { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.88); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 44px auto 0;
  padding: 24px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-bottom .copyright { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-legal-box {
  padding: 20px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}
.footer-legal-box h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.footer-legal-box p {
  font-size: 11px;
  line-height: 1.75;
  color: rgba(255,255,255,0.3);
}

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 500; color: var(--anthracite-light); letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--anthracite);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--anthracite); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-lang { margin-right: 8px; }
  .nav-logo-img { height: 36px; }
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .page-hero-inner { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .footer-bottom { padding: 20px 20px 28px; }
  .mevzuat-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 110px 0 50px; }
}

/* ===== SEARCH ===== */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  border-radius: 3px;
}
.nav-search-btn:hover { color: #fff; }
#navbar.scrolled .nav-search-btn { color: rgba(255,255,255,0.75); }
#navbar.scrolled .nav-search-btn:hover { color: #fff; }

.nav-search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Arama kutusu — açılır */
.search-box {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 380px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}
.search-box.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  gap: 10px;
}
.search-input-wrap svg { width: 16px; height: 16px; stroke: #8a8a8a; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: #2b2b2b;
  background: transparent;
}
.search-input-wrap input::placeholder { color: #aaa; }

/* Sonuçlar */
.search-results { max-height: 420px; overflow-y: auto; }

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f9f9f9; }

.sri-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}
.sri-badge--blog     { background: #e8f4fd; color: #1a6fa8; }
.sri-badge--calisma  { background: #e8f5e9; color: #2e7d32; }
.sri-badge--ekip     { background: #f3e8fd; color: #6a1b9a; }
.sri-badge--kariyer  { background: #fff3e0; color: #e65100; }
.sri-badge--sayfa    { background: #f5f5f5; color: #555; }

.sri-body { flex: 1; min-width: 0; }
.sri-title {
  font-size: 13px;
  font-weight: 600;
  color: #2b2b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sri-sub {
  font-size: 11px;
  color: #8a8a8a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sri-excerpt {
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
.search-loading {
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

@media (max-width: 768px) {
  .search-box { width: calc(100vw - 32px); right: -8px; }
}
