/* ============================================================
   Köprülü Ekspertiz — Kurumsal Web Sitesi
   main.css · Tasarım tokenları, tipografi, düzen, header, footer
   Stil yönü: "Trust & Authority" — lacivert + kurumsal mavi + altın vurgu
   ============================================================ */

/* ---------- 1. TOKENLAR ---------- */
:root {
  /* Yüzeyler */
  --bg-page:        #f6f7f9;
  --bg-surface:     #ffffff;
  --bg-subtle:      #eef1f5;
  --bg-inverse:     #0b1220;
  --bg-inverse-2:   #111c31;

  /* Metin */
  --text-strong:    #0b1220;
  --text-body:      #47536b;
  --text-muted:     #78859c;
  --text-on-dark:   #e8edf6;
  --text-on-dark-2: #9dabc4;

  /* Marka */
  --brand-900:      #0b1220;  /* lacivert */
  --brand-700:      #17305c;
  --brand-500:      #2563eb;  /* kurumsal mavi — birincil aksiyon */
  --brand-400:      #3b82f6;
  --brand-100:      #dbe8fe;
  --brand-050:      #eff5ff;

  --gold-500:       #b8912f;  /* premium vurgu, AA uyumlu */
  --gold-400:       #d4af37;
  --gold-100:       #f7edd2;

  --ok-600:         #047857;
  --ok-500:         #059669;
  --ok-100:         #d1fae5;
  --warn-500:       #b45309;
  --warn-100:       #fef3c7;
  --err-600:        #b91c1c;
  --err-100:        #fee2e2;

  /* Kenarlıklar */
  --line:           #e2e8f0;
  --line-strong:    #cbd5e1;
  --line-dark:      rgba(255, 255, 255, .12);

  /* Cam efekti */
  --glass-bg:       rgba(255, 255, 255, .82);
  --glass-line:     rgba(15, 23, 42, .07);

  /* Gölgeler — yumuşak, katmanlı */
  --sh-xs: 0 1px 2px rgba(11, 18, 32, .05);
  --sh-sm: 0 1px 3px rgba(11, 18, 32, .06), 0 1px 2px rgba(11, 18, 32, .04);
  --sh-md: 0 4px 12px rgba(11, 18, 32, .07), 0 2px 4px rgba(11, 18, 32, .04);
  --sh-lg: 0 12px 32px rgba(11, 18, 32, .09), 0 4px 8px rgba(11, 18, 32, .04);
  --sh-xl: 0 24px 56px rgba(11, 18, 32, .13), 0 8px 16px rgba(11, 18, 32, .05);
  --sh-brand: 0 8px 24px rgba(37, 99, 235, .26);

  /* Tipografi */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Ölçek */
  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0:  clamp(.9375rem, .91rem + .14vw, 1rem);
  --step-1:  clamp(1.0625rem, 1.02rem + .22vw, 1.1875rem);
  --step-2:  clamp(1.25rem, 1.18rem + .35vw, 1.5rem);
  --step-3:  clamp(1.5rem, 1.36rem + .7vw, 2rem);
  --step-4:  clamp(1.875rem, 1.6rem + 1.35vw, 2.75rem);
  --step-5:  clamp(2.25rem, 1.75rem + 2.5vw, 4rem);

  /* Boşluk */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Yarıçap */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Düzen */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --header-h: 76px;

  /* Hareket */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-back: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast:   .18s var(--ease-soft);
  --t-base:   .28s var(--ease-soft);
  --t-slow:   .55s var(--ease-out);

  --z-header: 900;
  --z-drawer: 950;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ---------- 1b. SAYFALAR ARASI GEÇİŞ ----------
   Aynı site içindeki gezinmelerde tarayıcı yumuşak geçiş uygular
   (Chrome/Edge 126+). Desteklemeyen tarayıcılar bu kuralı yok sayar,
   sayfalar her zamanki gibi anında açılır — kırılma olmaz. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in .32s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes vt-out { to   { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- 2. SIFIRLAMA ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* Görünür odak — erişilebilirlik için asla kaldırılmaz */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand-100); color: var(--brand-900); }

/* İçeriğe atla bağlantısı */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--brand-900);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: top var(--t-base);
}
.skip-link:focus { top: 0; }

/* ---------- 3. TİPOGRAFİ ---------- */
.h-display {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--text-strong);
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--text-strong);
  margin-bottom: var(--sp-4);
  text-wrap: balance;
}

.h-card {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--text-strong);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 62ch;
  margin-bottom: var(--sp-5);
  text-wrap: pretty;
}

.body-text { color: var(--text-body); max-width: 68ch; text-wrap: pretty; }
.small { font-size: var(--step--1); }
.muted { color: var(--text-muted); }

/* Bölüm etiketi — ince çizgili premium eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-500);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--brand-500));
}
.text-center .eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-400));
}

/* Altın gradyan vurgulu kelime */
.accent-text {
  background: linear-gradient(100deg, var(--brand-500) 0%, var(--brand-400) 42%, var(--gold-400) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. DÜZEN ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.wrap-wide { max-width: var(--wrap-wide); }

.section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, var(--sp-9));
}
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-7)); }

