/* Pendik Avukatlık Bürosu — iç sayfa yardımcı sınıfları.
   JustLaw şablonunun CSS'inden SONRA yüklenir; global eleman seçicileri
   (body/container/header/footer/hero/nav) buraya KASITLI OLARAK konulmadı —
   onlar şablonun kendi stilinde kalır (marka rengi zaten style.css içinde
   #da0000 -> #145C43 olarak sed ile değiştirildi, CSS custom property yok).
   Burada sadece şablonda bulunmayan, kendi özelliklerimize (hesaplama
   araçları, iki sütunlu makale/hizmet detay sayfaları, form kartları) özgü
   sınıflar tanımlanır. */

:root {
  --pd-brand: #145C43;
  --pd-brand-dark: #0E3F2E;
  --pd-dark: #0b1c39;
  --pd-offwhite: #F7F8F6;
  --pd-text-muted: #666a72;
  --pd-border: #E6E6E6;
  --pd-shadow-card: 0 10px 28px rgba(11, 28, 57, 0.08);
  --pd-shadow-btn: 0 6px 14px rgba(14, 63, 46, 0.28);
  --pd-placeholder-bg: #F2F2F3;
  --pd-placeholder-border: #B3B8C2;
  --pd-placeholder-text: #73788A;
  --pd-whatsapp: #26C064;
}

#scrollUp { display: none !important; }

/* ===== Klavye erişilebilirliği =====
   JustLaw şablonu (style.css) a/.button/.btn/.form-control için :focus
   anahatını tamamen kaldırıyor (outline:0/none). Mouse/dokunma tıklamasını
   değiştirmeden, sadece klavyeyle gezinirken marka rengiyle anahat göster.
   !important: şablonun ".btn:focus{outline:0}" gibi sınıf+pseudo-class
   kurallarının özgüllüğü düz ":focus-visible"den yüksek, aksi halde ezilir. */
:focus-visible {
  outline: 2px solid var(--pd-brand) !important;
  outline-offset: 2px !important;
}

/* Sayfa şablonlarındaki satır-içi style="" öznitelikleri bu takma adları kullanır. */
:root { --text-dark: var(--pd-dark); --text-muted: var(--pd-text-muted); --offwhite: var(--pd-offwhite); --bronze: var(--pd-brand); }

