/* ══════════════════════════════════════════════════════════════════
   Durmaz Hukuk — Ortak Tasarım Katmanı (site.css)
   Tüm sayfalarda paylaşılan temel kurallar ve bileşen stilleri.
   Kaynak: DESIGN-PATTERNS.md §4, §6, §8, §13. Bu dosya TEK kaynaktır;
   aynı kuralı sayfa içi <style> bloklarına kopyalamayın.
   Sayfaya özgü kurallar sayfanın kendi <style> bloğunda kalır ve
   (bu dosya önce yüklendiği için) gerektiğinde bunları ezebilir.
   ══════════════════════════════════════════════════════════════════ */

/* ---------- Temel ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: 'Inter', sans-serif;
  color: #0a1e3f;
  background: #fafaf7;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: #c9a961; color: #0a1e3f;
  padding: 8px 16px; border-radius: 4px;
  font-weight: 600; z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid #0a1e3f; }

*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid #c9a961;
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-gold:focus-visible {
  outline: 3px solid #e5c988;
  outline-offset: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(60, 45, 15, 0.25),
    0 6px 18px rgba(138, 109, 47, 0.35),
    0 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Form alanlarında Tailwind ring tek odak göstergesi kalsın; tarayıcı outline'ı çakışmasın */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  /* Otomatik/uzun animasyonlar (kenburns, scroll-cue, giriş keyframe'leri) kapanır;
     ancak hover/focus mikro-etkileşimlerin transition süreleri KORUNUR —
     kullanıcının kendi başlattığı anlık geri bildirim vestibüler risk oluşturmaz
     ve 0.01ms'ye çekmek hover'ı "ani ve kalitesiz" hissettirir. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal, .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* kenburns 'forwards' ile scale(1.04)'te sabitlenir; reduced-motion'da zoom olmasın */
  .hero-kenburns { transform: none !important; }
}

