/*
Theme Name: Mega Halı Yıkama
Theme URI:
Author: Web Tasarım
Description: Pırıl Halı Yıkama için özel hazırlanmış kurumsal WordPress teması.
Version: 1.0
Text Domain: piril
*/

/* --- DEĞİŞKENLER VE SIFIRLAMA --- */
:root {
    --primary: #ff7c01;
    --primary-dark: #0284c7;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }
body { color: #334155; background-color: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 20px 0; }
.bg-light { background-color: var(--light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; }
.section-title p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- NAVBAR (MENÜ) --- */
nav { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.3s ease; padding: 20px 0; background: transparent; }
nav.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); padding: 15px 0; }
nav.scrolled * { color: var(--dark); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
nav.scrolled .logo { color: var(--dark); }
.logo i { color: var(--primary); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #fff; font-weight: 500; transition: color 0.3s; }
nav.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--primary); }
.btn { padding: 12px 24px; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-whatsapp { background: var(--secondary); color: #fff !important; }
.btn-whatsapp:hover { background: #059669; transform: translateY(-2px); }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; background: none; border: none; cursor: pointer; }
nav.scrolled .mobile-menu-btn { color: var(--dark); }

/* --- HERO (ANA AFİŞ) --- */
.hero { height: 100vh; background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), center/cover; display: flex; align-items: center; text-align: center; color: #fff; padding-top: 80px; }
.hero h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #e2e8f0; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- İSTATİSTİKLER --- */
.stats { background: var(--primary); color: #fff; padding: 40px 0; margin-top: -50px; position: relative; z-index: 10; border-radius: 10px; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.stat-item p { font-size: 1rem; opacity: 0.9; }

/* --- NASIL ÇALIŞIYORUZ --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.process-step { position: relative; padding: 30px 20px; background: #fff; border-radius: 15px; border: 1px solid var(--border); transition: all 0.3s; }
.process-step:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.step-icon { width: 80px; height: 80px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); margin: 0 auto 20px; transition: all 0.3s; }
.process-step:hover .step-icon { background: var(--primary); color: #fff; }
.process-step h3 { margin-bottom: 10px; font-size: 1.2rem; }
.process-step p { color: var(--gray); font-size: 0.9rem; }

/* --- HİZMETLERİMİZ --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: all 0.3s; position: relative; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.service-img { height: 220px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-img img { transform: scale(1.1); }
.service-content { padding: 25px; }
.service-content h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-content p { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }
.service-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.service-link:hover { gap: 10px; }

/* --- BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border-radius: 15px; overflow: hidden; border: 1px solid var(--border); }
.blog-img { height: 200px; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { padding: 20px; }
.blog-date { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; display: block; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.blog-content p { color: var(--gray); font-size: 0.95rem; margin-bottom: 15px; }

/* --- SSS --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.faq-item details { padding: 20px; }
.faq-item summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); transition: transform 0.3s; }
.faq-item details[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin-top: 15px; color: var(--gray); padding-top: 15px; border-top: 1px solid var(--border); }

/* --- İLETİŞİM --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info { background: var(--dark); color: #fff; padding: 50px; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; }
.contact-info p { color: #94a3b8; margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; color: var(--primary); }
.info-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-item p { margin-bottom: 0; color: #cbd5e1; }
.contact-form { padding: 50px; }
.contact-form h3 { font-size: 1.8rem; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 10px; outline: none; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; justify-content: center; font-size: 1.1rem; }

/* --- FOOTER --- */
footer { background: #020617; color: #fff; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-about p { color: #94a3b8; margin-top: 15px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-links h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #94a3b8; transition: color 0.3s; }
.footer-links ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .process-grid, .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: #fff; flex-direction: column; padding: 40px 20px; transition: 0.3s; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    .nav-links a { color: var(--dark); font-size: 1.2rem; }
    .nav-links .btn { display: none; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .stats { margin-top: 20px; padding: 30px 20px; width: 90%; margin-left: auto; margin-right: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .process-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* WP Sınıfları İçin Ekler */
.nav-links li { list-style: none; }
.blog-content .service-link { display: inline-block; margin-top: 10px; }
/* --- HEADER YENİ EKLENTİLER (Logo ve Arama Butonu) --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    z-index: 1001; /* Mobil menü üstünde kalması için */
}

/* WP Custom Logo Sınıfları */
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Sağ Alan (Arama + Mobil Buton) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

/* Hızlı Arama Butonu */
.btn-call-now {
    background: var(--secondary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}
.btn-call-now:hover {
    background: #059669;
    transform: scale(1.05);
}
nav.scrolled .btn-call-now { color: #fff !important; }

/* Menü Öğeleri WP Fix */
.nav-links li { list-style: none; }

/* Telefon İkonu Titreme Efekti (Dikkat Çekici) */
@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* MOBİL GÖRÜNÜM UYUMLULUĞU */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .btn-call-now {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Mobil menü açıldığında ortalanması için */
    .nav-links {
        justify-content: center;
        align-items: center;
    }
    .nav-links li {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .call-text {
        display: none; /* Çok dar ekranlarda sadece ikon görünsün (yerden tasarruf) */
    }
    .custom-logo-link img {
        max-height: 40px;
    }
}
/* ==========================================================================
   1. AÇILIR MENÜ (DROPDOWN) DÜZELTMELERİ
   ========================================================================== */
.nav-links li {
    position: relative;
}

/* Alt menüyü varsayılan olarak gizle ve konumlandır */
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid var(--border);
}

/* Üstüne gelince alt menüyü göster */
.nav-links li:hover > .sub-menu {
    display: block;
}

/* Alt menü elemanları tasarımı */
.nav-links .sub-menu li {
    margin: 0;
    width: 100%;
}

.nav-links .sub-menu a {
    color: var(--dark) !important;
    padding: 10px 20px;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s;
}

/* Alt menü linkine üzerine gelindiğinde efekt */
.nav-links .sub-menu a:hover {
    background: var(--light);
    color: var(--primary) !important;
    padding-left: 25px;
}

/* ==========================================================================
   2. İÇ SAYFALARDA MENÜYÜ GÖRÜNÜR YAPMA (ŞEFFAFLIĞI KALDIRMA)
   ========================================================================== */
/* WordPress'in atadığı 'home' (ana sayfa) sınıfı OLMAYAN tüm sayfalarda menü arka planını beyaz yap */
body:not(.home) nav#navbar {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

/* İç sayfalarda logo, linkler ve mobil butonun rengini koyu yap ki okunsun */
body:not(.home) nav#navbar .logo,
body:not(.home) nav#navbar .logo i,
body:not(.home) nav#navbar .nav-links a,
body:not(.home) nav#navbar .mobile-menu-btn {
    color: var(--dark);
}

/* Yukarıdaki kurallardan etkilenmemesi için Hemen Ara butonunun içindeki renkleri koru */
body:not(.home) nav#navbar .btn-call-now,
body:not(.home) nav#navbar .btn-call-now * {
    color: #fff !important; 
}


/* ==========================================================================
   3. MOBİL İÇİN ALT MENÜ (DROPDOWN) DÜZENLEMESİ
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links .sub-menu {
        position: static; /* Mobilde açılır kutu yerine alt alta listele */
        box-shadow: none;
        border: none;
        background: var(--light);
        padding: 0;
    }
    .nav-links .sub-menu a {
        padding-left: 40px; /* Mobilde alt eleman olduğu belli olsun diye girinti ver */
        font-size: 1.05rem;
    }
}
/* --- NAVİGASYON: HER ZAMAN SABİT VE BEYAZ --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0; /* Menü yüksekliği sabitlendi */
    background: #ffffff !important; /* Hiçbir şekilde şeffaf olmaz */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Hafif gölge ile derinlik */
    transition: all 0.3s ease;
}

/* Menü Yazı Renklerini Sabitleme (Koyu Renk) */
nav .logo, 
nav .logo i,
nav .nav-links a,
nav .mobile-menu-btn {
    color: var(--dark) !important;
}

nav .nav-links a:hover {
    color: var(--primary) !important;
}

/* Scrolled (Kaydırma) Durumunda Ekstra Değişikliğe Gerek Yok */
nav.scrolled {
    padding: 12px 0; /* Kaydırınca biraz daha incelebilir */
}

/* --- HERO ALANI DÜZELTMESİ --- */
/* Menü artık şeffaf olmadığı için Hero alanının üstten boşluğunu netleştiriyoruz */
.hero {
    margin-top: 0; 
    padding-top: 120px !important; /* Menü yüksekliği kadar boşluk bırakır */
}

/* Mobil Menü Arka Planı */
@media (max-width: 768px) {
    .nav-links {
        background: #ffffff !important;
        top: 70px; /* Menü yüksekliğine göre hizalı */
    }
}
/* ==========================================================================
   HİZMET DETAY SAYFASI (SEO & UX)
   ========================================================================== */

/* İçerik Düzeni (WordPress Editöründen Gelen Metinler) */
.seo-content {
    color: var(--dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.seo-content h2, .seo-content h3 {
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.seo-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--gray);
}

.seo-content ul li {
    margin-bottom: 8px;
}

/* Sidebar İç Linkleme Hover Efekti */
.sidebar-menu a:hover {
    color: var(--primary) !important;
    padding-left: 5px !important;
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    /* Mobilde ve Tablette Sidebar'ı alta al ve Grid'i iptal et */
    .service-layout {
        grid-template-columns: 1fr !important;
    }
    
    /* Yapışkan Sidebar mobilde can sıkabilir, sabitliyoruz */
    .service-sidebar {
        position: static !important;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem !important;
    }
    .seo-content {
        font-size: 1rem;
    }
}
/* ==========================================================================
   YAPIŞKAN (FLOATING) İLETİŞİM BUTONLARI
   ========================================================================== */
.floating-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999; /* Her şeyin üstünde görünmesini sağlar */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-5px);
}

/* WhatsApp Butonu Özellikleri */
.whatsapp-btn {
    background-color: #25d366; 
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Telefon Butonu Özellikleri (Temanın Ana Mavisi) */
.phone-btn {
    background-color: var(--primary); 
    animation: pulse-phone 2s infinite; /* Sürekli yayılan dikkat çekici halka efekti */
}

.phone-btn:hover {
    background-color: var(--primary-dark);
    animation: none; /* Üzerine gelince animasyon durur */
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Telefon Butonu İçin Titreşim / Dalga (Pulse) Efekti */
@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Mobilde Daha Zarif Boyutlandırma */
@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 26px; /* İkon boyutunu küçülttük */
    }
}