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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-0);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* clip: yatay taşmayı keser ama body'yi kaydırma kabı yapmaz; mobil menü açılıp sayfa kilitlendiğinde
     yapışkan üst menü yerinde kalır (hidden ile menü sayfanın başına kaçıyordu). hidden eski tarayıcılar için. */
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--c-brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-brand-800);
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ana içerik yalnızca "İçeriğe geç" ile odaklanır; tüm sayfayı saran halka çizilmez */
main:focus {
  outline: none;
}

::selection {
  background: var(--c-aqua-100);
  color: var(--c-ink);
}

/* ---------- Tipografi ---------- */
.h1,
.h2,
h1,
h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: -0.028em;
  color: var(--c-ink);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--fs-5);
  line-height: 1.06;
}

h2,
.h2 {
  font-size: var(--fs-4);
  line-height: 1.1;
}

h3,
.h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-1);
  line-height: var(--lh-snug);
  font-weight: 600;
  letter-spacing: 0;
}

.h3-display {
  font-family: var(--ff-display);
  font-weight: 600;
  font-synthesis: none;
  font-size: var(--fs-3);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand-700);
}

.eyebrow::before {
  content: '';
  inline-size: 1.75em;
  block-size: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-brand-500), var(--c-aqua-500));
}

.ap {
  margin-inline: -0.04em;
}

.cm {
  margin-inline-start: 0;
}

.lead {
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--c-ink-2);
  max-inline-size: 62ch;
  text-wrap: pretty;
}

.muted {
  color: var(--c-ink-2);
}

.nowrap,
a[href^='tel:'] {
  white-space: nowrap;
}

.small {
  font-size: var(--fs--1);
}

em.accent,
.accent {
  font-style: italic;
  color: var(--c-brand-700);
}

/* ---------- Yerleşim ---------- */
.container {
  inline-size: 100%;
  max-inline-size: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-inline-size: calc(var(--container-narrow) + var(--gutter) * 2);
}

.section {
  padding-block: var(--section);
}

.section--sand {
  background: var(--c-sand);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.section-head {
  display: grid;
  gap: var(--sp-3);
  margin-block-end: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  max-inline-size: 760px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head--split {
  max-inline-size: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--sp-7);
}

@media (max-width: 760px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

.stack > * + * {
  margin-block-start: var(--stack, var(--sp-4));
}

.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  inset-block-start: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-brand-900);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}

/* Yalnızca klavyeyle (Tab) gelindiğinde görünür; fare ya da dokunmayla odaklanınca görünmez */
.skip-link:focus-visible {
  inset-block-start: var(--sp-3);
  color: #fff;
}

/* ---------- Butonlar ---------- */
.btn {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-ink);
  --btn-border: var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-block-size: 48px;
  padding: 0.7em 1.35em;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-0);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  border-color: var(--c-ink-3);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--c-brand-700);
  --btn-fg: #fff;
  --btn-border: var(--c-brand-700);
}

.btn--primary:hover {
  --btn-bg: var(--c-brand-800);
  --btn-border: var(--c-brand-800);
}

.btn--wa {
  --btn-bg: var(--c-wa);
  --btn-fg: #fff;
  --btn-border: var(--c-wa);
}

.btn--wa:hover {
  --btn-bg: var(--c-wa-dark);
  --btn-border: var(--c-wa-dark);
}

.btn--ghost {
  --btn-bg: transparent;
}

.btn--sm {
  min-block-size: 44px;
  padding: 0.5em 1.1em;
  font-size: var(--fs--1);
}

.btn--block {
  inline-size: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-brand-700);
}

.link-arrow svg {
  inline-size: 1.1em;
  block-size: 1.1em;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

[dir='rtl'] .link-arrow svg {
  transform: scaleX(-1);
}

/* ---------- Kartlar ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--c-brand-50);
  color: var(--c-brand-800);
  font-size: var(--fs--1);
  font-weight: 500;
  line-height: 1.3;
}

.chip--sand {
  background: var(--c-sand);
  color: var(--c-ink-2);
}

/* ---------- İçerik (Markdown) ---------- */
.prose {
  max-inline-size: 70ch;
  color: var(--c-ink);
}

.prose > * + * {
  margin-block-start: 1.1em;
}

.prose h2 {
  font-size: var(--fs-3);
  margin-block-start: 1.8em;
}

.prose h3 {
  margin-block-start: 1.6em;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25em;
}

.prose li + li {
  margin-block-start: 0.4em;
}

.prose li::marker {
  color: var(--c-brand-500);
}

.prose strong {
  font-weight: 600;
}

.prose blockquote {
  padding-inline-start: var(--sp-5);
  border-inline-start: 3px solid var(--c-aqua-500);
  color: var(--c-ink-2);
}

/* ---------- Tablolar ---------- */
.table {
  inline-size: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.6em 0;
  border-block-end: 1px solid var(--c-line);
  text-align: start;
  vertical-align: top;
}

.table th {
  font-weight: 500;
}

.table td {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
