/* =========================================================
   Taskiva — Footer & Prefooter (production-safe, single file)
   Bu dosya hem canlıda hem Live Server'da çalışacak şekilde
   yüksek özgülüklü (scoped) ve çakışmalara dayanıklı yazılmıştır.
   ========================================================= */

/* ---- Genel footer tipografi ve güvenli reset ---- */
footer.site-footer,
footer.site-footer * {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

footer.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

footer.site-footer a { color: inherit; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; color: #0f172a; }

footer.site-footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #0f172a;
}

footer.site-footer p { margin: 0 0 10px; }
footer.site-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
footer.site-footer li { margin: 0; }
footer.site-footer img { max-width: 100%; height: auto; }

/* ---- Ana ızgara ---- */
footer.site-footer .site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid !important; /* temadaki farklı layout'ları bastır */
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) !important;
  gap: 28px;
}

/* ---- Sütun: Marka ---- */
footer.site-footer .footer-brand .brand-copy { max-width: 42ch; }
footer.site-footer .footer-logo img { height: 28px; width: auto; }
footer.site-footer .footer-social { display: flex; gap: 10px; align-items: center; }
footer.site-footer .footer-social svg { display: inline-block; vertical-align: middle; }

/* ---- Sütun: Link listeleri ---- */
footer.site-footer .footer-links { display: grid !important; gap: 8px; }

/* ---- Sütun: Bülten ---- */
footer.site-footer .newsletter { display: flex; gap: 8px; }
footer.site-footer .newsletter input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px;
  border: 1px solid #e5e7eb; border-radius: 10px; font: inherit; background: #fff;
}
footer.site-footer .newsletter button {
  height: 42px; padding: 0 14px; border: 0; border-radius: 10px;
  background: #16a34a; color: #fff; font-weight: 600; cursor: pointer;
}
footer.site-footer .newsletter button:hover { background: #16a34a; }

/* ---- Alt şerit ---- */
footer.site-footer .site-footer__bottom {
  border-top: 1px solid #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 980px){
  footer.site-footer .site-footer__inner { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px){
  footer.site-footer .site-footer__inner { grid-template-columns: 1fr !important; }
  footer.site-footer .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =========================================================
   PREFOOTER (footer'dan hemen önce gelen çağrı bandı)
   Tek blok: fallback içeren geniş seçiciyle yazıldı.
   ========================================================= */
section.prefooter-cta {
  width: 100%;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 0;
  margin-top: 56px;
}

/* İç sarmalayıcı (adı değişse bile yakala ve ortala) */
section.prefooter-cta > .prefooter-cta__inner,
section.prefooter-cta > .container,
section.prefooter-cta > div {
  max-width: 1200px;
  margin: 0 auto !important;     /* ortalamayı zorla */
  padding: 0 16px;
  display: flex !important;       /* yatay düzeni zorla */
  align-items: center;
  justify-content: space-between !important;
  gap: 18px;
  flex-wrap: wrap;
}

/* Metin ve aksiyonlar */
.prefooter-cta__text h3 { margin: 0 0 4px; font-size: clamp(20px,2.6vw,28px); color: #0f172a; }
.prefooter-cta__text p { margin: 0; color: #475569; }
.prefooter-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Butonlar (sadece prefooter içinde) */
.prefooter-cta .btn-demo,
.prefooter-cta .btn-whatsapp {
  display: inline-block;
  padding: .85rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #16a34a;
  border: 0;
}
.prefooter-cta .btn-demo:hover,
.prefooter-cta .btn-whatsapp:hover { background: #16a34a; color: #fff; }

/* Responsive prefooter */
@media (max-width: 640px){
  section.prefooter-cta > .prefooter-cta__inner,
  section.prefooter-cta > .container,
  section.prefooter-cta > div {
    justify-content: center !important;
    text-align: center;
  }
}
