/* =========================
   RESET & TEMEL
   ========================= */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  /* gümüş temaya uygun çok hafif üst ışık */
  background-image: radial-gradient(
    1100px 540px at 80% -10%,
    rgba(255, 255, 255, 0.06),
    transparent 45%
  );
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   TEMA DEĞİŞKENLERİ — SILVER
   ========================= */
:root[data-theme="silver"] {
  /* ANA PALET (nav ve body aynı renk) */
  --bg: #d3d2d2; /* SAYFA & NAV zemin rengi */
  --surface: #e5e5e5; /* kartlar */
  --surface-2: #ededed; /* ikincil yüzeyler / drawer */
  --text: #0f172a; /* koyu metin (okunabilirlik) */
  --muted: #475569; /* ikincil metin */
  --border: rgba(15, 23, 42, 0.12);
  --ring: rgba(255, 214, 136, 0.45);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* ALTIN (dokunma) */
  --gold: #e6c356;
  --gold-hi: #fff2b0;
  --gold-lo: #b8870b;
  --gold-grad: linear-gradient(
    135deg,
    #fff2b0 0%,
    #f2c94c 30%,
    #d6a31f 55%,
    #ffe9a6 100%
  );

  /* NAV / MENÜ / DRAWER için önerilenler */
  --nav-h: 64px;
  --nav-xpad: 16px;

  --menu-color: #111; /* hamburger çizgi / “MENÜ” yazısı */
  --menu-hover: #000;
  --menu-line-w: 26px;
  --menu-line-h: 3px;
  --menu-line-r: 2px;
  --menu-gap: 6px;

  --drawer-bg: rgba(237, 237, 237, 0.9);
  --drawer-blur: 12px;

  /* HERO kutu */
  --hero-box-w: min(100%, 94vw);
  --hero-h: 780px;
  --hero-fit: contain;
}

/* =========================
   LAYOUT YARDIMCILAR
   ========================= */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: clamp(40px, 7vw, 90px) 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Görünmez (erişilebilirlik) başlık */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Odak halkası */
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--ring);
}

/* Kenarlara yapışık container için “edge” varyantı */
.container.inner.edge {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Eski .menu bloklarını kapat (kullanılmıyorsa) */
.nav .menu,
.menu {
  display: none !important;
}

/* =========================
   BÖLÜM BAŞLIĞI
   ========================= */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font: 600 clamp(18px, 3vw, 26px) / 1.2 Montserrat, Inter, sans-serif;
  color: var(--text);
}

/* =========================
   HOVER “SPOTLIGHT” (altın ışık)
   ========================= */
[data-spotlight] {
  position: relative;
  isolation: isolate;
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    220px 220px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 214, 136, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}
[data-spotlight]:hover::before {
  opacity: 1;
}

/* =========================
   “STICK” ÇİZGİLERİ KAPAT (global)
   ========================= */
.section-title::after,
.section-with-label::before,
.hr-lite {
  display: none !important;
}

.section-with-label::after {
  content: attr(data-label) !important;
  position: static !important;
  display: block;
  margin: 6px 0 10px;
  font: 800 28px/1.2 Montserrat, Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* =========================
   NAV RENGİ — body ile birebir aynı (KESİN OVERRIDE)
   ========================= */
.nav,
header.nav,
.menu-open .nav {
  background: var(--bg) !important; /* #d3d2d2 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text) !important;
  backdrop-filter: blur(12px) !important;
}
.nav::before,
.nav::after {
  background: transparent !important;
}
/* ===== SweetAlert2 – PDF görünümü (silver + gold) ===== */
.swal2-container {
  backdrop-filter: blur(3px);
}
.swal-pdf.swal2-popup {
  width: min(1200px, 92vw) !important;
  padding: 0 !important;
  background: var(--surface-2, #dedede) !important;
  color: var(--text, #0f172a) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}
.swal-pdf .swal2-title {
  margin: 0;
  padding: 14px 18px;
  font-weight: 800;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.swal-pdf .swal2-close {
  color: var(--text, #0f172a);
  opacity: 0.9;
}
.swal-pdf-wrap {
  width: 100%;
  height: clamp(420px, 78vh, 900px);
  padding: 12px;
}
.swal-pdf-wrap iframe,
.swal-pdf-wrap embed,
.swal-pdf-wrap object {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.swal-pdf-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px 16px;
}
.swal-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--text, #0f172a);
  border-bottom: 1px dashed var(--gold, #e6c356);
}
.swal-link:hover {
  color: #000;
  border-bottom-style: solid;
}
/* === HERO: sabit yükseklik, ortada, yanlardan daha geniş === */
:root {
  /* ihtiyaca göre sadece şu iki değeri büyütüp/küçültürsün: */
  --hero-box-w: min(
    1400px,
    98vw
  ); /* GENİŞLİK: 1200–1600px / 96–99vw deneyebilirsin */
  --hero-box-h: 320px; /* YÜKSEKLİĞİN sabit kalacağı değer */
}

/* eski full-bleed/negatif margin/sola kayma hacklerini iptal et */
.hero {
  left: auto !important;
  right: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  width: auto !important;
}

/* asıl kutu ayarı */
.hero.small {
  position: relative !important;
  width: var(--hero-box-w) !important; /* SAĞ-SOLDAN GENİŞLEME burada */
  height: var(--hero-box-h) !important; /* YÜKSEKLİK sabit */
  margin-inline: auto !important; /* ortaya al */
  overflow: hidden !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 0 !important; /* kenar boşluğu bırakmasın */
}

/* görsel dikdörtgeni eksiksiz doldursun (yanlardan kırparak genişler) */
.hero.small .hero-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* .fill gibi davransın */
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
}

/* overlay kutu boyuna otursun */
.hero.small .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit;
  pointer-events: none;
}
/* === HERO: sabit yükseklik, ortada, yanlardan daha geniş === */
:root {
  /* ihtiyaca göre sadece şu iki değeri büyütüp/küçültürsün: */
  --hero-box-w: min(
    1800px,
    98vw
  ); /* GENİŞLİK: 1200–1600px / 96–99vw deneyebilirsin */
  --hero-box-h: 320px; /* YÜKSEKLİĞİN sabit kalacağı değer */
}

/* eski full-bleed/negatif margin/sola kayma hacklerini iptal et */
.hero {
  left: auto !important;
  right: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  width: auto !important;
}

/* asıl kutu ayarı */
.hero.small {
  position: relative !important;
  width: var(--hero-box-w) !important; /* SAĞ-SOLDAN GENİŞLEME burada */
  height: var(--hero-box-h) !important; /* YÜKSEKLİK sabit */
  margin-inline: auto !important; /* ortaya al */
  overflow: hidden !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 0 !important; /* kenar boşluğu bırakmasın */
}

/* görsel dikdörtgeni eksiksiz doldursun (yanlardan kırparak genişler) */
.hero.small .hero-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* .fill gibi davransın */
  object-position: center !important;
  display: block !important;
  margin: 6 !important;
}

/* overlay kutu boyuna otursun */
.hero.small .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit;
  pointer-events: none;
}
/* genişlik büyüt */
.hero.small {
  width: min(1700px, 99vw) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* yükseklik büyüt: birini seç */
:root {
  --hero-h: 120vh;
  --hero-min: 420px;
} /* değişkenle */
.hero.small {
  height: 560px !important;
  min-height: 420px !important;
} /* ya da sabit px */
