/*
Theme Name: Mistur Child
Template: twentytwentyfour
Version: 1.0
Description: Mistur Kurumsal - YOOtheme yerine TT4 dÃ¼zen dÃ¼zeltmeleri
*/

/* Tam geniÅŸlik - TT4 layout kÄ±sÄ±tlarÄ±nÄ± kaldÄ±r */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.home .wp-block-post-content,
body.page-id-1 .wp-block-post-content,
body.home .entry-content,
body.page-id-1 .entry-content,
body .wp-block-group.alignwide,
body.home main .wp-block-group,
body.page-id-1 main .wp-block-group {
  max-width: 100% !important;
  width: 100% !important;
}

body .wp-site-blocks {
  padding-top: 0 !important;
}

/* Anasayfa ve sayfa baÅŸlÄ±ÄŸÄ±nÄ± gizle (iÃ§erik kendi hero'sunu kullanÄ±yor) */
body.home .wp-block-post-title,
body.page-id-1 .wp-block-post-title,
body.home .wp-block-spacer,
body.page-id-1 .wp-block-spacer {
  display: none !important;
}

/* Header - Mistur kurumsal */
.mistur-header-bar {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(43, 88, 146, 0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 12px 24px !important;
}

.mistur-header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mistur-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}

.mistur-logo-link img {
  max-height: 56px;
  width: auto;
  height: auto;
}

/* Navigasyon */
.mistur-header-bar .wp-block-navigation {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.mistur-header-bar .wp-block-navigation-item__content,
.mistur-header-bar .wp-block-navigation-item__label {
  color: #2b5892 !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
}

.mistur-header-bar .wp-block-navigation-item__content:hover,
.mistur-header-bar .wp-block-navigation-item__content:focus {
  color: #35a1d9 !important;
}

.mistur-header-bar .wp-block-navigation__submenu-container {
  background: #fff !important;
  border: 1px solid rgba(43, 88, 146, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  min-width: 220px;
}

.mistur-header-bar .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 10px 16px !important;
}

/* Site title fallback gizle (logo varsa) */
.mistur-header-bar .wp-block-site-title {
  display: none !important;
}

/* Ä°Ã§erik alanÄ± padding */
body main.wp-block-group {
  padding: 0 !important;
  margin: 0 !important;
}

body .wp-block-post-content {
  margin-block-start: 0 !important;
  padding: 0 !important;
}

/* Hero ve custom section tam geniÅŸlik */
.yoo-hero-section,
.yp-services-section,
[class*="yoo-"],
[class*="yp-"] {
  box-sizing: border-box;
}

/* Footer sadeleÅŸtir */
.mistur-footer {
  background: #2b5892 !important;
  color: #fff !important;
  padding: 24px !important;
  text-align: center;
  font-size: 14px;
}

.mistur-footer a {
  color: #fff !important;
}

/* Mobil menÃ¼ */
@media (max-width: 781px) {
  .mistur-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mistur-header-bar .wp-block-navigation__responsive-container-open {
    color: #2b5892 !important;
  }
}


/* GÃ¶rÃ¼nÃ¼r CSS paragraflarÄ±nÄ± gizle (filtre kaÃ§Ä±rÄ±rsa) */
.entry-content > p:first-child:not(:has(a)):not(:has(img)) {
  /* fallback - only hide p that look like css */
}
.entry-content p:empty { display: none !important; }

/* TT4 block gap reset */
.wp-block-post-content > * { margin-block-start: 0 !important; }

/* mistur-hero-fix */
.yoo-hero-section {
  position: relative !important;
  background-image: url('https://misturpersonel.com.tr/wp-content/uploads/2026/04/mainback.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 140px 20px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 420px !important;
  box-sizing: border-box !important;
}
.yoo-hero-title,
.yoo-hero-title-h2 {
  color: #ffffff !important;
}
.yoo-hero-desc {
  color: #f1f1f1 !important;
}
@media (max-width: 959px) {
  .yoo-hero-section {
    padding: 80px 20px !important;
    min-height: 320px !important;
  }
  .yoo-hero-title { font-size: 34px !important; }
}

/* mistur-typography */
:root {
  --mistur-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body,
body .wp-block-post-content,
body .entry-content,
.mistur-header-bar,
.mistur-footer,
[class*="yoo-"],
[class*="yp-"] {
  font-family: var(--mistur-font) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
.yoo-hero-title,
.yoo-hero-title-h2,
.yp-title,
.yp-services-title,
.yp-section-title,
.yp-sd-title,
.yp-cp-heading,
.yp-contact-title,
.yp-faq-title,
.yp-feature-title,
.yp-service-name,
.yp-banner-title,
.yp-overlay-line1,
.yp-overlay-line2,
.yp-overlay-line3 {
  font-family: var(--mistur-font) !important;
}

/* Script accent - keep decorative subtitle */
.yp-banner-subtitle {
  font-family: "Brush Script MT", "Segoe Script", "Caveat", cursive !important;
}

/* Nav + buttons: slightly tighter corporate look */
.mistur-header-bar .wp-block-navigation-item__label {
  letter-spacing: 0.01em;
}

.yoo-hero-btn,
.yp-btn,
.yp-kicker,
.yp-services-kicker,
.yp-contact-kicker {
  font-family: var(--mistur-font) !important;
}

/* mistur-layout-width */
html,
body {
  overflow-x: clip;
}
