/*
Theme Name: ProterTemiz Mobile Lite
Theme URI: https://protertemiz.com
Author: Proter Temiz
Description: Proter Temiz için mobil öncelikli, hafif ve dönüşüm odaklı tema.
Version: 1.4.5 (Homepage SEO Mobile Final)
License: GNU General Public License v2 or later
Text Domain: protertemiz-mobile-lite
*/

/* --- GENEL AYARLAR --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

ul {
  margin: 0;
  padding-left: 1rem;
}

:root {
  --color-primary: #004b8d;
  --color-secondary: #22b573;
  --color-muted: #6b7280;
  --color-bg-card: #ffffff;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- BUTONLAR --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #16a766);
  color: #fff;
  box-shadow: 0 12px 25px rgba(34, 181, 115, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #fff;
  color: var(--color-primary);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: rgba(34, 181, 115, 0.12);
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid #cbd5e1;
  background-color: #fff;
  cursor: pointer;
}

.menu-toggle-bars {
  width: 18px;
  height: 14px;
  position: relative;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
  transition: 0.18s ease-out;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 6px; }
.menu-toggle-bars span:nth-child(3) { bottom: 0; }

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  top: 6px; transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  bottom: 6px; transform: rotate(-45deg);
}

/* Mobil Menü */
.main-navigation {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background-color: #fff;
  max-height: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  box-shadow: 0 14px 32px rgba(15,23,42,0.18);
  transition: 0.2s ease-out;
}

.main-navigation.is-open { /* JS ile açılınca bu class eklenir */
  max-height: 360px; opacity: 1; visibility: visible;
  display: block !important; /* Zorunlu görünürlük */
}

/* Fallback: Eğer JS yoksa ve hover ile açılıyorsa */
.menu-toggle:focus + .main-navigation,
.menu-toggle:active + .main-navigation {
   max-height: 360px; opacity: 1; visibility: visible;
}

.main-navigation ul {
  list-style: none;
  margin: 0; padding: 1rem;
}

.main-navigation li + li { margin-top: 0.25rem; }

