/* Ataşehir Avukatlık Bürosu — iç sayfa yardımcı sınıfları.
   LegalCare (Colorlib) şablonunun CSS'inden SONRA yüklenir. Şablonda CSS
   custom property yok; marka rengi zaten assets/legalcare/css/style.css
   içinde #afa939 -> #B8560E (bakır/turuncu) olarak sed ile değiştirildi.
   Burada yalnızca şablonda bulunmayan, kendi özelliklerimize (hesaplama
   araçları, iki sütunlu makale/hizmet detay sayfaları, form kartları,
   S.S.S.) özgü sınıflar tanımlanır. */

:root {
  --at-brand: #B8560E;
  --at-brand-dark: #8A4009;
  --at-dark: #212529;
  --at-offwhite: #F7F5F2;
  --at-text-muted: #6c757d;
  --at-border: #E8E4DD;
  --at-shadow-card: 0 10px 28px rgba(33, 37, 41, 0.08);
  --at-whatsapp: #26C064;
  /* satır-içi style="" öznitelikleri için takma adlar */
  --text-dark: #212529;
  --text-muted: #6c757d;
  --offwhite: #F7F5F2;
  --bronze: #B8560E;
}

/* ===== Sayfa başlığı şeridi (şablonun hero-wrap-2'si zaten var, burada
   yalnızca nesne fotoğrafı kullanırken okunabilirlik için koyu katman) ===== */
.hero-wrap .overlay { background: rgba(20, 16, 12, 0.72); }

/* Mobilde iç sayfa üst şeridi (.hero-wrap-2 — iletişim, hesaplama araçları,
   blog/hizmet detayı vb.) sabit 700px yükseklikte: 375x812 mobil viewport'ta
   ekranın ~%86'sını kaplıyor, kullanıcı forma/hesaplayıcıya ulaşmadan önce
   neredeyse tüm ekranı scroll etmek zorunda kalıyordu (DevTools ile ölçüldü:
   tam 700px). Anasayfanın kendi hero'su ayrı bir class kullanır
   (.hero-wrap.js-fullheight — hero-wrap-2 YOK), bu kuraldan etkilenmez. */
@media (max-width: 767px) {
  .hero-wrap.hero-wrap-2,
  .hero-wrap.hero-wrap-2 .slider-text { height: 300px; }
  .hero-wrap.hero-wrap-2 .slider-text h1 { font-size: 26px; line-height: 1.3; margin-bottom: 10px !important; }
  .hero-wrap.hero-wrap-2 .slider-text .breadcrumbs { font-size: 13px; margin-bottom: 8px; }
  .hero-wrap.hero-wrap-2 .slider-text .pb-5 { padding-bottom: 24px !important; }
  /* Breadcrumb bağlantıları: satır içi metin/ikon dokunma alanını büyüt */
  .hero-wrap.hero-wrap-2 .breadcrumbs span a { display: inline-block; padding: 8px 2px; margin: -8px 0; }
}
@media (max-width: 575px) {
  .hero-wrap.hero-wrap-2,
  .hero-wrap.hero-wrap-2 .slider-text { height: 220px; }
  .hero-wrap.hero-wrap-2 .slider-text h1 { font-size: 21px; margin-bottom: 8px !important; }
  .hero-wrap.hero-wrap-2 .slider-text .breadcrumbs { font-size: 12px; margin-bottom: 6px; }
  .hero-wrap.hero-wrap-2 .slider-text .pb-5 { padding-bottom: 16px !important; }
}

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

