/* --- GENEL SİTE STİLLERİ --- */
/* Laminant Parke Renk Paleti: Ahşap Kahverengi ve Altın Tonları */
:root {
    --primary-color: #8B4513; /* ANA RENK - Saddel Brown (Ahşap Kahverengi) */
    --accent-color: #DAA520; /* VURGU RENK - Goldenrod (Altın Sarısı) */
    --text-color: #2F1B14; /* Koyu Ahşap Tonu Metin */
    --light-bg: #F5F5DC; /* Bej/Ahşap Açık Arka Plan */
    --dark-bg: #4A2C2A; /* Koyu Ahşap Arka Plan */
}

body {
    background-color: #FAF9F6; /* Çok Açık Bej - Ahşap zemine uygun */
    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İ - Ahşap Kahverengi */
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 Ahşap 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); /* Ahşap Kahverengi Vurgu */
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5); /* Kahverengi gölge */
    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%; /* Parkelerin 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(139, 69, 19, 0.8), 0 0 10px #000; /* Kahverengi gölge */
}

/* Dinamik altın başlık rengi için yeni sınıf */
.hero-section h1.orange-title {
    color: var(--accent-color) !important; /* Altın Sarısı */
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.8), 0 0 10px #000;
}

/* CTA Butonu Stili (Altın Sarısı) */
.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(218, 165, 32, 0.6); /* Altın gölge */
    z-index: 10;
}
.cta-button:hover {
    background-color: #B8860B; /* Koyu Altın */
    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); /* Bej 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;
    /* 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% {
        /* 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); /* Kahverengi çerçeve */
    border-radius: 25px; 
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-color);
}
#district-search:focus {
    outline: none;
    border-color: #5C3317; /* Daha koyu kahverengi */
    box-shadow: 0 0 8px rgba(139, 69, 19, 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: 1000;
}

/* --- HİZMET KARTLARI (Grid Düzeni) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
}
.service-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(139, 69, 19, 0.3); /* Kahverengi gölge */
}
.service-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}
.service-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.service-item p {
    font-size: 0.95em;
    color: var(--text-color);
}

/* --- DİĞER GENEL STİLLER --- */
.page-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.section-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); /* Kahverengi sol çizgi */
    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: #E8DAB2; /* Açık altın ton */
    border-left-color: var(--accent-color); /* Altın vurgu */
}
.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); /* Altın kesikli çizgi */
    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); /* Bej arka plan */
    margin: 30px auto; 
    max-width: 1200px; 
    border-radius: 10px;
    
    /* İnce altın çerçeve */
    border: 1px solid var(--accent-color); 
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.4); /* Altın gölge */
}

.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(139, 69, 19, 0.3); /* Kahverengi gölge */
}
/* 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); /* Koyu ahşap */
    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); /* Altın buton */
    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); /* Altın telefon numarası */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.phone-number-link:hover {
    color: #B8860B; /* Koyu altın */
    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; 
}

/* --- İLÇE HİZMETLERİ BÖLÜMÜ STİLLERİ --- */
#district-services .district-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

#district-services .district-button {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background-color: var(--light-bg); /* Bej arka plan */
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    border-radius: 8px;
    border: 2px solid var(--primary-color); /* Kahverengi çerçeve */
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#district-services .district-button:hover {
    background-color: var(--accent-color); /* Altın sarısı hover */
    color: var(--dark-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4); /* Altın gölge */
}

/* --- 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;
    }

    /* Dinamik altın 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;
    }

    /* İlçe Hizmetleri Mobil Düzenleme */
    #district-services .district-buttons {
        gap: 8px;
        max-width: 90%;
    }

    #district-services .district-button {
        padding: 10px 15px;
        font-size: 0.95em;
        max-width: 100%;
    }
}