/* ==========================================================================
   Bektaş Hukuk Bürosu — statik site: temel katman (jetonlar + yerleşim)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

:root {
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Pinyon Script', 'Segoe Script', cursive;

  --bg-50: oklch(0.974 0.012 88);
  --bg-100: oklch(0.952 0.016 86);
  --bg-200: oklch(0.916 0.022 84);
  --bg-300: oklch(0.864 0.026 82);
  --bg-400: oklch(0.794 0.028 80);
  --bg-500: oklch(0.702 0.030 78);
  --bg-600: oklch(0.590 0.028 76);
  --bg-700: oklch(0.472 0.026 74);
  --bg-800: oklch(0.354 0.022 72);
  --bg-900: oklch(0.254 0.018 70);
  --bg-950: oklch(0.170 0.014 68);

  --fg-50: oklch(0.960 0.010 150);
  --fg-100: oklch(0.924 0.012 150);
  --fg-200: oklch(0.852 0.014 150);
  --fg-300: oklch(0.754 0.016 152);
  --fg-400: oklch(0.638 0.018 154);
  --fg-500: oklch(0.526 0.020 156);
  --fg-600: oklch(0.434 0.022 158);
  --fg-700: oklch(0.352 0.024 160);
  --fg-800: oklch(0.268 0.026 162);
  --fg-900: oklch(0.200 0.028 164);
  --fg-950: oklch(0.150 0.030 166);

  --primary-50: oklch(0.965 0.020 160);
  --primary-100: oklch(0.928 0.040 160);
  --primary-200: oklch(0.872 0.064 160);
  --primary-300: oklch(0.788 0.090 160);
  --primary-400: oklch(0.680 0.115 160);
  --primary-500: oklch(0.545 0.132 160);
  --primary-600: oklch(0.462 0.118 161);
  --primary-700: oklch(0.385 0.100 162);
  --primary-800: oklch(0.320 0.084 162);
  --primary-900: oklch(0.258 0.070 162);
  --primary-950: oklch(0.185 0.052 162);

  --accent-50: oklch(0.970 0.024 88);
  --accent-100: oklch(0.932 0.048 86);
  --accent-200: oklch(0.878 0.072 85);
  --accent-300: oklch(0.810 0.090 84);
  --accent-400: oklch(0.718 0.100 82);
  --accent-500: oklch(0.600 0.096 82);
  --accent-600: oklch(0.508 0.086 80);
  --accent-700: oklch(0.414 0.070 78);
  --accent-800: oklch(0.330 0.054 76);
  --accent-900: oklch(0.266 0.044 74);
  --accent-950: oklch(0.198 0.034 72);

  --secondary-50: oklch(0.964 0.012 140);
  --secondary-100: oklch(0.924 0.018 140);
  --secondary-200: oklch(0.868 0.024 140);
  --secondary-300: oklch(0.790 0.028 140);
  --secondary-400: oklch(0.682 0.030 140);
  --secondary-500: oklch(0.558 0.030 140);
  --secondary-600: oklch(0.462 0.028 140);
  --secondary-700: oklch(0.380 0.026 140);
  --secondary-800: oklch(0.302 0.022 140);
  --secondary-900: oklch(0.242 0.020 140);
  --secondary-950: oklch(0.174 0.016 140);

  --header-h: 100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-50);
  color: var(--fg-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--fg-950);
  line-height: 1.25;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background-color: oklch(0.600 0.096 82 / 0.22);
  color: var(--fg-950);
}

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

/* Yerleşim yardımcıları */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section--tight {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section--hairline {
  border-top: 1px solid color-mix(in oklch, var(--bg-300) 70%, transparent);
}

@media (min-width: 768px) {
  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }
  .section--tight {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
  }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-12 { grid-column: span 12; }
}

.stack > * + * {
  margin-top: 1.25rem;
}

/* Tipografi parçaları */
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--primary-600);
}

.rule-line {
  display: block;
  height: 1px;
  width: 56px;
  background-color: var(--accent-400);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}

.section-heading h2 {
  margin-top: 16px;
  font-size: 1.6rem;
  line-height: 1.25;
}

.section-heading p {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-600);
}

@media (min-width: 768px) {
  .section-heading h2 {
    font-size: 2.15rem;
  }
}

@media (min-width: 1024px) {
  .section-heading h2 {
    font-size: 2.4rem;
  }
}

