/**
 * Öktenler Platform Vinç — Reset
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
}

[hidden] { display: none !important; }

/* Site bölümleri: açık olduğu API ile doğrulanana kadar gizle */
[data-module-nav],
[data-module-section] {
  display: none !important;
}
[data-module-nav].is-module-on {
  display: list-item !important;
}
[data-module-section].is-module-on {
  display: block !important;
}

/* Kapalı bölüm sayfasında yönlendirmeden önce içerik flaş yapmasın */
html:not(.modules-ready) body[data-page-module] #main {
  visibility: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--accent-hover); }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  color: var(--primary);
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.35rem, 3vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.1rem, 2.4vw, var(--fs-xl)); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--primary-dark);
}
