/* ==========================================================================
   CCY Oto Ekspertiz — Reset, tipografi temeli, grid ve erişilebilirlik
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: #fff205 #111;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

/* --- Scrollbar -------------------------------------------------------------- */

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #0a0a0a;
}

html::-webkit-scrollbar-thumb {
  background: #fff205;
  border: 2px solid #0a0a0a;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #e6da04;
}

html::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
picture,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  height: 0;
  margin: 0;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

/* --- Focus: her etkileşimli öğede görünür ---------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-btn);
}

.on-paper :focus-visible {
  outline-color: var(--brand-deep);
}

/* --- Erişilebilirlik yardımcıları ----------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: calc(var(--z-lightbox) + 10);
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-btn);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-std);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Yerleşim: 12 kolonlu grid --------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

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

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

/* Bölüm ritmi: yalnızca beyaz / siyah */
.section--paper {
  background: #fff;
  color: var(--ink-dark);
}

.section--surface {
  background: #000;
  color: var(--ink-light);
}

/* --- Tipografik yardımcılar ------------------------------------------------ */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--brand);
}

.on-paper .eyebrow,
.section--paper .eyebrow {
  color: var(--ink-muted-dark);
  border-left-color: var(--brand-deep);
}

.eyebrow::before {
  display: none;
}

.eyebrow--plain::before {
  display: none;
}

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: 62ch;
}

.section--paper .lede {
  color: var(--ink-muted-dark);
}

.text-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.measure {
  max-width: 68ch;
}

/* --- Bölüm başlığı bloğu ---------------------------------------------------- */

.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.section-head--split {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  column-gap: var(--gutter);
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }

  .section-head--split .section-head__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

/* --- Hareket tercihi -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Yazdırma --------------------------------------------------------------- */

@media print {
  .site-utility,
  .site-header,
  .mobile-bar,
  .lightbox,
  .map-embed {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
