/* Sultanbeyli Avukatlık Bürosu — iç sayfa yardımcı sınıfları.
   Justica (Designesia) şablonunun CSS'inden SONRA yüklenir. Şablonun kendi
   JS'i ve çoğu fotoğrafı mirror'da bozuk olduğu için bu site yalnızca
   şablonun CSS tasarım dilini (style.css/coloring.css, :root CSS custom
   property tabanlı #eaa636 amber-altın marka rengi) kullanır; carousel/
   parallax/sayaç gibi JS'e bağımlı süslemeler hiç kullanılmadı. */

:root {
  --sb-text-muted: #777777;
  --sb-border: #eee;
  --sb-offwhite: #F7F6F3;
  --sb-shadow-card: 0 10px 28px rgba(17, 17, 17, 0.08);
  --sb-whatsapp: #26C064;
  --text-dark: var(--title-font-color);
  --text-muted: var(--sb-text-muted);
  --offwhite: var(--sb-offwhite);
  --bronze: var(--primary-color);
}

/* Şablonun klavye odağı için evrensel bir görünür stili yok (#mainmenu a gibi
   bazı öğelerde outline:none bile var) — klavye erişilebilirliği için marka
   rengiyle evrensel bir odak halkası ekleniyor. Fare/dokunmatik tıklamada
   görünmez (:focus-visible), yalnız klavye gezintisinde görünür. */
:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* ===== İç sayfa başlık şeridi (jarallax yok, düz CSS background) ===== */
.page-banner { position: relative; padding: 170px 0 70px; background-size: cover; background-position: center; text-align: center; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17,17,17,.88) 0%, rgba(234,166,54,.55) 100%); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-weight: 700; margin-bottom: 10px; }
.page-banner .breadcrumbs { color: rgba(255,255,255,.85); font-size: 14px; }
.page-banner .breadcrumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Mobilde üst şerit (telefon/e-posta) + header + banner üst üste viewport'un
   büyük kısmını yiyordu (ör. /iletisim 375x812'de ~700-945px, ekranın
   neredeyse tamamı — "Büro Bilgileri" kartına ulaşmadan tüm ekran scroll
   ediliyordu). Görsel/gradient aynı kalır, yalnız dikey boyut küçültülür;
   başlık ve breadcrumbs okunur kalır. */
@media (max-width: 767px) {
  .page-banner { padding: 110px 0 56px; }
  .page-banner h1 { font-size: 32px; line-height: 1.25; margin-bottom: 10px; }
  .page-banner .breadcrumbs { font-size: 13px; }
  /* Satır içi breadcrumb bağlantıları: metin boyutu/aralığı aynı kalır,
     dokunma alanı negatif dikey margin ile >= 44px'e çıkar. */
  .page-banner .breadcrumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 575px) {
  .page-banner { padding: 76px 0 40px; }
  .page-banner h1 { font-size: 26px; line-height: 1.25; margin-bottom: 8px; }
  .page-banner .breadcrumbs { font-size: 12.5px; }
  /* Telefon/e-posta üst şeridi dar telefonlarda kapatılıyor: aynı bilgi
     footer'da (includes/footer.php) ve İletişim sayfasının "Büro Bilgileri"
     kartında (iletisim.php) zaten var; alttaki float-bar da arama/WhatsApp
     kısayolu sunuyor. */
  #topbar { display: none; }
}

