/* 4 Legal & Partners — kurumsal tema */

/* ---------- Değişkenler ---------- */
:root {
  --bg: #F8F5EF;             /* sıcak kırık beyaz */
  --bg-alt: #F1ECE3;
  --ink: #13203A;            /* başlıklar, çok koyu lacivert */
  --text: #2E3647;
  --muted: #5A6273;          /* gri-mavi */
  --line: #E0D8CB;
  --line-strong: #CBC1B1;
  --accent: #A6844F;         /* bronz: yalnızca çizgi ve küçük detay */
  --accent-text: #7D5F30;    /* küçük metin için AA kontrastlı bronz */
  --btn-bg: #13203A;
  --btn-text: #F8F5EF;
  --btn-hover: #22375C;
  --img-tint: rgba(19, 32, 58, .10);
  --footer-bg: #0F1A2C;

  --focus: #2A5496;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --pad: 32px;
  --section-y: 80px;
  --header-h: 88px;
  --radius: 2px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0D131D;
  --bg-alt: #111925;
  --ink: #ECE8E0;
  --text: #D3D6DC;
  --muted: #A2A9B5;
  --line: #222D40;
  --line-strong: #324058;
  --accent: #BE9F6C;
  --accent-text: #CDB184;
  --btn-bg: #E9E4DA;
  --btn-text: #0D131D;
  --btn-hover: #F6F2EA;
  --img-tint: rgba(8, 14, 26, .28);
  --footer-bg: #080D15;

  --focus: #D8BF92;

  color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--btn-bg); color: var(--btn-text); font-size: .875rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Butonlar & bağlantılar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.text-link span { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.text-link:hover { border-bottom-color: var(--accent); }
.text-link:hover span { color: var(--accent); transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 20px -16px rgba(19, 32, 58, .35); }
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .8); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logotype { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logotype-main {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.logotype-amp { color: var(--accent-text); }
.logotype-sub {
  margin-top: 7px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 32px; }
.nav-link {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: .9375rem;           /* 15px */
  font-weight: 500;
  color: var(--text);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-link:hover,
.nav-link[aria-current="true"] { color: var(--ink); }
.nav-link:hover::after,
.nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-mobile-contact { display: none; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.lang { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; }
.lang-item.is-active { color: var(--ink); }
.lang-item.is-disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
.lang-sep { color: var(--line-strong); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity .25s ease; }
.theme-toggle .icon-sun { opacity: 0; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-bars { position: relative; display: block; width: 22px; height: 13px; }
.menu-bars span {
  position: absolute; left: 0; width: 100%; height: 1.25px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  align-items: stretch;
  min-height: 600px;
}
.hero-text {
  align-self: center;
  max-width: 520px;
  padding: 56px 48px 56px 0;
}
.hero h1 {
  font-size: 3.125rem;           /* 50px */
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.hero-sub {
  position: relative;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  max-width: 30rem;
  font-family: var(--serif);
  font-size: 1.375rem;           /* 22px */
  line-height: 1.4;
  color: var(--ink);
}
.hero-sub::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 56px; height: 1px; background: var(--accent);
}
.hero-desc { margin-top: 14px; color: var(--muted); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 32px; }

.hero-media { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-tint);
  pointer-events: none;
}

/* ---------- Bölümler ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: 2.25rem; }   /* 36px */
.section-head { max-width: 680px; margin-bottom: 36px; }

/* Büromuz */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.about-text p + p { margin-top: 14px; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--line-strong);
}
.principles li { padding: 22px 26px 0; border-left: 1px solid var(--line); }
.principles li:first-child { padding-left: 0; border-left: 0; }
.principles h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 6px; }
.principles p { font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* Çalışma alanları — 2x2 editoryal grid */
.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.area {
  position: relative;
  padding: 30px 48px 32px 0;
  border-bottom: 1px solid var(--line);
}
.area:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.area::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 40px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.area:nth-child(even)::before { left: 48px; }
.area:hover::before { transform: scaleX(1); }
.area h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.area p { max-width: 30rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* Yaklaşımımız */
.approach {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.approach li { padding: 22px 26px 0; border-left: 1px solid var(--line); }
.approach li:first-child { padding-left: 0; border-left: 0; }
.approach h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 6px; }
.approach p { font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* İletişim */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 12px; }
.contact-intro p:not(.eyebrow) { color: var(--muted); max-width: 24rem; }
.contact-list { border-top: 1px solid var(--line-strong); }
.contact-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.contact-list a:hover { color: var(--accent-text); }
.map-hint {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #AEB5C2; font-size: .9375rem; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 36px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F4F1EA;
}
.site-footer .logotype-amp { color: #CDB184; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.footer-nav a, .footer-contact a { color: #D5D9E1; transition: color .2s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: #CDB184; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 16px 18px;
  font-size: .8125rem;
  color: #969FAE;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; padding-left: 0; border-left: 0; gap: 8px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    padding: 12px var(--pad) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease, visibility 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 15px 0; font-size: 1.0625rem; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="true"] { color: var(--accent-text); }
  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    font-size: .9375rem;
    color: var(--muted);
  }
  body.menu-open { overflow: hidden; }

  .hero-inner { min-height: 520px; }
  .hero-text { padding-right: 36px; }
  .hero h1 { font-size: 2.625rem; }      /* 42px */
  .hero-sub { font-size: 1.25rem; }

  .section { --section-y: 68px; }
  .section h2 { font-size: 2rem; }
  .about, .contact { gap: 40px; }
  .principles, .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3), .approach li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3), .approach li:nth-child(n+3) { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
  .area { padding-right: 32px; }
  .area:nth-child(even) { padding-left: 32px; }
  .area:nth-child(even)::before { left: 32px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { max-width: 620px; padding: 48px 0 40px; }
  .hero-media { height: 300px; margin-inline: calc(-1 * var(--pad)); }
  .about, .contact { grid-template-columns: 1fr; }
  .about { gap: 8px; }
  .contact { gap: 28px; }
  .footer-main { grid-template-columns: 1fr auto; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  :root { --pad: 20px; --header-h: 68px; }
  body { font-size: 1rem; }

  .logotype-main { font-size: 1.0625rem; letter-spacing: .08em; }
  .logotype-sub { font-size: .5625rem; letter-spacing: .3em; margin-top: 6px; }
  .lang { display: none; }

  .hero-text { padding: 36px 0 32px; }
  .hero h1 { font-size: 2.125rem; }      /* 34px */
  .hero-sub { font-size: 1.1875rem; margin-top: 16px; padding-top: 16px; }
  .hero-desc { font-size: .9375rem; }
  .hero-actions { margin-top: 26px; gap: 14px 24px; }
  .hero-media { height: 216px; }
  .hero-media img { object-position: 50% 8%; }

  .section { --section-y: 52px; }
  .section h2 { font-size: 1.75rem; }
  .section-head { margin-bottom: 26px; }

  .principles, .approach { grid-template-columns: 1fr; }
  .principles { margin-top: 32px; }
  .principles li, .principles li:nth-child(n+3),
  .approach li, .approach li:nth-child(n+3) { padding: 16px 0; margin-top: 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .principles h3, .approach h3 { font-size: 1.1875rem; }

  .areas { grid-template-columns: 1fr; }
  .area, .area:nth-child(even) { padding: 24px 0 26px; border-left: 0; }
  .area:nth-child(even)::before { left: 0; }
  .area h3 { font-size: 1.3125rem; }
  .area p { font-size: .9375rem; }

  .contact-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact-list a { font-size: 1.25rem; }

  .footer-main { grid-template-columns: 1fr; gap: 18px; padding-block: 30px 26px; }
  .footer-nav { grid-row: auto; gap: 8px 22px; }
  .footer-contact { align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

@media print {
  .site-header, .hero-media { display: none !important; }
}

/* ---------- 404 ---------- */
.page-404 { padding-block: 96px; min-height: 60vh; }
.page-404 h1 { font-size: 2.75rem; margin-bottom: 14px; }
.page-404 p:not(.eyebrow) { color: var(--muted); }
.page-404 .hero-actions { margin-top: 28px; }
.header-tools-end { margin-left: auto; }