::selection { background: #c9a961; color: white; }

/* <details> özet işaretçisi: özel ok/ikonlar kullanıldığı için tarayıcı marker'ı gizle */
summary::-webkit-details-marker { display: none; }

/* SSS yumuşak açılım — <details> açıldığında içerik gövdesi hafifçe yukarıdan iner */
@keyframes faqBodyOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
details[open] .faq-body { animation: faqBodyOpen .45s cubic-bezier(.2,.8,.2,1) both; }

/* Kaydırma çubuğu — ince, zarif, sayfadan şeffaf kenar payıyla ayrışan premium görünüm */
html { scrollbar-width: thin; scrollbar-color: rgba(30, 58, 95, 0.45) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4b96e, #b08f45);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ---------- Giriş animasyonu (keyframe; hover transition'larıyla çakışmaz) ---------- */
.fade-up, .reveal { opacity: 0; }
.fade-up.visible, .reveal.visible { animation: fadeUp .85s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Ortak desen öğeleri ---------- */

/* Dikey ritim — simetrik ritim: her bölüm kendi arka planı içinde üstten ve
   alttan nefes alır (4rem / 5rem / 6rem). Bitişik iki bölüm yan yana geldiğinde
   ikincisinin üst boşluğu sıfırlanır; böylece ardışık bölümler arası boşluk
   2 katına çıkmaz, tek bölüm payında kalır. */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
.section-padding + .section-padding { padding-top: 0; }
@media (min-width: 640px) { .section-padding { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }

.gold-line { height: 2px; background: linear-gradient(90deg, transparent, #c9a961, transparent); }
.grain { background-image: radial-gradient(rgba(201,169,97,.06) 1px, transparent 1px); background-size: 3px 3px; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #b08f45;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.touch-target {
  min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* .lux-card bileşen kuralları (transition/hover) sayfa stillerinde tanımlıdır;
   burada yalnızca transform compositing ipucu merkezileştirilir. */
.lux-card { will-change: transform; }

/* ---------- Blog kartı hover deseni (post-card) ----------
   Referans: new-page-designs/blog-main.html. Ana sayfa #blog kartları ve
   blog arşiv kartları bu deseni birebir paylaşır. */
.post-card { position: relative; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .45s ease; will-change: transform; }
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 10;
  background: linear-gradient(90deg, #c9a961, #b08f45);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
  border-radius: 3px 3px 0 0;
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 24px 44px -12px rgba(10,30,63,.22); border-color: rgba(201,169,97,.6); }
.post-card:hover::before { transform: scaleX(1); }
.post-card .blog-card-img { transition: transform .9s ease; }
.post-card:hover .blog-card-img { transform: scale(1.08); }
.card-arrow { opacity: 0; transform: translate(10px,-10px) rotate(-45deg) scale(.8); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.post-card:hover .card-arrow { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
.post-card .title-link { transition: color .3s ease; }
.post-card:hover .title-link { color: #b08f45; }

/* ---------- Butonlar ----------
   Modern premium dil: DÜZ derin altın zemin — gradyan/inset "skeuomorfik" parlamalar
   bilinçli olarak kaldırıldı; zarafet sessiz gölge ve sakin hover ile kurulur. */
.btn-gold {
  background: #b08f45;
  color: white;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 14px rgba(138, 109, 47, 0.28);
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 14px;
  text-decoration: none;
}
@media (min-width: 640px) { .btn-gold { font-size: 15px; } }
.btn-gold:hover {
  transform: translateY(-1px);
  background: #97793a;
  box-shadow: 0 10px 24px rgba(138, 109, 47, 0.34);
}

.btn-outline {
  border: 1.5px solid #0a1e3f;
  color: #0a1e3f;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 14px;
  text-decoration: none;
}
.btn-outline:hover { background: #0a1e3f; color: white; transform: translateY(-2px); }

.btn-outline-light {
  border: 1.5px solid #ffffff;
  color: #ffffff;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 14px;
  text-decoration: none;
}
.btn-outline-light:hover { background: #ffffff; color: #0a1e3f; transform: translateY(-2px); }

@media (min-width: 640px) { .btn-outline, .btn-outline-light { font-size: 15px; } }

@media (max-width: 767.98px) {
  .btn-gold:active, .btn-outline:active, .btn-outline-light:active { transform: scale(0.98); }
}

/* Yüksek kontrast modu (Windows) */
@media (forced-colors: active) {
  .btn-gold { border: 2px solid ButtonText; }
  .nav-link::after { background: LinkText; }
}

/* ---------- Navbar ---------- */
#navbar {
  background: #0a1e3f;
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
#navbar[data-scrolled="true"] {
  background: rgba(10, 30, 63, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.35), 0 1px 0 rgba(201,169,97,0.15);
}
.nav-inner { min-height: 88px; transition: min-height .35s ease; }
#navbar[data-scrolled="true"] .nav-inner { min-height: 68px; }

.header-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo-img { width: 48px; height: 48px; flex-shrink: 0; }
@media (min-width: 640px) { .header-logo { gap: 14px; } .header-logo-img { width: 52px; height: 52px; } }
@media (min-width: 1024px) { .header-logo { gap: 16px; } .header-logo-img { width: 56px; height: 56px; } }
.header-logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.header-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; color: #ffffff;
  letter-spacing: 1.8px; line-height: 1.1; margin-bottom: 3px; text-transform: uppercase;
}
@media (min-width: 640px) { .header-logo-name { font-size: 16px; letter-spacing: 2px; } }
@media (min-width: 1024px) { .header-logo-name { font-size: 17px; letter-spacing: 2.5px; } }
.header-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 500; color: #c9a961;
  letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
}
@media (min-width: 1024px) { .header-logo-sub { font-size: 10px; letter-spacing: 2px; } }

.nav-link {
  position: relative; color: #ffffff;
  transition: color .3s ease;
  font-weight: 500; font-size: 14.5px;
  padding: 8px 2px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1.5px; background: #c9a961;
  transition: width .3s ease;
}
.nav-link:hover { color: #e5c988; }
.nav-link.active { color: #e5c988; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

@media (min-width: 1024px) {
  #menuBtn { display: none !important; }
  #mobileMenu { display: none !important; }
}
#mobileMenu { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.8,.2,1); }
#mobileMenu.open { max-height: calc(100svh - 68px); overflow-y: auto; }
.mobile-menu-link {
  display: flex; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #ffffff; font-weight: 500; font-size: 16px;
  min-height: 48px; text-decoration: none;
  transition: color .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu-link:hover, .mobile-menu-link:active { color: #e5c988; transform: translateX(4px); }
.mobile-menu-link:last-child { border-bottom: none; }

/* ---------- Yüzen WhatsApp + mobil CTA ---------- */
.whatsapp-float { bottom: 24px; right: 20px; animation: waPulse 2.8s ease-out infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 16px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (max-width: 767.98px) { .whatsapp-float { bottom: calc(88px + env(safe-area-inset-bottom)); } }

.mobile-cta-bar { display: none; }
@media (max-width: 767.98px) {
  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #0a1e3f; padding: 10px 12px; z-index: 40;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2); gap: 8px;
    border-top: 2px solid #c9a961;
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Sayfa başına dön — index.html'den taşındı (TEK KAYNAK); mobilde içeriğe bindiği için gizli */
.back-to-top { bottom: 24px; left: 20px; transform: translateY(12px); }
.back-to-top.show { opacity: 1 !important; pointer-events: auto !important; transform: translateY(0); }
@media (max-width: 1023.98px) { .back-to-top { display: none !important; } }
