/* mustafaguner.com — v5.0.0 ana sayfa (MG-073). Yalnız patterns/home.php için (.mgh-* sınıfları).
   Ortak bileşenler (.mg5-section, .mg5-head, .mg5-card, .mg5-stats, .mg5-steps, .mg5-faq, .mg5-cta, .mg5-split) style.css'te (Ajan 1).
   Bu dosya yalnız sayfaya özel parçaları ekler: hero ayarı, sorun kartı ikonu, 5 hizmet ızgarası, zaman çizelgesi, araç çipleri, ikincil düğme.
   Renk/font yalnız theme.json preset'leri. */

/* ---------- 1.1 Hero ---------- */
.mgh-hero__tag { margin-bottom: 0; }
.mgh-hero__title { font-size: clamp(34px, 4.6vw, 56px) !important; line-height: 1.1 !important; letter-spacing: -0.025em; max-width: 15em; text-wrap: balance; }
.mgh-hero__lead { max-width: 600px; }
.mgh-hero .mg5-actions { margin-top: 32px; }

/* ---------- İkincil düğme (bölüm sonu bağlantıları; ana CTA değil) ---------- */
.mgh-more { margin: 40px 0 0; }
.mgh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; box-sizing: border-box; border-radius: 12px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--border-strong); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; transition: border-color .2s ease; }
.mgh-btn:hover { border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }

/* ---------- 1.3 Dört sorun: kartsız, numaralı (01–04), ince çizgili liste; ≥782 px iki kolon (QA O-4, H-4) ---------- */
.mgh-problems__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 64px; border-top: 1px solid var(--wp--preset--color--line); }
.mgh-problem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 24px; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
/* 360 px: numara başlığın üstünde, metin tam sütun genişliğinde (yaslı metinde boşluk açılmasın) */
.mgh-problem__num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -.03em; color: var(--wp--preset--color--indigo); font-variant-numeric: tabular-nums; }
.mgh-problem__body { min-width: 0; }
.mgh-problem h3 { margin: 2px 0 10px; font-family: var(--wp--preset--font-family--heading); font-size: 21px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; color: var(--wp--preset--color--ink); }
.mgh-problem p { margin: 0; font-size: 16px; line-height: 26px; color: var(--wp--preset--color--muted); }
@media (min-width: 782px) {
  .mgh-problems__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mgh-problem { grid-template-columns: 72px minmax(0, 1fr); padding: 36px 0; }
  .mgh-problems__list { column-gap: 56px; }
  .mgh-problem__num { font-size: 44px; line-height: 44px; }
  .mgh-problem p { font-size: 17px; line-height: 28px; }
}

/* ---------- 1.4 Beş çalışma alanı: eşit genişlikte kartlar, alt satır ortalı (QA H-8) ---------- */
/* 640–1023 px: 2 + 2 + 1 (son kart ortada, aynı genişlik); ≥1024 px: 3 + 2 (alttaki iki kart aynı genişlikte, ortalı) */
@media (min-width: 640px) and (max-width: 1023px) {
  .mg5-grid.mgh-services__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mgh-services__list > li { grid-column: span 2; }
  .mgh-services__list > li:last-child { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
  .mg5-grid.mgh-services__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mgh-services__list > li { grid-column: span 2; }
  .mgh-services__list > li:nth-child(4) { grid-column: 2 / span 2; }
  .mgh-services__list > li:nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- 1.6 / 1.10 gizli bölümler (bayrakla açılınca) ---------- */
.mgh-teaser .mg5-h2 a { color: inherit; text-decoration: none; }
.mgh-teaser__text { max-width: 720px; }

/* ---------- 1.7 Zaman çizelgesi: dikey, tarih solda ---------- */
.mgh-tl { list-style: none; margin: 0; padding: 0; position: relative; max-width: 960px; }
.mgh-tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--wp--preset--color--line); }
.mgh-tl__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0 0 24px 32px; }
.mgh-tl__item:last-child { padding-bottom: 0; }
.mgh-tl__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--wp--preset--color--paper); border: 3px solid var(--wp--preset--color--indigo); }
.mgh-tl__item.is-current::before { background: var(--wp--preset--color--amber); border-color: var(--wp--preset--color--ink); }
.mgh-tl__date { margin: 0 0 4px; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 17px; line-height: 26px; color: var(--wp--preset--color--indigo); font-variant-numeric: tabular-nums; }
.mgh-tl__text { margin: 0; font-size: 16px; line-height: 26px; color: var(--wp--preset--color--ink); }
@media (min-width: 782px) {
  .mgh-tl::before { left: 167px; }
  .mgh-tl__item { grid-template-columns: 136px minmax(0, 1fr); gap: 0 64px; padding: 0 0 32px; }
  .mgh-tl__item::before { left: 161px; }
  .mgh-tl__date { margin: 0; text-align: right; white-space: nowrap; }
  .mgh-tl__text { font-size: 17px; line-height: 27px; }
}

/* ---------- 1.8 Kısaca ben ---------- */
.mgh-about__text { margin: 0; font-size: 17px; line-height: 28px; color: var(--wp--preset--color--ink); }
.mgh-about .mgh-more { margin-top: 28px; }
.mgh-about .mg5-h2 { margin-bottom: 0; }
@media (min-width: 782px) { .mgh-about__text { font-size: 19px; line-height: 31px; } }

/* ---------- 1.9 Araçlar: 5 grup, çip ---------- */
.mgh-tools__list { margin: 0; border-top: 1px solid var(--wp--preset--color--line); }
.mgh-tools__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.mgh-tools__row dt { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 17px; line-height: 26px; color: var(--wp--preset--color--ink); }
.mgh-tools__row dd { margin: 0; min-width: 0; }
.mgh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mgh-chips li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--wp--preset--color--ink); }
@media (min-width: 782px) {
  .mgh-tools__row { grid-template-columns: 240px minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding: 24px 0; }
  .mgh-chips li { white-space: nowrap; }
}

/* ---------- 1.11 SSS: düğme ---------- */
.mgh-faq .mgh-more { margin-top: 32px; }

/* ---------- Hizalama (style.css 1.9.9 genel yaslama kuralına sayfa içi istisna) ----------
   Kısa öğeler (zaman çizelgesi satırları dahil) sola; uzun gövde paragrafları (hero metni, Kısaca ben) yaslı kalır. */
html body main .mgh-more, html body main .mgh-tl__date, html body main .mgh-tl__text, html body main .mgh-chips li, html body main .mgh-tools__row,
html body main .mgh-stats .mg5-stats__note, html body main .mgh-problem {
  text-align: left !important; -webkit-hyphens: manual; hyphens: manual;
}
html body main .mgh-about__text { text-align: justify !important; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 782px) { html body main .mgh-tl__date { text-align: right !important; } }

/* ---------- Mobil düğmeler tam genişlik ---------- */
@media (max-width: 639px) {
  .mgh-hero .mg5-actions .wp-block-button { flex: 1 1 100%; }
  .mgh-hero .mg5-actions .wp-block-button__link { width: 100%; justify-content: center; }
  .mgh-cta .wp-block-buttons, .mgh-cta .wp-block-button { width: 100%; }
  .mgh-cta .wp-block-button__link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .mgh-btn { transition: none; } }

/* 5.0.0 v3 — telefonda sola hizalı (Mustafa kararı, 29.11.2026) */
@media (max-width: 599px) { html body main .mgh-about__text { text-align: left !important; -webkit-hyphens: manual; hyphens: manual; } }