.eyebrow-label { display: block; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* ===== Genel bölüm sarmalayıcı ===== */
.section-white { background: #fff; }
.section-offwhite { background: var(--sb-offwhite); }

/* ===== İki sütunlu içerik düzeni (hizmet/makale/araç detayı) ===== */
.content-layout { display: flex; gap: 48px; align-items: flex-start; padding: 90px 0; }
.content-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.content-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .content-layout { flex-direction: column; gap: 32px; padding: 50px 0; } .content-sidebar { width: 100%; } }

.sidebar-card { background: #fff; border: 1px solid var(--sb-border); border-radius: 6px; padding: 24px; box-shadow: var(--sb-shadow-card); }
.sidebar-card h4 { font-size: 17px; margin-bottom: 12px; color: var(--title-font-color); }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { margin-bottom: 10px; font-size: 13.5px; color: var(--sb-text-muted); }
.sidebar-card ul li a { color: inherit; }
.sidebar-card ul li a:hover { color: var(--primary-color); }
.sidebar-cta { background: var(--bg-dark-1); border-radius: 6px; padding: 28px 24px; }
.sidebar-cta h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.sidebar-cta .phone { color: #fff; font-weight: 700; font-size: 15px; }
.toc-link { color: var(--primary-color); font-weight: 500; font-size: 13.5px; display: block; margin-bottom: 10px; }

/* ===== Hakkımızda — yazı/görsel ikili yerleşim ===== */
.about-split { display: flex; align-items: center; gap: 56px; }
.about-split .text { flex: 1; }
.about-split img { flex: 1; height: 360px; border-radius: 6px; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .about-split { flex-direction: column; } }

/* ===== Hesaplama araçları ===== */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-btn {
  background: var(--bg-dark-1); color: #fff; font-weight: 700; font-size: 16px;
  text-align: center; border-radius: 6px; padding: 28px 24px; box-shadow: var(--sb-shadow-card);
  transition: transform .15s ease, background .15s ease; display: block;
}
.tool-btn:hover { transform: translateY(-2px); background: var(--primary-color); color: #fff; }

.calc-card { background: var(--sb-offwhite); border-radius: 8px; padding: 32px; }
.calc-card h3 { font-size: 22px; margin-bottom: 18px; color: var(--title-font-color); }
.calc-result { background: #fff; border: 1px solid var(--sb-border); border-radius: 6px; padding: 24px; margin-top: 20px; font-size: 15px; }
.calc-result strong { color: var(--primary-color); font-size: 22px; }
.calc-disclaimer { background: #FBF0DC; border-left: 3px solid var(--primary-color); padding: 14px 18px; border-radius: 4px; font-size: 13px; color: var(--sb-text-muted); margin-top: 18px; }

.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row .form-group,
.form-row .mb-3 { flex: 1; min-width: 200px; }

/* ===== Etiket / sayfalama ===== */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-pill { background: #FBF0DC; color: #8a5a10; border-radius: 100px; padding: 6px 14px; font-size: 12.5px; font-weight: 500; }
.pagination-simple { text-align: center; color: var(--sb-text-muted); font-size: 14px; padding: 20px 0; }
.pagination-simple a { font-weight: 600; color: var(--primary-color); }
.pagination-simple strong { color: var(--title-font-color); }

/* ===== Zengin metin (makale, hizmet ve araç açıklamaları) ===== */
.rich-text p { margin: 0 0 16px; }
.rich-text h2 { font-size: 22px; margin: 34px 0 14px; color: var(--title-font-color); }
.rich-text h3 { font-size: 18px; margin: 24px 0 10px; color: var(--title-font-color); }
.rich-text ul, .rich-text ol { margin: 0 0 18px; padding-left: 22px; }
.rich-text li { margin-bottom: 8px; }
.rich-text a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.rich-text em { color: var(--sb-text-muted); }

/* ===== S.S.S. (native details/summary) ===== */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--sb-border); padding: 18px 0; }
.faq-item summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--title-font-color); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary-color); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .answer { color: var(--sb-text-muted); font-size: 14.5px; line-height: 1.62; margin-top: 10px; }
.faq-group-title { font-size: 22px; margin-bottom: 4px; color: var(--title-font-color); }
.faq-group { margin-bottom: 36px; }

/* ===== Formlar — form-note geri bildirimi ===== */
.form-note { font-size: 13px; margin-top: 14px; padding: 12px 14px; border-radius: 4px; }
.form-note.success { background: #FBF0DC; color: #8a5a10; }
.form-note.error { background: #FCEAEA; color: #B23434; }

.placeholder-block {
  background: #F0EFEA; border: 1px dashed #D2CDBF; border-radius: 4px;
  color: #6f6b60; font-style: italic; font-size: 13px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; min-height: 90px;
}

/* ===== Kayan "hızlı erişim" çubuğu ===== */
.float-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 100px; box-shadow: var(--sb-shadow-card);
  padding: 10px; display: flex; gap: 10px; z-index: 500;
}
.float-bar .pill { border-radius: 100px; padding: 12px 20px; color: #fff; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.pill-whatsapp { background: var(--sb-whatsapp); }
.pill-contact { background: var(--bg-dark-1); }
.pill-call { background: var(--primary-color); }
@media (max-width: 560px) {
  .float-bar { left: 12px; right: 12px; transform: none; justify-content: center; }
  .float-bar .pill { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 44px; padding: 0 10px; }
  .float-bar .pill span { display: none; }
  .float-bar .pill i { font-size: 17px; }
}
body { padding-bottom: 86px; }
@media (max-width: 767px) { body { padding-bottom: 0; } }