.section-heading--light h2 {
  color: var(--bg-50);
}

.section-heading--light p {
  color: oklch(0.916 0.022 84 / 0.85);
}

.lead-quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--fg-900);
  max-width: 640px;
}

@media (min-width: 768px) {
  .lead-quote {
    font-size: 1.65rem;
  }
}

.body-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--fg-600);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-label);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn i {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover i.ri-arrow-right-line {
  transform: translateX(4px);
}

.btn--sm { font-size: 0.75rem; padding: 8px 16px; }
.btn--md { font-size: 0.82rem; padding: 11px 20px; }
.btn--lg { font-size: 0.9rem; padding: 14px 28px; }

.btn--primary {
  background-color: var(--primary-500);
  color: var(--bg-50);
}
.btn--primary:hover {
  background-color: var(--primary-600);
}

.btn--inverse {
  background-color: var(--bg-50);
  color: var(--fg-950);
}
.btn--inverse:hover {
  background-color: var(--bg-100);
}

.btn--outline {
  border-color: color-mix(in oklch, var(--fg-950) 25%, transparent);
  color: var(--fg-900);
}
.btn--outline:hover {
  border-color: var(--fg-900);
  background-color: var(--fg-950);
  color: var(--bg-50);
}

.btn--outline-light {
  border-color: oklch(0.974 0.012 88 / 0.45);
  color: var(--bg-50);
}
.btn--outline-light:hover {
  background-color: var(--bg-50);
  color: var(--fg-950);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--primary-700);
  white-space: nowrap;
  cursor: pointer;
}

/* Kart / görsel çerçevesi */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--bg-300);
  background-color: var(--bg-100);
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-16-10 { aspect-ratio: 16 / 10; }
.aspect-16-9 { aspect-ratio: 16 / 9; }

.card-surface {
  background-color: var(--bg-50);
  border: 1px solid color-mix(in oklch, var(--bg-300) 70%, transparent);
  border-radius: 8px;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Uzun metin (makale / yasal) */
.prose {
  color: var(--fg-700);
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.prose h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 20px;
  line-height: 1.85;
}

.prose ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background-color: var(--accent-500);
}

.prose strong {
  color: var(--fg-900);
  font-weight: 600;
}

/* Sayfa başlığı (iç sayfalar) */
.page-hero {
  padding-top: 160px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in oklch, var(--bg-300) 70%, transparent);
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 200px;
    padding-bottom: 72px;
  }
}

.page-hero__title {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: 3rem;
  }
}

.page-hero__sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-600);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--fg-400);
}

.breadcrumb a:hover {
  color: var(--fg-950);
}

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

/* ==========================================================================
   Siteye giriş perdesi — logo + karşılama, sonra yukarı kayarak açılır.
   Yalnızca oturumda bir kez gösterilir (inline script + site.js).
   ========================================================================== */
html.intro-skip .intro-veil {
  display: none;
}

.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary-950);
  background-image: radial-gradient(
    circle at 50% 42%,
    oklch(0.320 0.084 162 / 0.55) 0%,
    transparent 62%
  );
}

.intro-veil__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 50% 88%,
    oklch(0.600 0.096 82 / 0.14) 0%,
    transparent 55%
  );
}

.intro-veil__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
}

.intro-veil .intro-mark {
  display: inline-block;
  animation: intro-mark-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-veil .brand__word {
  color: var(--bg-50);
  font-size: 3rem;
}

.intro-veil .brand__sub {
  color: oklch(0.952 0.016 86 / 0.85);
  font-size: 0.58rem;
}

.intro-veil .brand__sub::before,
.intro-veil .brand__sub::after {
  background-color: var(--accent-400);
}

.intro-rule {
  display: block;
  height: 1px;
  width: 64px;
  margin-top: 36px;
  background-color: var(--accent-400);
  transform-origin: center;
  animation: intro-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.intro-greeting {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--bg-50);
  animation: intro-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both;
}

.intro-sub {
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: oklch(0.952 0.016 86 / 0.8);
  animation: intro-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.86s both;
}

.intro-veil--out {
  animation: intro-veil-out 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes intro-veil-out {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes intro-mark-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-text-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .intro-veil .brand__word {
    font-size: 3.4rem;
  }
  .intro-greeting {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .intro-veil {
    display: none;
  }
}