/* --- GENEL SİTE STİLLERİ --- */
/* Yeni Renk Paleti: Mavi (#007bff) ve Turuncu/Sarı (#ffc107) */
:root {
    --primary-color: #007bff; /* ANA RENK - Canlı Mavi */
    --accent-color: #ffc107; /* VURGU RENK - Canlı Turuncu/Sarı */
    --text-color: #343a40; /* Koyu Gri Metin */
    --light-bg: #f8f9fa; /* Açık Gri Arka Plan */
    --dark-bg: #343a40; /* Koyu Gri/Siyah Arka Plan */
}

body {
    background-color: #ffffff; 
    color: var(--text-color); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0 0 20px 0; 
    line-height: 1.6; 
    font-size: 1em; 
    overflow-x: hidden; 
    min-height: 100vh;
}
/* BAŞLIK RENGİ - Mavi */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color); 
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
}
@keyframes slideInSection {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- HEADER VE MENÜ DÜZENLEMESİ (Mobil Uyumlu Yatay Menü) --- */
header {
    text-align: center;
    padding: 0; 
    margin: 0; 
    position: relative; 
}
.main-menu {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 20; 
    padding: 15px 0;
    background: var(--dark-bg); /* Koyu Gri Zemin */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Menüye belirgin gölge */
}
.main-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Boşluk azaltıldı */
    flex-wrap: wrap; /* Mobil uyum için sarar */
}
/* Ana Menü Linkleri (Metinler Beyaz Kalacak) */
.main-menu li a {
    color: #ffffff; 
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
}
.main-menu li a:hover, .main-menu li a.active {
    background-color: var(--primary-color); /* Mavi Vurgu */
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); 
    transform: scale(1.05);
}

/* --- HERO BÖLÜMÜ VE ARKA PLAN FOTOĞRAFI DÜZENLEMESİ --- */
.hero-section {
    position: relative;
    /* Hero arka plan resmi doğru yol: img/hero-image.webp */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/hero-image.webp');
    background-size: cover;
    background-position: center 30%; /* Akülerin daha çok görünmesi için dikeyde 30% konumlandırıldı */
    background-repeat: no-repeat;
    color: #ffffff; 
    padding: 0 20px; 
    /* Yüksekliği mobil ve masaüstü için optimize edildi */
    height: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding-top: 60px; /* Menüye boşluk bırakıldı */
    padding-bottom: 0; 
    overflow: hidden; 
    z-index: 1; 
    /* Logo bandı dışarı taşındığı için margin-bottom kaldırıldı */
    margin-bottom: 0; 
}
.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px; 
}
.hero-section h1 {
    color: #ffffff !important; 
    font-size: 2.8em; 
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.8), 0 0 10px #000; 
}

/* İSTENEN DEĞİŞİKLİK: Dinamik turuncu başlık rengi için yeni sınıf */
.hero-section h1.orange-title {
    color: var(--accent-color) !important; /* Turuncu/Sarı */
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8), 0 0 10px #000;
}

/* CTA Butonu Stili (Turuncu/Sarı) */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color); 
    color: var(--dark-bg); 
    padding: 12px 25px; 
    text-decoration: none;
    font-size: 1.1em; 
    font-weight: bold;
    border-radius: 25px; 
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid var(--accent-color); 
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.6); 
    z-index: 10;
}
.cta-button:hover {
    background-color: #e0a800; 
    transform: scale(1.05);
}


/* --- MARKA LOGOLARI ŞERİDİ STİLLERİ (Hero altı, normal akışta) --- */
.brand-logos-container {
    width: 100%;
    height: 60px; /* Logo 50px olacağı için konteyner yüksekliği 60px olarak ayarlandı */
    overflow: hidden;
    background-color: var(--light-bg); /* Hafif arka plan */
    z-index: 5; 
    margin-bottom: 0; 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); 
    padding-top: 5px; /* Hero ile arasında hafif boşluk */
}
.logo-track {
    display: flex;
    white-space: nowrap;
    /* GÜNCELLEME: Sonsuz döngü için animasyon süresi ayarlandı */
    animation: scroll-left 15s linear infinite; 
    padding: 0; 
    align-items: center;
    height: 100%;
}
/* LOGO BOYUTLANDIRMASI (50x50) */
.logo-track img {
    height: 50px;  /* İSTENEN YÜKSEKLİK */
    width: auto;   /* Oranı korumak için genişlik otomatik */
    margin: 0 20px; 
    filter: grayscale(0%) opacity(1); /* Logolar CANLI kalacak */
    transition: filter 0.5s ease;
}
.logo-track img:hover {
    filter: grayscale(0%) opacity(1); 
}
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* GÜNCELLEME: Yuasa kaldırıldığı için kaydırma mesafesi 5 logo genişliğine ayarlandı. */
        transform: translateX(calc(-100px * 5)); 
    }
}


/* ARAMA KUTUSU YENİ KONUM */
.search-container {
    position: relative; 
    width: 90%;
    max-width: 400px;
    margin: 20px auto 30px auto; 
    z-index: 10; 
    border-radius: 25px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#district-search {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--primary-color); 
    border-radius: 25px; 
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-color);
}
#district-search:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}
.autocomplete-results {
    position: absolute;
    top: 100%; 
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.autocomplete-results a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}
.autocomplete-results a:last-child {
    border-bottom: none;
}
.autocomplete-results a:hover {
    background-color: var(--light-bg);
}


