/* ============================================================
   Avukat sitesi — stil dosyası
   Renkler, tipografi ve yerleşim tek dosyada tutulur.
   ============================================================ */

/* ---------- Yazı tipleri (kendi sunucumuzdan) ---------- */

@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('../fonts/cormorant-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500;
  font-display: swap; src: url('../fonts/cormorant-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2');
}

:root {
  /* Renk paleti */
  --bg:          #F7F4EE;   /* sıcak fildişi zemin */
  --bg-alt:      #EFEBE3;   /* dönüşümlü bölüm zemini */
  --ink:         #1B1D22;   /* ana metin ve koyu zemin */
  --ink-soft:    #3B3E45;   /* ikincil metin */
  --muted:       #6A665F;   /* açıklama metni, etiketler */
  --line:        #DAD4C9;   /* ince çizgiler */
  --line-strong: #B8B0A2;   /* vurgulu çizgiler */
  --accent:      #7F6444;   /* bronz vurgu — az ve ölçülü kullanılır */

  /* Tipografi */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Ölçüler */
  --container: 1120px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h:  76px;
}

/* ---------- Temel ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(127, 100, 68, .22); }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Üst çubuk ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

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

.brand {
  font-family: var(--font-serif);
  font-size: 1.55rem; font-weight: 500;
  letter-spacing: .01em; white-space: nowrap;
}

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-size: .9rem; color: var(--ink-soft);
  position: relative; padding: .25rem 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-phone {
  font-size: .9rem; color: var(--ink-soft); white-space: nowrap;
  padding-left: 2rem; border-left: 1px solid var(--line);
}
.header-phone:hover { color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Giriş ---------- */

.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero-text { max-width: 46rem; margin-inline: auto; }
.hero h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase; letter-spacing: .1em;
}
.tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35;
  color: var(--ink-soft); max-width: 36ch; margin: 0 auto 1.5rem; text-wrap: balance;
}
.lead {
  font-size: 1.08rem; color: var(--ink-soft);
  max-width: 50ch; margin: 0 auto 2.5rem;
}
.actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero .actions { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.75rem;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--small { display: flex; width: max-content; font-size: .82rem; margin-top: .6rem; color: var(--accent); }


/* ---------- Bölümler ---------- */

.section { padding: var(--section-y) 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; margin-inline: auto; max-width: 52rem; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 1.25rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split--about { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split-main h2 { margin-bottom: 1.5rem; max-width: 22ch; }
.split-main p { color: var(--ink-soft); max-width: 58ch; }
.split-aside { padding-top: .5rem; }

/* Hakkımızda: başlık solda, metin sağda */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about h2 { max-width: 18ch; }
.about-text { padding-top: .35rem; }
.about-text p { font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }

/* Tanım listesi: kısa bilgiler (adres, saatler vb.) */
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-top: .2rem;
}
.facts dd { margin: 0; }
.facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Çalışma alanları */
.areas {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 3.5rem);
}
.areas li { border-top: 1px solid var(--line-strong); padding: 1.6rem 0 2.2rem; }
.areas .num {
  display: block; font-size: .72rem; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 1rem;
}
.areas h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.areas p { font-size: .95rem; color: var(--muted); }

/* Yaklaşım */
.principles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}
.principles > div { padding: .5rem clamp(1rem, 2.5vw, 2rem); }
.principles > div + div { border-left: 1px solid var(--line); }
.principles h3 { font-style: italic; font-weight: 500; font-size: 1.6rem; margin-bottom: .75rem; }
.principles p { font-size: .92rem; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* İç sayfa (KVKK vb.) */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); max-width: 22ch; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.7rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Alt bilgi ---------- */

.site-footer {
  background: var(--ink); color: rgba(247, 244, 238, .72);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247, 244, 238, .14);
}
.footer-grid p { margin-top: .6rem; font-size: .9rem; }
.brand--light { color: var(--bg); }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; padding-top: .35rem; }
.footer-nav a { font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--bg); }
.footer-bottom { padding-top: 1.75rem; display: grid; gap: .6rem; font-size: .8rem; }
.footer-note { max-width: 60rem; color: rgba(247, 244, 238, .5); }

/* ---------- Belirme animasyonu (JS ile) ---------- */

.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Duyarlı yerleşim ---------- */

@media (max-width: 1000px) {
  .header-phone { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter) .75rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }


  .split, .split--about, .about { grid-template-columns: 1fr; }

  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .principles { grid-template-columns: 1fr; gap: 1.5rem; }
  .principles > div { padding: 1.5rem 0 0; }
  .principles > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand { font-size: 1.35rem; }
  .areas { grid-template-columns: 1fr; }
  .areas li { padding: 1.4rem 0 1.8rem; }
  .facts > div { grid-template-columns: 1fr; gap: .3rem; }
  .actions { gap: 1.25rem; }
}
