/* =====================================================================
   Zeda İnşaat — tasarım sistemi
   Tailwind yardımcı sınıflarının üzerine binen cam (glass) bileşenleri.
   Düz CSS olarak yazıldı: CDN'in çalışma anında derlemesine gerek kalmaz.
   ===================================================================== */

:root {
  --z-ink-900: #15120F;
  --z-ink-800: #26221D;
  --z-ink-700: #3A352F;
  --z-ink-600: #565049;
  --z-ink-500: #7C756D;
  --z-ink-400: #A8A199;
  --z-ink-300: #CFC9C1;
  --z-ink-200: #E7E3DE;
  --z-ink-100: #F4F2EF;
  --z-ink-50:  #FAF9F8;

  --z-brand-700: #9E6243;
  --z-brand-600: #C07B55;
  --z-brand-500: #D7926B;
  --z-brand-400: #DF9F7B;
  --z-brand-300: #E8B18C;
  --z-brand-200: #F1CDB4;
  --z-brand-100: #F9E8DC;
  --z-brand-50:  #FDF6F1;

  --z-nav-h: 76px;
  --z-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------
   Temel
   ------------------------------------------------------------------- */
html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--z-nav-h) + 1.5rem);
  /* Kaydırma çubuğu içeriği sağa kaydırmasın, sayfa ortalı kalsın */
  scrollbar-gutter: stable both-edges;
}

/* ---------------------------------------------------------------------
   Kapsayıcı — tüm sayfalarda tek hizalama
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }
body {
  background: var(--z-ink-50);
  color: var(--z-ink-600);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--z-ink-900); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--z-brand-200); color: var(--z-ink-900); }
:focus-visible {
  outline: 2px solid var(--z-brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--z-ink-300); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--z-ink-400); }
::-webkit-scrollbar-track { background: transparent; }

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

/* Beyaz logoyu açık zeminde koyuya çevirir */
.logo-dark { filter: brightness(0); opacity: .9; }

/* ---------------------------------------------------------------------
   Cam yüzeyler
   ------------------------------------------------------------------- */
.glass {
  border-radius: 1.5rem;
  border: 1px solid rgb(255 255 255 / .6);
  background: linear-gradient(145deg, rgb(255 255 255 / .78), rgb(255 255 255 / .58));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .55), 0 8px 32px -8px rgb(21 18 15 / .18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-dark {
  border-radius: 1.5rem;
  border: 1px solid rgb(255 255 255 / .15);
  color: #fff;
  background: linear-gradient(145deg, rgb(21 18 15 / .55), rgb(21 18 15 / .35));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .12), 0 24px 64px -20px rgb(21 18 15 / .45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
/* Konum: :where() sıfır özgüllük verir; böylece Tailwind'in
   absolute / sticky / fixed yardımcı sınıfları bu kuralı ezebilir. */
:where(.glass, .glass-dark, .glass-sheen) { position: relative; }

/* Üstte ince ışık çizgisi — camın kalınlık hissi */
.glass-sheen::before {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem; top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .9), transparent);
}
.card {
  border-radius: 1.5rem;
  border: 1px solid rgb(231 227 222 / .7);
  background: rgb(255 255 255 / .9);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .55), 0 8px 32px -8px rgb(21 18 15 / .12);
}

/* Cam desteklenmiyorsa okunabilirliği koru */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass      { background: rgb(255 255 255 / .94); }
  .glass-dark { background: rgb(21 18 15 / .88); }
  .btn-glass  { background: rgb(255 255 255 / .94); }
  .btn-glass-dark { background: rgb(21 18 15 / .6); }
  .chip       { background: rgb(21 18 15 / .45); }
}

/* ---------------------------------------------------------------------
   Zemin efektleri
   ------------------------------------------------------------------- */
