/* KBYS — Manrope + mor primary odak */
:root {
  --font-sans: "Manrope", sans-serif;
  --primary-rgb: 79 71 230;
  --surface-alt: #fafafa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  html.mobile-menu-open {
    overflow: hidden;
  }
}

img[loading="lazy"] {
  content-visibility: auto;
}

main section[id],
footer[id] {
  scroll-margin-top: 5.5rem;
}

/* Desktop header: scroll state (JS toggles .header-scrolled) */
#site-header.header-scrolled {
  background-color: rgb(255 255 255 / 0.92);
  box-shadow:
    0 1px 2px rgb(24 24 27 / 0.04),
    0 10px 36px -12px rgb(24 24 27 / 0.07);
  border-bottom-color: rgb(228 228 231 / 0.65);
}

/* Desktop nav: aktif bölüm göstergesi */
#site-header nav[aria-label="Ana menü"] a.nav-desktop-link.nav-link-active {
  color: rgb(66 57 196);
}

#site-header nav[aria-label="Ana menü"] a.nav-desktop-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: rgb(79 71 230 / 0.28);
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#site-header nav[aria-label="Ana menü"] a.nav-desktop-link.nav-link-active::after {
  opacity: 1;
  transform: scaleX(1);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(var(--primary-rgb) / 0.35);
  outline-offset: 2px;
}

::selection {
  background: rgb(var(--primary-rgb) / 0.14);
  color: rgb(39 39 42);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