/* --- ANA İÇERİK BÖLÜMLERİ --- */
.page-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.page-section h2 {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color); 
    margin-bottom: 20px;
}
/* Hizmet Kartları Gridi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.service-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--light-bg);
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* HİZMET FOTOĞRAFLARI BOYUTLANDIRMASI (200x200) */
.service-item img {
    width: 200px; /* İSTENEN GENİŞLİK */
    height: 200px; /* İSTENEN YÜKSEKLİK */
    object-fit: contain; 
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--primary-color); 
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 0;
}
.service-item p {
    font-size: 0.9em;
    color: #6c757d;
}
.common-services-title {
    text-align: center;
    color: var(--primary-color);
    margin-top: 40px;
    font-size: 1.5em;
}
/* İlçe listesi ve diğer genel içerikler */
.ilce-link {
    display: block;
    padding: 10px 15px;
    background-color: var(--light-bg);
    margin-bottom: 8px;
    border-left: 5px solid var(--primary-color); 
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.2s, border-left-color 0.2s;
    border-radius: 4px;
}
.ilce-link:hover {
    background-color: #e9ecef;
    border-left-color: var(--accent-color); 
}
.district-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.intro-text {
    font-style: italic;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    font-weight: 500;
}
.content-detail h3, .services-list h3 {
    color: var(--text-color);
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 5px;
    font-weight: 600;
}

/* --- YENİ FOTOĞRAF GÖSTERİM ALANI (Klonlanmış Görseller) --- */
#bottom-photo-showcase {
    padding: 40px 10px;
    text-align: center;
    background-color: var(--light-bg); 
    margin: 30px auto; 
    max-width: 1200px; 
    border-radius: 10px;
    
    /* İSTENEN STİL: İnce turuncu çerçeve */
    border: 1px solid var(--accent-color); 
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4); 
}

.photo-grid-cloned {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; 
    margin-top: 20px;
}
.photo-item-cloned {
    width: 250px; 
    height: 320px; /* Görsel ve başlık için yer bırakıldı */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 3px solid #ffffff; 
    background-color: #ffffff;
    text-align: center;
}
.photo-item-cloned:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3); 
}
/* Mevcut hizmet görsellerinin boyutunu kullanıyoruz */
.photo-item-cloned img {
    width: 200px;
    height: 200px;
    object-fit: contain; 
    margin: 15px auto 5px auto; /* Üstten, alttan boşluk */
    display: block;
}
.photo-caption {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    margin: 5px 0 10px 0;
}

/* --- GERİ DÖN VE FOOTER STİLLERİ --- */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--accent-color);
}
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--dark-bg); 
    color: #ffffff;
    font-size: 0.9em;
}
footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}
/* Scroll Top Butonu */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* --- YENİ EKLENEN SEO METNİ STİLLERİ --- */
.phone-number-link {
    color: var(--accent-color); 
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.phone-number-link:hover {
    color: #e0a800; 
    text-decoration: underline;
}
#seo-content-section h2 {
    color: var(--text-color); 
    text-align: left; 
    border-bottom: none; 
    padding-bottom: 0;
    margin-bottom: 10px;
    font-size: 1.4em; 
}
#seo-content-section p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify; 
}


/* --- MOBİL UYUM (768px Altı) --- */
@media (max-width: 768px) {
    /* Genel mobil düzenleme */
    body {
        padding: 0 0 10px 0;
        font-size: 0.95em;
    }
    .page-section {
        padding: 15px;
        margin: 10px auto;
    }
    
    /* Menü mobil düzenleme */
    .main-menu ul {
        gap: 5px; 
    }
    .main-menu li a {
        padding: 5px 6px; 
        font-size: 0.85em;
    }
    
    /* Hero mobil düzenleme */
    .hero-section {
        height: 350px; 
        padding-top: 60px;
        background-position: center 35%; 
    }
    .hero-section h1 {
        font-size: 1.8em;
    }

    /* İSTENEN DEĞİŞİKLİK: Dinamik turuncu başlık rengi için mobil stil */
    .hero-section h1.orange-title {
        font-size: 1.8em; /* Mobil font boyutunu koru */
    }

    /* Arama Kutusu mobil düzenleme */
    .search-container {
        width: 95%;
        margin: 15px auto 20px auto; 
    }
    #district-search {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    /* Logo Şeridi mobil düzenleme */
    .brand-logos-container {
        height: 50px; 
    }
    .logo-track img {
        height: 40px; /* Mobilde 40px olarak küçültüldü */
        margin: 0 10px;
    }

    /* Hizmet Kartları mobil düzenleme */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    /* Hizmet fotoğrafları mobil düzenleme */
    .service-item img {
        width: 150px; 
        height: 150px; 
    }
    
    /* KLONLANMIŞ FOTOĞRAF KARELERİ MOBİL UYUM */
    .photo-grid-cloned {
        gap: 10px;
    }
    .photo-item-cloned {
        width: 150px; 
        height: 250px; /* Mobil için yüksekliği küçültüldü */
    }
    .photo-item-cloned img {
        width: 120px;
        height: 120px;
    }
    #bottom-photo-showcase {
        padding: 20px 10px;
    }
    .district-list {
        grid-template-columns: 1fr; 
    }
    .scroll-top-btn {
        bottom: 10px; 
    }

    /* SEO Metni Mobil Düzenleme */
    #seo-content-section h2 {
        text-align: center; 
        font-size: 1.2em; 
    }
    #seo-content-section p {
        text-align: left;
    }
}