/* ==========================================================================
   Bedesten Yapı — ortak temel stiller
   Düzen fikri: sayfa bir yapı kesiti gibi okunur. En üstte asma iskele (menü),
   bölümler kot işaretleriyle aşağı iner, footer "temel"dir. İçerik sola hizalı.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo/archivo-degisken.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../../fonts/big-shoulders/big-shoulders-display.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("../../fonts/big-shoulders/big-shoulders-stencil.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Renk: kurşun kubbe, beton, kireçtaşı, ikaz sarısı, almaşık tuğla, galvaniz çelik */
  --kursun-950: #161b20;
  --kursun-900: #1c2228;
  --kursun-800: #232a31;
  --kursun-700: #2e3740;
  --kursun-500: #5d6b77;
  --kursun-300: #9aa6b0;
  --beton-100: #e6e3dc;
  --beton-200: #d6d2c8;
  --beton-300: #bdb8ac;
  --kirec: #f1ece2;
  --murekkep: #1f252b;
  --murekkep-2: #4b535b;
  --ikaz: #e8a317;
  --ikaz-koyu: #bf830c;
  --ikaz-metin: #7d5200;
  --tugla: #a4472b;
  --tugla-acik: #e2724f;
  --celik: #a8b1b7;
  --celik-koyu: #6e787f;
  --tahta: #9a6a3c;

  /* Yazı */
  --f-baslik: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --f-stencil: "Big Shoulders Stencil", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-metin: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Ölçü */
  --kap: 1320px;
  --kenar-sol: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  --kenar-sag: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px));
  --bolum-dikey: clamp(76px, 10vw, 148px);

  /* Hareket */
  --yavas: cubic-bezier(.2, .7, .1, 1);
  --yay: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--beton-100);
  color: var(--murekkep);
  font-family: var(--f-metin);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-stretch: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ikaz);
  outline-offset: 3px;
}

::selection { background: var(--ikaz); color: var(--murekkep); }

.gizli {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.atla {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ikaz);
  color: var(--murekkep);
  font-weight: 650;
  text-decoration: none;
  transition: top .2s;
}
.atla:focus { top: 12px; }

/* --- Kap ve bölümler --------------------------------------------------- */
.kap {
  width: 100%;
  max-width: calc(var(--kap) + 96px);
  margin-inline: auto;
  padding-left: var(--kenar-sol);
  padding-right: var(--kenar-sag);
}

.bolum {
  position: relative;
  padding-block: var(--bolum-dikey);
  scroll-margin-top: 24px;
}
.bolum--acik { background: var(--beton-100); color: var(--murekkep); }
.bolum--koyu { background: var(--kursun-900); color: var(--kirec); color-scheme: dark; }
.bolum--pano { background: var(--kursun-950); color: var(--kirec); color-scheme: dark; }
.bolum--beton {
  background-color: var(--beton-200);
  color: var(--murekkep);
  /* Brüt beton: kalıp panel ek yerleri ve tij delikleri */
  background-image:
    radial-gradient(circle at 60px 60px, rgba(31, 37, 43, .11) 0 2.5px, transparent 3px),
    linear-gradient(90deg, rgba(31, 37, 43, .045) 1px, transparent 1px),
    linear-gradient(rgba(31, 37, 43, .035) 1px, transparent 1px);
  background-size: 240px 120px, 480px 240px, 480px 240px;
}

.bolum-bas {
  display: grid;
  gap: 18px;
  max-width: 62rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.bolum-bas--yan {
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
}
.bolum-bas--yan > div { display: grid; gap: 18px; min-width: 0; }

.bolum-baslik {
  font-family: var(--f-baslik);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  line-height: .94;
  letter-spacing: .004em;
  text-wrap: balance;
}
.bolum-giris {
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--murekkep-2);
}
.bolum--koyu .bolum-giris,
.bolum--pano .bolum-giris { color: var(--kursun-300); }

/* --- Kot işareti (kesitteki seviye etiketi) --------------------------- */
.kot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-metin);
  font-size: .9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kot-isaret { width: 24px; height: 16px; overflow: visible; }
.kot-isaret path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.kot-isaret .kot-cizgi { stroke-width: 1.2; }
.kot-deger { letter-spacing: .02em; }
.kot-ad {
  padding-left: 10px;
  border-left: 1px solid currentColor;
  font-weight: 500;
  opacity: .72;
}
.bolum--koyu .kot, .bolum--pano .kot, .temel .kot { color: var(--ikaz); }
.bolum--koyu .kot-ad, .bolum--pano .kot-ad, .temel .kot-ad { color: var(--kirec); }

/* --- Düğmeler ----------------------------------------------------------- */
.dugme {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 2px;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.dugme--ikaz { background: var(--ikaz); color: var(--murekkep); }
.dugme--ikaz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(31, 37, 43, .16) 0 10px, transparent 10px 20px);
  background-size: 28.28px 28.28px;
  opacity: 0;
  transition: opacity .25s;
}
.dugme--ikaz:hover::before,
.dugme--ikaz:focus-visible::before { opacity: 1; animation: serit-kay .8s linear infinite; }
@keyframes serit-kay { to { background-position: 28.28px 0; } }

/* --- Kaydırınca beliren ögeler -----------------------------------------
   Sayfa yüklendiğinde görünür alandaki ögeler hiç gizlenmez; yalnızca
   aşağıda kalanlar JS ile "canlan-bekle" alır ve görününce açılır. */
[data-canlan] {
  transition: opacity .9s var(--yavas), transform .9s var(--yavas);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.canlan-bekle { opacity: 0; transform: translateY(32px); }

/* --- Dönen sayaç (odometre) ------------------------------------------- */
.odometre { display: inline-flex; font-variant-numeric: tabular-nums; }
.od-hane {
  display: inline-block;
  height: 1.08em;
  overflow: hidden;
  vertical-align: top;
}
.od-serit {
  display: flex;
  flex-direction: column;
  transition: transform 2.2s cubic-bezier(.12, .8, .18, 1);
}
.od-serit span, .od-ayirac { display: block; height: 1.08em; line-height: 1.08em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