/* ===== İ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(--at-border); border-radius: 6px; padding: 24px; }
.sidebar-card h4 { font-size: 17px; margin-bottom: 12px; color: var(--at-dark); }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { margin-bottom: 10px; font-size: 13.5px; color: var(--at-text-muted); }
.sidebar-card ul li a { color: inherit; }
.sidebar-card ul li a:hover { color: var(--at-brand); }
.sidebar-cta { background: var(--at-dark); 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(--at-brand); 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: 64px; }
.about-split .text { flex: 1; }
.about-split .text h2 { font-size: 28px; line-height: 1.28; margin-bottom: 18px; color: var(--at-dark); }
.about-split .text p { color: var(--at-text-muted); font-size: 15px; line-height: 1.68; }
.about-split img { flex: 1; height: 340px; 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(--at-dark); color: #fff; font-weight: 700; font-size: 16px;
  text-align: center; border-radius: 6px; padding: 28px 24px; box-shadow: var(--at-shadow-card);
  transition: transform .15s ease, background .15s ease; display: block;
}
.tool-btn:hover { transform: translateY(-2px); background: var(--at-brand); color: #fff; }

.calc-card { background: var(--at-offwhite); border-radius: 8px; padding: 32px; }
.calc-card h3 { font-size: 22px; margin-bottom: 18px; color: var(--at-dark); }
.calc-card .form-group label { font-weight: 600; font-size: 13px; color: var(--at-dark); }
.calc-result { background: #fff; border: 1px solid var(--at-border); border-radius: 6px; padding: 24px; margin-top: 20px; font-size: 15px; }
.calc-result strong { color: var(--at-brand-dark); font-size: 22px; }
.calc-disclaimer { background: #FBE9DC; border-left: 3px solid var(--at-brand); padding: 14px 18px; border-radius: 4px; font-size: 13px; color: var(--at-text-muted); margin-top: 18px; }

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

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

/* ===== 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(--at-dark); }
.rich-text h3 { font-size: 18px; margin: 24px 0 10px; color: var(--at-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(--at-brand); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--at-brand-dark); }
.rich-text em { color: var(--at-text-muted); }

/* ===== S.S.S. (native details/summary) ===== */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--at-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(--at-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--at-brand); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .answer { color: var(--at-text-muted); font-size: 14.5px; line-height: 1.62; margin-top: 10px; }
.faq-group-title { font-size: 22px; margin-bottom: 4px; color: var(--at-dark); }
.faq-group { margin-bottom: 36px; }

/* ===== Formlar — form-note geri bildirimi (şablonun .form-control'ü zaten var) ===== */
.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; }

.placeholder-block {
  background: #F0EFEB; border: 1px dashed #C9C2B4; border-radius: 4px;
  color: #74706A; 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(--at-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(--at-whatsapp); }
.pill-contact { background: var(--at-dark); }
.pill-call { background: var(--at-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; }
@media (max-width: 767px) {
  .content-layout { gap: 32px; }
  .calc-card { padding: 22px 18px; }
  body { padding-bottom: 0; }
}

/* Teknik SEO/tasarım denetimi: 7 Türkçe menü öğesi + "Ön Görüşme Talebi"
   butonu, .navbar-nav'ın varsayılan flex-wrap:nowrap'ı yüzünden
   992-1200px arası genişliklerde (ör. 1024px tablet) viewport dışına
   taşıp kırpılıyordu (navbar-expand-lg hamburger'e yalnızca <992px'te
   geçiyor). Bu aralıkta dolguyu/yazı boyutunu daraltıyoruz. */
@media (min-width: 992px) and (max-width: 1200px) {
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .ftco-navbar-light .navbar-nav > .nav-item.cta > a { padding-left: 12px; padding-right: 12px; font-size: 13px; white-space: nowrap; }
}

/* ===== Dokunma hedefleri (mobil açılır menü, menü düğmesi, düğmeler,
   sayfalama) — şablonun mobil görünümde menü linklerinden dikey dolguyu
   sıfırlaması (<=991.98px) dokunma yüksekliğini küçültüyordu. ===== */
@media (max-width: 991.98px) {
  .ftco-navbar-light .navbar-toggler { min-height: 44px; display: inline-flex; align-items: center; }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    min-height: 44px; display: flex; align-items: center;
    padding-top: 12px; padding-bottom: 12px;
  }
  .ftco-navbar-light .navbar-nav > .nav-item.cta > a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 767px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pagination-simple a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
}

/* ===== Klavye erişilebilirliği: odak göstergesi =====
   Şablonda (LegalCare/Bootstrap 4) yalnızca :focus kuralları var, hiçbir
   yerde görünür bir :focus-visible anahat (outline) tanımı yok — klavyeyle
   gezinirken odaklanılan öğe belirsiz kalıyordu. Marka rengiyle evrensel
   bir anahat ekleniyor. */
:focus-visible { outline: 2px solid var(--at-brand); outline-offset: 2px; }

/* ===== Makale içeriğinde (rich-text) olası tablo taşma koruması =====
   Şu an seed içerikte <table> kullanılmıyor, ancak ileride eklenebilecek
   bir karşılaştırma tablosu mobilde yatay taşıp sayfa genişliğini
   bozmasın diye sarmalayıcı davranış tanımlanıyor. */
.rich-text table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