.aurora {
  position: absolute;
  z-index: -10;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  animation: z-drift 22s ease-in-out infinite;
}
@keyframes z-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, -3%, 0) scale(1.06); }
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   Butonlar
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .8125rem 1.5rem;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .3s var(--z-ease), color .3s var(--z-ease),
              border-color .3s var(--z-ease), transform .3s var(--z-ease),
              box-shadow .3s var(--z-ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.btn .bi { font-size: 1rem; line-height: 1; flex: 0 0 auto; }
.btn-sm .bi { font-size: .875rem; }
.btn-lg .bi { font-size: 1.125rem; }

/* Bootstrap Icons — satır hizası */
.bi { display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { padding: .5rem 1rem; font-size: .75rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary { background: var(--z-ink-900); color: #fff; box-shadow: 0 18px 48px -18px rgb(21 18 15 / .55); }
.btn-primary:hover { background: var(--z-ink-800); color: #fff; }

.btn-accent { background: var(--z-brand-500); color: var(--z-ink-900); box-shadow: 0 18px 48px -18px rgb(215 146 107 / .8); }
.btn-accent:hover { background: var(--z-brand-400); color: var(--z-ink-900); }

.btn-glass {
  border-color: rgb(255 255 255 / .6);
  background: rgb(255 255 255 / .6);
  color: var(--z-ink-800);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .55), 0 8px 32px -8px rgb(21 18 15 / .18);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.btn-glass:hover { border-color: #fff; background: rgb(255 255 255 / .8); }

.btn-glass-dark {
  border-color: rgb(255 255 255 / .25);
  background: rgb(255 255 255 / .12);
  color: #fff;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.btn-glass-dark:hover { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .2); color: #fff; }

.btn-ghost { border-color: var(--z-ink-200); background: rgb(255 255 255 / .7); color: var(--z-ink-800); }
.btn-ghost:hover { border-color: var(--z-ink-400); }

.btn-light { background: #fff; color: var(--z-ink-900); }
.btn-light:hover { background: var(--z-brand-100); color: var(--z-ink-900); }

/* ---------------------------------------------------------------------
   Tipografi
   ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--z-ink-400);
}
.eyebrow::before { content: ""; height: 1px; width: 1.75rem; background: var(--z-brand-500); }
.eyebrow-light { color: rgb(255 255 255 / .55); }

.title-xl, .title-lg, .title-md {
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--z-ink-900);
}
.title-xl { font-size: clamp(2.25rem, 5vw, 4rem);   line-height: 1.06; }
.title-lg { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.12; }
.title-md { font-size: clamp(1.5rem, 2.4vw, 1.875rem);  line-height: 1.22; }
.lead { font-size: 1.125rem; line-height: 1.8; color: var(--z-ink-500); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / .5);
  padding: .375rem .875rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgb(255 255 255 / .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chip-dot { width: .375rem; height: .375rem; border-radius: 9999px; background: var(--z-brand-400); }

/* ---------------------------------------------------------------------
   Form alanları
   ------------------------------------------------------------------- */
.field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--z-ink-200);
  background: rgb(255 255 255 / .8);
  padding: .875rem 1rem;
  font-size: .9375rem;
  color: var(--z-ink-800);
  font-family: inherit;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--z-ink-400); }
.field:focus {
  outline: none;
  border-color: var(--z-brand-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(215 146 107 / .12);
}
textarea.field { min-height: 140px; resize: vertical; line-height: 1.7; }
select.field {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237C756D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--z-ink-500);
}
.field-label span { color: #C0392B; }

.field-dark {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / .2);
  background: rgb(255 255 255 / .1);
  padding: .875rem 1rem;
  font-size: .9375rem;
  color: #fff;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field-dark::placeholder { color: rgb(255 255 255 / .45); }
.field-dark:focus {
  outline: none;
  border-color: rgb(255 255 255 / .45);
  background: rgb(255 255 255 / .15);
  box-shadow: 0 0 0 4px rgb(255 255 255 / .08);
}

/* ---------------------------------------------------------------------
   Panelden gelen zengin metin
   ------------------------------------------------------------------- */
.prose-zeda { font-size: 1.0625rem; line-height: 1.85; color: var(--z-ink-600); }
.prose-zeda > * + * { margin-top: 1.25rem; }
.prose-zeda h2 { font-size: 1.6rem; line-height: 1.25; margin-top: 2.5rem; letter-spacing: -.02em; }
.prose-zeda h3 { font-size: 1.25rem; line-height: 1.35; margin-top: 2rem; letter-spacing: -.01em; }
.prose-zeda strong, .prose-zeda b { font-weight: 600; color: var(--z-ink-800); }
.prose-zeda u { text-decoration-color: var(--z-brand-400); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose-zeda ul, .prose-zeda ol { padding-left: 1.25rem; }
.prose-zeda ul { list-style: disc; }
.prose-zeda ol { list-style: decimal; }
.prose-zeda li { margin-top: .5rem; }
.prose-zeda ul li::marker { color: var(--z-brand-400); }
.prose-zeda a {
  font-weight: 500;
  color: var(--z-brand-700);
  text-decoration: underline;
  text-decoration-color: var(--z-brand-300);
  text-underline-offset: 4px;
  transition: color .2s;
  /* eski temadan kalan "p a" kuralını etkisizleştirir */
  display: inline; padding: 0; margin: 0; background: none; text-transform: none;
}
.prose-zeda a:hover { color: var(--z-brand-600); background: none; }
.prose-zeda img { width: 100%; border-radius: 1.5rem; margin: 2rem 0; }
.prose-zeda blockquote {
  margin: 2rem 0;
  border-left: 2px solid var(--z-brand-400);
  background: rgb(253 246 241 / .6);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-style: italic;
  color: var(--z-ink-700);
}

/* ---------------------------------------------------------------------
   Görünüme girince canlanma
   ------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--z-ease), transform .8s var(--z-ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.mask-fade-b {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* ---------------------------------------------------------------------
   Harita
   ------------------------------------------------------------------- */
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: grayscale(.35) saturate(.72) contrast(.96) brightness(1.04); }
.leaflet-control-zoom a {
  border: none !important;
  background: #fff;
  color: var(--z-ink-900);
  font-weight: 400;
}
.leaflet-control-zoom a:hover { background: var(--z-ink-100); }
.leaflet-control-attribution { font-size: 10px; background: rgb(255 255 255 / .75); }
.leaflet-tooltip.harita-etiket {
  padding: .45rem .85rem;
  border: none;
  border-radius: 9999px;
  background: var(--z-ink-900);
  box-shadow: 0 8px 24px rgb(21 18 15 / .3);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #fff;
}
.leaflet-tooltip.harita-etiket::before { border-top-color: var(--z-ink-900); }

/* ---------------------------------------------------------------------
   Yükleme perdesi
   ------------------------------------------------------------------- */
html.yukleniyor { overflow: hidden; }
html.yukleniyor body { overflow: hidden; }

#yukleme {
  transition: opacity .6s var(--z-ease), visibility .6s;
}
#yukleme-logo {
  animation: yukleme-nefes 1.6s ease-in-out infinite;
}
#yukleme-cizgi {
  transition: width .5s var(--z-ease);
}
#yukleme.bitti {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes yukleme-nefes {
  0%, 100% { opacity: .55; transform: scale(.985); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* Perde kapanınca ilk ekran yumuşakça gelsin */
.acilis { animation: acilis .9s var(--z-ease) both; }
@keyframes acilis {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #yukleme { display: none; }
  html.yukleniyor, html.yukleniyor body { overflow: auto; }
}