/* ===== Genel bölüm sarmalayıcı (JustLaw'ın section-padding30/section-padding'i dışında, iç sayfa jenerik kullanım) ===== */
.section { padding: 100px 0; }
.section-white { background: #fff; }
.section-offwhite { background: var(--pd-offwhite); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.eyebrow-row .line { width: 28px; height: 1px; background: var(--pd-brand); }
.eyebrow-row span { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--pd-brand); text-transform: uppercase; }
.section-title { font-family: "Playfair Display", serif; font-size: 32px; font-weight: 700; margin-bottom: 14px; color: var(--pd-dark); }
.section-sub { font-size: 16px; color: var(--pd-text-muted); line-height: 1.6; }
@media (max-width: 767px) { .section { padding: 56px 0; } .section-title { font-size: 26px; } }

/* ===== Sayfa başlığı şeridi (hero-cap içine kırıntı eklenir) ===== */
.hero-cap .breadcrumb-row { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.hero-cap .breadcrumb-row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-cap h2 { overflow-wrap: break-word; }

/* ===== Basit düğme varyantları (şablonun .btn'inden ayrı, ikincil eylemler için) ===== */
.btn-outline-light { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 5px; padding: 14px 26px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-light:hover { background: #fff; color: var(--pd-brand-dark); }

/* ===== Değerler/ilkeler grid'i (4 sütun, ör. Hakkımızda) ===== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.values-grid .value-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--pd-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; }
.values-grid h3 { font-family: "Playfair Display", serif; font-size: 17px; margin-bottom: 8px; color: var(--pd-dark); }
.values-grid p { font-size: 13.5px; color: var(--pd-text-muted); line-height: 1.55; }

/* ===== Pratik alan / blog kartları (iç sayfa grid'leri) ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } }

.pcard { background: #fff; border-radius: 6px; box-shadow: var(--pd-shadow-card); overflow: hidden; display: flex; flex-direction: column; text-align: center; padding: 40px 28px; }
.pcard .pcard-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--pd-brand); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.pcard h3 { font-family: "Playfair Display", serif; font-size: 19px; color: var(--pd-dark); margin-bottom: 10px; }
.pcard h3 a { color: inherit; }
.pcard p.desc { color: var(--pd-text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.pcard .read-more { color: var(--pd-brand); font-weight: 600; font-size: 13px; }

.blog-card { background: #fff; border-radius: 6px; box-shadow: var(--pd-shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.blog-card img { height: 190px; object-fit: cover; width: 100%; }
.blog-card .inner { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .date { font-size: 12px; font-style: italic; color: var(--pd-brand); }
.blog-card h3 { font-family: "Playfair Display", serif; font-size: 17px; color: var(--pd-dark); }
.blog-card p.excerpt { color: var(--pd-text-muted); font-size: 13.5px; line-height: 1.55; }
.blog-card .read-more { color: var(--pd-brand); font-weight: 600; font-size: 13px; margin-top: auto; }

/* ===== İki sütunlu içerik düzeni (hizmet/makale/araç detayı) ===== */
.content-layout { display: flex; gap: 48px; align-items: flex-start; }
.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; } .content-sidebar { width: 100%; } }

.sidebar-card { background: #fff; border: 1px solid var(--pd-border); border-radius: 6px; padding: 24px; }
.sidebar-card h4 { font-family: "Playfair Display", serif; font-size: 17px; margin-bottom: 12px; color: var(--pd-dark); }
.sidebar-card ul li { margin-bottom: 10px; font-size: 13.5px; color: var(--pd-text-muted); }
.sidebar-card ul li a:hover { color: var(--pd-brand); }
.sidebar-cta { background: var(--pd-brand); 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(--pd-brand); font-weight: 500; font-size: 13.5px; display: block; margin-bottom: 10px; }

.placeholder-block {
  background: var(--pd-placeholder-bg); border: 1px dashed var(--pd-placeholder-border); border-radius: 4px;
  color: var(--pd-placeholder-text); font-style: italic; font-size: 13px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; min-height: 90px;
}

/* ===== Hakkımızda — yazı/görsel ikili yerleşim ===== */
.about-split { display: flex; align-items: center; gap: 64px; }
.about-split .text { flex: 1; }
.about-split .text h2 { font-family: "Playfair Display", serif; font-size: 28px; line-height: 1.28; margin-bottom: 18px; color: var(--pd-dark); }
.about-split .text p { color: var(--pd-text-muted); font-size: 15px; line-height: 1.68; }
.about-split img, .about-split .placeholder-block { flex: 1; height: 340px; border-radius: 6px; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .about-split { flex-direction: column; } }

/* ===== Formlar (iletişim, hızlı mesaj) ===== */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--pd-dark); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--pd-border); border-radius: 5px; padding: 13px 14px; font-family: "Roboto", sans-serif; font-size: 14px;
  background: #fff; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row .form-field { flex: 1; min-width: 200px; }
.form-note { font-size: 13px; margin-top: 14px; padding: 12px 14px; border-radius: 4px; }
.form-note.success { background: #EAF7EE; color: #1E7A3B; }
.form-note.error { background: #FCEAEA; color: #B23434; }

.lead-form-box { background: var(--pd-offwhite); border-radius: 8px; padding: 32px; width: 380px; flex-shrink: 0; }
.lead-form-box h3 { font-family: "Playfair Display", serif; font-size: 20px; margin-bottom: 18px; color: var(--pd-dark); }
@media (max-width: 900px) { .lead-form-box { width: 100%; } }

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

.calc-card { background: var(--pd-offwhite); border-radius: 8px; padding: 32px; }
.calc-card h3 { font-family: "Playfair Display", serif; font-size: 22px; margin-bottom: 18px; color: var(--pd-dark); }
.calc-result { background: #fff; border: 1px solid var(--pd-border); border-radius: 6px; padding: 24px; margin-top: 20px; font-size: 15px; }
.calc-result strong { color: var(--pd-brand-dark); font-size: 22px; font-family: "Playfair Display", serif; }
.calc-disclaimer { background: #eef6f1; border-left: 3px solid var(--pd-brand); padding: 14px 18px; border-radius: 4px; font-size: 13px; color: var(--pd-text-muted); margin-top: 18px; }

/* ===== Etiket / sayfalama ===== */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-pill { background: #eef6f1; color: var(--pd-brand); border-radius: 100px; padding: 6px 14px; font-size: 12.5px; font-weight: 500; }
.pagination { text-align: center; color: var(--pd-text-muted); font-size: 14px; padding: 40px 0 90px; }
.pagination a { font-weight: 600; }

/* ===== Zengin metin (makale, hizmet ve araç açıklamaları) ===== */
.rich-text p { margin: 0 0 16px; }
.rich-text h2 { font-family: "Playfair Display", serif; font-size: 22px; margin: 34px 0 14px; color: var(--pd-dark); }
.rich-text h3 { font-family: "Playfair Display", serif; font-size: 18px; margin: 24px 0 10px; color: var(--pd-dark); }
.rich-text ul, .rich-text ol { margin: 0 0 18px; padding-left: 22px; }
.rich-text li { margin-bottom: 8px; }
.rich-text a { color: var(--pd-brand); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--pd-brand-dark); }
.rich-text em { color: var(--pd-text-muted); }
.article-body > p:first-child { font-size: 16.5px; }

/* ===== 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(--pd-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(--pd-whatsapp); }
.pill-contact { background: var(--pd-dark); }
.pill-call { background: var(--pd-brand); }
@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; }

/* ===== S.S.S. (native details/summary — hizmet/araç detay sayfalarında) ===== */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--pd-border); padding: 18px 0; }
.faq-item summary { font-family: "Playfair Display", serif; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--pd-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--pd-brand); font-size: 20px; font-family: "Roboto", sans-serif; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .answer { color: var(--pd-text-muted); font-size: 14.5px; line-height: 1.62; margin-top: 10px; }

.faq-group-title { font-family: "Playfair Display", serif; font-size: 22px; margin-bottom: 4px; color: var(--pd-dark); }
.faq-group { margin-bottom: 36px; }

@media (max-width: 767px) {
  .section-padding30, .section-padding { padding: 56px 0; }
  .content-layout { gap: 32px; }
  .lead-form-box, .calc-card { padding: 22px 18px; }
  .form-row { flex-direction: column; gap: 0; }
  body { padding-bottom: 0; }
}

/* ===== Dokunma hedefleri (mobil/dokunmatik, >= 44px) =====
   İçerik kenar sütunu bağlantıları (TOC, ilgili hizmet/makale listeleri),
   kart "devamını oku" bağlantıları, sayfalama ve S.S.S. başlığı varsayılan
   olarak sadece metin satırı yüksekliğindeydi (~16-20px). */
@media (max-width: 1139px), (pointer: coarse) {
  .toc-link { min-height: 44px; display: flex; align-items: center; padding: 10px 0; margin-bottom: 0; }
  .sidebar-card ul li { margin-bottom: 0; }
  .sidebar-card ul li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
  .pcard .read-more, .blog-card .read-more { display: inline-flex; align-items: center; min-height: 44px; }
  .pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .faq-item summary { min-height: 44px; }
}