.section--dark {
  background: var(--bg-inverse);
  color: var(--text-on-dark-2);
  isolation: isolate;
}
.section--dark .h-section,
.section--dark .h-card,
.section--dark .h-display { color: #fff; }
.section--dark .lead,
.section--dark .body-text { color: var(--text-on-dark-2); }
.section--dark .eyebrow { color: var(--gold-400); }

.section--surface { background: var(--bg-surface); }

.text-center { text-align: center; }
.text-center .lead,
.text-center .body-text { margin-inline: auto; }
.text-center .eyebrow { justify-content: center; }

.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.text-center .section-head { margin-inline: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, var(--sp-8));
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-2--start { align-items: start; }
  .grid-2--5-7 { grid-template-columns: 5fr 7fr; }
  .grid-2--7-5 { grid-template-columns: 7fr 5fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.row--center { justify-content: center; }
.row--between { justify-content: space-between; align-items: center; }

.hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin-block: var(--sp-6);
}
.section--dark .hr { background: linear-gradient(90deg, transparent, var(--line-dark), transparent); }

.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;
}

/* ---------- 5. HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.header.is-stuck::before { opacity: 1; }
.header.is-stuck {
  border-bottom-color: var(--glass-line);
  box-shadow: var(--sh-sm);
}

/* Alt sayfalarda header her zaman opak */
.header.header--solid::before { opacity: 1; }
.header.header--solid { border-bottom-color: var(--glass-line); }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 1.0625rem; letter-spacing: -.02em; color: var(--text-strong); }
.logo-sub {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.nav { display: none; }
.header__tools { display: none; }

@media (min-width: 1200px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(.5rem, 1.15vw, 1.25rem);
    margin-inline: auto;
  }
  .header__tools { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
}

/* Dar masaüstünde menü yazıları biraz küçülsün ki header taşmasın */
@media (min-width: 1200px) and (max-width: 1339px) {
  .nav__link { font-size: .875rem; }
}

.nav__link {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-body);
  padding: .5rem 0;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-400));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base);
}
.nav__link:hover,
.nav__link[aria-current='page'] { color: var(--text-strong); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.burger:hover { background: var(--bg-subtle); }
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-base);
}
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 70%; }
.burger span:nth-child(3) { width: 85%; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded='true'] span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1200px) { .burger { display: none; } }

/* ---------- 6. MOBİL ÇEKMECE ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-drawer);
  transition: opacity var(--t-base), visibility var(--t-base);
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(400px, 88vw);
  background: var(--bg-surface);
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform .38s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-body);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-base);
}
.drawer__close:hover { background: var(--bg-subtle); color: var(--text-strong); transform: rotate(90deg); }

.drawer__body { padding: 1.25rem clamp(1rem, 5vw, 1.75rem) 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-strong);
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-base), color var(--t-fast);
}
.drawer__nav a:hover { padding-left: .5rem; color: var(--brand-500); }
.drawer__nav a svg { color: var(--text-muted); flex-shrink: 0; }

.drawer__foot { display: flex; flex-direction: column; gap: .625rem; }
.drawer__meta { font-size: var(--step--1); color: var(--text-muted); line-height: 1.7; }
.drawer__meta strong { color: var(--text-strong); display: block; }

/* ---------- 7. FOOTER ---------- */
.footer {
  background: var(--bg-inverse);
  color: var(--text-on-dark-2);
  padding-block: clamp(3rem, 7vw, var(--sp-9)) var(--sp-5);
  position: relative;
  isolation: isolate;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--brand-500), transparent);
  opacity: .55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: var(--sp-7); } }

.footer .logo-name { color: #fff; }
.footer .logo-sub { color: var(--gold-400); }
.footer-about { margin-top: var(--sp-4); font-size: var(--step--1); line-height: 1.75; max-width: 34ch; }

.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-links li + li { margin-top: .625rem; }
.footer-links a {
  font-size: var(--step--1);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}
.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width var(--t-base);
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 12px; }

.footer-contact li { display: flex; gap: .75rem; font-size: var(--step--1); line-height: 1.65; }
.footer-contact li + li { margin-top: var(--sp-4); }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-400); }
/* WhatsApp satırı kendi ikonuyla diğerleriyle aynı sütunda hizalanır */
.footer-contact .ico-wa { color: #25D366; }
.footer-contact strong { color: #fff; display: block; font-weight: 600; }
.footer-contact a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: .8125rem;
}
.footer-bottom__left { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- 8. YAZDIRMA ---------- */
@media print {
  .header, .drawer, .drawer-scrim, .footer, .fab-stack,
  .no-print, .hero-figure, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .acc-content { max-height: none !important; overflow: visible !important; }
  .acc-btn { break-inside: avoid; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