.main-navigation a {
  display: block; padding: 0.55rem 0.6rem;
  border-radius: 8px; font-size: 0.94rem; color: #0f172a;
}
.main-navigation a:hover { background-color: #f1f5f9; }

.header-phones-desktop { display: none; gap: 0.75rem; font-size: 0.86rem; }

/* --- HERO SECTION --- */
.hero {
  background: radial-gradient(circle at top left, rgba(34,181,115,0.16), transparent 60%),
              radial-gradient(circle at right, rgba(0,75,141,0.16), transparent 60%),
              linear-gradient(to bottom, #ffffff, #eef2ff);
  padding: 1.6rem 0 2.6rem;
}

.hero-inner { display: grid; gap: 1.6rem; }
.hero-title { font-size: 1.8rem; color: #020617; margin-bottom: 0.45rem; }
.hero-subtitle { font-size: 0.98rem; color: var(--color-muted); margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.hero-metric-value { font-size: 1.1rem; font-weight: 700; color: #0f4da8; }
.hero-visual-card {
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-soft);
}

/* --- ORTAK SECTION --- */
.section { padding: 2.3rem 0 0; }
.section-kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-secondary); font-weight: 600; }
.section-title { font-size: 1.24rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  background: #fff; border-radius: 16px; padding: 1rem;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(148,163,184,0.22);
}
.service-icon {
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,75,141,0.1); margin-bottom: 0.5rem;
}

/* --- HIZLI TEKLİF & YORUMLAR --- */
.quote-card { background: #fff; border-radius: 18px; padding: 1.2rem; border: 1px solid rgba(148,163,184,0.25); }
.quote-field { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.8rem; }
.quote-field input, .quote-field select {
  border-radius: 10px; border: 1px solid #d1d5db; padding: 0.6rem; width: 100%;
}
.testimonial-card { background: #fff; border-radius: 14px; padding: 1rem; border: 1px solid #e5e7eb; margin-top: 1rem;}
.final-cta-inner {
  background: linear-gradient(135deg, var(--color-primary), #022c57);
  border-radius: 20px; padding: 1.5rem; color: #fff; margin: 2rem 0;
}
.final-cta-inner p { color: #e2e8f0; }

/* --- İÇERİK SAYFASI (SINGLE) --- */
.entry-section { padding: 2rem 0; }
.entry-article { background: #fff; border-radius: 18px; padding: 1.5rem; border: 1px solid #e5e7eb; }
.entry-content img { border-radius: 12px; margin: 1rem 0; }

/* =========================================
   YENİLENMİŞ FOOTER & MOBİL BAR (DÜZELTİLDİ)
   ========================================= */

.site-footer {
  background: #0b1220; /* Koyu lacivert/siyah */
  color: #e2e8f0;
  padding: 30px 0 20px;
  font-size: 14px;
  font-weight: 300;
  margin-top: auto;
}

/* Footer Grid Yapısı */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 90%;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li,
.footer-contact-list li {
  margin-bottom: 8px;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
}

.footer-contact-list li strong {
  font-weight: 500;
  color: #e2e8f0;
  margin-right: 6px;
  min-width: 60px;
}

.footer-nav-list a,
.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-nav-list a:hover,
.footer-contact-list a:hover {
  color: #ffffff;
  padding-left: 3px;
}

/* Footer Alt (Copyright) */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.footer-legal {
  display: flex;
  gap: 15px;
}

.footer-legal a { color: #64748b; }
.footer-legal a:hover { color: #cbd5e1; }

/* MOBİL YAPIŞKAN BAR (STICKY BAR) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999; /* En üstte durması için */
  padding-bottom: env(safe-area-inset-bottom);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn-call {
  background: #fff;
  color: #1d2939;
  border-top: 1px solid #e2e8f0;
}

.btn-wp {
  background: #25D366;
  color: #fff;
}

.icon { font-size: 18px; }

/* --- RESPONSIVE AYARLAR (MEDYA SORGULARI) --- */

/* Mobil için özel ayar: Footer barın altında kalmasın */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 75px; /* Bar yüksekliği kadar boşluk */
  }
}

/* Tablet ve Masaüstü */
@media (min-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .site-tagline { display: block; }
  .menu-toggle { display: none; }
  
  .main-navigation {
    position: static; max-height: none; opacity: 1; visibility: visible;
    box-shadow: none; display: block !important;
  }
  .main-navigation ul { display: flex; gap: 1.4rem; padding: 0; }
  .main-navigation a { padding: 0.3rem 0; border-radius: 0; }
  
  .header-phones-desktop { display: inline-flex; }
  
  .hero-inner { grid-template-columns: 1.35fr 0.9fr; align-items: center; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  
  /* Footer Masaüstü Düzeni */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  /* Masaüstünde mobil barı gizle */
  .mobile-sticky-bar { display: none; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 2.2rem; }
}
/* Header logo ana sayfa linki */
.site-branding-link{display:flex;align-items:center;text-decoration:none;color:inherit}
.site-branding-link:hover{text-decoration:none}
.site-branding-link .site-tagline{display:block}
.site-logo img,.custom-logo{max-height:64px;width:auto;display:block}


/* --- ANA SAYFA SEO + MOBIL OKUNABILIRLIK V4.5 --- */
.seo-home-card {
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.seo-home-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}
.seo-home-grid > div,
.faq-grid details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
}
.seo-home-grid h3 { font-size: 1rem; color: var(--color-primary); }
.district-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.district-links a {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: .55rem .8rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-primary);
}
.faq-grid summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}
.faq-grid p { margin-bottom: 0; color: var(--color-muted); }

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .container { padding-left: .9rem; padding-right: .9rem; }
  .hero { padding-top: 1rem; padding-bottom: 1.6rem; }
  .badge { font-size: .72rem; max-width: 100%; }
  .hero-title { font-size: 1.55rem; line-height: 1.22; }
  .hero-subtitle { font-size: .94rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn,
  .final-cta-actions .btn,
  .quote-field button { width: 100%; white-space: normal; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .section { padding-top: 1.6rem; }
  .section-title { font-size: 1.18rem; line-height: 1.28; }
  .section-description { font-size: .94rem; }
  .hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; }
  .hero-metric-label { font-size: .72rem; }
  .hero-metric-value { font-size: 1rem; }
  .district-links { display: grid; grid-template-columns: 1fr; }
  .district-links a { border-radius: 12px; }
  .final-cta-inner { padding: 1.1rem; }
  .main-navigation.is-open { max-height: calc(100vh - 64px); overflow-y: auto; }
}

@media (min-width: 768px) {
  .seo-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
