/* =========================================================
   AYKUT GEREDELI — EDİTORYAL DANIŞMANLIK KİMLİĞİ (v2)
   ---------------------------------------------------------
   Yön: SAP arayüzü taklidi değil, sakin ve ciddi bir "danışmanlık
   portföyü" havası. İmza öğesi: AG arma/monogramı + ince bir
   "hassasiyet çizgisi" (mühendislik cetveli izinden ilham alan,
   tek seferlik kullanılan bir ayraç).

   ink          #14181D  — ana koyu grafit-lacivert
   surface      #1B2129  — koyu zeminde panel
   paper        #EDEFEE  — soğuk, nötr açık zemin (krem değil)
   paper-alt    #E1E4E2  — alternatif bölüm zemini (yumuşak adaçayı-gri)
   brass        #A9814A  — birincil vurgu (pirinç/bronz, endüstriyel hassasiyet)
   brass-soft   #C7A46E
   teal         #1F4E4A  — ikincil vurgu (derin çam-çamurumsu yeşil-lacivert)
   ink-text     #14181D
   muted        #5B6268
   line         #D3D6D4
   line-dark    #2B333B
   ========================================================= */

:root {
  --ink: #14181D;
  --surface: #1B2129;
  --paper: #EDEFEE;
  --paper-alt: #E1E4E2;
  --brass: #A9814A;
  --brass-soft: #C7A46E;
  --teal: #1F4E4A;
  --ink-text: #14181D;
  --muted: #5B6268;
  --line: #D3D6D4;
  --line-dark: #2B333B;
  --cream-panel: #F6F5F1;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 480; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--brass); }
img { max-width: 100%; display: block; height: auto; }

.eyebrow, .kicker {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.section-dark .eyebrow { color: var(--brass-soft); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 30px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Monogram crest (signature mark) ---------- */
.crest {
  width: 42px; height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
}
.brand .crest { color: var(--brass-soft); border-color: var(--brass-soft); }
.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9AA3A9;
  margin-top: 3px;
  font-weight: 500;
}
.site-title a { color: inherit; }

.primary-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.primary-nav a {
  color: #D7DBDA;
  font-size: 0.92rem;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--brass-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; gap: 6px; padding: 16px 0 8px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: 96px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero-photo {
  width: 260px;
  height: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top; /* kaynak fotoğrafta yüz üst yarıda, tepeden hizala */
  border-radius: 50%;
  border: 1px solid var(--line);
}
.hero-photo-wrap { margin: -10px 0 38px; }
.hero h1 { max-width: 13ch; }
.hero-role {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 22px;
  display: block;
}
.hero-lead { max-width: 46ch; color: var(--muted); font-size: 1.06rem; }

/* signature ruler device — used once, ties to precision/engineering world */
.ruler {
  display: flex;
  align-items: flex-end;
  height: 20px;
  margin: 34px 0 30px;
  gap: 6px;
}
.ruler span {
  display: block;
  width: 1px;
  background: var(--line);
}
.ruler span:nth-child(4n) { height: 100%; background: var(--brass); }
.ruler span:not(:nth-child(4n)) { height: 45%; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.hero-aside dl { margin: 0; }
.hero-aside .fact { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hero-aside .fact:first-child { padding-top: 0; }
.hero-aside dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-aside dd {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 30px; }
  .hero-photo { width: 220px; height: 220px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-on-dark { border-color: #4A525A; color: var(--paper); background: transparent; }
.btn-on-dark:hover { border-color: var(--brass-soft); color: var(--brass-soft); }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: #E9ECEB; }
.section-dark h2, .section-dark h3 { color: #F3F1EA; }
.section-head { max-width: 60ch; margin-bottom: 50px; }
.section-head h2 { margin-top: 10px; }

/* ---------- Stat strip (refined, not a table mimic) ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat {
  padding: 6px 30px 6px 0;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  display: block;
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .stat { border-left: none !important; padding-left: 0 !important; }
}

/* ---------- Editorial service list (no numbered gimmick) ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-row h3 { margin: 0; }
.service-row .service-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 6px;
}
.service-row p { color: var(--muted); margin: 0; max-width: 56ch; }

.about-photo-wrap { margin: 0 0 34px; max-width: 320px; }
.about-photo { width: 100%; border: 1px solid var(--line); }
.about-photo-cap { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Pull quote (project narrative) ---------- */
.pull-quote {
  border-left: 2px solid var(--brass);
  padding-left: 34px;
  max-width: 62ch;
}
.pull-quote p {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}
.section-dark .pull-quote p { color: #F3F1EA; }
.section-dark .pull-quote { border-left-color: var(--brass-soft); }

/* ---------- Post list ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-row {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 26px;
  align-items: baseline;
}
.post-row .post-date { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.post-row h3 { margin: 0 0 8px; font-size: 1.3rem; }
.post-row h3 a { color: var(--ink); }
.post-row h3 a:hover { color: var(--brass); }
.post-row .post-excerpt { color: var(--muted); margin: 0; font-size: 0.97rem; }
.post-row .read-more { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--teal); }
@media (max-width: 700px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row .read-more { justify-self: start; }
}

/* ---------- Single post / page content ---------- */
.entry-header { padding: 64px 0 26px; border-bottom: 1px solid var(--line); }
.entry-meta { font-size: 13px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 600; }
.entry-content { padding: 48px 0; max-width: 72ch; font-size: 1.08rem; }
.entry-content h2 { margin-top: 1.5em; font-size: 1.7rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  border-left: 2px solid var(--brass);
  margin: 1.8em 0;
  padding: 0.1em 0 0.1em 24px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}
.entry-content code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--paper-alt);
  padding: 2px 7px;
  font-size: 0.86em;
  border-radius: 2px;
}
.entry-content strong { color: var(--ink); }

/* ---------- Gömülü PDF (Dosya bloğu embed önizlemesi) ---------- */
.wp-block-file {
  border: 1px solid var(--line);
  background: var(--cream-panel);
  padding: 16px 18px 18px;
  margin: 32px 0;
}
.wp-block-file__button {
  display: inline-flex;
  margin-top: 14px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
}
.wp-block-file__button:hover { background: var(--brass); color: var(--ink) !important; }

.pdf-embed-preview {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pdf-embed-preview .wp-block-file__embed {
  width: 100% !important;
  height: 260px !important;
  display: block;
  pointer-events: none; /* önizlemede tıklama sarmalayıcıya düşsün, PDF görüntüleyicisine değil */
}
.pdf-embed-preview::after {
  content: "Büyütmek için tıkla ⤢";
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 14px;
}
.pdf-embed-preview:hover::after { background: var(--brass); color: var(--ink); }
.pdf-embed-preview:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 29, 0.88);
  z-index: 300;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
}
.pdf-modal.is-open { display: flex; }
.pdf-modal-inner {
  position: relative;
  width: min(880px, 100%);
  height: 88vh;
  background: #fff;
  border: 1px solid var(--line-dark);
}
.pdf-modal-object { width: 100%; height: 100%; display: block; }
.pdf-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: 1px solid #4A525A;
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
}
.pdf-modal-close:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
@media (max-width: 600px) {
  .pdf-modal-inner { height: 78vh; }
}

.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.tag-list a {
  font-size: 12.5px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--muted);
}

/* ---------- Credential grid (used sparingly for About-page credentials) ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 36px 0;
}
.credential-grid .cred { background: var(--cream-panel); padding: 26px 24px; }
.credential-grid .cred h4 { margin: 0 0 6px; font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 600; }
.credential-grid .cred p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #F3F1EA; padding: 72px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { color: #F3F1EA; margin: 0; max-width: 24ch; }
.cta-band p.eyebrow { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9AA3A9; padding: 56px 0 32px; border-top: 1px solid var(--line-dark); font-size: 0.92rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 34px; }
.footer-grid a { color: #D7DBDA; }
.footer-grid a:hover { color: var(--brass-soft); }
.footer-about { max-width: 34ch; }
.footer-about .crest { color: var(--brass-soft); border-color: var(--brass-soft); margin-bottom: 14px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: 0.02em;
}

/* ---------- Legacy content-page classes (İletişim/Hakkımda WXR içeriği için uyumluluk) ---------- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0;
}
.field-grid .field { background: var(--cream-panel); padding: 24px 22px; }
.field .field-label {
  font-size: 11.5px;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}
.field .field-value { font-size: 1.4rem; font-family: "Fraunces", serif; }
.field .field-note { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Utility ---------- */
::selection { background: var(--brass); color: var(--ink); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 52px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
